adaptic-backend 1.0.178 → 1.0.180

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.
Files changed (91) hide show
  1. package/Account.cjs +8 -16
  2. package/Action.cjs +8 -16
  3. package/Alert.cjs +8 -16
  4. package/AlpacaAccount.cjs +8 -16
  5. package/Asset.cjs +8 -16
  6. package/Authenticator.cjs +8 -16
  7. package/Customer.cjs +8 -16
  8. package/EconomicEvent.cjs +8 -16
  9. package/MarketSentiment.cjs +8 -16
  10. package/NewsArticle.cjs +8 -16
  11. package/NewsArticleAssetSentiment.cjs +8 -16
  12. package/Order.cjs +8 -16
  13. package/Position.cjs +8 -16
  14. package/ScheduledOptionOrder.cjs +8 -16
  15. package/Session.cjs +8 -16
  16. package/StopLoss.cjs +8 -16
  17. package/TakeProfit.cjs +8 -16
  18. package/Trade.cjs +8 -16
  19. package/User.cjs +8 -16
  20. package/VerificationToken.cjs +8 -16
  21. package/client.cjs +3 -0
  22. package/client.d.ts +1 -0
  23. package/generated/typegraphql-prisma/models/Order.cjs +1 -1
  24. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  25. package/package.json +1 -1
  26. package/server/Account.d.ts.map +1 -1
  27. package/server/Account.js.map +1 -1
  28. package/server/Account.mjs +1 -9
  29. package/server/Action.d.ts.map +1 -1
  30. package/server/Action.js.map +1 -1
  31. package/server/Action.mjs +1 -9
  32. package/server/Alert.d.ts.map +1 -1
  33. package/server/Alert.js.map +1 -1
  34. package/server/Alert.mjs +1 -9
  35. package/server/AlpacaAccount.d.ts.map +1 -1
  36. package/server/AlpacaAccount.js.map +1 -1
  37. package/server/AlpacaAccount.mjs +1 -9
  38. package/server/Asset.d.ts.map +1 -1
  39. package/server/Asset.js.map +1 -1
  40. package/server/Asset.mjs +1 -9
  41. package/server/Authenticator.d.ts.map +1 -1
  42. package/server/Authenticator.js.map +1 -1
  43. package/server/Authenticator.mjs +1 -9
  44. package/server/Customer.d.ts.map +1 -1
  45. package/server/Customer.js.map +1 -1
  46. package/server/Customer.mjs +1 -9
  47. package/server/EconomicEvent.d.ts.map +1 -1
  48. package/server/EconomicEvent.js.map +1 -1
  49. package/server/EconomicEvent.mjs +1 -9
  50. package/server/MarketSentiment.d.ts.map +1 -1
  51. package/server/MarketSentiment.js.map +1 -1
  52. package/server/MarketSentiment.mjs +1 -9
  53. package/server/NewsArticle.d.ts.map +1 -1
  54. package/server/NewsArticle.js.map +1 -1
  55. package/server/NewsArticle.mjs +1 -9
  56. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  57. package/server/NewsArticleAssetSentiment.js.map +1 -1
  58. package/server/NewsArticleAssetSentiment.mjs +1 -9
  59. package/server/Order.d.ts.map +1 -1
  60. package/server/Order.js.map +1 -1
  61. package/server/Order.mjs +1 -9
  62. package/server/Position.d.ts.map +1 -1
  63. package/server/Position.js.map +1 -1
  64. package/server/Position.mjs +1 -9
  65. package/server/ScheduledOptionOrder.d.ts.map +1 -1
  66. package/server/ScheduledOptionOrder.js.map +1 -1
  67. package/server/ScheduledOptionOrder.mjs +1 -9
  68. package/server/Session.d.ts.map +1 -1
  69. package/server/Session.js.map +1 -1
  70. package/server/Session.mjs +1 -9
  71. package/server/StopLoss.d.ts.map +1 -1
  72. package/server/StopLoss.js.map +1 -1
  73. package/server/StopLoss.mjs +1 -9
  74. package/server/TakeProfit.d.ts.map +1 -1
  75. package/server/TakeProfit.js.map +1 -1
  76. package/server/TakeProfit.mjs +1 -9
  77. package/server/Trade.d.ts.map +1 -1
  78. package/server/Trade.js.map +1 -1
  79. package/server/Trade.mjs +1 -9
  80. package/server/User.d.ts.map +1 -1
  81. package/server/User.js.map +1 -1
  82. package/server/User.mjs +1 -9
  83. package/server/VerificationToken.d.ts.map +1 -1
  84. package/server/VerificationToken.js.map +1 -1
  85. package/server/VerificationToken.mjs +1 -9
  86. package/server/client.d.ts +1 -0
  87. package/server/client.d.ts.map +1 -1
  88. package/server/client.js.map +1 -1
  89. package/server/client.mjs +2 -0
  90. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  91. package/server/generated/typegraphql-prisma/models/Order.mjs +1 -1
@@ -103,7 +103,6 @@ exports.NewsArticleAssetSentiment = {
103
103
  * @returns The created NewsArticleAssetSentiment or null.
104
104
  */
105
105
  async create(props) {
106
- const client = (0, client_2.createApolloClient)();
107
106
  const CREATE_ONE_NEWSARTICLEASSETSENTIMENT = (0, client_1.gql) `
108
107
  mutation createOneNewsArticleAssetSentiment($data: NewsArticleAssetSentimentCreateInput!) {
109
108
  createOneNewsArticleAssetSentiment(data: $data) {
@@ -492,7 +491,7 @@ exports.NewsArticleAssetSentiment = {
492
491
  };
493
492
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
494
493
  try {
495
- const response = await client.mutate({ mutation: CREATE_ONE_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
494
+ const response = await client_2.client.mutate({ mutation: CREATE_ONE_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
496
495
  if (response.errors && response.errors.length > 0)
497
496
  throw new Error(response.errors[0].message);
498
497
  if (response && response.data && response.data.createOneNewsArticleAssetSentiment) {
@@ -513,7 +512,6 @@ exports.NewsArticleAssetSentiment = {
513
512
  * @returns The count of created records or null.
514
513
  */
515
514
  async createMany(props) {
516
- const client = (0, client_2.createApolloClient)();
517
515
  const CREATE_MANY_NEWSARTICLEASSETSENTIMENT = (0, client_1.gql) `
518
516
  mutation createManyNewsArticleAssetSentiment($data: [NewsArticleAssetSentimentCreateManyInput!]!) {
519
517
  createManyNewsArticleAssetSentiment(data: $data) {
@@ -532,7 +530,7 @@ exports.NewsArticleAssetSentiment = {
532
530
  };
533
531
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
534
532
  try {
535
- const response = await client.mutate({ mutation: CREATE_MANY_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
533
+ const response = await client_2.client.mutate({ mutation: CREATE_MANY_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
536
534
  if (response.errors && response.errors.length > 0)
537
535
  throw new Error(response.errors[0].message);
538
536
  if (response && response.data && response.data.createManyNewsArticleAssetSentiment) {
@@ -553,7 +551,6 @@ exports.NewsArticleAssetSentiment = {
553
551
  * @returns The updated NewsArticleAssetSentiment or null.
554
552
  */
555
553
  async update(props) {
556
- const client = (0, client_2.createApolloClient)();
557
554
  const UPDATE_ONE_NEWSARTICLEASSETSENTIMENT = (0, client_1.gql) `
558
555
  mutation updateOneNewsArticleAssetSentiment($data: NewsArticleAssetSentimentUpdateInput!, $where: NewsArticleAssetSentimentWhereUniqueInput!) {
559
556
  updateOneNewsArticleAssetSentiment(data: $data, where: $where) {
@@ -1893,7 +1890,7 @@ exports.NewsArticleAssetSentiment = {
1893
1890
  };
1894
1891
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1895
1892
  try {
1896
- const response = await client.mutate({ mutation: UPDATE_ONE_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
1893
+ const response = await client_2.client.mutate({ mutation: UPDATE_ONE_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
1897
1894
  if (response.errors && response.errors.length > 0)
1898
1895
  throw new Error(response.errors[0].message);
1899
1896
  if (response && response.data && response.data.updateOneNewsArticleAssetSentiment) {
@@ -1914,7 +1911,6 @@ exports.NewsArticleAssetSentiment = {
1914
1911
  * @returns The count of created records or null.
1915
1912
  */
1916
1913
  async updateMany(props) {
1917
- const client = (0, client_2.createApolloClient)();
1918
1914
  const UPDATE_MANY_NEWSARTICLEASSETSENTIMENT = (0, client_1.gql) `
1919
1915
  mutation updateManyNewsArticleAssetSentiment($data: [NewsArticleAssetSentimentCreateManyInput!]!) {
1920
1916
  updateManyNewsArticleAssetSentiment(data: $data) {
@@ -3254,7 +3250,7 @@ exports.NewsArticleAssetSentiment = {
3254
3250
  }));
3255
3251
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
3256
3252
  try {
3257
- const response = await client.mutate({ mutation: UPDATE_MANY_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
3253
+ const response = await client_2.client.mutate({ mutation: UPDATE_MANY_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
3258
3254
  if (response.errors && response.errors.length > 0)
3259
3255
  throw new Error(response.errors[0].message);
3260
3256
  if (response && response.data && response.data.updateManyNewsArticleAssetSentiment) {
@@ -3275,7 +3271,6 @@ exports.NewsArticleAssetSentiment = {
3275
3271
  * @returns The deleted NewsArticleAssetSentiment or null.
3276
3272
  */
3277
3273
  async delete(props) {
3278
- const client = (0, client_2.createApolloClient)();
3279
3274
  const DELETE_ONE_NEWSARTICLEASSETSENTIMENT = (0, client_1.gql) `
3280
3275
  mutation deleteOneNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereUniqueInput!) {
3281
3276
  deleteOneNewsArticleAssetSentiment(where: $where) {
@@ -3289,7 +3284,7 @@ exports.NewsArticleAssetSentiment = {
3289
3284
  };
3290
3285
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
3291
3286
  try {
3292
- const response = await client.mutate({ mutation: DELETE_ONE_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
3287
+ const response = await client_2.client.mutate({ mutation: DELETE_ONE_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
3293
3288
  if (response.errors && response.errors.length > 0)
3294
3289
  throw new Error(response.errors[0].message);
3295
3290
  if (response && response.data && response.data.deleteOneNewsArticleAssetSentiment) {
@@ -3311,7 +3306,6 @@ exports.NewsArticleAssetSentiment = {
3311
3306
  */
3312
3307
  async get(props) {
3313
3308
  var _a, _b;
3314
- const client = (0, client_2.createApolloClient)();
3315
3309
  const GET_NEWSARTICLEASSETSENTIMENT = (0, client_1.gql) `
3316
3310
  query getNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereUniqueInput!) {
3317
3311
  getNewsArticleAssetSentiment(where: $where) {
@@ -3335,7 +3329,7 @@ exports.NewsArticleAssetSentiment = {
3335
3329
  };
3336
3330
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
3337
3331
  try {
3338
- const response = await client.query({ query: GET_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
3332
+ const response = await client_2.client.query({ query: GET_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
3339
3333
  if (response.errors && response.errors.length > 0)
3340
3334
  throw new Error(response.errors[0].message);
3341
3335
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getNewsArticleAssetSentiment) !== null && _b !== void 0 ? _b : null;
@@ -3356,7 +3350,6 @@ exports.NewsArticleAssetSentiment = {
3356
3350
  */
3357
3351
  async getAll() {
3358
3352
  var _a, _b;
3359
- const client = (0, client_2.createApolloClient)();
3360
3353
  const GET_ALL_NEWSARTICLEASSETSENTIMENT = (0, client_1.gql) `
3361
3354
  query getAllNewsArticleAssetSentiment {
3362
3355
  newsArticleAssetSentiments {
@@ -3364,7 +3357,7 @@ exports.NewsArticleAssetSentiment = {
3364
3357
  }
3365
3358
  }`;
3366
3359
  try {
3367
- const response = await client.query({ query: GET_ALL_NEWSARTICLEASSETSENTIMENT });
3360
+ const response = await client_2.client.query({ query: GET_ALL_NEWSARTICLEASSETSENTIMENT });
3368
3361
  if (response.errors && response.errors.length > 0)
3369
3362
  throw new Error(response.errors[0].message);
3370
3363
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.newsArticleAssetSentiments) !== null && _b !== void 0 ? _b : null;
@@ -3385,7 +3378,6 @@ exports.NewsArticleAssetSentiment = {
3385
3378
  * @returns An array of found NewsArticleAssetSentiment records or null.
3386
3379
  */
3387
3380
  async findMany(props) {
3388
- const client = (0, client_2.createApolloClient)();
3389
3381
  const FIND_MANY_NEWSARTICLEASSETSENTIMENT = (0, client_1.gql) `
3390
3382
  query findManyNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereInput!) {
3391
3383
  newsArticleAssetSentiments(where: $where) {
@@ -3413,7 +3405,7 @@ exports.NewsArticleAssetSentiment = {
3413
3405
  };
3414
3406
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
3415
3407
  try {
3416
- const response = await client.query({ query: FIND_MANY_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
3408
+ const response = await client_2.client.query({ query: FIND_MANY_NEWSARTICLEASSETSENTIMENT, variables: filteredVariables });
3417
3409
  if (response.errors && response.errors.length > 0)
3418
3410
  throw new Error(response.errors[0].message);
3419
3411
  if (response && response.data && response.data.NewsArticleAssetSentiments) {
package/Order.cjs CHANGED
@@ -191,7 +191,6 @@ exports.Order = {
191
191
  * @returns The created Order or null.
192
192
  */
193
193
  async create(props) {
194
- const client = (0, client_2.createApolloClient)();
195
194
  const CREATE_ONE_ORDER = (0, client_1.gql) `
196
195
  mutation createOneOrder($data: OrderCreateInput!) {
197
196
  createOneOrder(data: $data) {
@@ -1085,7 +1084,7 @@ exports.Order = {
1085
1084
  };
1086
1085
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1087
1086
  try {
1088
- const response = await client.mutate({ mutation: CREATE_ONE_ORDER, variables: filteredVariables });
1087
+ const response = await client_2.client.mutate({ mutation: CREATE_ONE_ORDER, variables: filteredVariables });
1089
1088
  if (response.errors && response.errors.length > 0)
1090
1089
  throw new Error(response.errors[0].message);
1091
1090
  if (response && response.data && response.data.createOneOrder) {
@@ -1106,7 +1105,6 @@ exports.Order = {
1106
1105
  * @returns The count of created records or null.
1107
1106
  */
1108
1107
  async createMany(props) {
1109
- const client = (0, client_2.createApolloClient)();
1110
1108
  const CREATE_MANY_ORDER = (0, client_1.gql) `
1111
1109
  mutation createManyOrder($data: [OrderCreateManyInput!]!) {
1112
1110
  createManyOrder(data: $data) {
@@ -1147,7 +1145,7 @@ exports.Order = {
1147
1145
  };
1148
1146
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1149
1147
  try {
1150
- const response = await client.mutate({ mutation: CREATE_MANY_ORDER, variables: filteredVariables });
1148
+ const response = await client_2.client.mutate({ mutation: CREATE_MANY_ORDER, variables: filteredVariables });
1151
1149
  if (response.errors && response.errors.length > 0)
1152
1150
  throw new Error(response.errors[0].message);
1153
1151
  if (response && response.data && response.data.createManyOrder) {
@@ -1168,7 +1166,6 @@ exports.Order = {
1168
1166
  * @returns The updated Order or null.
1169
1167
  */
1170
1168
  async update(props) {
1171
- const client = (0, client_2.createApolloClient)();
1172
1169
  const UPDATE_ONE_ORDER = (0, client_1.gql) `
1173
1170
  mutation updateOneOrder($data: OrderUpdateInput!, $where: OrderWhereUniqueInput!) {
1174
1171
  updateOneOrder(data: $data, where: $where) {
@@ -4536,7 +4533,7 @@ exports.Order = {
4536
4533
  };
4537
4534
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
4538
4535
  try {
4539
- const response = await client.mutate({ mutation: UPDATE_ONE_ORDER, variables: filteredVariables });
4536
+ const response = await client_2.client.mutate({ mutation: UPDATE_ONE_ORDER, variables: filteredVariables });
4540
4537
  if (response.errors && response.errors.length > 0)
4541
4538
  throw new Error(response.errors[0].message);
4542
4539
  if (response && response.data && response.data.updateOneOrder) {
@@ -4557,7 +4554,6 @@ exports.Order = {
4557
4554
  * @returns The count of created records or null.
4558
4555
  */
4559
4556
  async updateMany(props) {
4560
- const client = (0, client_2.createApolloClient)();
4561
4557
  const UPDATE_MANY_ORDER = (0, client_1.gql) `
4562
4558
  mutation updateManyOrder($data: [OrderCreateManyInput!]!) {
4563
4559
  updateManyOrder(data: $data) {
@@ -7925,7 +7921,7 @@ exports.Order = {
7925
7921
  }));
7926
7922
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
7927
7923
  try {
7928
- const response = await client.mutate({ mutation: UPDATE_MANY_ORDER, variables: filteredVariables });
7924
+ const response = await client_2.client.mutate({ mutation: UPDATE_MANY_ORDER, variables: filteredVariables });
7929
7925
  if (response.errors && response.errors.length > 0)
7930
7926
  throw new Error(response.errors[0].message);
7931
7927
  if (response && response.data && response.data.updateManyOrder) {
@@ -7946,7 +7942,6 @@ exports.Order = {
7946
7942
  * @returns The deleted Order or null.
7947
7943
  */
7948
7944
  async delete(props) {
7949
- const client = (0, client_2.createApolloClient)();
7950
7945
  const DELETE_ONE_ORDER = (0, client_1.gql) `
7951
7946
  mutation deleteOneOrder($where: OrderWhereUniqueInput!) {
7952
7947
  deleteOneOrder(where: $where) {
@@ -7960,7 +7955,7 @@ exports.Order = {
7960
7955
  };
7961
7956
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
7962
7957
  try {
7963
- const response = await client.mutate({ mutation: DELETE_ONE_ORDER, variables: filteredVariables });
7958
+ const response = await client_2.client.mutate({ mutation: DELETE_ONE_ORDER, variables: filteredVariables });
7964
7959
  if (response.errors && response.errors.length > 0)
7965
7960
  throw new Error(response.errors[0].message);
7966
7961
  if (response && response.data && response.data.deleteOneOrder) {
@@ -7982,7 +7977,6 @@ exports.Order = {
7982
7977
  */
7983
7978
  async get(props) {
7984
7979
  var _a, _b;
7985
- const client = (0, client_2.createApolloClient)();
7986
7980
  const GET_ORDER = (0, client_1.gql) `
7987
7981
  query getOrder($where: OrderWhereUniqueInput!) {
7988
7982
  getOrder(where: $where) {
@@ -8018,7 +8012,7 @@ exports.Order = {
8018
8012
  };
8019
8013
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
8020
8014
  try {
8021
- const response = await client.query({ query: GET_ORDER, variables: filteredVariables });
8015
+ const response = await client_2.client.query({ query: GET_ORDER, variables: filteredVariables });
8022
8016
  if (response.errors && response.errors.length > 0)
8023
8017
  throw new Error(response.errors[0].message);
8024
8018
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getOrder) !== null && _b !== void 0 ? _b : null;
@@ -8039,7 +8033,6 @@ exports.Order = {
8039
8033
  */
8040
8034
  async getAll() {
8041
8035
  var _a, _b;
8042
- const client = (0, client_2.createApolloClient)();
8043
8036
  const GET_ALL_ORDER = (0, client_1.gql) `
8044
8037
  query getAllOrder {
8045
8038
  orders {
@@ -8047,7 +8040,7 @@ exports.Order = {
8047
8040
  }
8048
8041
  }`;
8049
8042
  try {
8050
- const response = await client.query({ query: GET_ALL_ORDER });
8043
+ const response = await client_2.client.query({ query: GET_ALL_ORDER });
8051
8044
  if (response.errors && response.errors.length > 0)
8052
8045
  throw new Error(response.errors[0].message);
8053
8046
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.orders) !== null && _b !== void 0 ? _b : null;
@@ -8068,7 +8061,6 @@ exports.Order = {
8068
8061
  * @returns An array of found Order records or null.
8069
8062
  */
8070
8063
  async findMany(props) {
8071
- const client = (0, client_2.createApolloClient)();
8072
8064
  const FIND_MANY_ORDER = (0, client_1.gql) `
8073
8065
  query findManyOrder($where: OrderWhereInput!) {
8074
8066
  orders(where: $where) {
@@ -8106,7 +8098,7 @@ exports.Order = {
8106
8098
  };
8107
8099
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
8108
8100
  try {
8109
- const response = await client.query({ query: FIND_MANY_ORDER, variables: filteredVariables });
8101
+ const response = await client_2.client.query({ query: FIND_MANY_ORDER, variables: filteredVariables });
8110
8102
  if (response.errors && response.errors.length > 0)
8111
8103
  throw new Error(response.errors[0].message);
8112
8104
  if (response && response.data && response.data.Orders) {
package/Position.cjs CHANGED
@@ -97,7 +97,6 @@ exports.Position = {
97
97
  * @returns The created Position or null.
98
98
  */
99
99
  async create(props) {
100
- const client = (0, client_2.createApolloClient)();
101
100
  const CREATE_ONE_POSITION = (0, client_1.gql) `
102
101
  mutation createOnePosition($data: PositionCreateInput!) {
103
102
  createOnePosition(data: $data) {
@@ -936,7 +935,7 @@ exports.Position = {
936
935
  };
937
936
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
938
937
  try {
939
- const response = await client.mutate({ mutation: CREATE_ONE_POSITION, variables: filteredVariables });
938
+ const response = await client_2.client.mutate({ mutation: CREATE_ONE_POSITION, variables: filteredVariables });
940
939
  if (response.errors && response.errors.length > 0)
941
940
  throw new Error(response.errors[0].message);
942
941
  if (response && response.data && response.data.createOnePosition) {
@@ -957,7 +956,6 @@ exports.Position = {
957
956
  * @returns The count of created records or null.
958
957
  */
959
958
  async createMany(props) {
960
- const client = (0, client_2.createApolloClient)();
961
959
  const CREATE_MANY_POSITION = (0, client_1.gql) `
962
960
  mutation createManyPosition($data: [PositionCreateManyInput!]!) {
963
961
  createManyPosition(data: $data) {
@@ -986,7 +984,7 @@ exports.Position = {
986
984
  };
987
985
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
988
986
  try {
989
- const response = await client.mutate({ mutation: CREATE_MANY_POSITION, variables: filteredVariables });
987
+ const response = await client_2.client.mutate({ mutation: CREATE_MANY_POSITION, variables: filteredVariables });
990
988
  if (response.errors && response.errors.length > 0)
991
989
  throw new Error(response.errors[0].message);
992
990
  if (response && response.data && response.data.createManyPosition) {
@@ -1007,7 +1005,6 @@ exports.Position = {
1007
1005
  * @returns The updated Position or null.
1008
1006
  */
1009
1007
  async update(props) {
1010
- const client = (0, client_2.createApolloClient)();
1011
1008
  const UPDATE_ONE_POSITION = (0, client_1.gql) `
1012
1009
  mutation updateOnePosition($data: PositionUpdateInput!, $where: PositionWhereUniqueInput!) {
1013
1010
  updateOnePosition(data: $data, where: $where) {
@@ -4191,7 +4188,7 @@ exports.Position = {
4191
4188
  };
4192
4189
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
4193
4190
  try {
4194
- const response = await client.mutate({ mutation: UPDATE_ONE_POSITION, variables: filteredVariables });
4191
+ const response = await client_2.client.mutate({ mutation: UPDATE_ONE_POSITION, variables: filteredVariables });
4195
4192
  if (response.errors && response.errors.length > 0)
4196
4193
  throw new Error(response.errors[0].message);
4197
4194
  if (response && response.data && response.data.updateOnePosition) {
@@ -4212,7 +4209,6 @@ exports.Position = {
4212
4209
  * @returns The count of created records or null.
4213
4210
  */
4214
4211
  async updateMany(props) {
4215
- const client = (0, client_2.createApolloClient)();
4216
4212
  const UPDATE_MANY_POSITION = (0, client_1.gql) `
4217
4213
  mutation updateManyPosition($data: [PositionCreateManyInput!]!) {
4218
4214
  updateManyPosition(data: $data) {
@@ -7396,7 +7392,7 @@ exports.Position = {
7396
7392
  }));
7397
7393
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
7398
7394
  try {
7399
- const response = await client.mutate({ mutation: UPDATE_MANY_POSITION, variables: filteredVariables });
7395
+ const response = await client_2.client.mutate({ mutation: UPDATE_MANY_POSITION, variables: filteredVariables });
7400
7396
  if (response.errors && response.errors.length > 0)
7401
7397
  throw new Error(response.errors[0].message);
7402
7398
  if (response && response.data && response.data.updateManyPosition) {
@@ -7417,7 +7413,6 @@ exports.Position = {
7417
7413
  * @returns The deleted Position or null.
7418
7414
  */
7419
7415
  async delete(props) {
7420
- const client = (0, client_2.createApolloClient)();
7421
7416
  const DELETE_ONE_POSITION = (0, client_1.gql) `
7422
7417
  mutation deleteOnePosition($where: PositionWhereUniqueInput!) {
7423
7418
  deleteOnePosition(where: $where) {
@@ -7431,7 +7426,7 @@ exports.Position = {
7431
7426
  };
7432
7427
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
7433
7428
  try {
7434
- const response = await client.mutate({ mutation: DELETE_ONE_POSITION, variables: filteredVariables });
7429
+ const response = await client_2.client.mutate({ mutation: DELETE_ONE_POSITION, variables: filteredVariables });
7435
7430
  if (response.errors && response.errors.length > 0)
7436
7431
  throw new Error(response.errors[0].message);
7437
7432
  if (response && response.data && response.data.deleteOnePosition) {
@@ -7453,7 +7448,6 @@ exports.Position = {
7453
7448
  */
7454
7449
  async get(props) {
7455
7450
  var _a, _b;
7456
- const client = (0, client_2.createApolloClient)();
7457
7451
  const GET_POSITION = (0, client_1.gql) `
7458
7452
  query getPosition($where: PositionWhereUniqueInput!) {
7459
7453
  getPosition(where: $where) {
@@ -7487,7 +7481,7 @@ exports.Position = {
7487
7481
  };
7488
7482
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
7489
7483
  try {
7490
- const response = await client.query({ query: GET_POSITION, variables: filteredVariables });
7484
+ const response = await client_2.client.query({ query: GET_POSITION, variables: filteredVariables });
7491
7485
  if (response.errors && response.errors.length > 0)
7492
7486
  throw new Error(response.errors[0].message);
7493
7487
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getPosition) !== null && _b !== void 0 ? _b : null;
@@ -7508,7 +7502,6 @@ exports.Position = {
7508
7502
  */
7509
7503
  async getAll() {
7510
7504
  var _a, _b;
7511
- const client = (0, client_2.createApolloClient)();
7512
7505
  const GET_ALL_POSITION = (0, client_1.gql) `
7513
7506
  query getAllPosition {
7514
7507
  positions {
@@ -7516,7 +7509,7 @@ exports.Position = {
7516
7509
  }
7517
7510
  }`;
7518
7511
  try {
7519
- const response = await client.query({ query: GET_ALL_POSITION });
7512
+ const response = await client_2.client.query({ query: GET_ALL_POSITION });
7520
7513
  if (response.errors && response.errors.length > 0)
7521
7514
  throw new Error(response.errors[0].message);
7522
7515
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.positions) !== null && _b !== void 0 ? _b : null;
@@ -7537,7 +7530,6 @@ exports.Position = {
7537
7530
  * @returns An array of found Position records or null.
7538
7531
  */
7539
7532
  async findMany(props) {
7540
- const client = (0, client_2.createApolloClient)();
7541
7533
  const FIND_MANY_POSITION = (0, client_1.gql) `
7542
7534
  query findManyPosition($where: PositionWhereInput!) {
7543
7535
  positions(where: $where) {
@@ -7573,7 +7565,7 @@ exports.Position = {
7573
7565
  };
7574
7566
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
7575
7567
  try {
7576
- const response = await client.query({ query: FIND_MANY_POSITION, variables: filteredVariables });
7568
+ const response = await client_2.client.query({ query: FIND_MANY_POSITION, variables: filteredVariables });
7577
7569
  if (response.errors && response.errors.length > 0)
7578
7570
  throw new Error(response.errors[0].message);
7579
7571
  if (response && response.data && response.data.Positions) {
@@ -21,7 +21,6 @@ exports.ScheduledOptionOrder = {
21
21
  * @returns The created ScheduledOptionOrder or null.
22
22
  */
23
23
  async create(props) {
24
- const client = (0, client_2.createApolloClient)();
25
24
  const CREATE_ONE_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
26
25
  mutation createOneScheduledOptionOrder($data: ScheduledOptionOrderCreateInput!) {
27
26
  createOneScheduledOptionOrder(data: $data) {
@@ -37,7 +36,7 @@ exports.ScheduledOptionOrder = {
37
36
  };
38
37
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
39
38
  try {
40
- const response = await client.mutate({ mutation: CREATE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
39
+ const response = await client_2.client.mutate({ mutation: CREATE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
41
40
  if (response.errors && response.errors.length > 0)
42
41
  throw new Error(response.errors[0].message);
43
42
  if (response && response.data && response.data.createOneScheduledOptionOrder) {
@@ -58,7 +57,6 @@ exports.ScheduledOptionOrder = {
58
57
  * @returns The count of created records or null.
59
58
  */
60
59
  async createMany(props) {
61
- const client = (0, client_2.createApolloClient)();
62
60
  const CREATE_MANY_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
63
61
  mutation createManyScheduledOptionOrder($data: [ScheduledOptionOrderCreateManyInput!]!) {
64
62
  createManyScheduledOptionOrder(data: $data) {
@@ -73,7 +71,7 @@ exports.ScheduledOptionOrder = {
73
71
  };
74
72
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
75
73
  try {
76
- const response = await client.mutate({ mutation: CREATE_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
74
+ const response = await client_2.client.mutate({ mutation: CREATE_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
77
75
  if (response.errors && response.errors.length > 0)
78
76
  throw new Error(response.errors[0].message);
79
77
  if (response && response.data && response.data.createManyScheduledOptionOrder) {
@@ -94,7 +92,6 @@ exports.ScheduledOptionOrder = {
94
92
  * @returns The updated ScheduledOptionOrder or null.
95
93
  */
96
94
  async update(props) {
97
- const client = (0, client_2.createApolloClient)();
98
95
  const UPDATE_ONE_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
99
96
  mutation updateOneScheduledOptionOrder($data: ScheduledOptionOrderUpdateInput!, $where: ScheduledOptionOrderWhereUniqueInput!) {
100
97
  updateOneScheduledOptionOrder(data: $data, where: $where) {
@@ -120,7 +117,7 @@ exports.ScheduledOptionOrder = {
120
117
  };
121
118
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
122
119
  try {
123
- const response = await client.mutate({ mutation: UPDATE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
120
+ const response = await client_2.client.mutate({ mutation: UPDATE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
124
121
  if (response.errors && response.errors.length > 0)
125
122
  throw new Error(response.errors[0].message);
126
123
  if (response && response.data && response.data.updateOneScheduledOptionOrder) {
@@ -141,7 +138,6 @@ exports.ScheduledOptionOrder = {
141
138
  * @returns The count of created records or null.
142
139
  */
143
140
  async updateMany(props) {
144
- const client = (0, client_2.createApolloClient)();
145
141
  const UPDATE_MANY_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
146
142
  mutation updateManyScheduledOptionOrder($data: [ScheduledOptionOrderCreateManyInput!]!) {
147
143
  updateManyScheduledOptionOrder(data: $data) {
@@ -167,7 +163,7 @@ exports.ScheduledOptionOrder = {
167
163
  }));
168
164
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
169
165
  try {
170
- const response = await client.mutate({ mutation: UPDATE_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
166
+ const response = await client_2.client.mutate({ mutation: UPDATE_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
171
167
  if (response.errors && response.errors.length > 0)
172
168
  throw new Error(response.errors[0].message);
173
169
  if (response && response.data && response.data.updateManyScheduledOptionOrder) {
@@ -188,7 +184,6 @@ exports.ScheduledOptionOrder = {
188
184
  * @returns The deleted ScheduledOptionOrder or null.
189
185
  */
190
186
  async delete(props) {
191
- const client = (0, client_2.createApolloClient)();
192
187
  const DELETE_ONE_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
193
188
  mutation deleteOneScheduledOptionOrder($where: ScheduledOptionOrderWhereUniqueInput!) {
194
189
  deleteOneScheduledOptionOrder(where: $where) {
@@ -202,7 +197,7 @@ exports.ScheduledOptionOrder = {
202
197
  };
203
198
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
204
199
  try {
205
- const response = await client.mutate({ mutation: DELETE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
200
+ const response = await client_2.client.mutate({ mutation: DELETE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
206
201
  if (response.errors && response.errors.length > 0)
207
202
  throw new Error(response.errors[0].message);
208
203
  if (response && response.data && response.data.deleteOneScheduledOptionOrder) {
@@ -224,7 +219,6 @@ exports.ScheduledOptionOrder = {
224
219
  */
225
220
  async get(props) {
226
221
  var _a, _b;
227
- const client = (0, client_2.createApolloClient)();
228
222
  const GET_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
229
223
  query getScheduledOptionOrder($where: ScheduledOptionOrderWhereUniqueInput!) {
230
224
  getScheduledOptionOrder(where: $where) {
@@ -239,7 +233,7 @@ exports.ScheduledOptionOrder = {
239
233
  };
240
234
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
241
235
  try {
242
- const response = await client.query({ query: GET_SCHEDULEDOPTIONORDER, variables: filteredVariables });
236
+ const response = await client_2.client.query({ query: GET_SCHEDULEDOPTIONORDER, variables: filteredVariables });
243
237
  if (response.errors && response.errors.length > 0)
244
238
  throw new Error(response.errors[0].message);
245
239
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getScheduledOptionOrder) !== null && _b !== void 0 ? _b : null;
@@ -260,7 +254,6 @@ exports.ScheduledOptionOrder = {
260
254
  */
261
255
  async getAll() {
262
256
  var _a, _b;
263
- const client = (0, client_2.createApolloClient)();
264
257
  const GET_ALL_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
265
258
  query getAllScheduledOptionOrder {
266
259
  scheduledOptionOrders {
@@ -268,7 +261,7 @@ exports.ScheduledOptionOrder = {
268
261
  }
269
262
  }`;
270
263
  try {
271
- const response = await client.query({ query: GET_ALL_SCHEDULEDOPTIONORDER });
264
+ const response = await client_2.client.query({ query: GET_ALL_SCHEDULEDOPTIONORDER });
272
265
  if (response.errors && response.errors.length > 0)
273
266
  throw new Error(response.errors[0].message);
274
267
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.scheduledOptionOrders) !== null && _b !== void 0 ? _b : null;
@@ -289,7 +282,6 @@ exports.ScheduledOptionOrder = {
289
282
  * @returns An array of found ScheduledOptionOrder records or null.
290
283
  */
291
284
  async findMany(props) {
292
- const client = (0, client_2.createApolloClient)();
293
285
  const FIND_MANY_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
294
286
  query findManyScheduledOptionOrder($where: ScheduledOptionOrderWhereInput!) {
295
287
  scheduledOptionOrders(where: $where) {
@@ -306,7 +298,7 @@ exports.ScheduledOptionOrder = {
306
298
  };
307
299
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
308
300
  try {
309
- const response = await client.query({ query: FIND_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
301
+ const response = await client_2.client.query({ query: FIND_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
310
302
  if (response.errors && response.errors.length > 0)
311
303
  throw new Error(response.errors[0].message);
312
304
  if (response && response.data && response.data.ScheduledOptionOrders) {
package/Session.cjs CHANGED
@@ -81,7 +81,6 @@ exports.Session = {
81
81
  * @returns The created Session or null.
82
82
  */
83
83
  async create(props) {
84
- const client = (0, client_2.createApolloClient)();
85
84
  const CREATE_ONE_SESSION = (0, client_1.gql) `
86
85
  mutation createOneSession($data: SessionCreateInput!) {
87
86
  createOneSession(data: $data) {
@@ -367,7 +366,7 @@ exports.Session = {
367
366
  };
368
367
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
369
368
  try {
370
- const response = await client.mutate({ mutation: CREATE_ONE_SESSION, variables: filteredVariables });
369
+ const response = await client_2.client.mutate({ mutation: CREATE_ONE_SESSION, variables: filteredVariables });
371
370
  if (response.errors && response.errors.length > 0)
372
371
  throw new Error(response.errors[0].message);
373
372
  if (response && response.data && response.data.createOneSession) {
@@ -388,7 +387,6 @@ exports.Session = {
388
387
  * @returns The count of created records or null.
389
388
  */
390
389
  async createMany(props) {
391
- const client = (0, client_2.createApolloClient)();
392
390
  const CREATE_MANY_SESSION = (0, client_1.gql) `
393
391
  mutation createManySession($data: [SessionCreateManyInput!]!) {
394
392
  createManySession(data: $data) {
@@ -404,7 +402,7 @@ exports.Session = {
404
402
  };
405
403
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
406
404
  try {
407
- const response = await client.mutate({ mutation: CREATE_MANY_SESSION, variables: filteredVariables });
405
+ const response = await client_2.client.mutate({ mutation: CREATE_MANY_SESSION, variables: filteredVariables });
408
406
  if (response.errors && response.errors.length > 0)
409
407
  throw new Error(response.errors[0].message);
410
408
  if (response && response.data && response.data.createManySession) {
@@ -425,7 +423,6 @@ exports.Session = {
425
423
  * @returns The updated Session or null.
426
424
  */
427
425
  async update(props) {
428
- const client = (0, client_2.createApolloClient)();
429
426
  const UPDATE_ONE_SESSION = (0, client_1.gql) `
430
427
  mutation updateOneSession($data: SessionUpdateInput!, $where: SessionWhereUniqueInput!) {
431
428
  updateOneSession(data: $data, where: $where) {
@@ -1393,7 +1390,7 @@ exports.Session = {
1393
1390
  };
1394
1391
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1395
1392
  try {
1396
- const response = await client.mutate({ mutation: UPDATE_ONE_SESSION, variables: filteredVariables });
1393
+ const response = await client_2.client.mutate({ mutation: UPDATE_ONE_SESSION, variables: filteredVariables });
1397
1394
  if (response.errors && response.errors.length > 0)
1398
1395
  throw new Error(response.errors[0].message);
1399
1396
  if (response && response.data && response.data.updateOneSession) {
@@ -1414,7 +1411,6 @@ exports.Session = {
1414
1411
  * @returns The count of created records or null.
1415
1412
  */
1416
1413
  async updateMany(props) {
1417
- const client = (0, client_2.createApolloClient)();
1418
1414
  const UPDATE_MANY_SESSION = (0, client_1.gql) `
1419
1415
  mutation updateManySession($data: [SessionCreateManyInput!]!) {
1420
1416
  updateManySession(data: $data) {
@@ -2382,7 +2378,7 @@ exports.Session = {
2382
2378
  }));
2383
2379
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
2384
2380
  try {
2385
- const response = await client.mutate({ mutation: UPDATE_MANY_SESSION, variables: filteredVariables });
2381
+ const response = await client_2.client.mutate({ mutation: UPDATE_MANY_SESSION, variables: filteredVariables });
2386
2382
  if (response.errors && response.errors.length > 0)
2387
2383
  throw new Error(response.errors[0].message);
2388
2384
  if (response && response.data && response.data.updateManySession) {
@@ -2403,7 +2399,6 @@ exports.Session = {
2403
2399
  * @returns The deleted Session or null.
2404
2400
  */
2405
2401
  async delete(props) {
2406
- const client = (0, client_2.createApolloClient)();
2407
2402
  const DELETE_ONE_SESSION = (0, client_1.gql) `
2408
2403
  mutation deleteOneSession($where: SessionWhereUniqueInput!) {
2409
2404
  deleteOneSession(where: $where) {
@@ -2417,7 +2412,7 @@ exports.Session = {
2417
2412
  };
2418
2413
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
2419
2414
  try {
2420
- const response = await client.mutate({ mutation: DELETE_ONE_SESSION, variables: filteredVariables });
2415
+ const response = await client_2.client.mutate({ mutation: DELETE_ONE_SESSION, variables: filteredVariables });
2421
2416
  if (response.errors && response.errors.length > 0)
2422
2417
  throw new Error(response.errors[0].message);
2423
2418
  if (response && response.data && response.data.deleteOneSession) {
@@ -2439,7 +2434,6 @@ exports.Session = {
2439
2434
  */
2440
2435
  async get(props) {
2441
2436
  var _a, _b;
2442
- const client = (0, client_2.createApolloClient)();
2443
2437
  const GET_SESSION = (0, client_1.gql) `
2444
2438
  query getSession($where: SessionWhereUniqueInput!) {
2445
2439
  getSession(where: $where) {
@@ -2460,7 +2454,7 @@ exports.Session = {
2460
2454
  };
2461
2455
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
2462
2456
  try {
2463
- const response = await client.query({ query: GET_SESSION, variables: filteredVariables });
2457
+ const response = await client_2.client.query({ query: GET_SESSION, variables: filteredVariables });
2464
2458
  if (response.errors && response.errors.length > 0)
2465
2459
  throw new Error(response.errors[0].message);
2466
2460
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getSession) !== null && _b !== void 0 ? _b : null;
@@ -2481,7 +2475,6 @@ exports.Session = {
2481
2475
  */
2482
2476
  async getAll() {
2483
2477
  var _a, _b;
2484
- const client = (0, client_2.createApolloClient)();
2485
2478
  const GET_ALL_SESSION = (0, client_1.gql) `
2486
2479
  query getAllSession {
2487
2480
  sessions {
@@ -2489,7 +2482,7 @@ exports.Session = {
2489
2482
  }
2490
2483
  }`;
2491
2484
  try {
2492
- const response = await client.query({ query: GET_ALL_SESSION });
2485
+ const response = await client_2.client.query({ query: GET_ALL_SESSION });
2493
2486
  if (response.errors && response.errors.length > 0)
2494
2487
  throw new Error(response.errors[0].message);
2495
2488
  return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.sessions) !== null && _b !== void 0 ? _b : null;
@@ -2510,7 +2503,6 @@ exports.Session = {
2510
2503
  * @returns An array of found Session records or null.
2511
2504
  */
2512
2505
  async findMany(props) {
2513
- const client = (0, client_2.createApolloClient)();
2514
2506
  const FIND_MANY_SESSION = (0, client_1.gql) `
2515
2507
  query findManySession($where: SessionWhereInput!) {
2516
2508
  sessions(where: $where) {
@@ -2533,7 +2525,7 @@ exports.Session = {
2533
2525
  };
2534
2526
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
2535
2527
  try {
2536
- const response = await client.query({ query: FIND_MANY_SESSION, variables: filteredVariables });
2528
+ const response = await client_2.client.query({ query: FIND_MANY_SESSION, variables: filteredVariables });
2537
2529
  if (response.errors && response.errors.length > 0)
2538
2530
  throw new Error(response.errors[0].message);
2539
2531
  if (response && response.data && response.data.Sessions) {