Commit Graph

22 Commits

Author SHA1 Message Date
Nick Schultz
f91d29adad sequelize: update BelongsToMany<Set|Create|Add>AssociationMixin to accept join table attributes (#17071)
* update BelongsToMany<Set|Create|Add>AssociationMixin to accept join table attributes correctly

* dont make a bunch of automatic editor changes
2017-06-08 15:27:57 -07:00
snewell92
b860983357 Sequelize Add documented props to SyncOptions (#16976)
* Added alter, hooks, and searchPath to syncOptions interface with compiler test and documentation comments (straight from sequelize v4 docs)

* Fix implicit any return type error
2017-06-05 16:33:06 -07:00
Nathan Shively-Sanders
163f4438df Fix weak type errors (#16845)
* Fix first round of weak type errors

Done through griddle-react

* 95% done with weak type fixes

* Fix last couple of weak type errors

* Remove some lint from mithril tests

* mithril's Lifecycle is not a weak type any more

Restore the Lifecycle constraints in the rest of the definitions.

* Fix react-redux tests after #16652 broke them

* Remove package-lock.json
2017-06-04 22:03:03 -07:00
Nick Müller
55b533a6c4 [sequelize] Added missing type to sequelize.DefineIndexesOptions.fields (#16908)
* Added missing type to sequelize.DefineIndexesOptions.fields

* Added test for added sequelize.DefineIndexesOptions type
2017-06-04 14:14:18 -07:00
John Pinkster
ad99b8e217 Sequelize - FIX/SubQuery and Raw (#16657)
* Sequelize - FIX/SubQuery and Raw 

In the `FindOptions` there is an optional property missing from the definition file that allows you to turn on and off sub queries with nested associations

Documentation of functionality:
https://github.com/sequelize/sequelize/issues/1756

Please fill in this template.

- [ ] Use a meaningful title for the pull request. Include the name of the package modified.
- [ ] Test the change in your own code. (Compile and run.)
- [ ] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [ ] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [ ] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If adding a new definition:
- [ ] The package does not provide its own types, and you can not add them.
- [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [ ] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [ ] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, and `strictNullChecks` set to `true`.

If changing an existing definition:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>
- [ ] Increase the version number in the header if appropriate.
- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "../tslint.json" }`.

If removing a declaration:
- [ ] If a package was never on DefinitelyTyped, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
- [ ] Delete the package's directory.
- [ ] Add it to `notNeededPackages.json`.

* Adding test
2017-06-02 07:21:01 -07:00
Nathan Shively-Sanders
d3ed133f41 Merge pull request #16534 from jklimke/add_options_to_unmanaged_transaction_call_for_sequelize
Add options to unmanaged transaction call for sequelize
2017-06-01 15:31:41 -07:00
John Pinkster
82307e4d26 Adding a test for include.paranoid 2017-05-18 07:11:38 -04:00
John Pinkster
869397339e Sequelize - FIX/Paranoid in IncludeOptions
In the `IncludeOptions` there is an optional property missing from the definition file that allows you to turn on and off the paranoid functionality from the search. 

Documentation of functionality: 
http://docs.sequelizejs.com/manual/tutorial/models-usage.html#including-soft-deleted-records

Please fill in this template.

- [ ] Use a meaningful title for the pull request. Include the name of the package modified.
- [ ] Test the change in your own code. (Compile and run.)
- [ ] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [ ] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [ ] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If adding a new definition:
- [ ] The package does not provide its own types, and you can not add them.
- [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [ ] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [ ] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, and `strictNullChecks` set to `true`.

If changing an existing definition:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>
- [ ] Increase the version number in the header if appropriate.
- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "../tslint.json" }`.

If removing a declaration:
- [ ] If a package was never on DefinitelyTyped, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
- [ ] Delete the package's directory.
- [ ] Add it to `notNeededPackages.json`.
2017-05-17 21:11:35 -04:00
Arthur Ozga
842d9c4bdb Merge pull request #16443 from Botik/sequelize-indexes
[sequelize] add where option to DefineIndexesOptions for v4
2017-05-16 13:26:36 -07:00
Arthur Ozga
ea41bfc99d Merge pull request #16444 from Botik/sequelize-truncate
[sequelize] add force option to TruncateOptions for v4
2017-05-16 13:26:14 -07:00
Jan Klimke
53357af3b0 Add options to unmanaged transaction call for sequelize 2017-05-15 18:54:11 +02:00
TANAKA Koichi
a609728f56 sequelize: fix inheritance of UniqueConstraintError class.
UniqueConstraintError class is subclass of ValidationError in both of
v3 and v4(current).

authorities:
for v4
http://docs.sequelizejs.com/class/lib/errors/index.js~UniqueConstraintError.html
for v3 (official doc is wrong.)
https://github.com/sequelize/sequelize/blob/v3/lib/errors.js#L153
2017-05-15 14:23:18 +09:00
Botik
2a766c7cc5 [sequelize] add force option to TruncateOptions for v4 2017-05-10 14:47:08 +03:00
Botik
d5a5da8e7f [sequelize] add where option to DefineIndexesOptions for v4 2017-05-10 14:43:02 +03:00
Evgeny
c49e2aa150 [sequelize] add where option to DefineIndexesOptions (#16357) 2017-05-05 16:22:36 -07:00
Evgeny
942dcf66e2 [sequelize] add force option for TruncateOptions (#16353) 2017-05-05 09:55:15 -07:00
Pavel Puchkov
d1a979d719 Change transaction() autoCallback param type from Blueburd to PromiseLike (#16253)
* Change transaction() autoCallback param type from Blueburd to PromiseLike

* Add promise tests.
2017-05-03 12:07:38 -07:00
Yousef
0a29ae08a9 fix null in sequelize find (#16219) 2017-05-01 12:29:24 -07:00
Brendan Abolivier
6389fb3171 Changed optional property to required property (#15820) 2017-04-20 11:33:30 -07:00
John Pinkster
1c3119fd77 updating v4 2017-04-11 10:25:01 -04:00
John Pinkster
5f8eb094db FIX/Distinct in FindOptions
The `FIndOptions` is applied for the `findAndCount` and `findAndCountAll`. For the count to be accurate with relationships, you need to be able to apply the `disinct` flag. This update will allow us to utilize the interface in those situations.
2017-04-11 10:08:43 -04:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00