张嘉永
363fbd9d5f
add return type for sequelize.model.belongsTo and more ( #25341 )
2018-04-26 15:10:40 -07:00
Nick Schultz
73619f74ff
[Sequelize] Fix types error with UpsertOptions requiring the returning option if they are defined at all ( #25240 )
...
* upsert should compile with options that dont include returning
* fix parens
* bump version for bugfix
2018-04-24 16:17:23 -07:00
Bruno Lemos
06dca56209
[sequelize] Change ReplicationOptions.read type to array ( #25207 )
2018-04-24 16:11:37 -07:00
Paul van Brenk
321ae2a98d
Merge pull request #24649 from abdoolly/patch-1
...
adding unique attribute in AssociationForeignKeyOptions
2018-04-05 13:02:45 -07:00
ataru
d01a5c6b1b
fix sequelize update incorrect typings
2018-04-01 14:11:40 +09:00
Abdallah Gamal
6e793449ca
adding unique attribute in AssociationForeignKeyOptions
...
adding the unique attribute in AssociationForeignKeyOptions
this unique could be boolean or a string for composite unique indexes
2018-03-31 03:20:13 +02:00
Mine Starks
6490e73891
Merge pull request #24397 from todd/revert_scope_change
...
[Sequelize] Fix regression in Model.scope
2018-03-23 14:29:48 -07:00
Yaroslav
8522b56feb
Tests
2018-03-21 15:02:20 +02:00
Yaroslav
6dc8b36c67
Type "Buffer" as primary key in "findById" and its alias "findByPrimary" functions.
2018-03-21 14:35:15 +02:00
Todd Bealmear
f6b30970cb
🐛 Fix regression in Model.scope
2018-03-19 21:09:25 -07:00
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: 0047dca9df/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