Commit Graph
96 Commits
Author SHA1 Message Date
Nick Schultz 2e7f1f9da3 update version and add myself to maintainers 2018-03-14 09:14:43 -04:00
Nick Schultz 8c71e13cc7 the order of returned values was flipped 2018-03-14 09:05:42 -04:00
Arthur White 1f69cfbc62 Merge branch 'master' into master 2018-03-09 01:41:58 +01:00
Armando Aguirre 5cda6a8505 Merge pull request #23963 from nrschultz/ns-upsert-returning-type-clarification
[Sequelize] add returning option to upsert and change return type accordingly
2018-03-08 15:51:06 -08:00
Arthur White ac40113cb2 Define Models and add name and associate(models) for Model 2018-03-08 23:40:50 +01:00
Juan Paucar dfb8f459ae sequelize: Correct some typings 2018-03-08 07:30:13 -05:00
Benjamin Lichtman 62b536bcf4 Merge pull request #23722 from creditiq/master
Update sequelize types in index.d.ts to support using transactions
2018-02-28 11:21:34 -08:00
Nick Schultz b996d55672 bump version to reflect a change from current npm version 2018-02-27 16:08:58 -05:00
Nick Schultz 1b53b01f40 add returning option to upsert and change return type accordingly 2018-02-27 15:57:47 -05:00
Todd Bealmear f807b33420 Fix issue where Sequelize.Model.scope would not respect children (#23494) 2018-02-20 16:47:35 -08:00
aldentaylor 762a9a1e1c Update index.d.ts
Added Transaction to QueryInterfaceOptions to allow use of Transactions in calls using QueryInterfaceOptions
2018-02-16 15:05:46 -08:00
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel Rosenwasser ea43a0f23a Merge pull request #23256 from Raigen/master
[sequelize] extend RetryOptions with RegExp and Error
2018-02-13 12:00:08 -08:00
Andy 2a9d2f8d59 Convert more "import *" to "import =" (#23446) 2018-02-05 18:27:31 -08:00
Andy bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Florian Oellerich 8254317eca [sequelize] extend RetryOptions
* Extend `RetryOptions.match` with `RegExp` and `Error` acording to `retry-as-promised`.
* Extend sequelize-tests.ts
2018-01-29 15:03:07 +01:00
Sean McGary a8706fc330 Sequelize - Add function interface for UUID types (#22929)
Adding the function interface now allows the user to specify
a default value for UUID types:

```
const TestModel = sequelize.define('test_model', {
	uuid: {
		type: Sequelize.UUID,
		defaultValue: Sequelize.UUIDV4()
	}
});
```
2018-01-19 10:13:31 -08:00
ManeeshSharma17 f2435def78 fix(types): add col to CountOptions and FindOptions interface (#22914)
* fix(types): add col to CountOptions and FindOptions interface

Added missing property 'col' in CountOptions and FindOptions interface.

* Added missing property 'col' in CountOptions and FindOptions interface in v3

* added testcase

* remove col attribute from FindOptions

* Removed whitespaces
2018-01-17 09:50:02 -08:00
Nikola Vidic 16937e5e28 [sequelize] Update addColumn and removeColumn (#22965)
* [sequelize] Update addColumn and removeColumn

* update squelize-tests.ts
2018-01-17 09:43:45 -08:00
Jimmy Gaussen 4380b9f74a @types/sequelize Reverting #22755 due to breaking changes (#22786)
* @types/sequelize Added generic types for various option classes

* Revert "@types/sequelize Added generic types for various option classes (#22755)"

This reverts commit 38983ce
2018-01-10 10:24:03 -08:00
Jimmy Gaussen 38983cefe9 @types/sequelize Added generic types for various option classes (#22755) 2018-01-08 15:12:46 -08:00
Jan Tůma 491512553f Return type of close method (#22747) 2018-01-08 15:12:19 -08:00
张嘉永 a33af86116 update sequelize declare (#22616)
* update sequelize declare

* sequelize add testcase for datatypes
2018-01-04 09:36:02 -08:00
id0181 bd9beb540b Add sourceKey property to AssociationOptionsHasMany interface
According to http://docs.sequelizejs.com/class/lib/model.js~Model.html#static-method-hasMany, Model.hasMany should have an sourceKey property. But for now, no sourceKey property for an 1 to Many association exists
2017-12-13 13:04:03 -05:00
danbopes 0e179eb216 Update @types/sequelize to including missing identifier
See related field here: https://github.com/sequelize/sequelize/blob/0047dca9dffe9133ae231d7e0de50bca5714634a/lib/sequelize.js#L168
2017-11-08 15:53:35 -05:00
Andy 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Diwakar c8a3ba9008 @types/sequelize add missing useCLS function def (#20788) 2017-10-23 15:17:29 -07:00
Andy 8f53357a4c sequelize: Allow 'boolean' in WhereOptions (#20690) 2017-10-19 13:32:47 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Konstantin Vasilev 01a5cf5820 [sequelize] add operatorsAliases option (#20284)
* [sequelize] add operatorsAliases option

* fix. right symbols usage

* add arbitrary key for aliases options

* fix arbitrary key for strict usage
2017-10-05 22:38:41 +09:00
Melvin Groenhoff e1a2d5cfc4 Allow to assign result of Sequelize.where() to where clause in find options. (#19962) 2017-09-26 15:51:05 -07:00
axetroy 17698b27a6 [sequelize] describe the transaction's options as clearly as possible 2017-09-15 11:45:16 +08:00
Nathan Shively-Sanders cbea696607 Merge pull request #19432 from stackbuilders/add_subquery
Include subQuery for sequelize version 3 as well
2017-09-05 16:07:21 -07:00
Konrad Koch a42b6e7553 camelizeIf and underscoredIf wrong in SequelizeLoDash
The type definition defines that `underscoredIf` and `camelizeIf` is accessable via `Utils._.underscoredIf`
The correct path would be `Utils.underscoredIf` for a sequelize version '>=3.0.0'
2017-09-03 16:16:16 +02:00
Danlock 5bb93e3433 Deferrable option mistakenly refers to the interface and not it's contents (#18677) 2017-08-30 17:24:43 -07:00
Juan Carlos Paucar f43d588a4a Include subQuery for sequelize version 3 as well 2017-08-29 13:19:31 -05:00
Bowden Kelly e014c942a6 Merge pull request #19204 from samcal/patch-1
sequelize: Update types for PoolOptions
2017-08-24 17:18:55 -07:00
BRAMILLE Sébastien c74411e4c8 Merge branch 'master' into fix/sequelize-addIndex-typings 2017-08-22 22:48:47 +01:00
Sam Calvert a10f859034 Update types for PoolOptions 2017-08-21 10:58:47 -07:00
Sebastien Bramille d0315e8d62 [Sequelize] Fix addIndex typing 2017-08-21 14:02:07 +01:00
Meykel Gruel e64381c9e8 merged changes for Nick Mueller <https://github.com/morpheusxaut> from v3 to v4
Tickets:

* https://github.com/DefinitelyTyped/DefinitelyTyped/issues/19014
2017-08-16 11:16:32 +02:00
kukoo1 bf2e0faa52 add missing constructor options (database, username, password, retry, typeValidation [only v4]), add RetryOptions interface for reuse and DRY purpose (#18896) 2017-08-14 11:22:49 -07:00
Izik Lisbon f668da13f4 Sequelize is using Validator to validate that a string is a UUID. Validator supports 4 versions of UUID:
https://github.com/chriso/validator.js/blob/b59133b1727b6af355b403a9a97a19226cceb34b/lib/isUUID.js#L14-L19

Update Sequelize's typescript to include `all` and change `number` type to a more specific type (3|4|5).
Update Validator's typescript to be more specific. instead of `string | number` set the enum values (3|4|5|all)
2017-08-09 00:01:33 -07:00
Jerod King 6b00563c2d Fixing findCreateFind to return [Model, created] (#18305)
http://docs.sequelizejs.com/class/lib/model.js~Model.html#static-method-findCreateFind
2017-07-24 10:40:48 -07:00
Wesley Wigham 6f77e8e733 Merge pull request #18090 from izikl/master
Sequelize: Add  version property to the Table's options to support Optimistic Locking
2017-07-19 15:23:36 -07:00
Izik Lisbon 7225bdcae6 Sequelize: Add to the Table's options to support Optimistic Locking. 2017-07-14 20:21:08 -07:00
Jan Klimke 0961f7aec7 removed merge markers 2017-07-14 18:29:25 +02:00
Jan Klimke 35ed47ed7c added literal as allowed type for attributes 2017-07-14 15:13:25 +02:00
Jan Klimke 61b4704342 Merge branch 'master' of github.com:DefinitelyTyped/DefinitelyTyped 2017-07-14 15:03:42 +02:00
Ryan Cavanaugh 16f4cecbc2 Merge pull request #17602 from gloorx/master
[Sequelize] Add rejectOnEmpty mode types
2017-07-10 10:19:16 -07:00