@gofynd/fdk-client-javascript 1.0.2 → 1.0.3
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/documentation/application/CART.md +5934 -4502
- package/documentation/application/CATALOG.md +6338 -7245
- package/documentation/application/COMMON.md +95 -222
- package/documentation/application/COMMUNICATION.md +106 -186
- package/documentation/application/CONFIGURATION.md +903 -1597
- package/documentation/application/CONTENT.md +557 -1279
- package/documentation/application/FILESTORAGE.md +84 -220
- package/documentation/application/LEAD.md +314 -660
- package/documentation/application/LOGISTIC.md +229 -305
- package/documentation/application/ORDER.md +642 -1137
- package/documentation/application/PAYMENT.md +2285 -3031
- package/documentation/application/POSCART.md +6079 -4642
- package/documentation/application/REWARDS.md +94 -248
- package/documentation/application/SHARE.md +152 -250
- package/documentation/application/THEME.md +952 -1235
- package/documentation/application/USER.md +1228 -1765
- package/documentation/platform/ANALYTICS.md +207 -349
- package/documentation/platform/AUDITTRAIL.md +121 -204
- package/documentation/platform/BILLING.md +865 -1376
- package/documentation/platform/CART.md +2814 -3662
- package/documentation/platform/CATALOG.md +14453 -17192
- package/documentation/platform/COMMON.md +95 -222
- package/documentation/platform/COMMUNICATION.md +1632 -2380
- package/documentation/platform/COMPANYPROFILE.md +572 -957
- package/documentation/platform/CONFIGURATION.md +3050 -4073
- package/documentation/platform/CONTENT.md +3438 -4172
- package/documentation/platform/DISCOUNT.md +140 -236
- package/documentation/platform/FILESTORAGE.md +187 -323
- package/documentation/platform/INVENTORY.md +268 -911
- package/documentation/platform/LEAD.md +2195 -2541
- package/documentation/platform/ORDER.md +3400 -5361
- package/documentation/platform/PARTNER.md +9 -36
- package/documentation/platform/PAYMENT.md +903 -1213
- package/documentation/platform/REWARDS.md +183 -347
- package/documentation/platform/SHARE.md +120 -213
- package/documentation/platform/THEME.md +12956 -13239
- package/documentation/platform/USER.md +975 -1120
- package/documentation/platform/WEBHOOK.md +78 -184
- package/documentation/public/CONFIGURATION.md +95 -222
- package/documentation/public/INVENTORY.md +100 -282
- package/documentation/public/WEBHOOK.md +27 -133
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +567 -567
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +489 -886
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1036 -1036
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +38 -38
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +26 -26
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +330 -330
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +191 -191
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +467 -884
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +59 -59
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +100 -100
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -43
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +232 -232
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +352 -656
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +739 -739
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +617 -617
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +112 -112
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +84 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +31 -31
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +581 -581
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +168 -168
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +41 -41
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +534 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +484 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -24
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +212 -212
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7965 -7885
- package/sdk/platform/PlatformClient.js +8672 -10105
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +38 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +113 -113
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
## Rewards Methods
|
|
9
9
|
Earn and redeem reward points
|
|
10
10
|
|
|
11
|
-
* [showGiveaways](#showgiveaways)
|
|
12
|
-
* [saveGiveAway](#savegiveaway)
|
|
13
|
-
* [getGiveawayById](#getgiveawaybyid)
|
|
14
|
-
* [updateGiveAway](#updategiveaway)
|
|
15
11
|
* [getGiveawayAudienceStatus](#getgiveawayaudiencestatus)
|
|
16
|
-
* [
|
|
12
|
+
* [getGiveawayById](#getgiveawaybyid)
|
|
17
13
|
* [getOfferByName](#getofferbyname)
|
|
14
|
+
* [getRewardsConfiguration](#getrewardsconfiguration)
|
|
15
|
+
* [getUserPointsHistory](#getuserpointshistory)
|
|
16
|
+
* [saveGiveAway](#savegiveaway)
|
|
17
|
+
* [setRewardsConfiguration](#setrewardsconfiguration)
|
|
18
|
+
* [showGiveaways](#showgiveaways)
|
|
19
|
+
* [showOffers](#showoffers)
|
|
20
|
+
* [updateGiveAway](#updategiveaway)
|
|
18
21
|
* [updateOfferByName](#updateofferbyname)
|
|
19
22
|
* [updateUserStatus](#updateuserstatus)
|
|
20
23
|
* [user](#user)
|
|
21
|
-
* [getUserPointsHistory](#getuserpointshistory)
|
|
22
|
-
* [getRewardsConfiguration](#getrewardsconfiguration)
|
|
23
|
-
* [setRewardsConfiguration](#setrewardsconfiguration)
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -29,19 +29,17 @@ Earn and redeem reward points
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
###
|
|
33
|
-
|
|
32
|
+
### getGiveawayAudienceStatus
|
|
33
|
+
Get the Giveaway audience status
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
```javascript
|
|
38
38
|
// Promise
|
|
39
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
40
|
-
pageSize : value });
|
|
39
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getGiveawayAudienceStatus({ audienceId : value });
|
|
41
40
|
|
|
42
41
|
// Async/Await
|
|
43
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
44
|
-
pageSize : value });
|
|
42
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayAudienceStatus({ audienceId : value });
|
|
45
43
|
```
|
|
46
44
|
|
|
47
45
|
|
|
@@ -50,21 +48,20 @@ const data = await client.application("<APPLICATION_ID>").rewards.showGiveaways(
|
|
|
50
48
|
|
|
51
49
|
| Argument | Type | Required | Description |
|
|
52
50
|
| --------- | ----- | -------- | ----------- |
|
|
53
|
-
|
|
|
54
|
-
| pageSize | number | yes | pagination page size |
|
|
51
|
+
| audienceId | string | yes | audience id |
|
|
55
52
|
|
|
56
53
|
|
|
57
54
|
|
|
58
|
-
|
|
55
|
+
Get giveaway audience status
|
|
59
56
|
|
|
60
57
|
*Returned Response:*
|
|
61
58
|
|
|
62
59
|
|
|
63
60
|
|
|
64
61
|
|
|
65
|
-
[
|
|
62
|
+
[GiveawayAudience](#GiveawayAudience)
|
|
66
63
|
|
|
67
|
-
|
|
64
|
+
Success
|
|
68
65
|
|
|
69
66
|
|
|
70
67
|
|
|
@@ -88,17 +85,17 @@ ok
|
|
|
88
85
|
---
|
|
89
86
|
|
|
90
87
|
|
|
91
|
-
###
|
|
92
|
-
|
|
88
|
+
### getGiveawayById
|
|
89
|
+
Get giveaway by ID.
|
|
93
90
|
|
|
94
91
|
|
|
95
92
|
|
|
96
93
|
```javascript
|
|
97
94
|
// Promise
|
|
98
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
95
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getGiveawayById({ id : value });
|
|
99
96
|
|
|
100
97
|
// Async/Await
|
|
101
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
98
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayById({ id : value });
|
|
102
99
|
```
|
|
103
100
|
|
|
104
101
|
|
|
@@ -106,11 +103,12 @@ const data = await client.application("<APPLICATION_ID>").rewards.saveGiveAway({
|
|
|
106
103
|
|
|
107
104
|
|
|
108
105
|
| Argument | Type | Required | Description |
|
|
109
|
-
| --------- | ----- | -------- | ----------- |
|
|
110
|
-
|
|
|
106
|
+
| --------- | ----- | -------- | ----------- |
|
|
107
|
+
| id | string | yes | Giveaway ID |
|
|
111
108
|
|
|
112
109
|
|
|
113
|
-
|
|
110
|
+
|
|
111
|
+
Get giveaway by ID.
|
|
114
112
|
|
|
115
113
|
*Returned Response:*
|
|
116
114
|
|
|
@@ -143,17 +141,19 @@ ok
|
|
|
143
141
|
---
|
|
144
142
|
|
|
145
143
|
|
|
146
|
-
###
|
|
147
|
-
Get
|
|
144
|
+
### getOfferByName
|
|
145
|
+
Get offer by name
|
|
148
146
|
|
|
149
147
|
|
|
150
148
|
|
|
151
149
|
```javascript
|
|
152
150
|
// Promise
|
|
153
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
151
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getOfferByName({ name : value,
|
|
152
|
+
cookie : value });
|
|
154
153
|
|
|
155
154
|
// Async/Await
|
|
156
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
155
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getOfferByName({ name : value,
|
|
156
|
+
cookie : value });
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
|
|
@@ -162,20 +162,21 @@ const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayByI
|
|
|
162
162
|
|
|
163
163
|
| Argument | Type | Required | Description |
|
|
164
164
|
| --------- | ----- | -------- | ----------- |
|
|
165
|
-
|
|
|
165
|
+
| name | string | yes | The name given to the offer. |
|
|
166
|
+
| cookie | string | yes | User's session cookie. This cookie is set in browser cookie when logged-in to fynd's authentication system i.e. `Grimlock` or by using grimlock-backend SDK for backend implementation. |
|
|
166
167
|
|
|
167
168
|
|
|
168
169
|
|
|
169
|
-
|
|
170
|
+
Use this API to get the offer details and configuration by entering the name of the offer.
|
|
170
171
|
|
|
171
172
|
*Returned Response:*
|
|
172
173
|
|
|
173
174
|
|
|
174
175
|
|
|
175
176
|
|
|
176
|
-
[
|
|
177
|
+
[Offer](#Offer)
|
|
177
178
|
|
|
178
|
-
|
|
179
|
+
Success. Check example below or refer `Offer` for more details.
|
|
179
180
|
|
|
180
181
|
|
|
181
182
|
|
|
@@ -199,41 +200,34 @@ ok
|
|
|
199
200
|
---
|
|
200
201
|
|
|
201
202
|
|
|
202
|
-
###
|
|
203
|
-
|
|
203
|
+
### getRewardsConfiguration
|
|
204
|
+
Get all valid android paths
|
|
204
205
|
|
|
205
206
|
|
|
206
207
|
|
|
207
208
|
```javascript
|
|
208
209
|
// Promise
|
|
209
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
210
|
-
body : value });
|
|
210
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getRewardsConfiguration();
|
|
211
211
|
|
|
212
212
|
// Async/Await
|
|
213
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
214
|
-
body : value });
|
|
213
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getRewardsConfiguration();
|
|
215
214
|
```
|
|
216
215
|
|
|
217
216
|
|
|
218
217
|
|
|
219
218
|
|
|
220
219
|
|
|
221
|
-
| Argument | Type | Required | Description |
|
|
222
|
-
| --------- | ----- | -------- | ----------- |
|
|
223
|
-
| id | string | yes | Giveaway ID |
|
|
224
|
-
| body | [Giveaway](#Giveaway) | yes | Request body |
|
|
225
|
-
|
|
226
220
|
|
|
227
|
-
|
|
221
|
+
Use this API to get a list of valid android paths required by the Rewards INIT API to validate a fradualent device.
|
|
228
222
|
|
|
229
223
|
*Returned Response:*
|
|
230
224
|
|
|
231
225
|
|
|
232
226
|
|
|
233
227
|
|
|
234
|
-
[
|
|
228
|
+
[ConfigurationRes](#ConfigurationRes)
|
|
235
229
|
|
|
236
|
-
|
|
230
|
+
Success. Refer `ConfigurationRes` for more details.
|
|
237
231
|
|
|
238
232
|
|
|
239
233
|
|
|
@@ -257,17 +251,21 @@ ok
|
|
|
257
251
|
---
|
|
258
252
|
|
|
259
253
|
|
|
260
|
-
###
|
|
261
|
-
Get
|
|
254
|
+
### getUserPointsHistory
|
|
255
|
+
Get all transactions of reward points
|
|
262
256
|
|
|
263
257
|
|
|
264
258
|
|
|
265
259
|
```javascript
|
|
266
260
|
// Promise
|
|
267
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
261
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getUserPointsHistory({ userId : value,
|
|
262
|
+
pageId : value,
|
|
263
|
+
pageSize : value });
|
|
268
264
|
|
|
269
265
|
// Async/Await
|
|
270
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
266
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getUserPointsHistory({ userId : value,
|
|
267
|
+
pageId : value,
|
|
268
|
+
pageSize : value });
|
|
271
269
|
```
|
|
272
270
|
|
|
273
271
|
|
|
@@ -276,20 +274,22 @@ const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayAud
|
|
|
276
274
|
|
|
277
275
|
| Argument | Type | Required | Description |
|
|
278
276
|
| --------- | ----- | -------- | ----------- |
|
|
279
|
-
|
|
|
277
|
+
| userId | string | yes | user id |
|
|
278
|
+
| pageId | string | no | PageID is the ID of the requested page. For first request it should be kept empty. |
|
|
279
|
+
| pageSize | number | no | The number of items to retrieve in each page. |
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
|
|
283
|
-
|
|
283
|
+
Use this API to get a list of points transactions.
|
|
284
284
|
|
|
285
285
|
*Returned Response:*
|
|
286
286
|
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
|
|
290
|
-
[
|
|
290
|
+
[HistoryRes](#HistoryRes)
|
|
291
291
|
|
|
292
|
-
Success
|
|
292
|
+
Success. Check example below or refer `HistoryRes` for more details.
|
|
293
293
|
|
|
294
294
|
|
|
295
295
|
|
|
@@ -313,32 +313,36 @@ Success
|
|
|
313
313
|
---
|
|
314
314
|
|
|
315
315
|
|
|
316
|
-
###
|
|
317
|
-
List of
|
|
316
|
+
### saveGiveAway
|
|
317
|
+
List of giveaways of the current application.
|
|
318
318
|
|
|
319
319
|
|
|
320
320
|
|
|
321
321
|
```javascript
|
|
322
322
|
// Promise
|
|
323
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
323
|
+
const promise = client.application("<APPLICATION_ID>").rewards.saveGiveAway({ body : value });
|
|
324
324
|
|
|
325
325
|
// Async/Await
|
|
326
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
326
|
+
const data = await client.application("<APPLICATION_ID>").rewards.saveGiveAway({ body : value });
|
|
327
327
|
```
|
|
328
328
|
|
|
329
329
|
|
|
330
330
|
|
|
331
331
|
|
|
332
332
|
|
|
333
|
+
| Argument | Type | Required | Description |
|
|
334
|
+
| --------- | ----- | -------- | ----------- |
|
|
335
|
+
| body | [Giveaway](#Giveaway) | yes | Request body |
|
|
333
336
|
|
|
334
|
-
|
|
337
|
+
|
|
338
|
+
Adds a new giveaway.
|
|
335
339
|
|
|
336
340
|
*Returned Response:*
|
|
337
341
|
|
|
338
342
|
|
|
339
343
|
|
|
340
344
|
|
|
341
|
-
[
|
|
345
|
+
[Giveaway](#Giveaway)
|
|
342
346
|
|
|
343
347
|
ok
|
|
344
348
|
|
|
@@ -364,19 +368,17 @@ ok
|
|
|
364
368
|
---
|
|
365
369
|
|
|
366
370
|
|
|
367
|
-
###
|
|
368
|
-
|
|
371
|
+
### setRewardsConfiguration
|
|
372
|
+
Updates the collection with given android paths.
|
|
369
373
|
|
|
370
374
|
|
|
371
375
|
|
|
372
376
|
```javascript
|
|
373
377
|
// Promise
|
|
374
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
375
|
-
cookie : value });
|
|
378
|
+
const promise = client.application("<APPLICATION_ID>").rewards.setRewardsConfiguration({ body : value });
|
|
376
379
|
|
|
377
380
|
// Async/Await
|
|
378
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
379
|
-
cookie : value });
|
|
381
|
+
const data = await client.application("<APPLICATION_ID>").rewards.setRewardsConfiguration({ body : value });
|
|
380
382
|
```
|
|
381
383
|
|
|
382
384
|
|
|
@@ -384,22 +386,20 @@ const data = await client.application("<APPLICATION_ID>").rewards.getOfferByName
|
|
|
384
386
|
|
|
385
387
|
|
|
386
388
|
| Argument | Type | Required | Description |
|
|
387
|
-
| --------- | ----- | -------- | ----------- |
|
|
388
|
-
|
|
|
389
|
-
| cookie | string | yes | User's session cookie. This cookie is set in browser cookie when logged-in to fynd's authentication system i.e. `Grimlock` or by using grimlock-backend SDK for backend implementation. |
|
|
390
|
-
|
|
389
|
+
| --------- | ----- | -------- | ----------- |
|
|
390
|
+
| body | [ConfigurationRequest](#ConfigurationRequest) | yes | Request body |
|
|
391
391
|
|
|
392
392
|
|
|
393
|
-
|
|
393
|
+
Updates the configuration or inserts new records.
|
|
394
394
|
|
|
395
395
|
*Returned Response:*
|
|
396
396
|
|
|
397
397
|
|
|
398
398
|
|
|
399
399
|
|
|
400
|
-
[
|
|
400
|
+
[SetConfigurationRes](#SetConfigurationRes)
|
|
401
401
|
|
|
402
|
-
|
|
402
|
+
ok
|
|
403
403
|
|
|
404
404
|
|
|
405
405
|
|
|
@@ -423,19 +423,19 @@ Success. Check example below or refer `Offer` for more details.
|
|
|
423
423
|
---
|
|
424
424
|
|
|
425
425
|
|
|
426
|
-
###
|
|
427
|
-
|
|
426
|
+
### showGiveaways
|
|
427
|
+
List of giveaways of the current application.
|
|
428
428
|
|
|
429
429
|
|
|
430
430
|
|
|
431
431
|
```javascript
|
|
432
432
|
// Promise
|
|
433
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
434
|
-
|
|
433
|
+
const promise = client.application("<APPLICATION_ID>").rewards.showGiveaways({ pageId : value,
|
|
434
|
+
pageSize : value });
|
|
435
435
|
|
|
436
436
|
// Async/Await
|
|
437
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
438
|
-
|
|
437
|
+
const data = await client.application("<APPLICATION_ID>").rewards.showGiveaways({ pageId : value,
|
|
438
|
+
pageSize : value });
|
|
439
439
|
```
|
|
440
440
|
|
|
441
441
|
|
|
@@ -444,20 +444,21 @@ const data = await client.application("<APPLICATION_ID>").rewards.updateOfferByN
|
|
|
444
444
|
|
|
445
445
|
| Argument | Type | Required | Description |
|
|
446
446
|
| --------- | ----- | -------- | ----------- |
|
|
447
|
-
|
|
|
448
|
-
|
|
|
447
|
+
| pageId | string | yes | pagination page id |
|
|
448
|
+
| pageSize | number | yes | pagination page size |
|
|
449
449
|
|
|
450
450
|
|
|
451
|
-
|
|
451
|
+
|
|
452
|
+
List of giveaways of the current application.
|
|
452
453
|
|
|
453
454
|
*Returned Response:*
|
|
454
455
|
|
|
455
456
|
|
|
456
457
|
|
|
457
458
|
|
|
458
|
-
[
|
|
459
|
+
[GiveawayResponse](#GiveawayResponse)
|
|
459
460
|
|
|
460
|
-
|
|
461
|
+
ok
|
|
461
462
|
|
|
462
463
|
|
|
463
464
|
|
|
@@ -481,41 +482,34 @@ Success. Check example below or refer `Offer` for more details.
|
|
|
481
482
|
---
|
|
482
483
|
|
|
483
484
|
|
|
484
|
-
###
|
|
485
|
-
|
|
485
|
+
### showOffers
|
|
486
|
+
List of offers of the current application.
|
|
486
487
|
|
|
487
488
|
|
|
488
489
|
|
|
489
490
|
```javascript
|
|
490
491
|
// Promise
|
|
491
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
492
|
-
body : value });
|
|
492
|
+
const promise = client.application("<APPLICATION_ID>").rewards.showOffers();
|
|
493
493
|
|
|
494
494
|
// Async/Await
|
|
495
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
496
|
-
body : value });
|
|
495
|
+
const data = await client.application("<APPLICATION_ID>").rewards.showOffers();
|
|
497
496
|
```
|
|
498
497
|
|
|
499
498
|
|
|
500
499
|
|
|
501
500
|
|
|
502
501
|
|
|
503
|
-
| Argument | Type | Required | Description |
|
|
504
|
-
| --------- | ----- | -------- | ----------- |
|
|
505
|
-
| userId | string | yes | user id |
|
|
506
|
-
| body | [AppUser](#AppUser) | yes | Request body |
|
|
507
502
|
|
|
508
|
-
|
|
509
|
-
Use this API to update the user status active/archive
|
|
503
|
+
List of offers of the current application.
|
|
510
504
|
|
|
511
505
|
*Returned Response:*
|
|
512
506
|
|
|
513
507
|
|
|
514
508
|
|
|
515
509
|
|
|
516
|
-
[
|
|
510
|
+
[Array<Offer>](#Array<Offer>)
|
|
517
511
|
|
|
518
|
-
|
|
512
|
+
ok
|
|
519
513
|
|
|
520
514
|
|
|
521
515
|
|
|
@@ -539,17 +533,19 @@ Success
|
|
|
539
533
|
---
|
|
540
534
|
|
|
541
535
|
|
|
542
|
-
###
|
|
543
|
-
|
|
536
|
+
### updateGiveAway
|
|
537
|
+
Updates the giveaway by it's ID.
|
|
544
538
|
|
|
545
539
|
|
|
546
540
|
|
|
547
541
|
```javascript
|
|
548
542
|
// Promise
|
|
549
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
543
|
+
const promise = client.application("<APPLICATION_ID>").rewards.updateGiveAway({ id : value,
|
|
544
|
+
body : value });
|
|
550
545
|
|
|
551
546
|
// Async/Await
|
|
552
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
547
|
+
const data = await client.application("<APPLICATION_ID>").rewards.updateGiveAway({ id : value,
|
|
548
|
+
body : value });
|
|
553
549
|
```
|
|
554
550
|
|
|
555
551
|
|
|
@@ -558,20 +554,20 @@ const data = await client.application("<APPLICATION_ID>").rewards.user({ userId
|
|
|
558
554
|
|
|
559
555
|
| Argument | Type | Required | Description |
|
|
560
556
|
| --------- | ----- | -------- | ----------- |
|
|
561
|
-
|
|
|
562
|
-
|
|
557
|
+
| id | string | yes | Giveaway ID |
|
|
558
|
+
| body | [Giveaway](#Giveaway) | yes | Request body |
|
|
563
559
|
|
|
564
560
|
|
|
565
|
-
|
|
561
|
+
Updates the giveaway by it's ID.
|
|
566
562
|
|
|
567
563
|
*Returned Response:*
|
|
568
564
|
|
|
569
565
|
|
|
570
566
|
|
|
571
567
|
|
|
572
|
-
[
|
|
568
|
+
[Giveaway](#Giveaway)
|
|
573
569
|
|
|
574
|
-
|
|
570
|
+
ok
|
|
575
571
|
|
|
576
572
|
|
|
577
573
|
|
|
@@ -595,21 +591,19 @@ Success. Check example below or refer `UserRes` for more details.
|
|
|
595
591
|
---
|
|
596
592
|
|
|
597
593
|
|
|
598
|
-
###
|
|
599
|
-
|
|
594
|
+
### updateOfferByName
|
|
595
|
+
Update offer by name
|
|
600
596
|
|
|
601
597
|
|
|
602
598
|
|
|
603
599
|
```javascript
|
|
604
600
|
// Promise
|
|
605
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
606
|
-
|
|
607
|
-
pageSize : value });
|
|
601
|
+
const promise = client.application("<APPLICATION_ID>").rewards.updateOfferByName({ name : value,
|
|
602
|
+
body : value });
|
|
608
603
|
|
|
609
604
|
// Async/Await
|
|
610
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
611
|
-
|
|
612
|
-
pageSize : value });
|
|
605
|
+
const data = await client.application("<APPLICATION_ID>").rewards.updateOfferByName({ name : value,
|
|
606
|
+
body : value });
|
|
613
607
|
```
|
|
614
608
|
|
|
615
609
|
|
|
@@ -618,22 +612,20 @@ const data = await client.application("<APPLICATION_ID>").rewards.getUserPointsH
|
|
|
618
612
|
|
|
619
613
|
| Argument | Type | Required | Description |
|
|
620
614
|
| --------- | ----- | -------- | ----------- |
|
|
621
|
-
|
|
|
622
|
-
|
|
|
623
|
-
| pageSize | number | no | The number of items to retrieve in each page. |
|
|
624
|
-
|
|
615
|
+
| name | string | yes | The name given to the offer. |
|
|
616
|
+
| body | [Offer](#Offer) | yes | Request body |
|
|
625
617
|
|
|
626
618
|
|
|
627
|
-
Use this API to
|
|
619
|
+
Use this API to update the offer details
|
|
628
620
|
|
|
629
621
|
*Returned Response:*
|
|
630
622
|
|
|
631
623
|
|
|
632
624
|
|
|
633
625
|
|
|
634
|
-
[
|
|
626
|
+
[Offer](#Offer)
|
|
635
627
|
|
|
636
|
-
Success. Check example below or refer `
|
|
628
|
+
Success. Check example below or refer `Offer` for more details.
|
|
637
629
|
|
|
638
630
|
|
|
639
631
|
|
|
@@ -657,34 +649,41 @@ Success. Check example below or refer `HistoryRes` for more details.
|
|
|
657
649
|
---
|
|
658
650
|
|
|
659
651
|
|
|
660
|
-
###
|
|
661
|
-
|
|
652
|
+
### updateUserStatus
|
|
653
|
+
Update user status
|
|
662
654
|
|
|
663
655
|
|
|
664
656
|
|
|
665
657
|
```javascript
|
|
666
658
|
// Promise
|
|
667
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
659
|
+
const promise = client.application("<APPLICATION_ID>").rewards.updateUserStatus({ userId : value,
|
|
660
|
+
body : value });
|
|
668
661
|
|
|
669
662
|
// Async/Await
|
|
670
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
663
|
+
const data = await client.application("<APPLICATION_ID>").rewards.updateUserStatus({ userId : value,
|
|
664
|
+
body : value });
|
|
671
665
|
```
|
|
672
666
|
|
|
673
667
|
|
|
674
668
|
|
|
675
669
|
|
|
676
670
|
|
|
671
|
+
| Argument | Type | Required | Description |
|
|
672
|
+
| --------- | ----- | -------- | ----------- |
|
|
673
|
+
| userId | string | yes | user id |
|
|
674
|
+
| body | [AppUser](#AppUser) | yes | Request body |
|
|
677
675
|
|
|
678
|
-
|
|
676
|
+
|
|
677
|
+
Use this API to update the user status active/archive
|
|
679
678
|
|
|
680
679
|
*Returned Response:*
|
|
681
680
|
|
|
682
681
|
|
|
683
682
|
|
|
684
683
|
|
|
685
|
-
[
|
|
684
|
+
[AppUser](#AppUser)
|
|
686
685
|
|
|
687
|
-
Success
|
|
686
|
+
Success
|
|
688
687
|
|
|
689
688
|
|
|
690
689
|
|
|
@@ -708,17 +707,17 @@ Success. Refer `ConfigurationRes` for more details.
|
|
|
708
707
|
---
|
|
709
708
|
|
|
710
709
|
|
|
711
|
-
###
|
|
712
|
-
|
|
710
|
+
### user
|
|
711
|
+
Get user reward details
|
|
713
712
|
|
|
714
713
|
|
|
715
714
|
|
|
716
715
|
```javascript
|
|
717
716
|
// Promise
|
|
718
|
-
const promise = client.application("<APPLICATION_ID>").rewards.
|
|
717
|
+
const promise = client.application("<APPLICATION_ID>").rewards.user({ userId : value });
|
|
719
718
|
|
|
720
719
|
// Async/Await
|
|
721
|
-
const data = await client.application("<APPLICATION_ID>").rewards.
|
|
720
|
+
const data = await client.application("<APPLICATION_ID>").rewards.user({ userId : value });
|
|
722
721
|
```
|
|
723
722
|
|
|
724
723
|
|
|
@@ -726,20 +725,21 @@ const data = await client.application("<APPLICATION_ID>").rewards.setRewardsConf
|
|
|
726
725
|
|
|
727
726
|
|
|
728
727
|
| Argument | Type | Required | Description |
|
|
729
|
-
| --------- | ----- | -------- | ----------- |
|
|
730
|
-
|
|
|
728
|
+
| --------- | ----- | -------- | ----------- |
|
|
729
|
+
| userId | string | yes | user id |
|
|
731
730
|
|
|
732
731
|
|
|
733
|
-
|
|
732
|
+
|
|
733
|
+
Use this API to get the user reward details
|
|
734
734
|
|
|
735
735
|
*Returned Response:*
|
|
736
736
|
|
|
737
737
|
|
|
738
738
|
|
|
739
739
|
|
|
740
|
-
[
|
|
740
|
+
[UserRes](#UserRes)
|
|
741
741
|
|
|
742
|
-
|
|
742
|
+
Success. Check example below or refer `UserRes` for more details.
|
|
743
743
|
|
|
744
744
|
|
|
745
745
|
|
|
@@ -766,315 +766,151 @@ ok
|
|
|
766
766
|
|
|
767
767
|
### Schemas
|
|
768
768
|
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
#### [E](#E)
|
|
769
|
+
|
|
770
|
+
#### [AppUser](#AppUser)
|
|
772
771
|
|
|
773
772
|
| Properties | Type | Nullable | Description |
|
|
774
|
-
| ---------- | ---- | -------- | ----------- |
|
|
775
|
-
| code | number | no | |
|
|
776
|
-
| exception | string | no | |
|
|
777
|
-
| info | string | no | |
|
|
778
|
-
| message | string | no | |
|
|
773
|
+
| ---------- | ---- | -------- | ----------- || _id | string | no | || active | boolean | no | || application_id | string | no | || block_reason | string | no | || updated_at | string | no | || updated_by | string | no | || user_id | string | no | |
|
|
779
774
|
|
|
780
775
|
---
|
|
781
776
|
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
#### [GiveawayResponse](#GiveawayResponse)
|
|
777
|
+
#### [Asset](#Asset)
|
|
786
778
|
|
|
787
779
|
| Properties | Type | Nullable | Description |
|
|
788
|
-
| ---------- | ---- | -------- | ----------- |
|
|
789
|
-
| items | [[Giveaway](#Giveaway)] | no | |
|
|
790
|
-
| page | [Page](#Page) | no | |
|
|
780
|
+
| ---------- | ---- | -------- | ----------- || aspect_ratio | string | no | || id | string | no | || secure_url | string | no | |
|
|
791
781
|
|
|
792
782
|
---
|
|
793
783
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
#### [Giveaway](#Giveaway)
|
|
784
|
+
#### [ConfigurationRequest](#ConfigurationRequest)
|
|
798
785
|
|
|
799
786
|
| Properties | Type | Nullable | Description |
|
|
800
|
-
| ---------- | ---- | -------- | ----------- |
|
|
801
|
-
| _id | string | no | |
|
|
802
|
-
| _schedule | [Schedule](#Schedule) | no | |
|
|
803
|
-
| active | boolean | no | |
|
|
804
|
-
| application_id | string | no | |
|
|
805
|
-
| audience | [RewardsAudience](#RewardsAudience) | no | |
|
|
806
|
-
| banner_image | [Asset](#Asset) | no | |
|
|
807
|
-
| created_at | string | no | |
|
|
808
|
-
| description | string | no | |
|
|
809
|
-
| name | string | no | |
|
|
810
|
-
| rule | [RewardsRule](#RewardsRule) | no | |
|
|
811
|
-
| title | string | no | |
|
|
812
|
-
| updated_at | string | no | |
|
|
787
|
+
| ---------- | ---- | -------- | ----------- || terms_conditions_link | string | no | || valid_android_packages | [string] | no | |
|
|
813
788
|
|
|
814
789
|
---
|
|
815
790
|
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
#### [Schedule](#Schedule)
|
|
791
|
+
#### [ConfigurationRes](#ConfigurationRes)
|
|
820
792
|
|
|
821
793
|
| Properties | Type | Nullable | Description |
|
|
822
|
-
| ---------- | ---- | -------- | ----------- |
|
|
823
|
-
| duration | number | no | |
|
|
824
|
-
| end | string | no | |
|
|
825
|
-
| start | string | no | |
|
|
826
|
-
| cron | string | no | |
|
|
794
|
+
| ---------- | ---- | -------- | ----------- || application_id | string | no | || success | boolean | no | || terms_conditions_link | string | no | || valid_android_packages | [string] | no | |
|
|
827
795
|
|
|
828
796
|
---
|
|
829
797
|
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
#### [RewardsAudience](#RewardsAudience)
|
|
798
|
+
#### [E](#E)
|
|
834
799
|
|
|
835
800
|
| Properties | Type | Nullable | Description |
|
|
836
|
-
| ---------- | ---- | -------- | ----------- |
|
|
837
|
-
| header_user_id | string | no | |
|
|
838
|
-
| id | string | no | |
|
|
801
|
+
| ---------- | ---- | -------- | ----------- || code | number | no | || exception | string | no | || info | string | no | || message | string | no | |
|
|
839
802
|
|
|
840
803
|
---
|
|
841
804
|
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
#### [Asset](#Asset)
|
|
805
|
+
#### [Giveaway](#Giveaway)
|
|
846
806
|
|
|
847
807
|
| Properties | Type | Nullable | Description |
|
|
848
|
-
| ---------- | ---- | -------- | ----------- |
|
|
849
|
-
| aspect_ratio | string | no | |
|
|
850
|
-
| id | string | no | |
|
|
851
|
-
| secure_url | string | no | |
|
|
808
|
+
| ---------- | ---- | -------- | ----------- || _id | string | no | || _schedule | [Schedule](#Schedule) | no | || active | boolean | no | || application_id | string | no | || audience | [RewardsAudience](#RewardsAudience) | no | || banner_image | [Asset](#Asset) | no | || created_at | string | no | || description | string | no | || name | string | no | || rule | [RewardsRule](#RewardsRule) | no | || title | string | no | || updated_at | string | no | |
|
|
852
809
|
|
|
853
810
|
---
|
|
854
811
|
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
#### [RewardsRule](#RewardsRule)
|
|
812
|
+
#### [GiveawayAudience](#GiveawayAudience)
|
|
859
813
|
|
|
860
814
|
| Properties | Type | Nullable | Description |
|
|
861
|
-
| ---------- | ---- | -------- | ----------- |
|
|
862
|
-
| amount | number | no | |
|
|
815
|
+
| ---------- | ---- | -------- | ----------- || audience_id | string | no | || current_count | number | no | |
|
|
863
816
|
|
|
864
817
|
---
|
|
865
818
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
#### [Page](#Page)
|
|
819
|
+
#### [GiveawayResponse](#GiveawayResponse)
|
|
870
820
|
|
|
871
821
|
| Properties | Type | Nullable | Description |
|
|
872
|
-
| ---------- | ---- | -------- | ----------- |
|
|
873
|
-
| current | number | no | |
|
|
874
|
-
| has_next | boolean | no | |
|
|
875
|
-
| has_previous | boolean | no | |
|
|
876
|
-
| item_total | number | no | |
|
|
877
|
-
| next_id | string | no | |
|
|
878
|
-
| size | number | no | |
|
|
879
|
-
| type | string | yes | |
|
|
822
|
+
| ---------- | ---- | -------- | ----------- || items | [[Giveaway](#Giveaway)] | no | || page | [Page](#Page) | no | |
|
|
880
823
|
|
|
881
824
|
---
|
|
882
825
|
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
#### [Offer](#Offer)
|
|
826
|
+
#### [HistoryRes](#HistoryRes)
|
|
887
827
|
|
|
888
828
|
| Properties | Type | Nullable | Description |
|
|
889
|
-
| ---------- | ---- | -------- | ----------- |
|
|
890
|
-
| _schedule | [Schedule](#Schedule) | no | |
|
|
891
|
-
| active | boolean | no | |
|
|
892
|
-
| application_id | string | no | |
|
|
893
|
-
| banner_image | [Asset](#Asset) | no | |
|
|
894
|
-
| created_at | string | no | |
|
|
895
|
-
| name | string | no | |
|
|
896
|
-
| rule | string | no | |
|
|
897
|
-
| share | [ShareMessages](#ShareMessages) | no | |
|
|
898
|
-
| sub_text | string | no | |
|
|
899
|
-
| text | string | no | |
|
|
900
|
-
| type | string | no | |
|
|
901
|
-
| updated_at | string | no | |
|
|
902
|
-
| updated_by | string | no | |
|
|
903
|
-
| url | string | no | |
|
|
829
|
+
| ---------- | ---- | -------- | ----------- || items | [[PointsHistory](#PointsHistory)] | no | || page | [Page](#Page) | no | || points | number | no | |
|
|
904
830
|
|
|
905
831
|
---
|
|
906
832
|
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
#### [ShareMessages](#ShareMessages)
|
|
833
|
+
#### [Offer](#Offer)
|
|
911
834
|
|
|
912
835
|
| Properties | Type | Nullable | Description |
|
|
913
|
-
| ---------- | ---- | -------- | ----------- |
|
|
914
|
-
| email | number | no | |
|
|
915
|
-
| facebook | string | no | |
|
|
916
|
-
| fallback | string | no | |
|
|
917
|
-
| message | string | no | |
|
|
918
|
-
| messenger | string | no | |
|
|
919
|
-
| sms | string | no | |
|
|
920
|
-
| text | string | no | |
|
|
921
|
-
| twitter | string | no | |
|
|
922
|
-
| whatsapp | string | no | |
|
|
836
|
+
| ---------- | ---- | -------- | ----------- || _schedule | [Schedule](#Schedule) | no | || active | boolean | no | || application_id | string | no | || banner_image | [Asset](#Asset) | no | || created_at | string | no | || name | string | no | || rule | string | no | || share | [ShareMessages](#ShareMessages) | no | || sub_text | string | no | || text | string | no | || type | string | no | || updated_at | string | no | || updated_by | string | no | || url | string | no | |
|
|
923
837
|
|
|
924
838
|
---
|
|
925
839
|
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
#### [UserRes](#UserRes)
|
|
840
|
+
#### [Page](#Page)
|
|
930
841
|
|
|
931
842
|
| Properties | Type | Nullable | Description |
|
|
932
|
-
| ---------- | ---- | -------- | ----------- |
|
|
933
|
-
| points | [Points](#Points) | no | |
|
|
934
|
-
| user | [RewardUser](#RewardUser) | no | |
|
|
843
|
+
| ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || has_previous | boolean | no | || item_total | number | no | || next_id | string | no | || size | number | no | || type | string | yes | |
|
|
935
844
|
|
|
936
845
|
---
|
|
937
846
|
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
#### [Points](#Points)
|
|
847
|
+
#### [Points](#Points)
|
|
942
848
|
|
|
943
849
|
| Properties | Type | Nullable | Description |
|
|
944
|
-
| ---------- | ---- | -------- | ----------- |
|
|
945
|
-
| available | number | no | |
|
|
850
|
+
| ---------- | ---- | -------- | ----------- || available | number | no | |
|
|
946
851
|
|
|
947
852
|
---
|
|
948
853
|
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
#### [RewardUser](#RewardUser)
|
|
854
|
+
#### [PointsHistory](#PointsHistory)
|
|
953
855
|
|
|
954
856
|
| Properties | Type | Nullable | Description |
|
|
955
|
-
| ---------- | ---- | -------- | ----------- |
|
|
956
|
-
| _id | string | no | |
|
|
957
|
-
| active | boolean | no | |
|
|
958
|
-
| created_at | string | no | |
|
|
959
|
-
| referral | [Referral](#Referral) | no | |
|
|
960
|
-
| uid | number | no | |
|
|
961
|
-
| updated_at | string | no | |
|
|
962
|
-
| user_block_reason | string | no | |
|
|
963
|
-
| user_id | string | no | |
|
|
857
|
+
| ---------- | ---- | -------- | ----------- || _id | string | no | || application_id | string | no | || claimed | boolean | no | || created_at | string | no | || expires_on | string | no | || meta | string | no | || points | number | no | || remaining_points | number | no | || text_1 | string | no | || text_2 | string | no | || text_3 | string | no | || txn_name | string | no | || updated_at | string | no | || user_id | string | no | |
|
|
964
858
|
|
|
965
859
|
---
|
|
966
860
|
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
#### [Referral](#Referral)
|
|
861
|
+
#### [Referral](#Referral)
|
|
971
862
|
|
|
972
863
|
| Properties | Type | Nullable | Description |
|
|
973
|
-
| ---------- | ---- | -------- | ----------- |
|
|
974
|
-
| code | string | no | |
|
|
864
|
+
| ---------- | ---- | -------- | ----------- || code | string | no | |
|
|
975
865
|
|
|
976
866
|
---
|
|
977
867
|
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
#### [AppUser](#AppUser)
|
|
868
|
+
#### [RewardsAudience](#RewardsAudience)
|
|
982
869
|
|
|
983
870
|
| Properties | Type | Nullable | Description |
|
|
984
|
-
| ---------- | ---- | -------- | ----------- |
|
|
985
|
-
| _id | string | no | |
|
|
986
|
-
| active | boolean | no | |
|
|
987
|
-
| application_id | string | no | |
|
|
988
|
-
| block_reason | string | no | |
|
|
989
|
-
| updated_at | string | no | |
|
|
990
|
-
| updated_by | string | no | |
|
|
991
|
-
| user_id | string | no | |
|
|
871
|
+
| ---------- | ---- | -------- | ----------- || header_user_id | string | no | || id | string | no | |
|
|
992
872
|
|
|
993
873
|
---
|
|
994
874
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
#### [GiveawayAudience](#GiveawayAudience)
|
|
875
|
+
#### [RewardsRule](#RewardsRule)
|
|
999
876
|
|
|
1000
877
|
| Properties | Type | Nullable | Description |
|
|
1001
|
-
| ---------- | ---- | -------- | ----------- |
|
|
1002
|
-
| audience_id | string | no | |
|
|
1003
|
-
| current_count | number | no | |
|
|
878
|
+
| ---------- | ---- | -------- | ----------- || amount | number | no | |
|
|
1004
879
|
|
|
1005
880
|
---
|
|
1006
881
|
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
#### [HistoryRes](#HistoryRes)
|
|
882
|
+
#### [RewardUser](#RewardUser)
|
|
1011
883
|
|
|
1012
884
|
| Properties | Type | Nullable | Description |
|
|
1013
|
-
| ---------- | ---- | -------- | ----------- |
|
|
1014
|
-
| items | [[PointsHistory](#PointsHistory)] | no | History is the list of points transaction. |
|
|
1015
|
-
| page | [Page](#Page) | no | |
|
|
1016
|
-
| points | number | no | |
|
|
885
|
+
| ---------- | ---- | -------- | ----------- || _id | string | no | || active | boolean | no | || created_at | string | no | || referral | [Referral](#Referral) | no | || uid | number | no | || updated_at | string | no | || user_block_reason | string | no | || user_id | string | no | |
|
|
1017
886
|
|
|
1018
887
|
---
|
|
1019
888
|
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
#### [PointsHistory](#PointsHistory)
|
|
889
|
+
#### [Schedule](#Schedule)
|
|
1024
890
|
|
|
1025
891
|
| Properties | Type | Nullable | Description |
|
|
1026
|
-
| ---------- | ---- | -------- | ----------- |
|
|
1027
|
-
| _id | string | no | |
|
|
1028
|
-
| application_id | string | no | |
|
|
1029
|
-
| claimed | boolean | no | |
|
|
1030
|
-
| created_at | string | no | |
|
|
1031
|
-
| expires_on | string | no | |
|
|
1032
|
-
| meta | string | no | |
|
|
1033
|
-
| points | number | no | |
|
|
1034
|
-
| remaining_points | number | no | |
|
|
1035
|
-
| text_1 | string | no | |
|
|
1036
|
-
| text_2 | string | no | |
|
|
1037
|
-
| text_3 | string | no | |
|
|
1038
|
-
| txn_name | string | no | |
|
|
1039
|
-
| updated_at | string | no | |
|
|
1040
|
-
| user_id | string | no | |
|
|
892
|
+
| ---------- | ---- | -------- | ----------- || cron | string | no | || duration | number | no | || end | string | no | || start | string | no | |
|
|
1041
893
|
|
|
1042
894
|
---
|
|
1043
895
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
#### [ConfigurationRes](#ConfigurationRes)
|
|
896
|
+
#### [SetConfigurationRes](#SetConfigurationRes)
|
|
1048
897
|
|
|
1049
898
|
| Properties | Type | Nullable | Description |
|
|
1050
|
-
| ---------- | ---- | -------- | ----------- |
|
|
1051
|
-
| valid_android_packages | [string] | no | Contains array of string items, Valid android package names. |
|
|
1052
|
-
| terms_conditions_link | string | no | A URL that redirects to the referral information suport page link |
|
|
1053
|
-
| application_id | string | no | |
|
|
1054
|
-
| success | boolean | no | |
|
|
899
|
+
| ---------- | ---- | -------- | ----------- || success | boolean | no | |
|
|
1055
900
|
|
|
1056
901
|
---
|
|
1057
902
|
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
#### [SetConfigurationRes](#SetConfigurationRes)
|
|
903
|
+
#### [ShareMessages](#ShareMessages)
|
|
1062
904
|
|
|
1063
905
|
| Properties | Type | Nullable | Description |
|
|
1064
|
-
| ---------- | ---- | -------- | ----------- |
|
|
1065
|
-
| success | boolean | no | |
|
|
906
|
+
| ---------- | ---- | -------- | ----------- || email | number | no | || facebook | string | no | || fallback | string | no | || message | string | no | || messenger | string | no | || sms | string | no | || text | string | no | || twitter | string | no | || whatsapp | string | no | |
|
|
1066
907
|
|
|
1067
908
|
---
|
|
1068
909
|
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
#### [ConfigurationRequest](#ConfigurationRequest)
|
|
910
|
+
#### [UserRes](#UserRes)
|
|
1073
911
|
|
|
1074
912
|
| Properties | Type | Nullable | Description |
|
|
1075
|
-
| ---------- | ---- | -------- | ----------- |
|
|
1076
|
-
| valid_android_packages | [string] | no | |
|
|
1077
|
-
| terms_conditions_link | string | no | |
|
|
913
|
+
| ---------- | ---- | -------- | ----------- || points | [Points](#Points) | no | || user | [RewardUser](#RewardUser) | no | |
|
|
1078
914
|
|
|
1079
915
|
---
|
|
1080
916
|
|