@opexa/portal-sdk 0.0.190 → 0.0.192

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/dist/index.cjs CHANGED
@@ -407,6 +407,27 @@ var CREATE_AIO_INSTAPAY_WITHDRAWAL_MUTATION = gql`
407
407
  }
408
408
  }
409
409
  `;
410
+ var CREATE_MANUAL_UPI_WITHDRAWAL_MUTATION = gql`
411
+ mutation CreateAIOInstapayWithdrawal($input: CreateManualUPIWithdrawalInput!) {
412
+ createManualUPIWithdrawal(input: $input) {
413
+ ... on AccountNotVerifiedError {
414
+ __typename
415
+ }
416
+ ... on InvalidWithdrawalAmountError {
417
+ __typename
418
+ }
419
+ ... on WithdrawalDailyLimitExceededError {
420
+ __typename
421
+ }
422
+ ... on InvalidTransactionPasswordError {
423
+ __typename
424
+ }
425
+ ... on NotEnoughBalanceError {
426
+ __typename
427
+ }
428
+ }
429
+ }
430
+ `;
410
431
  var INSTAPAY_BANK_LIST_QUERY = gql`
411
432
  query InstapayBankList {
412
433
  instapayBankList {
@@ -608,6 +629,42 @@ var CREATE_AIO_ONLINE_BANK_DEPOSIT_MUTATION = gql`
608
629
  }
609
630
  }
610
631
  `;
632
+ var CREATE_MANUAL_BANK_DEPOSIT_MUTATION = gql`
633
+ mutation CreateManualBankDeposit($input: CreateManualBankDepositInput!) {
634
+ createManualBankDeposit(input: $input) {
635
+ ... on MinimumDepositAmountNotMetError {
636
+ __typename
637
+ }
638
+ ... on MinimumFirstDepositAmountNotMetError {
639
+ __typename
640
+ }
641
+ ... on PromoNotEnabledError {
642
+ __typename
643
+ }
644
+ ... on WalletDoesNotExistError {
645
+ __typename
646
+ }
647
+ }
648
+ }
649
+ `;
650
+ var CREATE_MANUAL_UPI_DEPOSIT_MUTATION = gql`
651
+ mutation CreateManualUPIDeposit($input: CreateManualUPIDepositInput!) {
652
+ createManualUPIDeposit(input: $input) {
653
+ ... on MinimumDepositAmountNotMetError {
654
+ __typename
655
+ }
656
+ ... on MinimumFirstDepositAmountNotMetError {
657
+ __typename
658
+ }
659
+ ... on PromoNotEnabledError {
660
+ __typename
661
+ }
662
+ ... on WalletDoesNotExistError {
663
+ __typename
664
+ }
665
+ }
666
+ }
667
+ `;
611
668
  var DEPOSIT_QUERY = gql`
612
669
  query Deposit($id: ObjectId!) {
613
670
  node(id: $id) {
@@ -2996,6 +3053,46 @@ var WalletService = class {
2996
3053
  ok: true
2997
3054
  };
2998
3055
  }
3056
+ async createManualBankDeposit(variables) {
3057
+ const { reCAPTCHAResponse, ...others } = variables;
3058
+ const res = await this.client.request(CREATE_MANUAL_BANK_DEPOSIT_MUTATION, others, {
3059
+ headers: {
3060
+ ...reCAPTCHAResponse && {
3061
+ "google-recaptcha-response": reCAPTCHAResponse
3062
+ }
3063
+ }
3064
+ });
3065
+ if (!res.ok) return res;
3066
+ if (res.data.createManualBankDeposit) {
3067
+ return {
3068
+ ok: false,
3069
+ error: createOperationError(res.data.createManualBankDeposit.__typename)
3070
+ };
3071
+ }
3072
+ return {
3073
+ ok: true
3074
+ };
3075
+ }
3076
+ async createManualUPIDeposit(variables) {
3077
+ const { reCAPTCHAResponse, ...others } = variables;
3078
+ const res = await this.client.request(CREATE_MANUAL_UPI_DEPOSIT_MUTATION, others, {
3079
+ headers: {
3080
+ ...reCAPTCHAResponse && {
3081
+ "google-recaptcha-response": reCAPTCHAResponse
3082
+ }
3083
+ }
3084
+ });
3085
+ if (!res.ok) return res;
3086
+ if (res.data.createManualUPIDeposit) {
3087
+ return {
3088
+ ok: false,
3089
+ error: createOperationError(res.data.createManualUPIDeposit.__typename)
3090
+ };
3091
+ }
3092
+ return {
3093
+ ok: true
3094
+ };
3095
+ }
2999
3096
  async createMayaAppDeposit(variables) {
3000
3097
  const { reCAPTCHAResponse, ...others } = variables;
3001
3098
  const res = await this.client.request(CREATE_MAYA_APP_DEPOSIT_MUTATION, others, {
@@ -3016,6 +3113,26 @@ var WalletService = class {
3016
3113
  ok: true
3017
3114
  };
3018
3115
  }
3116
+ async createManualUpiDeposit(variables) {
3117
+ const { reCAPTCHAResponse, ...others } = variables;
3118
+ const res = await this.client.request(CREATE_MANUAL_UPI_DEPOSIT_MUTATION, others, {
3119
+ headers: {
3120
+ ...reCAPTCHAResponse && {
3121
+ "google-recaptcha-response": reCAPTCHAResponse
3122
+ }
3123
+ }
3124
+ });
3125
+ if (!res.ok) return res;
3126
+ if (res.data.createManualUPIDeposit) {
3127
+ return {
3128
+ ok: false,
3129
+ error: createOperationError(res.data.createManualUPIDeposit.__typename)
3130
+ };
3131
+ }
3132
+ return {
3133
+ ok: true
3134
+ };
3135
+ }
3019
3136
  async createGCashWithdrawal(variables) {
3020
3137
  const { reCAPTCHAResponse, ...others } = variables;
3021
3138
  const res = await this.client.request(CREATE_GCASH_WITHDRAWAL_MUTATION, others, {
@@ -3116,6 +3233,26 @@ var WalletService = class {
3116
3233
  ok: true
3117
3234
  };
3118
3235
  }
3236
+ async createManualUpiWithdrawal(variables) {
3237
+ const { reCAPTCHAResponse, ...others } = variables;
3238
+ const res = await this.client.request(CREATE_MANUAL_UPI_WITHDRAWAL_MUTATION, others, {
3239
+ headers: {
3240
+ ...reCAPTCHAResponse && {
3241
+ "google-recaptcha-response": reCAPTCHAResponse
3242
+ }
3243
+ }
3244
+ });
3245
+ if (!res.ok) return res;
3246
+ if (res.data.createManualUpiWithdrawal) {
3247
+ return {
3248
+ ok: false,
3249
+ error: createOperationError(res.data.createManualUpiWithdrawal.__typename)
3250
+ };
3251
+ }
3252
+ return {
3253
+ ok: true
3254
+ };
3255
+ }
3119
3256
  async instapayBankList() {
3120
3257
  const res = await this.client.request(INSTAPAY_BANK_LIST_QUERY);
3121
3258
  return res.ok ? { ok: res.ok, data: res.data.instapayBankList } : res;
@@ -3861,7 +3998,7 @@ function compact(obj) {
3861
3998
  for (const k in obj) {
3862
3999
  const v = obj[k];
3863
4000
  if (v === null) continue;
3864
- if (v === void 0) continue;
4001
+ if (v === undefined) continue;
3865
4002
  if (isPlainObject(v)) {
3866
4003
  output[k] = compact(v);
3867
4004
  continue;
@@ -3973,7 +4110,7 @@ var Transformer = class {
3973
4110
  const o = {
3974
4111
  id: data.id,
3975
4112
  name: data.name,
3976
- logo: data.logo ?? void 0,
4113
+ logo: data.logo ?? undefined,
3977
4114
  fields: data.config.fields
3978
4115
  };
3979
4116
  return compact(o);
@@ -4215,14 +4352,14 @@ var Transformer = class {
4215
4352
  name: data.name,
4216
4353
  status: data.status,
4217
4354
  verified: data.verified,
4218
- nickName: data.nickName ?? void 0,
4219
- realName: data.realName ?? void 0,
4220
- dateOfBirth: data.birthDay ? new Date(data.birthDay) : void 0,
4221
- emailAddress: data.emailAddress ?? void 0,
4222
- mobileNumber: data.mobileNumber ?? void 0,
4355
+ nickName: data.nickName ?? undefined,
4356
+ realName: data.realName ?? undefined,
4357
+ dateOfBirth: data.birthDay ? new Date(data.birthDay) : undefined,
4358
+ emailAddress: data.emailAddress ?? undefined,
4359
+ mobileNumber: data.mobileNumber ?? undefined,
4223
4360
  mobileNumberVerified: data.mobileNumberVerified ?? false,
4224
4361
  mobileNumberVerificationRequired: data.mobileNumberVerificationRequired ?? false,
4225
- validId: data.validId || void 0,
4362
+ validId: data.validId || undefined,
4226
4363
  verificationStatus: data.verificationStatus,
4227
4364
  transactionPassword: data.transactionPassword,
4228
4365
  secretAnswerSubmitted: data.secretAnswerSubmitted ?? false,
@@ -4290,11 +4427,11 @@ var Transformer = class {
4290
4427
  amount: parseDecimal(data.amount, 0),
4291
4428
  netAmount: parseDecimal(data.netAmount, 0),
4292
4429
  fee: parseDecimal(data.fee, 0),
4293
- reference: data.reference ?? void 0,
4294
- error: data.error ?? void 0,
4430
+ reference: data.reference ?? undefined,
4431
+ error: data.error ?? undefined,
4295
4432
  withdrawalNumber: data.withdrawalNumber,
4296
- recipientMobileNumber: data.recipientMobileNumber ?? void 0,
4297
- dateTimeConfirmed: data.dateTimeConfirmed ? new Date(data.dateTimeConfirmed) : void 0,
4433
+ recipientMobileNumber: data.recipientMobileNumber ?? undefined,
4434
+ dateTimeConfirmed: data.dateTimeConfirmed ? new Date(data.dateTimeConfirmed) : undefined,
4298
4435
  dateTimeCreated: new Date(data.dateTimeCreated),
4299
4436
  dateTimeLastUpdated: new Date(data.dateTimeLastUpdated)
4300
4437
  };
@@ -4305,10 +4442,10 @@ var Transformer = class {
4305
4442
  id: data.id,
4306
4443
  type: data.type,
4307
4444
  status: data.status,
4308
- vca: data.vca ?? void 0,
4309
- qrCode: data.qrCode ?? void 0,
4310
- checkoutUrl: data.checkoutUrl ?? void 0,
4311
- error: data.error ?? void 0
4445
+ vca: data.vca ?? undefined,
4446
+ qrCode: data.qrCode ?? undefined,
4447
+ checkoutUrl: data.checkoutUrl ?? undefined,
4448
+ error: data.error ?? undefined
4312
4449
  };
4313
4450
  return compact(o);
4314
4451
  }
@@ -4320,12 +4457,12 @@ var Transformer = class {
4320
4457
  amount: parseDecimal(data.amount, 0),
4321
4458
  fee: parseDecimal(data.fee, 0),
4322
4459
  netAmount: parseDecimal(data.netAmount, 0),
4323
- reference: data.reference ?? void 0,
4460
+ reference: data.reference ?? undefined,
4324
4461
  deposit: data.deposit,
4325
4462
  depositNumber: data.depositNumber,
4326
4463
  dateTimeCreated: new Date(data.dateTimeCreated),
4327
4464
  dateTimeLastUpdated: new Date(data.dateTimeLastUpdated),
4328
- error: data.error ?? void 0
4465
+ error: data.error ?? undefined
4329
4466
  };
4330
4467
  return compact(o);
4331
4468
  }
@@ -4339,17 +4476,17 @@ var Transformer = class {
4339
4476
  jackpotPayout: parseDecimal(data.jackpotPayout, 0),
4340
4477
  winloss: parseDecimal(data.winloss),
4341
4478
  validBet: parseDecimal(data.validBet, 0),
4342
- vendorRoundId: data.vendorRoundId ?? void 0,
4343
- game: data.game ? this.game(data.game) : void 0,
4479
+ vendorRoundId: data.vendorRoundId ?? undefined,
4480
+ game: data.game ? this.game(data.game) : undefined,
4344
4481
  serialCode: data.serialCode,
4345
- dateTimeSettled: data.dateTimeSettled ? new Date(data.dateTimeSettled) : void 0,
4482
+ dateTimeSettled: data.dateTimeSettled ? new Date(data.dateTimeSettled) : undefined,
4346
4483
  dateTimeCreated: new Date(data.dateTimeCreated),
4347
4484
  dateTimeLastUpdated: new Date(data.dateTimeLastUpdated),
4348
- betContent: data.betContent ?? void 0,
4349
- contestName: data.contestName ?? void 0,
4350
- externalCategory: data.externalCategory ?? void 0,
4485
+ betContent: data.betContent ?? undefined,
4486
+ contestName: data.contestName ?? undefined,
4487
+ externalCategory: data.externalCategory ?? undefined,
4351
4488
  metadata: {
4352
- odds: data.metadata?.odds ?? void 0
4489
+ odds: data.metadata?.odds ?? undefined
4353
4490
  }
4354
4491
  };
4355
4492
  return compact(o);
@@ -4358,7 +4495,7 @@ var Transformer = class {
4358
4495
  const o = {
4359
4496
  id: data.id,
4360
4497
  member: data.member,
4361
- game: data.game ? this.game(data.game) : void 0,
4498
+ game: data.game ? this.game(data.game) : undefined,
4362
4499
  bet: parseDecimal(data.bet, 0),
4363
4500
  payout: parseDecimal(data.payout, 0),
4364
4501
  validBet: parseDecimal(data.validBet, 0),
@@ -4372,7 +4509,7 @@ var Transformer = class {
4372
4509
  id: data.id,
4373
4510
  type: data.type,
4374
4511
  amount: parseDecimal(data.amount, 0),
4375
- content: data.content ?? void 0,
4512
+ content: data.content ?? undefined,
4376
4513
  currentBalance: parseDecimal(data.currentBalance, 0),
4377
4514
  referenceNumber: data.referenceNumber,
4378
4515
  dateTimeCreated: new Date(data.dateTimeCreated)
@@ -4399,7 +4536,7 @@ var Transformer = class {
4399
4536
  const o = {
4400
4537
  id: data.id,
4401
4538
  status: data.status,
4402
- launchUrl: data.launchUrl ?? void 0,
4539
+ launchUrl: data.launchUrl ?? undefined,
4403
4540
  dateTimeCreated: new Date(data.dateTimeCreated),
4404
4541
  dateTimeLastUpdated: new Date(data.dateTimeLastUpdated)
4405
4542
  };
@@ -4449,13 +4586,13 @@ var Transformer = class {
4449
4586
  const o = {
4450
4587
  id: data.id,
4451
4588
  promo: this.promo(data.promo),
4452
- deposit: !data.deposit ? void 0 : {
4589
+ deposit: !data.deposit ? undefined : {
4453
4590
  type: data.deposit.type,
4454
4591
  status: data.deposit.status,
4455
4592
  fee: parseDecimal(data.deposit.fee, 0),
4456
4593
  amount: parseDecimal(data.deposit.amount, 0),
4457
4594
  netAmount: parseDecimal(data.deposit.netAmount, 0),
4458
- reference: data.deposit.reference ?? void 0,
4595
+ reference: data.deposit.reference ?? undefined,
4459
4596
  dateTimeCreated: new Date(data.deposit.dateTimeCreated),
4460
4597
  dateTimeLastUpdated: new Date(data.deposit.dateTimeLastUpdated)
4461
4598
  },
@@ -4490,7 +4627,7 @@ var Transformer = class {
4490
4627
  file(data) {
4491
4628
  const o = {
4492
4629
  id: data.id,
4493
- url: data.url ?? void 0,
4630
+ url: data.url ?? undefined,
4494
4631
  status: data.status,
4495
4632
  dateTimeCreated: new Date(data.dateTimeCreated)
4496
4633
  };
@@ -4519,8 +4656,8 @@ var Transformer = class {
4519
4656
  const o = {
4520
4657
  id: data.id,
4521
4658
  type: data.type,
4522
- amount: data.amount ? parseDecimal(data.amount, 0) : void 0,
4523
- domain: data.domain ?? void 0,
4659
+ amount: data.amount ? parseDecimal(data.amount, 0) : undefined,
4660
+ domain: data.domain ?? undefined,
4524
4661
  details: data.details,
4525
4662
  dateTimeCreated: new Date(data.dateTimeCreated)
4526
4663
  };
@@ -4600,9 +4737,9 @@ var Transformer = class {
4600
4737
  bonusAmount: parseDecimal(data.bonusAmount, 0),
4601
4738
  description: data.description,
4602
4739
  turnoverRequirementType: data.turnoverRequirementType,
4603
- activationEndDateTime: data.activationEndDateTime ? new Date(data.activationEndDateTime) : void 0,
4604
- activationStartDateTime: data.activationStartDateTime ? new Date(data.activationStartDateTime) : void 0,
4605
- dateTimeClosed: data.dateTimeClosed ? new Date(data.dateTimeClosed) : void 0,
4740
+ activationEndDateTime: data.activationEndDateTime ? new Date(data.activationEndDateTime) : undefined,
4741
+ activationStartDateTime: data.activationStartDateTime ? new Date(data.activationStartDateTime) : undefined,
4742
+ dateTimeClosed: data.dateTimeClosed ? new Date(data.dateTimeClosed) : undefined,
4606
4743
  dateTimeLastUpdated: new Date(data.dateTimeLastUpdated),
4607
4744
  dateTimeCreated: new Date(data.dateTimeCreated),
4608
4745
  turnoverRequirementContributionPercentagePerGameProvider: Object.entries(
@@ -4659,11 +4796,11 @@ var Transformer = class {
4659
4796
  },
4660
4797
  progressPercentage: parseDecimal(data.progressPercentage, 0),
4661
4798
  turnover: parseDecimal(data.turnover, 0),
4662
- targetTurnover: data?.targetTurnover ? parseDecimal(data.targetTurnover, 0) : void 0,
4663
- checkInStreak: data?.checkInStreak ?? void 0,
4664
- lastCheckInDate: data?.lastCheckInDate ? new Date(data.lastCheckInDate) : void 0,
4799
+ targetTurnover: data?.targetTurnover ? parseDecimal(data.targetTurnover, 0) : undefined,
4800
+ checkInStreak: data?.checkInStreak ?? undefined,
4801
+ lastCheckInDate: data?.lastCheckInDate ? new Date(data.lastCheckInDate) : undefined,
4665
4802
  member: data.member,
4666
- startDateTime: data?.startDateTime ? new Date(data.startDateTime) : void 0,
4803
+ startDateTime: data?.startDateTime ? new Date(data.startDateTime) : undefined,
4667
4804
  type: data.type,
4668
4805
  ...data.type === "DAILY_CHECKIN" && {
4669
4806
  seventhDayBonusAmount: parseDecimal(data.seventhDayBonusAmount, 0),
@@ -5023,7 +5160,7 @@ var Sdk = class {
5023
5160
  btag: input.btag,
5024
5161
  domain: input.domain,
5025
5162
  password: await sha256(input.password),
5026
- mobileNumber: input.mobileNumber ? addAreaCode(input.mobileNumber, await this.locale) : void 0
5163
+ mobileNumber: input.mobileNumber ? addAreaCode(input.mobileNumber, await this.locale) : undefined
5027
5164
  },
5028
5165
  reCAPTCHAResponse: input.reCAPTCHAResponse
5029
5166
  });
@@ -5053,11 +5190,11 @@ var Sdk = class {
5053
5190
  id,
5054
5191
  data: {
5055
5192
  ...others,
5056
- password: password ? await sha256(password) : void 0,
5057
- transactionPassword: transactionPassword ? await sha256(transactionPassword) : void 0,
5058
- mobileNumber: mobileNumber ? addAreaCode(mobileNumber, await this.locale) : void 0,
5059
- secretAnswer: secretAnswer ? await sha256(secretAnswer) : void 0,
5060
- birthDay: dateOfBirth ? typeof dateOfBirth === "string" ? dateOfBirth : this.formatYmd(dateOfBirth) : void 0
5193
+ password: password ? await sha256(password) : undefined,
5194
+ transactionPassword: transactionPassword ? await sha256(transactionPassword) : undefined,
5195
+ mobileNumber: mobileNumber ? addAreaCode(mobileNumber, await this.locale) : undefined,
5196
+ secretAnswer: secretAnswer ? await sha256(secretAnswer) : undefined,
5197
+ birthDay: dateOfBirth ? typeof dateOfBirth === "string" ? dateOfBirth : this.formatYmd(dateOfBirth) : undefined
5061
5198
  }
5062
5199
  }
5063
5200
  });
@@ -5176,7 +5313,7 @@ var Sdk = class {
5176
5313
  cursor
5177
5314
  })),
5178
5315
  totalCount: res.data.totalCount,
5179
- endCursor: res.data.pageInfo.endCursor ?? void 0,
5316
+ endCursor: res.data.pageInfo.endCursor ?? undefined,
5180
5317
  hasNextPage: res.data.pageInfo.hasNextPage
5181
5318
  }
5182
5319
  };
@@ -5247,6 +5384,17 @@ var Sdk = class {
5247
5384
  });
5248
5385
  if (!res.ok) return res;
5249
5386
  }
5387
+ if (input.type === "MANUAL_UPI") {
5388
+ const res = await this.walletService.createManualUpiWithdrawal({
5389
+ input: {
5390
+ id,
5391
+ amount: input.amount.toString(),
5392
+ upiId: input.upiId
5393
+ },
5394
+ reCAPTCHAResponse: input.reCAPTCHAResponse
5395
+ });
5396
+ if (!res.ok) return res;
5397
+ }
5250
5398
  return { ok: true, data: { id } };
5251
5399
  }
5252
5400
  async withdrawalRecords(input) {
@@ -5260,7 +5408,7 @@ var Sdk = class {
5260
5408
  cursor
5261
5409
  })),
5262
5410
  totalCount: res.data.totalCount,
5263
- endCursor: res.data.pageInfo.endCursor ?? void 0,
5411
+ endCursor: res.data.pageInfo.endCursor ?? undefined,
5264
5412
  hasNextPage: res.data.pageInfo.hasNextPage
5265
5413
  }
5266
5414
  };
@@ -5338,6 +5486,30 @@ var Sdk = class {
5338
5486
  });
5339
5487
  if (!res.ok) return res;
5340
5488
  }
5489
+ if (input.type === "MANUAL_UPI") {
5490
+ const res = await this.walletService.createManualUpiDeposit({
5491
+ input: {
5492
+ id,
5493
+ amount: input.amount.toString(),
5494
+ reference: input.reference,
5495
+ promo: input.promo
5496
+ },
5497
+ reCAPTCHAResponse: input.reCAPTCHAResponse
5498
+ });
5499
+ if (!res.ok) return res;
5500
+ }
5501
+ if (input.type === "MANUAL_BANK") {
5502
+ const res = await this.walletService.createManualBankDeposit({
5503
+ input: {
5504
+ id,
5505
+ amount: input.amount.toString(),
5506
+ referenceImage: input.referenceId,
5507
+ promo: input.promo
5508
+ },
5509
+ reCAPTCHAResponse: input.reCAPTCHAResponse
5510
+ });
5511
+ if (!res.ok) return res;
5512
+ }
5341
5513
  return { ok: true, data: { id } };
5342
5514
  }
5343
5515
  async deposit(id) {
@@ -5359,7 +5531,7 @@ var Sdk = class {
5359
5531
  cursor
5360
5532
  })),
5361
5533
  totalCount: res.data.totalCount,
5362
- endCursor: res.data.pageInfo.endCursor ?? void 0,
5534
+ endCursor: res.data.pageInfo.endCursor ?? undefined,
5363
5535
  hasNextPage: res.data.pageInfo.hasNextPage
5364
5536
  }
5365
5537
  };
@@ -5416,7 +5588,7 @@ var Sdk = class {
5416
5588
  data: {
5417
5589
  betRecords: [],
5418
5590
  totalCount: 0,
5419
- endCursor: void 0,
5591
+ endCursor: undefined,
5420
5592
  hasNextPage: false
5421
5593
  }
5422
5594
  };
@@ -5443,7 +5615,7 @@ var Sdk = class {
5443
5615
  };
5444
5616
  }),
5445
5617
  totalCount: res0.data.totalCount,
5446
- endCursor: res0.data.pageInfo.endCursor ?? void 0,
5618
+ endCursor: res0.data.pageInfo.endCursor ?? undefined,
5447
5619
  hasNextPage: res0.data.pageInfo.hasNextPage
5448
5620
  }
5449
5621
  };
@@ -5493,7 +5665,7 @@ var Sdk = class {
5493
5665
  cursor
5494
5666
  })),
5495
5667
  totalCount: res.data.totalCount,
5496
- endCursor: res.data.pageInfo.endCursor ?? void 0,
5668
+ endCursor: res.data.pageInfo.endCursor ?? undefined,
5497
5669
  hasNextPage: res.data.pageInfo.hasNextPage
5498
5670
  }
5499
5671
  };
@@ -5583,7 +5755,7 @@ var Sdk = class {
5583
5755
  })),
5584
5756
  totalCount: res.data.totalCount,
5585
5757
  hasNextPage: res.data.pageInfo.hasNextPage,
5586
- endCursor: res.data.pageInfo.endCursor ?? void 0
5758
+ endCursor: res.data.pageInfo.endCursor ?? undefined
5587
5759
  }
5588
5760
  };
5589
5761
  }
@@ -5599,7 +5771,7 @@ var Sdk = class {
5599
5771
  })),
5600
5772
  totalCount: res.data.totalCount,
5601
5773
  hasNextPage: res.data.pageInfo.hasNextPage,
5602
- endCursor: res.data.pageInfo.endCursor ?? void 0
5774
+ endCursor: res.data.pageInfo.endCursor ?? undefined
5603
5775
  }
5604
5776
  };
5605
5777
  }
@@ -5614,7 +5786,7 @@ var Sdk = class {
5614
5786
  games: [],
5615
5787
  totalCount: 0,
5616
5788
  hasNextPage: false,
5617
- endCursor: void 0
5789
+ endCursor: undefined
5618
5790
  }
5619
5791
  };
5620
5792
  }
@@ -5637,7 +5809,7 @@ var Sdk = class {
5637
5809
  })),
5638
5810
  totalCount: res1.data.totalCount,
5639
5811
  hasNextPage: res1.data.pageInfo.hasNextPage,
5640
- endCursor: res1.data.pageInfo.endCursor ?? void 0
5812
+ endCursor: res1.data.pageInfo.endCursor ?? undefined
5641
5813
  }
5642
5814
  };
5643
5815
  }
@@ -5764,7 +5936,7 @@ var Sdk = class {
5764
5936
  })),
5765
5937
  totalCount: res.data.totalCount,
5766
5938
  hasNextPage: res.data.pageInfo.hasNextPage,
5767
- endCursor: res.data.pageInfo.endCursor ?? void 0
5939
+ endCursor: res.data.pageInfo.endCursor ?? undefined
5768
5940
  }
5769
5941
  };
5770
5942
  }
@@ -5785,7 +5957,7 @@ var Sdk = class {
5785
5957
  })),
5786
5958
  totalCount: res.data.totalCount,
5787
5959
  hasNextPage: res.data.pageInfo.hasNextPage,
5788
- endCursor: res.data.pageInfo.endCursor ?? void 0
5960
+ endCursor: res.data.pageInfo.endCursor ?? undefined
5789
5961
  }
5790
5962
  };
5791
5963
  }
@@ -5817,7 +5989,7 @@ var Sdk = class {
5817
5989
  })),
5818
5990
  totalCount: res.data.totalCount,
5819
5991
  hasNextPage: res.data.pageInfo.hasNextPage,
5820
- endCursor: res.data.pageInfo.endCursor ?? void 0
5992
+ endCursor: res.data.pageInfo.endCursor ?? undefined
5821
5993
  }
5822
5994
  };
5823
5995
  }
@@ -5870,7 +6042,7 @@ var Sdk = class {
5870
6042
  })),
5871
6043
  totalCount: res.data.totalCount,
5872
6044
  hasNextPage: res.data.pageInfo.hasNextPage,
5873
- endCursor: res.data.pageInfo.endCursor ?? void 0
6045
+ endCursor: res.data.pageInfo.endCursor ?? undefined
5874
6046
  }
5875
6047
  };
5876
6048
  }
@@ -6004,5 +6176,5 @@ Object.defineProperty(exports, "ObjectId", {
6004
6176
  });
6005
6177
  exports.ObjectType = ObjectType;
6006
6178
  exports.Sdk = Sdk;
6007
- //# sourceMappingURL=out.js.map
6179
+ //# sourceMappingURL=index.cjs.map
6008
6180
  //# sourceMappingURL=index.cjs.map