adaptic-backend 1.0.292 → 1.0.294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Account.cjs +75 -21
- package/Action.cjs +75 -21
- package/Alert.cjs +75 -21
- package/AlpacaAccount.cjs +75 -21
- package/Asset.cjs +75 -21
- package/Authenticator.cjs +75 -21
- package/Contract.cjs +75 -21
- package/Customer.cjs +75 -21
- package/Deliverable.cjs +75 -21
- package/EconomicEvent.cjs +75 -21
- package/MarketSentiment.cjs +75 -21
- package/NewsArticle.cjs +75 -21
- package/NewsArticleAssetSentiment.cjs +75 -21
- package/Order.cjs +75 -21
- package/Position.cjs +75 -21
- package/ScheduledOptionOrder.cjs +75 -21
- package/Session.cjs +75 -21
- package/StopLoss.cjs +75 -21
- package/TakeProfit.cjs +75 -21
- package/Trade.cjs +75 -21
- package/User.cjs +75 -21
- package/VerificationToken.cjs +75 -21
- package/apollo-client.client.cjs +17 -0
- package/apollo-client.client.d.ts +7 -0
- package/apollo-client.server.cjs +21 -0
- package/apollo-client.server.d.ts +7 -0
- package/client.cjs +80 -59
- package/client.d.ts +26 -17
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +64 -10
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +64 -10
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +64 -10
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +64 -10
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +64 -10
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +64 -10
- package/esm/Contract.d.ts.map +1 -1
- package/esm/Contract.js.map +1 -1
- package/esm/Contract.mjs +64 -10
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +64 -10
- package/esm/Deliverable.d.ts.map +1 -1
- package/esm/Deliverable.js.map +1 -1
- package/esm/Deliverable.mjs +64 -10
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +64 -10
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +64 -10
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +64 -10
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +64 -10
- package/esm/Order.d.ts.map +1 -1
- package/esm/Order.js.map +1 -1
- package/esm/Order.mjs +64 -10
- package/esm/Position.d.ts.map +1 -1
- package/esm/Position.js.map +1 -1
- package/esm/Position.mjs +64 -10
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +64 -10
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +64 -10
- package/esm/StopLoss.d.ts.map +1 -1
- package/esm/StopLoss.js.map +1 -1
- package/esm/StopLoss.mjs +64 -10
- package/esm/TakeProfit.d.ts.map +1 -1
- package/esm/TakeProfit.js.map +1 -1
- package/esm/TakeProfit.mjs +64 -10
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +64 -10
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +64 -10
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +64 -10
- package/esm/apollo-client.client.d.ts +7 -0
- package/esm/apollo-client.client.d.ts.map +1 -0
- package/esm/apollo-client.client.js.map +1 -0
- package/esm/apollo-client.client.mjs +8 -0
- package/esm/apollo-client.server.d.ts +7 -0
- package/esm/apollo-client.server.d.ts.map +1 -0
- package/esm/apollo-client.server.js.map +1 -0
- package/esm/apollo-client.server.mjs +12 -0
- package/esm/client.d.ts +26 -17
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js.map +1 -1
- package/esm/client.mjs +45 -60
- package/generated/typegraphql-prisma/enhance.cjs +7 -7
- package/generated/typegraphql-prisma/index.cjs +10 -10
- package/generated/typegraphql-prisma/resolvers/crud/args.index.cjs +22 -22
- package/generated/typegraphql-prisma/resolvers/crud/index.cjs +3 -3
- package/generated/typegraphql-prisma/resolvers/outputs/index.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/args.index.cjs +11 -11
- package/generated/typegraphql-prisma/resolvers/relations/index.cjs +2 -2
- package/index.cjs +1 -1
- package/package.json +1 -1
- package/server.cjs +1 -1
package/Contract.cjs
CHANGED
@@ -254,8 +254,14 @@ exports.Contract = {
|
|
254
254
|
* @returns The created Contract or null.
|
255
255
|
*/
|
256
256
|
async create(props, globalClient) {
|
257
|
-
const client =
|
258
|
-
|
257
|
+
const [modules, client] = await Promise.all([
|
258
|
+
(0, client_1.getApolloModules)(),
|
259
|
+
globalClient
|
260
|
+
? Promise.resolve(globalClient)
|
261
|
+
: client_1.client
|
262
|
+
]);
|
263
|
+
const { gql, ApolloError } = modules;
|
264
|
+
const CREATE_ONE_CONTRACT = gql `
|
259
265
|
mutation createOneContract($data: ContractCreateInput!) {
|
260
266
|
createOneContract(data: $data) {
|
261
267
|
${selectionSet}
|
@@ -1302,8 +1308,14 @@ exports.Contract = {
|
|
1302
1308
|
* @returns The count of created records or null.
|
1303
1309
|
*/
|
1304
1310
|
async createMany(props, globalClient) {
|
1305
|
-
const client =
|
1306
|
-
|
1311
|
+
const [modules, client] = await Promise.all([
|
1312
|
+
(0, client_1.getApolloModules)(),
|
1313
|
+
globalClient
|
1314
|
+
? Promise.resolve(globalClient)
|
1315
|
+
: client_1.client
|
1316
|
+
]);
|
1317
|
+
const { gql, ApolloError } = modules;
|
1318
|
+
const CREATE_MANY_CONTRACT = gql `
|
1307
1319
|
mutation createManyContract($data: [ContractCreateManyInput!]!) {
|
1308
1320
|
createManyContract(data: $data) {
|
1309
1321
|
count
|
@@ -1358,8 +1370,14 @@ exports.Contract = {
|
|
1358
1370
|
* @returns The updated Contract or null.
|
1359
1371
|
*/
|
1360
1372
|
async update(props, globalClient) {
|
1361
|
-
const client =
|
1362
|
-
|
1373
|
+
const [modules, client] = await Promise.all([
|
1374
|
+
(0, client_1.getApolloModules)(),
|
1375
|
+
globalClient
|
1376
|
+
? Promise.resolve(globalClient)
|
1377
|
+
: client_1.client
|
1378
|
+
]);
|
1379
|
+
const { gql, ApolloError } = modules;
|
1380
|
+
const UPDATE_ONE_CONTRACT = gql `
|
1363
1381
|
mutation updateOneContract($data: ContractUpdateInput!, $where: ContractWhereUniqueInput!) {
|
1364
1382
|
updateOneContract(data: $data, where: $where) {
|
1365
1383
|
${selectionSet}
|
@@ -5416,8 +5434,14 @@ exports.Contract = {
|
|
5416
5434
|
* @returns The updated Contract or null.
|
5417
5435
|
*/
|
5418
5436
|
async upsert(props, globalClient) {
|
5419
|
-
const client =
|
5420
|
-
|
5437
|
+
const [modules, client] = await Promise.all([
|
5438
|
+
(0, client_1.getApolloModules)(),
|
5439
|
+
globalClient
|
5440
|
+
? Promise.resolve(globalClient)
|
5441
|
+
: client_1.client
|
5442
|
+
]);
|
5443
|
+
const { gql, ApolloError } = modules;
|
5444
|
+
const UPSERT_ONE_CONTRACT = gql `
|
5421
5445
|
mutation upsertOneContract($where: ContractWhereUniqueInput!, $create: ContractCreateInput!, $update: ContractUpdateInput!) {
|
5422
5446
|
upsertOneContract(where: $where, create: $create, update: $update) {
|
5423
5447
|
${selectionSet}
|
@@ -10479,8 +10503,14 @@ exports.Contract = {
|
|
10479
10503
|
* @returns The count of created records or null.
|
10480
10504
|
*/
|
10481
10505
|
async updateMany(props, globalClient) {
|
10482
|
-
const client =
|
10483
|
-
|
10506
|
+
const [modules, client] = await Promise.all([
|
10507
|
+
(0, client_1.getApolloModules)(),
|
10508
|
+
globalClient
|
10509
|
+
? Promise.resolve(globalClient)
|
10510
|
+
: client_1.client
|
10511
|
+
]);
|
10512
|
+
const { gql, ApolloError } = modules;
|
10513
|
+
const UPDATE_MANY_CONTRACT = gql `
|
10484
10514
|
mutation updateManyContract($data: [ContractCreateManyInput!]!) {
|
10485
10515
|
updateManyContract(data: $data) {
|
10486
10516
|
count
|
@@ -14537,8 +14567,14 @@ exports.Contract = {
|
|
14537
14567
|
* @returns The deleted Contract or null.
|
14538
14568
|
*/
|
14539
14569
|
async delete(props, globalClient) {
|
14540
|
-
const client =
|
14541
|
-
|
14570
|
+
const [modules, client] = await Promise.all([
|
14571
|
+
(0, client_1.getApolloModules)(),
|
14572
|
+
globalClient
|
14573
|
+
? Promise.resolve(globalClient)
|
14574
|
+
: client_1.client
|
14575
|
+
]);
|
14576
|
+
const { gql, ApolloError } = modules;
|
14577
|
+
const DELETE_ONE_CONTRACT = gql `
|
14542
14578
|
mutation deleteOneContract($where: ContractWhereUniqueInput!) {
|
14543
14579
|
deleteOneContract(where: $where) {
|
14544
14580
|
${selectionSet}
|
@@ -14574,8 +14610,14 @@ exports.Contract = {
|
|
14574
14610
|
*/
|
14575
14611
|
async get(props, globalClient) {
|
14576
14612
|
var _a, _b;
|
14577
|
-
const client =
|
14578
|
-
|
14613
|
+
const [modules, client] = await Promise.all([
|
14614
|
+
(0, client_1.getApolloModules)(),
|
14615
|
+
globalClient
|
14616
|
+
? Promise.resolve(globalClient)
|
14617
|
+
: client_1.client
|
14618
|
+
]);
|
14619
|
+
const { gql, ApolloError } = modules;
|
14620
|
+
const GET_CONTRACT = gql `
|
14579
14621
|
query getContract($where: ContractWhereUniqueInput!) {
|
14580
14622
|
getContract(where: $where) {
|
14581
14623
|
${selectionSet}
|
@@ -14602,7 +14644,7 @@ exports.Contract = {
|
|
14602
14644
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getContract) !== null && _b !== void 0 ? _b : null;
|
14603
14645
|
}
|
14604
14646
|
catch (error) {
|
14605
|
-
if (error instanceof
|
14647
|
+
if (error instanceof ApolloError && error.message === 'No Contract found') {
|
14606
14648
|
return null;
|
14607
14649
|
}
|
14608
14650
|
else {
|
@@ -14618,8 +14660,14 @@ exports.Contract = {
|
|
14618
14660
|
*/
|
14619
14661
|
async getAll(globalClient) {
|
14620
14662
|
var _a, _b;
|
14621
|
-
const client =
|
14622
|
-
|
14663
|
+
const [modules, client] = await Promise.all([
|
14664
|
+
(0, client_1.getApolloModules)(),
|
14665
|
+
globalClient
|
14666
|
+
? Promise.resolve(globalClient)
|
14667
|
+
: client_1.client
|
14668
|
+
]);
|
14669
|
+
const { gql, ApolloError } = modules;
|
14670
|
+
const GET_ALL_CONTRACT = gql `
|
14623
14671
|
query getAllContract {
|
14624
14672
|
contracts {
|
14625
14673
|
${selectionSet}
|
@@ -14632,7 +14680,7 @@ exports.Contract = {
|
|
14632
14680
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.contracts) !== null && _b !== void 0 ? _b : null;
|
14633
14681
|
}
|
14634
14682
|
catch (error) {
|
14635
|
-
if (error instanceof
|
14683
|
+
if (error instanceof ApolloError && error.message === 'No Contract found') {
|
14636
14684
|
return null;
|
14637
14685
|
}
|
14638
14686
|
else {
|
@@ -14648,8 +14696,14 @@ exports.Contract = {
|
|
14648
14696
|
* @returns An array of found Contract records or null.
|
14649
14697
|
*/
|
14650
14698
|
async findMany(props, globalClient) {
|
14651
|
-
const client =
|
14652
|
-
|
14699
|
+
const [modules, client] = await Promise.all([
|
14700
|
+
(0, client_1.getApolloModules)(),
|
14701
|
+
globalClient
|
14702
|
+
? Promise.resolve(globalClient)
|
14703
|
+
: client_1.client
|
14704
|
+
]);
|
14705
|
+
const { gql, ApolloError } = modules;
|
14706
|
+
const FIND_MANY_CONTRACT = gql `
|
14653
14707
|
query findManyContract($where: ContractWhereInput!) {
|
14654
14708
|
contracts(where: $where) {
|
14655
14709
|
${selectionSet}
|
@@ -14687,7 +14741,7 @@ exports.Contract = {
|
|
14687
14741
|
}
|
14688
14742
|
}
|
14689
14743
|
catch (error) {
|
14690
|
-
if (error instanceof
|
14744
|
+
if (error instanceof ApolloError && error.message === 'No Contract found') {
|
14691
14745
|
return null;
|
14692
14746
|
}
|
14693
14747
|
else {
|
package/Customer.cjs
CHANGED
@@ -210,8 +210,14 @@ exports.Customer = {
|
|
210
210
|
* @returns The created Customer or null.
|
211
211
|
*/
|
212
212
|
async create(props, globalClient) {
|
213
|
-
const client =
|
214
|
-
|
213
|
+
const [modules, client] = await Promise.all([
|
214
|
+
(0, client_1.getApolloModules)(),
|
215
|
+
globalClient
|
216
|
+
? Promise.resolve(globalClient)
|
217
|
+
: client_1.client
|
218
|
+
]);
|
219
|
+
const { gql, ApolloError } = modules;
|
220
|
+
const CREATE_ONE_CUSTOMER = gql `
|
215
221
|
mutation createOneCustomer($data: CustomerCreateInput!) {
|
216
222
|
createOneCustomer(data: $data) {
|
217
223
|
${selectionSet}
|
@@ -522,8 +528,14 @@ exports.Customer = {
|
|
522
528
|
* @returns The count of created records or null.
|
523
529
|
*/
|
524
530
|
async createMany(props, globalClient) {
|
525
|
-
const client =
|
526
|
-
|
531
|
+
const [modules, client] = await Promise.all([
|
532
|
+
(0, client_1.getApolloModules)(),
|
533
|
+
globalClient
|
534
|
+
? Promise.resolve(globalClient)
|
535
|
+
: client_1.client
|
536
|
+
]);
|
537
|
+
const { gql, ApolloError } = modules;
|
538
|
+
const CREATE_MANY_CUSTOMER = gql `
|
527
539
|
mutation createManyCustomer($data: [CustomerCreateManyInput!]!) {
|
528
540
|
createManyCustomer(data: $data) {
|
529
541
|
count
|
@@ -564,8 +576,14 @@ exports.Customer = {
|
|
564
576
|
* @returns The updated Customer or null.
|
565
577
|
*/
|
566
578
|
async update(props, globalClient) {
|
567
|
-
const client =
|
568
|
-
|
579
|
+
const [modules, client] = await Promise.all([
|
580
|
+
(0, client_1.getApolloModules)(),
|
581
|
+
globalClient
|
582
|
+
? Promise.resolve(globalClient)
|
583
|
+
: client_1.client
|
584
|
+
]);
|
585
|
+
const { gql, ApolloError } = modules;
|
586
|
+
const UPDATE_ONE_CUSTOMER = gql `
|
569
587
|
mutation updateOneCustomer($data: CustomerUpdateInput!, $where: CustomerWhereUniqueInput!) {
|
570
588
|
updateOneCustomer(data: $data, where: $where) {
|
571
589
|
${selectionSet}
|
@@ -1655,8 +1673,14 @@ exports.Customer = {
|
|
1655
1673
|
* @returns The updated Customer or null.
|
1656
1674
|
*/
|
1657
1675
|
async upsert(props, globalClient) {
|
1658
|
-
const client =
|
1659
|
-
|
1676
|
+
const [modules, client] = await Promise.all([
|
1677
|
+
(0, client_1.getApolloModules)(),
|
1678
|
+
globalClient
|
1679
|
+
? Promise.resolve(globalClient)
|
1680
|
+
: client_1.client
|
1681
|
+
]);
|
1682
|
+
const { gql, ApolloError } = modules;
|
1683
|
+
const UPSERT_ONE_CUSTOMER = gql `
|
1660
1684
|
mutation upsertOneCustomer($where: CustomerWhereUniqueInput!, $create: CustomerCreateInput!, $update: CustomerUpdateInput!) {
|
1661
1685
|
upsertOneCustomer(where: $where, create: $create, update: $update) {
|
1662
1686
|
${selectionSet}
|
@@ -3018,8 +3042,14 @@ exports.Customer = {
|
|
3018
3042
|
* @returns The count of created records or null.
|
3019
3043
|
*/
|
3020
3044
|
async updateMany(props, globalClient) {
|
3021
|
-
const client =
|
3022
|
-
|
3045
|
+
const [modules, client] = await Promise.all([
|
3046
|
+
(0, client_1.getApolloModules)(),
|
3047
|
+
globalClient
|
3048
|
+
? Promise.resolve(globalClient)
|
3049
|
+
: client_1.client
|
3050
|
+
]);
|
3051
|
+
const { gql, ApolloError } = modules;
|
3052
|
+
const UPDATE_MANY_CUSTOMER = gql `
|
3023
3053
|
mutation updateManyCustomer($data: [CustomerCreateManyInput!]!) {
|
3024
3054
|
updateManyCustomer(data: $data) {
|
3025
3055
|
count
|
@@ -4109,8 +4139,14 @@ exports.Customer = {
|
|
4109
4139
|
* @returns The deleted Customer or null.
|
4110
4140
|
*/
|
4111
4141
|
async delete(props, globalClient) {
|
4112
|
-
const client =
|
4113
|
-
|
4142
|
+
const [modules, client] = await Promise.all([
|
4143
|
+
(0, client_1.getApolloModules)(),
|
4144
|
+
globalClient
|
4145
|
+
? Promise.resolve(globalClient)
|
4146
|
+
: client_1.client
|
4147
|
+
]);
|
4148
|
+
const { gql, ApolloError } = modules;
|
4149
|
+
const DELETE_ONE_CUSTOMER = gql `
|
4114
4150
|
mutation deleteOneCustomer($where: CustomerWhereUniqueInput!) {
|
4115
4151
|
deleteOneCustomer(where: $where) {
|
4116
4152
|
${selectionSet}
|
@@ -4146,8 +4182,14 @@ exports.Customer = {
|
|
4146
4182
|
*/
|
4147
4183
|
async get(props, globalClient) {
|
4148
4184
|
var _a, _b;
|
4149
|
-
const client =
|
4150
|
-
|
4185
|
+
const [modules, client] = await Promise.all([
|
4186
|
+
(0, client_1.getApolloModules)(),
|
4187
|
+
globalClient
|
4188
|
+
? Promise.resolve(globalClient)
|
4189
|
+
: client_1.client
|
4190
|
+
]);
|
4191
|
+
const { gql, ApolloError } = modules;
|
4192
|
+
const GET_CUSTOMER = gql `
|
4151
4193
|
query getCustomer($where: CustomerWhereUniqueInput!) {
|
4152
4194
|
getCustomer(where: $where) {
|
4153
4195
|
${selectionSet}
|
@@ -4177,7 +4219,7 @@ exports.Customer = {
|
|
4177
4219
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getCustomer) !== null && _b !== void 0 ? _b : null;
|
4178
4220
|
}
|
4179
4221
|
catch (error) {
|
4180
|
-
if (error instanceof
|
4222
|
+
if (error instanceof ApolloError && error.message === 'No Customer found') {
|
4181
4223
|
return null;
|
4182
4224
|
}
|
4183
4225
|
else {
|
@@ -4193,8 +4235,14 @@ exports.Customer = {
|
|
4193
4235
|
*/
|
4194
4236
|
async getAll(globalClient) {
|
4195
4237
|
var _a, _b;
|
4196
|
-
const client =
|
4197
|
-
|
4238
|
+
const [modules, client] = await Promise.all([
|
4239
|
+
(0, client_1.getApolloModules)(),
|
4240
|
+
globalClient
|
4241
|
+
? Promise.resolve(globalClient)
|
4242
|
+
: client_1.client
|
4243
|
+
]);
|
4244
|
+
const { gql, ApolloError } = modules;
|
4245
|
+
const GET_ALL_CUSTOMER = gql `
|
4198
4246
|
query getAllCustomer {
|
4199
4247
|
customers {
|
4200
4248
|
${selectionSet}
|
@@ -4207,7 +4255,7 @@ exports.Customer = {
|
|
4207
4255
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.customers) !== null && _b !== void 0 ? _b : null;
|
4208
4256
|
}
|
4209
4257
|
catch (error) {
|
4210
|
-
if (error instanceof
|
4258
|
+
if (error instanceof ApolloError && error.message === 'No Customer found') {
|
4211
4259
|
return null;
|
4212
4260
|
}
|
4213
4261
|
else {
|
@@ -4223,8 +4271,14 @@ exports.Customer = {
|
|
4223
4271
|
* @returns An array of found Customer records or null.
|
4224
4272
|
*/
|
4225
4273
|
async findMany(props, globalClient) {
|
4226
|
-
const client =
|
4227
|
-
|
4274
|
+
const [modules, client] = await Promise.all([
|
4275
|
+
(0, client_1.getApolloModules)(),
|
4276
|
+
globalClient
|
4277
|
+
? Promise.resolve(globalClient)
|
4278
|
+
: client_1.client
|
4279
|
+
]);
|
4280
|
+
const { gql, ApolloError } = modules;
|
4281
|
+
const FIND_MANY_CUSTOMER = gql `
|
4228
4282
|
query findManyCustomer($where: CustomerWhereInput!) {
|
4229
4283
|
customers(where: $where) {
|
4230
4284
|
${selectionSet}
|
@@ -4265,7 +4319,7 @@ exports.Customer = {
|
|
4265
4319
|
}
|
4266
4320
|
}
|
4267
4321
|
catch (error) {
|
4268
|
-
if (error instanceof
|
4322
|
+
if (error instanceof ApolloError && error.message === 'No Customer found') {
|
4269
4323
|
return null;
|
4270
4324
|
}
|
4271
4325
|
else {
|
package/Deliverable.cjs
CHANGED
@@ -254,8 +254,14 @@ exports.Deliverable = {
|
|
254
254
|
* @returns The created Deliverable or null.
|
255
255
|
*/
|
256
256
|
async create(props, globalClient) {
|
257
|
-
const client =
|
258
|
-
|
257
|
+
const [modules, client] = await Promise.all([
|
258
|
+
(0, client_1.getApolloModules)(),
|
259
|
+
globalClient
|
260
|
+
? Promise.resolve(globalClient)
|
261
|
+
: client_1.client
|
262
|
+
]);
|
263
|
+
const { gql, ApolloError } = modules;
|
264
|
+
const CREATE_ONE_DELIVERABLE = gql `
|
259
265
|
mutation createOneDeliverable($data: DeliverableCreateInput!) {
|
260
266
|
createOneDeliverable(data: $data) {
|
261
267
|
${selectionSet}
|
@@ -775,8 +781,14 @@ exports.Deliverable = {
|
|
775
781
|
* @returns The count of created records or null.
|
776
782
|
*/
|
777
783
|
async createMany(props, globalClient) {
|
778
|
-
const client =
|
779
|
-
|
784
|
+
const [modules, client] = await Promise.all([
|
785
|
+
(0, client_1.getApolloModules)(),
|
786
|
+
globalClient
|
787
|
+
? Promise.resolve(globalClient)
|
788
|
+
: client_1.client
|
789
|
+
]);
|
790
|
+
const { gql, ApolloError } = modules;
|
791
|
+
const CREATE_MANY_DELIVERABLE = gql `
|
780
792
|
mutation createManyDeliverable($data: [DeliverableCreateManyInput!]!) {
|
781
793
|
createManyDeliverable(data: $data) {
|
782
794
|
count
|
@@ -819,8 +831,14 @@ exports.Deliverable = {
|
|
819
831
|
* @returns The updated Deliverable or null.
|
820
832
|
*/
|
821
833
|
async update(props, globalClient) {
|
822
|
-
const client =
|
823
|
-
|
834
|
+
const [modules, client] = await Promise.all([
|
835
|
+
(0, client_1.getApolloModules)(),
|
836
|
+
globalClient
|
837
|
+
? Promise.resolve(globalClient)
|
838
|
+
: client_1.client
|
839
|
+
]);
|
840
|
+
const { gql, ApolloError } = modules;
|
841
|
+
const UPDATE_ONE_DELIVERABLE = gql `
|
824
842
|
mutation updateOneDeliverable($data: DeliverableUpdateInput!, $where: DeliverableWhereUniqueInput!) {
|
825
843
|
updateOneDeliverable(data: $data, where: $where) {
|
826
844
|
${selectionSet}
|
@@ -3012,8 +3030,14 @@ exports.Deliverable = {
|
|
3012
3030
|
* @returns The updated Deliverable or null.
|
3013
3031
|
*/
|
3014
3032
|
async upsert(props, globalClient) {
|
3015
|
-
const client =
|
3016
|
-
|
3033
|
+
const [modules, client] = await Promise.all([
|
3034
|
+
(0, client_1.getApolloModules)(),
|
3035
|
+
globalClient
|
3036
|
+
? Promise.resolve(globalClient)
|
3037
|
+
: client_1.client
|
3038
|
+
]);
|
3039
|
+
const { gql, ApolloError } = modules;
|
3040
|
+
const UPSERT_ONE_DELIVERABLE = gql `
|
3017
3041
|
mutation upsertOneDeliverable($where: DeliverableWhereUniqueInput!, $create: DeliverableCreateInput!, $update: DeliverableUpdateInput!) {
|
3018
3042
|
upsertOneDeliverable(where: $where, create: $create, update: $update) {
|
3019
3043
|
${selectionSet}
|
@@ -5683,8 +5707,14 @@ exports.Deliverable = {
|
|
5683
5707
|
* @returns The count of created records or null.
|
5684
5708
|
*/
|
5685
5709
|
async updateMany(props, globalClient) {
|
5686
|
-
const client =
|
5687
|
-
|
5710
|
+
const [modules, client] = await Promise.all([
|
5711
|
+
(0, client_1.getApolloModules)(),
|
5712
|
+
globalClient
|
5713
|
+
? Promise.resolve(globalClient)
|
5714
|
+
: client_1.client
|
5715
|
+
]);
|
5716
|
+
const { gql, ApolloError } = modules;
|
5717
|
+
const UPDATE_MANY_DELIVERABLE = gql `
|
5688
5718
|
mutation updateManyDeliverable($data: [DeliverableCreateManyInput!]!) {
|
5689
5719
|
updateManyDeliverable(data: $data) {
|
5690
5720
|
count
|
@@ -7876,8 +7906,14 @@ exports.Deliverable = {
|
|
7876
7906
|
* @returns The deleted Deliverable or null.
|
7877
7907
|
*/
|
7878
7908
|
async delete(props, globalClient) {
|
7879
|
-
const client =
|
7880
|
-
|
7909
|
+
const [modules, client] = await Promise.all([
|
7910
|
+
(0, client_1.getApolloModules)(),
|
7911
|
+
globalClient
|
7912
|
+
? Promise.resolve(globalClient)
|
7913
|
+
: client_1.client
|
7914
|
+
]);
|
7915
|
+
const { gql, ApolloError } = modules;
|
7916
|
+
const DELETE_ONE_DELIVERABLE = gql `
|
7881
7917
|
mutation deleteOneDeliverable($where: DeliverableWhereUniqueInput!) {
|
7882
7918
|
deleteOneDeliverable(where: $where) {
|
7883
7919
|
${selectionSet}
|
@@ -7913,8 +7949,14 @@ exports.Deliverable = {
|
|
7913
7949
|
*/
|
7914
7950
|
async get(props, globalClient) {
|
7915
7951
|
var _a, _b;
|
7916
|
-
const client =
|
7917
|
-
|
7952
|
+
const [modules, client] = await Promise.all([
|
7953
|
+
(0, client_1.getApolloModules)(),
|
7954
|
+
globalClient
|
7955
|
+
? Promise.resolve(globalClient)
|
7956
|
+
: client_1.client
|
7957
|
+
]);
|
7958
|
+
const { gql, ApolloError } = modules;
|
7959
|
+
const GET_DELIVERABLE = gql `
|
7918
7960
|
query getDeliverable($where: DeliverableWhereUniqueInput!) {
|
7919
7961
|
getDeliverable(where: $where) {
|
7920
7962
|
${selectionSet}
|
@@ -7939,7 +7981,7 @@ exports.Deliverable = {
|
|
7939
7981
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getDeliverable) !== null && _b !== void 0 ? _b : null;
|
7940
7982
|
}
|
7941
7983
|
catch (error) {
|
7942
|
-
if (error instanceof
|
7984
|
+
if (error instanceof ApolloError && error.message === 'No Deliverable found') {
|
7943
7985
|
return null;
|
7944
7986
|
}
|
7945
7987
|
else {
|
@@ -7955,8 +7997,14 @@ exports.Deliverable = {
|
|
7955
7997
|
*/
|
7956
7998
|
async getAll(globalClient) {
|
7957
7999
|
var _a, _b;
|
7958
|
-
const client =
|
7959
|
-
|
8000
|
+
const [modules, client] = await Promise.all([
|
8001
|
+
(0, client_1.getApolloModules)(),
|
8002
|
+
globalClient
|
8003
|
+
? Promise.resolve(globalClient)
|
8004
|
+
: client_1.client
|
8005
|
+
]);
|
8006
|
+
const { gql, ApolloError } = modules;
|
8007
|
+
const GET_ALL_DELIVERABLE = gql `
|
7960
8008
|
query getAllDeliverable {
|
7961
8009
|
deliverables {
|
7962
8010
|
${selectionSet}
|
@@ -7969,7 +8017,7 @@ exports.Deliverable = {
|
|
7969
8017
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.deliverables) !== null && _b !== void 0 ? _b : null;
|
7970
8018
|
}
|
7971
8019
|
catch (error) {
|
7972
|
-
if (error instanceof
|
8020
|
+
if (error instanceof ApolloError && error.message === 'No Deliverable found') {
|
7973
8021
|
return null;
|
7974
8022
|
}
|
7975
8023
|
else {
|
@@ -7985,8 +8033,14 @@ exports.Deliverable = {
|
|
7985
8033
|
* @returns An array of found Deliverable records or null.
|
7986
8034
|
*/
|
7987
8035
|
async findMany(props, globalClient) {
|
7988
|
-
const client =
|
7989
|
-
|
8036
|
+
const [modules, client] = await Promise.all([
|
8037
|
+
(0, client_1.getApolloModules)(),
|
8038
|
+
globalClient
|
8039
|
+
? Promise.resolve(globalClient)
|
8040
|
+
: client_1.client
|
8041
|
+
]);
|
8042
|
+
const { gql, ApolloError } = modules;
|
8043
|
+
const FIND_MANY_DELIVERABLE = gql `
|
7990
8044
|
query findManyDeliverable($where: DeliverableWhereInput!) {
|
7991
8045
|
deliverables(where: $where) {
|
7992
8046
|
${selectionSet}
|
@@ -8018,7 +8072,7 @@ exports.Deliverable = {
|
|
8018
8072
|
}
|
8019
8073
|
}
|
8020
8074
|
catch (error) {
|
8021
|
-
if (error instanceof
|
8075
|
+
if (error instanceof ApolloError && error.message === 'No Deliverable found') {
|
8022
8076
|
return null;
|
8023
8077
|
}
|
8024
8078
|
else {
|