@opexa/portal-sdk 0.59.18 → 0.59.20
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/README.md +1634 -1634
- package/dist/index.cjs +64 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +64 -2
- package/dist/index.js.map +1 -1
- package/package.json +14 -10
package/dist/index.cjs
CHANGED
|
@@ -143,7 +143,10 @@ var MEMBER_REBATES_QUERY = gql`
|
|
|
143
143
|
id
|
|
144
144
|
rebateProgram {
|
|
145
145
|
id
|
|
146
|
-
banner
|
|
146
|
+
banner {
|
|
147
|
+
id
|
|
148
|
+
url
|
|
149
|
+
}
|
|
147
150
|
description
|
|
148
151
|
name
|
|
149
152
|
}
|
|
@@ -3122,6 +3125,20 @@ var UNREGISTER_FCM_DEVICE = gql`
|
|
|
3122
3125
|
unregisterFCMDevice(input: $input)
|
|
3123
3126
|
}
|
|
3124
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
|
+
`;
|
|
3125
3142
|
var MARK_GAME_AS_FAVORITE = gql`
|
|
3126
3143
|
mutation MarkGameAsFavorite($input: MarkGameAsFavoriteInput!) {
|
|
3127
3144
|
markGameAsFavorite(input: $input)
|
|
@@ -5098,6 +5115,38 @@ var TriggerService = class {
|
|
|
5098
5115
|
ok: true
|
|
5099
5116
|
};
|
|
5100
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
|
+
}
|
|
5101
5150
|
};
|
|
5102
5151
|
|
|
5103
5152
|
// src/services/wallet.service.ts
|
|
@@ -8664,7 +8713,10 @@ var Transformer = class {
|
|
|
8664
8713
|
id: data.id,
|
|
8665
8714
|
rebateProgram: {
|
|
8666
8715
|
id: data.rebateProgram.id,
|
|
8667
|
-
banner: data.rebateProgram.banner
|
|
8716
|
+
banner: data.rebateProgram.banner ? {
|
|
8717
|
+
id: data.rebateProgram.banner.id,
|
|
8718
|
+
url: data.rebateProgram.banner.url ?? void 0
|
|
8719
|
+
} : void 0,
|
|
8668
8720
|
description: data.rebateProgram.description,
|
|
8669
8721
|
name: data.rebateProgram.name
|
|
8670
8722
|
},
|
|
@@ -11372,6 +11424,16 @@ var Sdk = class {
|
|
|
11372
11424
|
async unregisterFCMDevice(input) {
|
|
11373
11425
|
return await this.triggerService.unregisterFCMDevice({ input });
|
|
11374
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
|
+
}
|
|
11375
11437
|
/*
|
|
11376
11438
|
*=============================================
|
|
11377
11439
|
* THIRD PARTY
|