@gofynd/fdk-client-javascript 1.0.1 → 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 +562 -1270
- 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 +15266 -17619
- 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 +3509 -4121
- 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 +3750 -5636
- 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/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +1058 -547
- 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 +1545 -949
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
- 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 +76 -36
- 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 +92 -31
- 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 +638 -312
- 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 +581 -213
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
- package/sdk/application/Content/ContentApplicationModel.js +468 -875
- 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 +121 -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 +230 -96
- 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 +196 -47
- 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 +86 -86
- package/sdk/application/Order/OrderApplicationClient.js +448 -215
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +357 -661
- 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 +1525 -750
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
- 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 +1137 -606
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
- package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
- 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 +253 -113
- 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 +221 -96
- 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 +115 -37
- 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 +1201 -543
- 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 +55 -47
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
- 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 +68 -56
- package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
- 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 +176 -159
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
- package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
- package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
- package/sdk/platform/Common/CommonPlatformClient.js +80 -37
- 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 +333 -293
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
- 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 +542 -461
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
- package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
- package/sdk/platform/Content/ContentPlatformModel.js +486 -867
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
- package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
- 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 +26 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
- 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 +76 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
- 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 +84 -71
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
- package/sdk/platform/Lead/LeadPlatformClient.js +434 -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/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
- package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
- package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
- package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
- package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
- package/sdk/platform/PlatformApplicationClient.js +1584 -13691
- package/sdk/platform/PlatformClient.d.ts +7918 -7666
- package/sdk/platform/PlatformClient.js +8701 -9926
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
- 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 +16 -12
- package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
- 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 +148 -124
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
- 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 +146 -67
- package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
- 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 +35 -29
- package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
- 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 +81 -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 +228 -105
- 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/WebhookPublicClient.js +51 -10
- 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
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
export = ConfigurationValidator;
|
|
2
2
|
declare class ConfigurationValidator {
|
|
3
|
-
static
|
|
4
|
-
static
|
|
5
|
-
static getPreviousVersions(): any;
|
|
6
|
-
static getAppFeatures(): any;
|
|
7
|
-
static updateAppFeatures(): any;
|
|
8
|
-
static getAppBasicDetails(): any;
|
|
9
|
-
static updateAppBasicDetails(): any;
|
|
10
|
-
static getAppContactInfo(): any;
|
|
11
|
-
static updateAppContactInfo(): any;
|
|
3
|
+
static addDomain(): any;
|
|
4
|
+
static changeDomainType(): any;
|
|
12
5
|
static getAppApiTokens(): any;
|
|
13
|
-
static
|
|
6
|
+
static getAppBasicDetails(): any;
|
|
14
7
|
static getAppCompanies(): any;
|
|
15
|
-
static
|
|
16
|
-
static getInventoryConfig(): any;
|
|
17
|
-
static updateInventoryConfig(): any;
|
|
18
|
-
static partiallyUpdateInventoryConfig(): any;
|
|
8
|
+
static getAppContactInfo(): any;
|
|
19
9
|
static getAppCurrencyConfig(): any;
|
|
20
|
-
static
|
|
10
|
+
static getAppFeatures(): any;
|
|
11
|
+
static getAppStores(): any;
|
|
21
12
|
static getAppSupportedCurrency(): any;
|
|
13
|
+
static getApplicationById(): any;
|
|
14
|
+
static getBuildConfig(): any;
|
|
15
|
+
static getDomainStatus(): any;
|
|
16
|
+
static getDomains(): any;
|
|
17
|
+
static getInventoryConfig(): any;
|
|
22
18
|
static getOrderingStoresByFilter(): any;
|
|
23
|
-
static
|
|
19
|
+
static getPreviousVersions(): any;
|
|
24
20
|
static getStaffOrderingStores(): any;
|
|
25
|
-
static
|
|
26
|
-
static
|
|
21
|
+
static modifyAppFeatures(): any;
|
|
22
|
+
static partiallyUpdateInventoryConfig(): any;
|
|
27
23
|
static removeDomainById(): any;
|
|
28
|
-
static
|
|
29
|
-
static
|
|
30
|
-
static
|
|
24
|
+
static updateAppApiTokens(): any;
|
|
25
|
+
static updateAppBasicDetails(): any;
|
|
26
|
+
static updateAppContactInfo(): any;
|
|
27
|
+
static updateAppCurrencyConfig(): any;
|
|
28
|
+
static updateAppFeatures(): any;
|
|
29
|
+
static updateBuildConfig(): any;
|
|
30
|
+
static updateInventoryConfig(): any;
|
|
31
|
+
static updateOrderingStoreConfig(): any;
|
|
31
32
|
}
|
|
@@ -2,42 +2,31 @@ const Joi = require("joi");
|
|
|
2
2
|
const ConfigurationModel = require("./ConfigurationPlatformModel");
|
|
3
3
|
|
|
4
4
|
class ConfigurationValidator {
|
|
5
|
-
static
|
|
6
|
-
return Joi.object({
|
|
7
|
-
platformType: Joi.string().allow("").required(),
|
|
8
|
-
}).required();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
static updateBuildConfig() {
|
|
5
|
+
static addDomain() {
|
|
12
6
|
return Joi.object({
|
|
13
|
-
|
|
14
|
-
body: ConfigurationModel.MobileAppConfigRequest().required(),
|
|
7
|
+
body: ConfigurationModel.DomainAddRequest().required(),
|
|
15
8
|
}).required();
|
|
16
9
|
}
|
|
17
10
|
|
|
18
|
-
static
|
|
11
|
+
static changeDomainType() {
|
|
19
12
|
return Joi.object({
|
|
20
|
-
|
|
13
|
+
body: ConfigurationModel.UpdateDomainTypeRequest().required(),
|
|
21
14
|
}).required();
|
|
22
15
|
}
|
|
23
16
|
|
|
24
|
-
static
|
|
17
|
+
static getAppApiTokens() {
|
|
25
18
|
return Joi.object({}).required();
|
|
26
19
|
}
|
|
27
20
|
|
|
28
|
-
static updateAppFeatures() {
|
|
29
|
-
return Joi.object({
|
|
30
|
-
body: ConfigurationModel.AppFeatureRequest().required(),
|
|
31
|
-
}).required();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
21
|
static getAppBasicDetails() {
|
|
35
22
|
return Joi.object({}).required();
|
|
36
23
|
}
|
|
37
24
|
|
|
38
|
-
static
|
|
25
|
+
static getAppCompanies() {
|
|
39
26
|
return Joi.object({
|
|
40
|
-
|
|
27
|
+
uid: Joi.number(),
|
|
28
|
+
pageNo: Joi.number(),
|
|
29
|
+
pageSize: Joi.number(),
|
|
41
30
|
}).required();
|
|
42
31
|
}
|
|
43
32
|
|
|
@@ -45,64 +34,46 @@ class ConfigurationValidator {
|
|
|
45
34
|
return Joi.object({}).required();
|
|
46
35
|
}
|
|
47
36
|
|
|
48
|
-
static
|
|
49
|
-
return Joi.object({
|
|
50
|
-
body: ConfigurationModel.ApplicationInformation().required(),
|
|
51
|
-
}).required();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static getAppApiTokens() {
|
|
37
|
+
static getAppCurrencyConfig() {
|
|
55
38
|
return Joi.object({}).required();
|
|
56
39
|
}
|
|
57
40
|
|
|
58
|
-
static
|
|
59
|
-
return Joi.object({
|
|
60
|
-
body: ConfigurationModel.TokenResponse().required(),
|
|
61
|
-
}).required();
|
|
41
|
+
static getAppFeatures() {
|
|
42
|
+
return Joi.object({}).required();
|
|
62
43
|
}
|
|
63
44
|
|
|
64
|
-
static
|
|
45
|
+
static getAppStores() {
|
|
65
46
|
return Joi.object({
|
|
66
|
-
uid: Joi.number(),
|
|
67
47
|
pageNo: Joi.number(),
|
|
68
48
|
pageSize: Joi.number(),
|
|
69
49
|
}).required();
|
|
70
50
|
}
|
|
71
51
|
|
|
72
|
-
static
|
|
73
|
-
return Joi.object({
|
|
74
|
-
pageNo: Joi.number(),
|
|
75
|
-
pageSize: Joi.number(),
|
|
76
|
-
}).required();
|
|
52
|
+
static getAppSupportedCurrency() {
|
|
53
|
+
return Joi.object({}).required();
|
|
77
54
|
}
|
|
78
55
|
|
|
79
|
-
static
|
|
56
|
+
static getApplicationById() {
|
|
80
57
|
return Joi.object({}).required();
|
|
81
58
|
}
|
|
82
59
|
|
|
83
|
-
static
|
|
60
|
+
static getBuildConfig() {
|
|
84
61
|
return Joi.object({
|
|
85
|
-
|
|
62
|
+
platformType: Joi.string().allow("").required(),
|
|
86
63
|
}).required();
|
|
87
64
|
}
|
|
88
65
|
|
|
89
|
-
static
|
|
66
|
+
static getDomainStatus() {
|
|
90
67
|
return Joi.object({
|
|
91
|
-
body: ConfigurationModel.
|
|
68
|
+
body: ConfigurationModel.DomainStatusRequest().required(),
|
|
92
69
|
}).required();
|
|
93
70
|
}
|
|
94
71
|
|
|
95
|
-
static
|
|
72
|
+
static getDomains() {
|
|
96
73
|
return Joi.object({}).required();
|
|
97
74
|
}
|
|
98
75
|
|
|
99
|
-
static
|
|
100
|
-
return Joi.object({
|
|
101
|
-
body: ConfigurationModel.AppSupportedCurrency().required(),
|
|
102
|
-
}).required();
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
static getAppSupportedCurrency() {
|
|
76
|
+
static getInventoryConfig() {
|
|
106
77
|
return Joi.object({}).required();
|
|
107
78
|
}
|
|
108
79
|
|
|
@@ -114,9 +85,9 @@ class ConfigurationValidator {
|
|
|
114
85
|
}).required();
|
|
115
86
|
}
|
|
116
87
|
|
|
117
|
-
static
|
|
88
|
+
static getPreviousVersions() {
|
|
118
89
|
return Joi.object({
|
|
119
|
-
|
|
90
|
+
platformType: Joi.string().allow("").required(),
|
|
120
91
|
}).required();
|
|
121
92
|
}
|
|
122
93
|
|
|
@@ -128,13 +99,15 @@ class ConfigurationValidator {
|
|
|
128
99
|
}).required();
|
|
129
100
|
}
|
|
130
101
|
|
|
131
|
-
static
|
|
132
|
-
return Joi.object({
|
|
102
|
+
static modifyAppFeatures() {
|
|
103
|
+
return Joi.object({
|
|
104
|
+
body: ConfigurationModel.AppFeatureRequest().required(),
|
|
105
|
+
}).required();
|
|
133
106
|
}
|
|
134
107
|
|
|
135
|
-
static
|
|
108
|
+
static partiallyUpdateInventoryConfig() {
|
|
136
109
|
return Joi.object({
|
|
137
|
-
body: ConfigurationModel.
|
|
110
|
+
body: ConfigurationModel.AppInventoryPartialUpdate().required(),
|
|
138
111
|
}).required();
|
|
139
112
|
}
|
|
140
113
|
|
|
@@ -144,20 +117,53 @@ class ConfigurationValidator {
|
|
|
144
117
|
}).required();
|
|
145
118
|
}
|
|
146
119
|
|
|
147
|
-
static
|
|
120
|
+
static updateAppApiTokens() {
|
|
148
121
|
return Joi.object({
|
|
149
|
-
body: ConfigurationModel.
|
|
122
|
+
body: ConfigurationModel.TokenResponse().required(),
|
|
150
123
|
}).required();
|
|
151
124
|
}
|
|
152
125
|
|
|
153
|
-
static
|
|
126
|
+
static updateAppBasicDetails() {
|
|
154
127
|
return Joi.object({
|
|
155
|
-
body: ConfigurationModel.
|
|
128
|
+
body: ConfigurationModel.ApplicationDetail().required(),
|
|
156
129
|
}).required();
|
|
157
130
|
}
|
|
158
131
|
|
|
159
|
-
static
|
|
160
|
-
return Joi.object({
|
|
132
|
+
static updateAppContactInfo() {
|
|
133
|
+
return Joi.object({
|
|
134
|
+
body: ConfigurationModel.ApplicationInformation().required(),
|
|
135
|
+
}).required();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
static updateAppCurrencyConfig() {
|
|
139
|
+
return Joi.object({
|
|
140
|
+
body: ConfigurationModel.AppSupportedCurrency().required(),
|
|
141
|
+
}).required();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
static updateAppFeatures() {
|
|
145
|
+
return Joi.object({
|
|
146
|
+
body: ConfigurationModel.AppFeatureRequest().required(),
|
|
147
|
+
}).required();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
static updateBuildConfig() {
|
|
151
|
+
return Joi.object({
|
|
152
|
+
platformType: Joi.string().allow("").required(),
|
|
153
|
+
body: ConfigurationModel.MobileAppConfigRequest().required(),
|
|
154
|
+
}).required();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
static updateInventoryConfig() {
|
|
158
|
+
return Joi.object({
|
|
159
|
+
body: ConfigurationModel.ApplicationInventory().required(),
|
|
160
|
+
}).required();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
static updateOrderingStoreConfig() {
|
|
164
|
+
return Joi.object({
|
|
165
|
+
body: ConfigurationModel.OrderingStoreConfig().required(),
|
|
166
|
+
}).required();
|
|
161
167
|
}
|
|
162
168
|
}
|
|
163
169
|
|
|
@@ -5,17 +5,19 @@ declare class Configuration {
|
|
|
5
5
|
/**
|
|
6
6
|
* @param {Object} arg - Arg object.
|
|
7
7
|
* @param {CreateApplicationRequest} arg.body
|
|
8
|
+
* @returns {Promise<CreateAppResponse>} - Success response
|
|
8
9
|
* @summary: Create application
|
|
9
10
|
* @description: Create new application
|
|
10
11
|
*/
|
|
11
12
|
createApplication({ body }?: {
|
|
12
13
|
body: CreateApplicationRequest;
|
|
13
|
-
}): Promise<
|
|
14
|
+
}): Promise<CreateAppResponse>;
|
|
14
15
|
/**
|
|
15
16
|
* @param {Object} arg - Arg object.
|
|
16
17
|
* @param {number} [arg.pageNo] -
|
|
17
18
|
* @param {number} [arg.pageSize] -
|
|
18
19
|
* @param {string} [arg.q] - Url encoded object used as mongodb query
|
|
20
|
+
* @returns {Promise<ApplicationsResponse>} - Success response
|
|
19
21
|
* @summary: Get list of application under company
|
|
20
22
|
* @description: Get list of application under company
|
|
21
23
|
*/
|
|
@@ -23,7 +25,7 @@ declare class Configuration {
|
|
|
23
25
|
pageNo?: number;
|
|
24
26
|
pageSize?: number;
|
|
25
27
|
q?: string;
|
|
26
|
-
}): Promise<
|
|
28
|
+
}): Promise<ApplicationsResponse>;
|
|
27
29
|
/**
|
|
28
30
|
* @param {Object} arg - Arg object.
|
|
29
31
|
* @param {number} [arg.pageSize] -
|
|
@@ -35,41 +37,18 @@ declare class Configuration {
|
|
|
35
37
|
pageSize?: number;
|
|
36
38
|
q?: string;
|
|
37
39
|
}): Paginator;
|
|
38
|
-
/**
|
|
39
|
-
* @param {Object} arg - Arg object.
|
|
40
|
-
* @summary: Get all currencies
|
|
41
|
-
* @description: Get all currencies
|
|
42
|
-
*/
|
|
43
|
-
getCurrencies({}?: any): Promise<any>;
|
|
44
|
-
/**
|
|
45
|
-
* @param {Object} arg - Arg object.
|
|
46
|
-
* @param {DomainSuggestionsRequest} arg.body
|
|
47
|
-
* @summary: Check domain availibility before linking to application
|
|
48
|
-
* @description: Check domain availibility before linking to application. Also sends domain suggestions with similar to queried domain. \ Custom domain search is currently powered by GoDaddy provider.
|
|
49
|
-
*/
|
|
50
|
-
getDomainAvailibility({ body }?: {
|
|
51
|
-
body: DomainSuggestionsRequest;
|
|
52
|
-
}): Promise<any>;
|
|
53
|
-
/**
|
|
54
|
-
* @param {Object} arg - Arg object.
|
|
55
|
-
* @param {number} arg.id - Integration id
|
|
56
|
-
* @summary: Get integration data
|
|
57
|
-
* @description: Get integration data
|
|
58
|
-
*/
|
|
59
|
-
getIntegrationById({ id }?: {
|
|
60
|
-
id: number;
|
|
61
|
-
}): Promise<any>;
|
|
62
40
|
/**
|
|
63
41
|
* @param {Object} arg - Arg object.
|
|
64
42
|
* @param {number} [arg.pageNo] - Current page no
|
|
65
43
|
* @param {number} [arg.pageSize] - Current request items count
|
|
44
|
+
* @returns {Promise<GetIntegrationsOptInsResponse>} - Success response
|
|
66
45
|
* @summary: Get all available integration opt-ins
|
|
67
46
|
* @description: Get all available integration opt-ins
|
|
68
47
|
*/
|
|
69
48
|
getAvailableOptIns({ pageNo, pageSize }?: {
|
|
70
49
|
pageNo?: number;
|
|
71
50
|
pageSize?: number;
|
|
72
|
-
}): Promise<
|
|
51
|
+
}): Promise<GetIntegrationsOptInsResponse>;
|
|
73
52
|
/**
|
|
74
53
|
* @param {Object} arg - Arg object.
|
|
75
54
|
* @param {number} [arg.pageSize] - Current request items count
|
|
@@ -81,65 +60,72 @@ declare class Configuration {
|
|
|
81
60
|
}): Paginator;
|
|
82
61
|
/**
|
|
83
62
|
* @param {Object} arg - Arg object.
|
|
84
|
-
* @param {string} arg.
|
|
85
|
-
* @
|
|
63
|
+
* @param {string} [arg.q] - Search text for brand name
|
|
64
|
+
* @returns {Promise<BrandsByCompanyResponse>} - Success response
|
|
65
|
+
* @summary: Get brands by company
|
|
66
|
+
* @description: Get brands by company
|
|
67
|
+
*/
|
|
68
|
+
getBrandsByCompany({ q }?: {
|
|
69
|
+
q?: string;
|
|
70
|
+
}): Promise<BrandsByCompanyResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* @param {Object} arg - Arg object.
|
|
86
73
|
* @param {number} [arg.pageNo] - Current page no
|
|
87
74
|
* @param {number} [arg.pageSize] - Current request items count
|
|
88
|
-
* @
|
|
89
|
-
* @
|
|
75
|
+
* @param {CompanyByBrandsRequest} arg.body
|
|
76
|
+
* @returns {Promise<CompanyByBrandsResponse>} - Success response
|
|
77
|
+
* @summary: Get company by brand uids
|
|
78
|
+
* @description: Get company by brand uids
|
|
90
79
|
*/
|
|
91
|
-
|
|
92
|
-
level: string;
|
|
93
|
-
uid: number;
|
|
80
|
+
getCompanyByBrands({ body, pageNo, pageSize }?: {
|
|
94
81
|
pageNo?: number;
|
|
95
82
|
pageSize?: number;
|
|
96
|
-
|
|
83
|
+
body: CompanyByBrandsRequest;
|
|
84
|
+
}): Promise<CompanyByBrandsResponse>;
|
|
97
85
|
/**
|
|
98
86
|
* @param {Object} arg - Arg object.
|
|
99
|
-
* @param {string} arg.level - Integration level
|
|
100
|
-
* @param {number} arg.uid - Integration level uid
|
|
101
87
|
* @param {number} [arg.pageSize] - Current request items count
|
|
102
|
-
* @
|
|
103
|
-
* @
|
|
88
|
+
* @param {CompanyByBrandsRequest} arg.body
|
|
89
|
+
* @summary: Get company by brand uids
|
|
90
|
+
* @description: Get company by brand uids
|
|
104
91
|
*/
|
|
105
|
-
|
|
106
|
-
level: string;
|
|
107
|
-
uid: number;
|
|
92
|
+
getCompanyByBrandsPaginator({ pageSize, body }?: {
|
|
108
93
|
pageSize?: number;
|
|
94
|
+
body: CompanyByBrandsRequest;
|
|
109
95
|
}): Paginator;
|
|
110
96
|
/**
|
|
111
97
|
* @param {Object} arg - Arg object.
|
|
112
|
-
* @
|
|
113
|
-
* @
|
|
114
|
-
* @
|
|
115
|
-
* @param {boolean} [arg.checkPermission] - Filter on if permissions are present
|
|
116
|
-
* @summary: Get integration level config
|
|
117
|
-
* @description: Get integration/integration-opt-in level config
|
|
98
|
+
* @returns {Promise<CurrenciesResponse>} - Success response
|
|
99
|
+
* @summary: Get all currencies
|
|
100
|
+
* @description: Get all currencies
|
|
118
101
|
*/
|
|
119
|
-
|
|
120
|
-
id: string;
|
|
121
|
-
level: string;
|
|
122
|
-
opted?: boolean;
|
|
123
|
-
checkPermission?: boolean;
|
|
124
|
-
}): Promise<any>;
|
|
102
|
+
getCurrencies({}?: any): Promise<CurrenciesResponse>;
|
|
125
103
|
/**
|
|
126
104
|
* @param {Object} arg - Arg object.
|
|
127
|
-
* @param {
|
|
128
|
-
* @
|
|
129
|
-
* @
|
|
130
|
-
* @
|
|
131
|
-
* @description: Update a store level opt-in for integration
|
|
105
|
+
* @param {DomainSuggestionsRequest} arg.body
|
|
106
|
+
* @returns {Promise<DomainSuggestionsResponse>} - Success response
|
|
107
|
+
* @summary: Check domain availibility before linking to application
|
|
108
|
+
* @description: Check domain availibility before linking to application. Also sends domain suggestions with similar to queried domain. \ Custom domain search is currently powered by GoDaddy provider.
|
|
132
109
|
*/
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
110
|
+
getDomainAvailibility({ body }?: {
|
|
111
|
+
body: DomainSuggestionsRequest;
|
|
112
|
+
}): Promise<DomainSuggestionsResponse>;
|
|
113
|
+
/**
|
|
114
|
+
* @param {Object} arg - Arg object.
|
|
115
|
+
* @param {number} arg.id - Integration id
|
|
116
|
+
* @returns {Promise<Integration>} - Success response
|
|
117
|
+
* @summary: Get integration data
|
|
118
|
+
* @description: Get integration data
|
|
119
|
+
*/
|
|
120
|
+
getIntegrationById({ id }?: {
|
|
121
|
+
id: number;
|
|
122
|
+
}): Promise<Integration>;
|
|
138
123
|
/**
|
|
139
124
|
* @param {Object} arg - Arg object.
|
|
140
125
|
* @param {string} arg.id - Integration id
|
|
141
126
|
* @param {string} arg.level - Integration level
|
|
142
127
|
* @param {number} arg.uid - Integration level uid
|
|
128
|
+
* @returns {Promise<IntegrationLevel>} - Success response
|
|
143
129
|
* @summary: Get level data for integration
|
|
144
130
|
* @description: Get level data for integration
|
|
145
131
|
*/
|
|
@@ -147,27 +133,29 @@ declare class Configuration {
|
|
|
147
133
|
id: string;
|
|
148
134
|
level: string;
|
|
149
135
|
uid: number;
|
|
150
|
-
}): Promise<
|
|
136
|
+
}): Promise<IntegrationLevel>;
|
|
151
137
|
/**
|
|
152
138
|
* @param {Object} arg - Arg object.
|
|
153
139
|
* @param {string} arg.id - Integration id
|
|
154
140
|
* @param {string} arg.level - Integration level
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {
|
|
157
|
-
* @
|
|
158
|
-
* @
|
|
141
|
+
* @param {boolean} [arg.opted] - Filter on opted stores
|
|
142
|
+
* @param {boolean} [arg.checkPermission] - Filter on if permissions are present
|
|
143
|
+
* @returns {Promise<IntegrationConfigResponse>} - Success response
|
|
144
|
+
* @summary: Get integration level config
|
|
145
|
+
* @description: Get integration/integration-opt-in level config
|
|
159
146
|
*/
|
|
160
|
-
|
|
147
|
+
getIntegrationLevelConfig({ id, level, opted, checkPermission }?: {
|
|
161
148
|
id: string;
|
|
162
149
|
level: string;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}): Promise<
|
|
150
|
+
opted?: boolean;
|
|
151
|
+
checkPermission?: boolean;
|
|
152
|
+
}): Promise<IntegrationConfigResponse>;
|
|
166
153
|
/**
|
|
167
154
|
* @param {Object} arg - Arg object.
|
|
168
155
|
* @param {string} arg.id - Integration id
|
|
169
156
|
* @param {string} arg.level - Integration level
|
|
170
157
|
* @param {number} arg.uid - Integration level uid
|
|
158
|
+
* @returns {Promise<OptedStoreIntegration>} - Success response
|
|
171
159
|
* @summary: Check store has active integration
|
|
172
160
|
* @description: API checks if a store is already opted in any other integrations
|
|
173
161
|
*/
|
|
@@ -175,103 +163,133 @@ declare class Configuration {
|
|
|
175
163
|
id: string;
|
|
176
164
|
level: string;
|
|
177
165
|
uid: number;
|
|
178
|
-
}): Promise<
|
|
166
|
+
}): Promise<OptedStoreIntegration>;
|
|
179
167
|
/**
|
|
180
168
|
* @param {Object} arg - Arg object.
|
|
181
|
-
* @param {string}
|
|
182
|
-
* @
|
|
183
|
-
* @
|
|
169
|
+
* @param {string} arg.id - Application Id
|
|
170
|
+
* @returns {Promise<OptedApplicationResponse>} - Success response
|
|
171
|
+
* @summary: Get other seller applications
|
|
172
|
+
* @description: Get other seller application
|
|
184
173
|
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}): Promise<
|
|
174
|
+
getOtherSellerApplicationById({ id }?: {
|
|
175
|
+
id: string;
|
|
176
|
+
}): Promise<OptedApplicationResponse>;
|
|
188
177
|
/**
|
|
189
178
|
* @param {Object} arg - Arg object.
|
|
190
179
|
* @param {number} [arg.pageNo] - Current page no
|
|
191
180
|
* @param {number} [arg.pageSize] - Current request items count
|
|
192
|
-
* @
|
|
193
|
-
* @summary: Get
|
|
194
|
-
* @description: Get company
|
|
181
|
+
* @returns {Promise<OtherSellerApplications>} - Success response
|
|
182
|
+
* @summary: Get other seller applications
|
|
183
|
+
* @description: Get other seller applications who has opted current company as inventory
|
|
195
184
|
*/
|
|
196
|
-
|
|
185
|
+
getOtherSellerApplications({ pageNo, pageSize }?: {
|
|
197
186
|
pageNo?: number;
|
|
198
187
|
pageSize?: number;
|
|
199
|
-
|
|
200
|
-
}): Promise<any>;
|
|
188
|
+
}): Promise<OtherSellerApplications>;
|
|
201
189
|
/**
|
|
202
190
|
* @param {Object} arg - Arg object.
|
|
203
191
|
* @param {number} [arg.pageSize] - Current request items count
|
|
204
|
-
* @
|
|
205
|
-
* @
|
|
206
|
-
* @description: Get company by brand uids
|
|
192
|
+
* @summary: Get other seller applications
|
|
193
|
+
* @description: Get other seller applications who has opted current company as inventory
|
|
207
194
|
*/
|
|
208
|
-
|
|
195
|
+
getOtherSellerApplicationsPaginator({ pageSize }?: {
|
|
209
196
|
pageSize?: number;
|
|
210
|
-
body: CompanyByBrandsRequest;
|
|
211
197
|
}): Paginator;
|
|
212
198
|
/**
|
|
213
199
|
* @param {Object} arg - Arg object.
|
|
200
|
+
* @param {string} arg.level - Integration level
|
|
201
|
+
* @param {number} arg.uid - Integration level uid
|
|
214
202
|
* @param {number} [arg.pageNo] - Current page no
|
|
215
203
|
* @param {number} [arg.pageSize] - Current request items count
|
|
216
|
-
* @
|
|
217
|
-
* @summary: Get
|
|
218
|
-
* @description: Get
|
|
204
|
+
* @returns {Promise<GetIntegrationsOptInsResponse>} - Success response
|
|
205
|
+
* @summary: Get company/store level integration opt-ins
|
|
206
|
+
* @description: Get company/store level integration opt-ins
|
|
219
207
|
*/
|
|
220
|
-
|
|
208
|
+
getSelectedOptIns({ level, uid, pageNo, pageSize }?: {
|
|
209
|
+
level: string;
|
|
210
|
+
uid: number;
|
|
221
211
|
pageNo?: number;
|
|
222
212
|
pageSize?: number;
|
|
223
|
-
|
|
224
|
-
}): Promise<any>;
|
|
213
|
+
}): Promise<GetIntegrationsOptInsResponse>;
|
|
225
214
|
/**
|
|
226
215
|
* @param {Object} arg - Arg object.
|
|
216
|
+
* @param {string} arg.level - Integration level
|
|
217
|
+
* @param {number} arg.uid - Integration level uid
|
|
227
218
|
* @param {number} [arg.pageSize] - Current request items count
|
|
228
|
-
* @
|
|
229
|
-
* @
|
|
230
|
-
* @description: Get stores by brand uids
|
|
219
|
+
* @summary: Get company/store level integration opt-ins
|
|
220
|
+
* @description: Get company/store level integration opt-ins
|
|
231
221
|
*/
|
|
232
|
-
|
|
222
|
+
getSelectedOptInsPaginator({ level, uid, pageSize }?: {
|
|
223
|
+
level: string;
|
|
224
|
+
uid: number;
|
|
233
225
|
pageSize?: number;
|
|
234
|
-
body: StoreByBrandsRequest;
|
|
235
226
|
}): Paginator;
|
|
236
227
|
/**
|
|
237
228
|
* @param {Object} arg - Arg object.
|
|
238
229
|
* @param {number} [arg.pageNo] - Current page no
|
|
239
230
|
* @param {number} [arg.pageSize] - Current request items count
|
|
240
|
-
* @
|
|
241
|
-
* @
|
|
231
|
+
* @param {StoreByBrandsRequest} arg.body
|
|
232
|
+
* @returns {Promise<StoreByBrandsResponse>} - Success response
|
|
233
|
+
* @summary: Get stores by brand uids
|
|
234
|
+
* @description: Get stores by brand uids
|
|
242
235
|
*/
|
|
243
|
-
|
|
236
|
+
getStoreByBrands({ body, pageNo, pageSize }?: {
|
|
244
237
|
pageNo?: number;
|
|
245
238
|
pageSize?: number;
|
|
246
|
-
|
|
239
|
+
body: StoreByBrandsRequest;
|
|
240
|
+
}): Promise<StoreByBrandsResponse>;
|
|
247
241
|
/**
|
|
248
242
|
* @param {Object} arg - Arg object.
|
|
249
243
|
* @param {number} [arg.pageSize] - Current request items count
|
|
250
|
-
* @
|
|
251
|
-
* @
|
|
244
|
+
* @param {StoreByBrandsRequest} arg.body
|
|
245
|
+
* @summary: Get stores by brand uids
|
|
246
|
+
* @description: Get stores by brand uids
|
|
252
247
|
*/
|
|
253
|
-
|
|
248
|
+
getStoreByBrandsPaginator({ pageSize, body }?: {
|
|
254
249
|
pageSize?: number;
|
|
250
|
+
body: StoreByBrandsRequest;
|
|
255
251
|
}): Paginator;
|
|
256
|
-
/**
|
|
257
|
-
* @param {Object} arg - Arg object.
|
|
258
|
-
* @param {string} arg.id - Application Id
|
|
259
|
-
* @summary: Get other seller applications
|
|
260
|
-
* @description: Get other seller application
|
|
261
|
-
*/
|
|
262
|
-
getOtherSellerApplicationById({ id }?: {
|
|
263
|
-
id: string;
|
|
264
|
-
}): Promise<any>;
|
|
265
252
|
/**
|
|
266
253
|
* @param {Object} arg - Arg object.
|
|
267
254
|
* @param {string} arg.id - Application Id
|
|
268
255
|
* @param {OptOutInventory} arg.body
|
|
256
|
+
* @returns {Promise<SuccessMessageResponse>} - Success response
|
|
269
257
|
* @summary: Opt out company or store from other seller application
|
|
270
258
|
* @description: Opt out company or store from other seller application
|
|
271
259
|
*/
|
|
272
260
|
optOutFromApplication({ id, body }?: {
|
|
273
261
|
id: string;
|
|
274
262
|
body: OptOutInventory;
|
|
275
|
-
}): Promise<
|
|
263
|
+
}): Promise<SuccessMessageResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* @param {Object} arg - Arg object.
|
|
266
|
+
* @param {string} arg.id - Integration id
|
|
267
|
+
* @param {string} arg.level - Integration level
|
|
268
|
+
* @param {UpdateIntegrationLevelRequest} arg.body
|
|
269
|
+
* @returns {Promise<IntegrationLevel>} - Success response
|
|
270
|
+
* @summary: Update a store level opt-in for integration
|
|
271
|
+
* @description: Update a store level opt-in for integration
|
|
272
|
+
*/
|
|
273
|
+
updateLevelIntegration({ id, level, body }?: {
|
|
274
|
+
id: string;
|
|
275
|
+
level: string;
|
|
276
|
+
body: UpdateIntegrationLevelRequest;
|
|
277
|
+
}): Promise<IntegrationLevel>;
|
|
278
|
+
/**
|
|
279
|
+
* @param {Object} arg - Arg object.
|
|
280
|
+
* @param {string} arg.id - Integration id
|
|
281
|
+
* @param {string} arg.level - Integration level
|
|
282
|
+
* @param {number} arg.uid - Integration level uid
|
|
283
|
+
* @param {IntegrationLevel} arg.body
|
|
284
|
+
* @returns {Promise<IntegrationLevel>} - Success response
|
|
285
|
+
* @summary: Update a store level opt-in for integration
|
|
286
|
+
* @description: Update a store level opt-in for integration
|
|
287
|
+
*/
|
|
288
|
+
updateLevelUidIntegration({ id, level, uid, body }?: {
|
|
289
|
+
id: string;
|
|
290
|
+
level: string;
|
|
291
|
+
uid: number;
|
|
292
|
+
body: IntegrationLevel;
|
|
293
|
+
}): Promise<IntegrationLevel>;
|
|
276
294
|
}
|
|
277
295
|
import Paginator = require("../../common/Paginator");
|