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
@@ -103,8 +103,14 @@ exports.NewsArticleAssetSentiment = {
|
|
103
103
|
* @returns The created NewsArticleAssetSentiment or null.
|
104
104
|
*/
|
105
105
|
async create(props, globalClient) {
|
106
|
-
const client =
|
107
|
-
|
106
|
+
const [modules, client] = await Promise.all([
|
107
|
+
(0, client_1.getApolloModules)(),
|
108
|
+
globalClient
|
109
|
+
? Promise.resolve(globalClient)
|
110
|
+
: client_1.client
|
111
|
+
]);
|
112
|
+
const { gql, ApolloError } = modules;
|
113
|
+
const CREATE_ONE_NEWSARTICLEASSETSENTIMENT = gql `
|
108
114
|
mutation createOneNewsArticleAssetSentiment($data: NewsArticleAssetSentimentCreateInput!) {
|
109
115
|
createOneNewsArticleAssetSentiment(data: $data) {
|
110
116
|
${selectionSet}
|
@@ -723,8 +729,14 @@ exports.NewsArticleAssetSentiment = {
|
|
723
729
|
* @returns The count of created records or null.
|
724
730
|
*/
|
725
731
|
async createMany(props, globalClient) {
|
726
|
-
const client =
|
727
|
-
|
732
|
+
const [modules, client] = await Promise.all([
|
733
|
+
(0, client_1.getApolloModules)(),
|
734
|
+
globalClient
|
735
|
+
? Promise.resolve(globalClient)
|
736
|
+
: client_1.client
|
737
|
+
]);
|
738
|
+
const { gql, ApolloError } = modules;
|
739
|
+
const CREATE_MANY_NEWSARTICLEASSETSENTIMENT = gql `
|
728
740
|
mutation createManyNewsArticleAssetSentiment($data: [NewsArticleAssetSentimentCreateManyInput!]!) {
|
729
741
|
createManyNewsArticleAssetSentiment(data: $data) {
|
730
742
|
count
|
@@ -764,8 +776,14 @@ exports.NewsArticleAssetSentiment = {
|
|
764
776
|
* @returns The updated NewsArticleAssetSentiment or null.
|
765
777
|
*/
|
766
778
|
async update(props, globalClient) {
|
767
|
-
const client =
|
768
|
-
|
779
|
+
const [modules, client] = await Promise.all([
|
780
|
+
(0, client_1.getApolloModules)(),
|
781
|
+
globalClient
|
782
|
+
? Promise.resolve(globalClient)
|
783
|
+
: client_1.client
|
784
|
+
]);
|
785
|
+
const { gql, ApolloError } = modules;
|
786
|
+
const UPDATE_ONE_NEWSARTICLEASSETSENTIMENT = gql `
|
769
787
|
mutation updateOneNewsArticleAssetSentiment($data: NewsArticleAssetSentimentUpdateInput!, $where: NewsArticleAssetSentimentWhereUniqueInput!) {
|
770
788
|
updateOneNewsArticleAssetSentiment(data: $data, where: $where) {
|
771
789
|
${selectionSet}
|
@@ -3164,8 +3182,14 @@ exports.NewsArticleAssetSentiment = {
|
|
3164
3182
|
* @returns The updated NewsArticleAssetSentiment or null.
|
3165
3183
|
*/
|
3166
3184
|
async upsert(props, globalClient) {
|
3167
|
-
const client =
|
3168
|
-
|
3185
|
+
const [modules, client] = await Promise.all([
|
3186
|
+
(0, client_1.getApolloModules)(),
|
3187
|
+
globalClient
|
3188
|
+
? Promise.resolve(globalClient)
|
3189
|
+
: client_1.client
|
3190
|
+
]);
|
3191
|
+
const { gql, ApolloError } = modules;
|
3192
|
+
const UPSERT_ONE_NEWSARTICLEASSETSENTIMENT = gql `
|
3169
3193
|
mutation upsertOneNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereUniqueInput!, $create: NewsArticleAssetSentimentCreateInput!, $update: NewsArticleAssetSentimentUpdateInput!) {
|
3170
3194
|
upsertOneNewsArticleAssetSentiment(where: $where, create: $create, update: $update) {
|
3171
3195
|
${selectionSet}
|
@@ -6147,8 +6171,14 @@ exports.NewsArticleAssetSentiment = {
|
|
6147
6171
|
* @returns The count of created records or null.
|
6148
6172
|
*/
|
6149
6173
|
async updateMany(props, globalClient) {
|
6150
|
-
const client =
|
6151
|
-
|
6174
|
+
const [modules, client] = await Promise.all([
|
6175
|
+
(0, client_1.getApolloModules)(),
|
6176
|
+
globalClient
|
6177
|
+
? Promise.resolve(globalClient)
|
6178
|
+
: client_1.client
|
6179
|
+
]);
|
6180
|
+
const { gql, ApolloError } = modules;
|
6181
|
+
const UPDATE_MANY_NEWSARTICLEASSETSENTIMENT = gql `
|
6152
6182
|
mutation updateManyNewsArticleAssetSentiment($data: [NewsArticleAssetSentimentCreateManyInput!]!) {
|
6153
6183
|
updateManyNewsArticleAssetSentiment(data: $data) {
|
6154
6184
|
count
|
@@ -8547,8 +8577,14 @@ exports.NewsArticleAssetSentiment = {
|
|
8547
8577
|
* @returns The deleted NewsArticleAssetSentiment or null.
|
8548
8578
|
*/
|
8549
8579
|
async delete(props, globalClient) {
|
8550
|
-
const client =
|
8551
|
-
|
8580
|
+
const [modules, client] = await Promise.all([
|
8581
|
+
(0, client_1.getApolloModules)(),
|
8582
|
+
globalClient
|
8583
|
+
? Promise.resolve(globalClient)
|
8584
|
+
: client_1.client
|
8585
|
+
]);
|
8586
|
+
const { gql, ApolloError } = modules;
|
8587
|
+
const DELETE_ONE_NEWSARTICLEASSETSENTIMENT = gql `
|
8552
8588
|
mutation deleteOneNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereUniqueInput!) {
|
8553
8589
|
deleteOneNewsArticleAssetSentiment(where: $where) {
|
8554
8590
|
${selectionSet}
|
@@ -8584,8 +8620,14 @@ exports.NewsArticleAssetSentiment = {
|
|
8584
8620
|
*/
|
8585
8621
|
async get(props, globalClient) {
|
8586
8622
|
var _a, _b;
|
8587
|
-
const client =
|
8588
|
-
|
8623
|
+
const [modules, client] = await Promise.all([
|
8624
|
+
(0, client_1.getApolloModules)(),
|
8625
|
+
globalClient
|
8626
|
+
? Promise.resolve(globalClient)
|
8627
|
+
: client_1.client
|
8628
|
+
]);
|
8629
|
+
const { gql, ApolloError } = modules;
|
8630
|
+
const GET_NEWSARTICLEASSETSENTIMENT = gql `
|
8589
8631
|
query getNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereUniqueInput!) {
|
8590
8632
|
getNewsArticleAssetSentiment(where: $where) {
|
8591
8633
|
${selectionSet}
|
@@ -8608,7 +8650,7 @@ exports.NewsArticleAssetSentiment = {
|
|
8608
8650
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getNewsArticleAssetSentiment) !== null && _b !== void 0 ? _b : null;
|
8609
8651
|
}
|
8610
8652
|
catch (error) {
|
8611
|
-
if (error instanceof
|
8653
|
+
if (error instanceof ApolloError && error.message === 'No NewsArticleAssetSentiment found') {
|
8612
8654
|
return null;
|
8613
8655
|
}
|
8614
8656
|
else {
|
@@ -8624,8 +8666,14 @@ exports.NewsArticleAssetSentiment = {
|
|
8624
8666
|
*/
|
8625
8667
|
async getAll(globalClient) {
|
8626
8668
|
var _a, _b;
|
8627
|
-
const client =
|
8628
|
-
|
8669
|
+
const [modules, client] = await Promise.all([
|
8670
|
+
(0, client_1.getApolloModules)(),
|
8671
|
+
globalClient
|
8672
|
+
? Promise.resolve(globalClient)
|
8673
|
+
: client_1.client
|
8674
|
+
]);
|
8675
|
+
const { gql, ApolloError } = modules;
|
8676
|
+
const GET_ALL_NEWSARTICLEASSETSENTIMENT = gql `
|
8629
8677
|
query getAllNewsArticleAssetSentiment {
|
8630
8678
|
newsArticleAssetSentiments {
|
8631
8679
|
${selectionSet}
|
@@ -8638,7 +8686,7 @@ exports.NewsArticleAssetSentiment = {
|
|
8638
8686
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.newsArticleAssetSentiments) !== null && _b !== void 0 ? _b : null;
|
8639
8687
|
}
|
8640
8688
|
catch (error) {
|
8641
|
-
if (error instanceof
|
8689
|
+
if (error instanceof ApolloError && error.message === 'No NewsArticleAssetSentiment found') {
|
8642
8690
|
return null;
|
8643
8691
|
}
|
8644
8692
|
else {
|
@@ -8654,8 +8702,14 @@ exports.NewsArticleAssetSentiment = {
|
|
8654
8702
|
* @returns An array of found NewsArticleAssetSentiment records or null.
|
8655
8703
|
*/
|
8656
8704
|
async findMany(props, globalClient) {
|
8657
|
-
const client =
|
8658
|
-
|
8705
|
+
const [modules, client] = await Promise.all([
|
8706
|
+
(0, client_1.getApolloModules)(),
|
8707
|
+
globalClient
|
8708
|
+
? Promise.resolve(globalClient)
|
8709
|
+
: client_1.client
|
8710
|
+
]);
|
8711
|
+
const { gql, ApolloError } = modules;
|
8712
|
+
const FIND_MANY_NEWSARTICLEASSETSENTIMENT = gql `
|
8659
8713
|
query findManyNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereInput!) {
|
8660
8714
|
newsArticleAssetSentiments(where: $where) {
|
8661
8715
|
${selectionSet}
|
@@ -8687,7 +8741,7 @@ exports.NewsArticleAssetSentiment = {
|
|
8687
8741
|
}
|
8688
8742
|
}
|
8689
8743
|
catch (error) {
|
8690
|
-
if (error instanceof
|
8744
|
+
if (error instanceof ApolloError && error.message === 'No NewsArticleAssetSentiment found') {
|
8691
8745
|
return null;
|
8692
8746
|
}
|
8693
8747
|
else {
|
package/Order.cjs
CHANGED
@@ -151,8 +151,14 @@ exports.Order = {
|
|
151
151
|
* @returns The created Order or null.
|
152
152
|
*/
|
153
153
|
async create(props, globalClient) {
|
154
|
-
const client =
|
155
|
-
|
154
|
+
const [modules, client] = await Promise.all([
|
155
|
+
(0, client_1.getApolloModules)(),
|
156
|
+
globalClient
|
157
|
+
? Promise.resolve(globalClient)
|
158
|
+
: client_1.client
|
159
|
+
]);
|
160
|
+
const { gql, ApolloError } = modules;
|
161
|
+
const CREATE_ONE_ORDER = gql `
|
156
162
|
mutation createOneOrder($data: OrderCreateInput!) {
|
157
163
|
createOneOrder(data: $data) {
|
158
164
|
${selectionSet}
|
@@ -1523,8 +1529,14 @@ exports.Order = {
|
|
1523
1529
|
* @returns The count of created records or null.
|
1524
1530
|
*/
|
1525
1531
|
async createMany(props, globalClient) {
|
1526
|
-
const client =
|
1527
|
-
|
1532
|
+
const [modules, client] = await Promise.all([
|
1533
|
+
(0, client_1.getApolloModules)(),
|
1534
|
+
globalClient
|
1535
|
+
? Promise.resolve(globalClient)
|
1536
|
+
: client_1.client
|
1537
|
+
]);
|
1538
|
+
const { gql, ApolloError } = modules;
|
1539
|
+
const CREATE_MANY_ORDER = gql `
|
1528
1540
|
mutation createManyOrder($data: [OrderCreateManyInput!]!) {
|
1529
1541
|
createManyOrder(data: $data) {
|
1530
1542
|
count
|
@@ -1598,8 +1610,14 @@ exports.Order = {
|
|
1598
1610
|
* @returns The updated Order or null.
|
1599
1611
|
*/
|
1600
1612
|
async update(props, globalClient) {
|
1601
|
-
const client =
|
1602
|
-
|
1613
|
+
const [modules, client] = await Promise.all([
|
1614
|
+
(0, client_1.getApolloModules)(),
|
1615
|
+
globalClient
|
1616
|
+
? Promise.resolve(globalClient)
|
1617
|
+
: client_1.client
|
1618
|
+
]);
|
1619
|
+
const { gql, ApolloError } = modules;
|
1620
|
+
const UPDATE_ONE_ORDER = gql `
|
1603
1621
|
mutation updateOneOrder($data: OrderUpdateInput!, $where: OrderWhereUniqueInput!) {
|
1604
1622
|
updateOneOrder(data: $data, where: $where) {
|
1605
1623
|
${selectionSet}
|
@@ -7078,8 +7096,14 @@ exports.Order = {
|
|
7078
7096
|
* @returns The updated Order or null.
|
7079
7097
|
*/
|
7080
7098
|
async upsert(props, globalClient) {
|
7081
|
-
const client =
|
7082
|
-
|
7099
|
+
const [modules, client] = await Promise.all([
|
7100
|
+
(0, client_1.getApolloModules)(),
|
7101
|
+
globalClient
|
7102
|
+
? Promise.resolve(globalClient)
|
7103
|
+
: client_1.client
|
7104
|
+
]);
|
7105
|
+
const { gql, ApolloError } = modules;
|
7106
|
+
const UPSERT_ONE_ORDER = gql `
|
7083
7107
|
mutation upsertOneOrder($where: OrderWhereUniqueInput!, $create: OrderCreateInput!, $update: OrderUpdateInput!) {
|
7084
7108
|
upsertOneOrder(where: $where, create: $create, update: $update) {
|
7085
7109
|
${selectionSet}
|
@@ -13887,8 +13911,14 @@ exports.Order = {
|
|
13887
13911
|
* @returns The count of created records or null.
|
13888
13912
|
*/
|
13889
13913
|
async updateMany(props, globalClient) {
|
13890
|
-
const client =
|
13891
|
-
|
13914
|
+
const [modules, client] = await Promise.all([
|
13915
|
+
(0, client_1.getApolloModules)(),
|
13916
|
+
globalClient
|
13917
|
+
? Promise.resolve(globalClient)
|
13918
|
+
: client_1.client
|
13919
|
+
]);
|
13920
|
+
const { gql, ApolloError } = modules;
|
13921
|
+
const UPDATE_MANY_ORDER = gql `
|
13892
13922
|
mutation updateManyOrder($data: [OrderCreateManyInput!]!) {
|
13893
13923
|
updateManyOrder(data: $data) {
|
13894
13924
|
count
|
@@ -19367,8 +19397,14 @@ exports.Order = {
|
|
19367
19397
|
* @returns The deleted Order or null.
|
19368
19398
|
*/
|
19369
19399
|
async delete(props, globalClient) {
|
19370
|
-
const client =
|
19371
|
-
|
19400
|
+
const [modules, client] = await Promise.all([
|
19401
|
+
(0, client_1.getApolloModules)(),
|
19402
|
+
globalClient
|
19403
|
+
? Promise.resolve(globalClient)
|
19404
|
+
: client_1.client
|
19405
|
+
]);
|
19406
|
+
const { gql, ApolloError } = modules;
|
19407
|
+
const DELETE_ONE_ORDER = gql `
|
19372
19408
|
mutation deleteOneOrder($where: OrderWhereUniqueInput!) {
|
19373
19409
|
deleteOneOrder(where: $where) {
|
19374
19410
|
${selectionSet}
|
@@ -19404,8 +19440,14 @@ exports.Order = {
|
|
19404
19440
|
*/
|
19405
19441
|
async get(props, globalClient) {
|
19406
19442
|
var _a, _b;
|
19407
|
-
const client =
|
19408
|
-
|
19443
|
+
const [modules, client] = await Promise.all([
|
19444
|
+
(0, client_1.getApolloModules)(),
|
19445
|
+
globalClient
|
19446
|
+
? Promise.resolve(globalClient)
|
19447
|
+
: client_1.client
|
19448
|
+
]);
|
19449
|
+
const { gql, ApolloError } = modules;
|
19450
|
+
const GET_ORDER = gql `
|
19409
19451
|
query getOrder($where: OrderWhereUniqueInput!) {
|
19410
19452
|
getOrder(where: $where) {
|
19411
19453
|
${selectionSet}
|
@@ -19431,7 +19473,7 @@ exports.Order = {
|
|
19431
19473
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getOrder) !== null && _b !== void 0 ? _b : null;
|
19432
19474
|
}
|
19433
19475
|
catch (error) {
|
19434
|
-
if (error instanceof
|
19476
|
+
if (error instanceof ApolloError && error.message === 'No Order found') {
|
19435
19477
|
return null;
|
19436
19478
|
}
|
19437
19479
|
else {
|
@@ -19447,8 +19489,14 @@ exports.Order = {
|
|
19447
19489
|
*/
|
19448
19490
|
async getAll(globalClient) {
|
19449
19491
|
var _a, _b;
|
19450
|
-
const client =
|
19451
|
-
|
19492
|
+
const [modules, client] = await Promise.all([
|
19493
|
+
(0, client_1.getApolloModules)(),
|
19494
|
+
globalClient
|
19495
|
+
? Promise.resolve(globalClient)
|
19496
|
+
: client_1.client
|
19497
|
+
]);
|
19498
|
+
const { gql, ApolloError } = modules;
|
19499
|
+
const GET_ALL_ORDER = gql `
|
19452
19500
|
query getAllOrder {
|
19453
19501
|
orders {
|
19454
19502
|
${selectionSet}
|
@@ -19461,7 +19509,7 @@ exports.Order = {
|
|
19461
19509
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.orders) !== null && _b !== void 0 ? _b : null;
|
19462
19510
|
}
|
19463
19511
|
catch (error) {
|
19464
|
-
if (error instanceof
|
19512
|
+
if (error instanceof ApolloError && error.message === 'No Order found') {
|
19465
19513
|
return null;
|
19466
19514
|
}
|
19467
19515
|
else {
|
@@ -19477,8 +19525,14 @@ exports.Order = {
|
|
19477
19525
|
* @returns An array of found Order records or null.
|
19478
19526
|
*/
|
19479
19527
|
async findMany(props, globalClient) {
|
19480
|
-
const client =
|
19481
|
-
|
19528
|
+
const [modules, client] = await Promise.all([
|
19529
|
+
(0, client_1.getApolloModules)(),
|
19530
|
+
globalClient
|
19531
|
+
? Promise.resolve(globalClient)
|
19532
|
+
: client_1.client
|
19533
|
+
]);
|
19534
|
+
const { gql, ApolloError } = modules;
|
19535
|
+
const FIND_MANY_ORDER = gql `
|
19482
19536
|
query findManyOrder($where: OrderWhereInput!) {
|
19483
19537
|
orders(where: $where) {
|
19484
19538
|
${selectionSet}
|
@@ -19510,7 +19564,7 @@ exports.Order = {
|
|
19510
19564
|
}
|
19511
19565
|
}
|
19512
19566
|
catch (error) {
|
19513
|
-
if (error instanceof
|
19567
|
+
if (error instanceof ApolloError && error.message === 'No Order found') {
|
19514
19568
|
return null;
|
19515
19569
|
}
|
19516
19570
|
else {
|
package/Position.cjs
CHANGED
@@ -98,8 +98,14 @@ exports.Position = {
|
|
98
98
|
* @returns The created Position or null.
|
99
99
|
*/
|
100
100
|
async create(props, globalClient) {
|
101
|
-
const client =
|
102
|
-
|
101
|
+
const [modules, client] = await Promise.all([
|
102
|
+
(0, client_1.getApolloModules)(),
|
103
|
+
globalClient
|
104
|
+
? Promise.resolve(globalClient)
|
105
|
+
: client_1.client
|
106
|
+
]);
|
107
|
+
const { gql, ApolloError } = modules;
|
108
|
+
const CREATE_ONE_POSITION = gql `
|
103
109
|
mutation createOnePosition($data: PositionCreateInput!) {
|
104
110
|
createOnePosition(data: $data) {
|
105
111
|
${selectionSet}
|
@@ -1227,8 +1233,14 @@ exports.Position = {
|
|
1227
1233
|
* @returns The count of created records or null.
|
1228
1234
|
*/
|
1229
1235
|
async createMany(props, globalClient) {
|
1230
|
-
const client =
|
1231
|
-
|
1236
|
+
const [modules, client] = await Promise.all([
|
1237
|
+
(0, client_1.getApolloModules)(),
|
1238
|
+
globalClient
|
1239
|
+
? Promise.resolve(globalClient)
|
1240
|
+
: client_1.client
|
1241
|
+
]);
|
1242
|
+
const { gql, ApolloError } = modules;
|
1243
|
+
const CREATE_MANY_POSITION = gql `
|
1232
1244
|
mutation createManyPosition($data: [PositionCreateManyInput!]!) {
|
1233
1245
|
createManyPosition(data: $data) {
|
1234
1246
|
count
|
@@ -1279,8 +1291,14 @@ exports.Position = {
|
|
1279
1291
|
* @returns The updated Position or null.
|
1280
1292
|
*/
|
1281
1293
|
async update(props, globalClient) {
|
1282
|
-
const client =
|
1283
|
-
|
1294
|
+
const [modules, client] = await Promise.all([
|
1295
|
+
(0, client_1.getApolloModules)(),
|
1296
|
+
globalClient
|
1297
|
+
? Promise.resolve(globalClient)
|
1298
|
+
: client_1.client
|
1299
|
+
]);
|
1300
|
+
const { gql, ApolloError } = modules;
|
1301
|
+
const UPDATE_ONE_POSITION = gql `
|
1284
1302
|
mutation updateOnePosition($data: PositionUpdateInput!, $where: PositionWhereUniqueInput!) {
|
1285
1303
|
updateOnePosition(data: $data, where: $where) {
|
1286
1304
|
${selectionSet}
|
@@ -5888,8 +5906,14 @@ exports.Position = {
|
|
5888
5906
|
* @returns The updated Position or null.
|
5889
5907
|
*/
|
5890
5908
|
async upsert(props, globalClient) {
|
5891
|
-
const client =
|
5892
|
-
|
5909
|
+
const [modules, client] = await Promise.all([
|
5910
|
+
(0, client_1.getApolloModules)(),
|
5911
|
+
globalClient
|
5912
|
+
? Promise.resolve(globalClient)
|
5913
|
+
: client_1.client
|
5914
|
+
]);
|
5915
|
+
const { gql, ApolloError } = modules;
|
5916
|
+
const UPSERT_ONE_POSITION = gql `
|
5893
5917
|
mutation upsertOnePosition($where: PositionWhereUniqueInput!, $create: PositionCreateInput!, $update: PositionUpdateInput!) {
|
5894
5918
|
upsertOnePosition(where: $where, create: $create, update: $update) {
|
5895
5919
|
${selectionSet}
|
@@ -11583,8 +11607,14 @@ exports.Position = {
|
|
11583
11607
|
* @returns The count of created records or null.
|
11584
11608
|
*/
|
11585
11609
|
async updateMany(props, globalClient) {
|
11586
|
-
const client =
|
11587
|
-
|
11610
|
+
const [modules, client] = await Promise.all([
|
11611
|
+
(0, client_1.getApolloModules)(),
|
11612
|
+
globalClient
|
11613
|
+
? Promise.resolve(globalClient)
|
11614
|
+
: client_1.client
|
11615
|
+
]);
|
11616
|
+
const { gql, ApolloError } = modules;
|
11617
|
+
const UPDATE_MANY_POSITION = gql `
|
11588
11618
|
mutation updateManyPosition($data: [PositionCreateManyInput!]!) {
|
11589
11619
|
updateManyPosition(data: $data) {
|
11590
11620
|
count
|
@@ -16192,8 +16222,14 @@ exports.Position = {
|
|
16192
16222
|
* @returns The deleted Position or null.
|
16193
16223
|
*/
|
16194
16224
|
async delete(props, globalClient) {
|
16195
|
-
const client =
|
16196
|
-
|
16225
|
+
const [modules, client] = await Promise.all([
|
16226
|
+
(0, client_1.getApolloModules)(),
|
16227
|
+
globalClient
|
16228
|
+
? Promise.resolve(globalClient)
|
16229
|
+
: client_1.client
|
16230
|
+
]);
|
16231
|
+
const { gql, ApolloError } = modules;
|
16232
|
+
const DELETE_ONE_POSITION = gql `
|
16197
16233
|
mutation deleteOnePosition($where: PositionWhereUniqueInput!) {
|
16198
16234
|
deleteOnePosition(where: $where) {
|
16199
16235
|
${selectionSet}
|
@@ -16229,8 +16265,14 @@ exports.Position = {
|
|
16229
16265
|
*/
|
16230
16266
|
async get(props, globalClient) {
|
16231
16267
|
var _a, _b;
|
16232
|
-
const client =
|
16233
|
-
|
16268
|
+
const [modules, client] = await Promise.all([
|
16269
|
+
(0, client_1.getApolloModules)(),
|
16270
|
+
globalClient
|
16271
|
+
? Promise.resolve(globalClient)
|
16272
|
+
: client_1.client
|
16273
|
+
]);
|
16274
|
+
const { gql, ApolloError } = modules;
|
16275
|
+
const GET_POSITION = gql `
|
16234
16276
|
query getPosition($where: PositionWhereUniqueInput!) {
|
16235
16277
|
getPosition(where: $where) {
|
16236
16278
|
${selectionSet}
|
@@ -16255,7 +16297,7 @@ exports.Position = {
|
|
16255
16297
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getPosition) !== null && _b !== void 0 ? _b : null;
|
16256
16298
|
}
|
16257
16299
|
catch (error) {
|
16258
|
-
if (error instanceof
|
16300
|
+
if (error instanceof ApolloError && error.message === 'No Position found') {
|
16259
16301
|
return null;
|
16260
16302
|
}
|
16261
16303
|
else {
|
@@ -16271,8 +16313,14 @@ exports.Position = {
|
|
16271
16313
|
*/
|
16272
16314
|
async getAll(globalClient) {
|
16273
16315
|
var _a, _b;
|
16274
|
-
const client =
|
16275
|
-
|
16316
|
+
const [modules, client] = await Promise.all([
|
16317
|
+
(0, client_1.getApolloModules)(),
|
16318
|
+
globalClient
|
16319
|
+
? Promise.resolve(globalClient)
|
16320
|
+
: client_1.client
|
16321
|
+
]);
|
16322
|
+
const { gql, ApolloError } = modules;
|
16323
|
+
const GET_ALL_POSITION = gql `
|
16276
16324
|
query getAllPosition {
|
16277
16325
|
positions {
|
16278
16326
|
${selectionSet}
|
@@ -16285,7 +16333,7 @@ exports.Position = {
|
|
16285
16333
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.positions) !== null && _b !== void 0 ? _b : null;
|
16286
16334
|
}
|
16287
16335
|
catch (error) {
|
16288
|
-
if (error instanceof
|
16336
|
+
if (error instanceof ApolloError && error.message === 'No Position found') {
|
16289
16337
|
return null;
|
16290
16338
|
}
|
16291
16339
|
else {
|
@@ -16301,8 +16349,14 @@ exports.Position = {
|
|
16301
16349
|
* @returns An array of found Position records or null.
|
16302
16350
|
*/
|
16303
16351
|
async findMany(props, globalClient) {
|
16304
|
-
const client =
|
16305
|
-
|
16352
|
+
const [modules, client] = await Promise.all([
|
16353
|
+
(0, client_1.getApolloModules)(),
|
16354
|
+
globalClient
|
16355
|
+
? Promise.resolve(globalClient)
|
16356
|
+
: client_1.client
|
16357
|
+
]);
|
16358
|
+
const { gql, ApolloError } = modules;
|
16359
|
+
const FIND_MANY_POSITION = gql `
|
16306
16360
|
query findManyPosition($where: PositionWhereInput!) {
|
16307
16361
|
positions(where: $where) {
|
16308
16362
|
${selectionSet}
|
@@ -16334,7 +16388,7 @@ exports.Position = {
|
|
16334
16388
|
}
|
16335
16389
|
}
|
16336
16390
|
catch (error) {
|
16337
|
-
if (error instanceof
|
16391
|
+
if (error instanceof ApolloError && error.message === 'No Position found') {
|
16338
16392
|
return null;
|
16339
16393
|
}
|
16340
16394
|
else {
|