@opexa/portal-sdk 0.59.19 → 0.59.21

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
@@ -3125,6 +3125,20 @@ var UNREGISTER_FCM_DEVICE = gql`
3125
3125
  unregisterFCMDevice(input: $input)
3126
3126
  }
3127
3127
  `;
3128
+ var LINK_FIREBASE_CLOUD_MESSAGING_DEVICE = gql`
3129
+ mutation LinkFirebaseCloudMessagingDevice(
3130
+ $input: LinkFirebaseCloudMessagingDeviceInput!
3131
+ ) {
3132
+ linkFirebaseCloudMessagingDevice(input: $input)
3133
+ }
3134
+ `;
3135
+ var UNLINK_FIREBASE_CLOUD_MESSAGING_DEVICE = gql`
3136
+ mutation UnlinkFirebaseCloudMessagingDevice(
3137
+ $input: UnlinkFirebaseCloudMessagingDeviceInput!
3138
+ ) {
3139
+ unlinkFirebaseCloudMessagingDevice(input: $input)
3140
+ }
3141
+ `;
3128
3142
  var MARK_GAME_AS_FAVORITE = gql`
3129
3143
  mutation MarkGameAsFavorite($input: MarkGameAsFavoriteInput!) {
3130
3144
  markGameAsFavorite(input: $input)
@@ -5101,6 +5115,38 @@ var TriggerService = class {
5101
5115
  ok: true
5102
5116
  };
5103
5117
  }
5118
+ async linkFirebaseCloudMessagingDevice(variables) {
5119
+ const res = await this.client.request(LINK_FIREBASE_CLOUD_MESSAGING_DEVICE, variables);
5120
+ if (!res.ok) return res;
5121
+ if (!res.data.linkFirebaseCloudMessagingDevice) {
5122
+ return {
5123
+ ok: false,
5124
+ error: {
5125
+ name: "UnknownError",
5126
+ message: "Something went wrong."
5127
+ }
5128
+ };
5129
+ }
5130
+ return {
5131
+ ok: true
5132
+ };
5133
+ }
5134
+ async unlinkFirebaseCloudMessagingDevice(variables) {
5135
+ const res = await this.client.request(UNLINK_FIREBASE_CLOUD_MESSAGING_DEVICE, variables);
5136
+ if (!res.ok) return res;
5137
+ if (!res.data.unlinkFirebaseCloudMessagingDevice) {
5138
+ return {
5139
+ ok: false,
5140
+ error: {
5141
+ name: "UnknownError",
5142
+ message: "Something went wrong."
5143
+ }
5144
+ };
5145
+ }
5146
+ return {
5147
+ ok: true
5148
+ };
5149
+ }
5104
5150
  };
5105
5151
 
5106
5152
  // src/services/wallet.service.ts
@@ -11378,6 +11424,16 @@ var Sdk = class {
11378
11424
  async unregisterFCMDevice(input) {
11379
11425
  return await this.triggerService.unregisterFCMDevice({ input });
11380
11426
  }
11427
+ async linkFirebaseCloudMessagingDevice(input) {
11428
+ return await this.triggerService.linkFirebaseCloudMessagingDevice({
11429
+ input
11430
+ });
11431
+ }
11432
+ async unlinkFirebaseCloudMessagingDevice(input) {
11433
+ return await this.triggerService.unlinkFirebaseCloudMessagingDevice({
11434
+ input
11435
+ });
11436
+ }
11381
11437
  /*
11382
11438
  *=============================================
11383
11439
  * THIRD PARTY