@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -3,17 +3,17 @@ export = ServiceabilityPlatformValidator;
|
|
|
3
3
|
* @typedef BulkServiceabilityParam
|
|
4
4
|
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
5
5
|
* @property {string} schemeId - Unique identifier of a scheme
|
|
6
|
-
* @property {ServiceabilityPlatformModel.
|
|
6
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobSerializer} body
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* @typedef BulkTatParam
|
|
10
10
|
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
11
11
|
* @property {string} schemeId - Unique identifier of a scheme
|
|
12
|
-
* @property {ServiceabilityPlatformModel.
|
|
12
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobSerializer} body
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
15
|
* @typedef CreateCourierPartnerAccountParam
|
|
16
|
-
* @property {ServiceabilityPlatformModel.
|
|
16
|
+
* @property {ServiceabilityPlatformModel.CourierAccountRequestBody} body
|
|
17
17
|
*/
|
|
18
18
|
/**
|
|
19
19
|
* @typedef CreatePackageMaterialParam
|
|
@@ -71,7 +71,7 @@ export = ServiceabilityPlatformValidator;
|
|
|
71
71
|
*/
|
|
72
72
|
/**
|
|
73
73
|
* @typedef GetOptimalLocationsParam
|
|
74
|
-
* @property {ServiceabilityPlatformModel.
|
|
74
|
+
* @property {ServiceabilityPlatformModel.OptimlLocationsRequestSchema} body
|
|
75
75
|
*/
|
|
76
76
|
/**
|
|
77
77
|
* @typedef GetPackageMaterialListParam
|
|
@@ -219,7 +219,7 @@ type BulkServiceabilityParam = {
|
|
|
219
219
|
* - Unique identifier of a scheme
|
|
220
220
|
*/
|
|
221
221
|
schemeId: string;
|
|
222
|
-
body: ServiceabilityPlatformModel.
|
|
222
|
+
body: ServiceabilityPlatformModel.BulkRegionJobSerializer;
|
|
223
223
|
};
|
|
224
224
|
type BulkTatParam = {
|
|
225
225
|
/**
|
|
@@ -230,10 +230,10 @@ type BulkTatParam = {
|
|
|
230
230
|
* - Unique identifier of a scheme
|
|
231
231
|
*/
|
|
232
232
|
schemeId: string;
|
|
233
|
-
body: ServiceabilityPlatformModel.
|
|
233
|
+
body: ServiceabilityPlatformModel.BulkRegionJobSerializer;
|
|
234
234
|
};
|
|
235
235
|
type CreateCourierPartnerAccountParam = {
|
|
236
|
-
body: ServiceabilityPlatformModel.
|
|
236
|
+
body: ServiceabilityPlatformModel.CourierAccountRequestBody;
|
|
237
237
|
};
|
|
238
238
|
type CreatePackageMaterialParam = {
|
|
239
239
|
body: ServiceabilityPlatformModel.PackageMaterial;
|
|
@@ -365,7 +365,7 @@ type GetCourierPartnerAccountsParam = {
|
|
|
365
365
|
transportType?: string;
|
|
366
366
|
};
|
|
367
367
|
type GetOptimalLocationsParam = {
|
|
368
|
-
body: ServiceabilityPlatformModel.
|
|
368
|
+
body: ServiceabilityPlatformModel.OptimlLocationsRequestSchema;
|
|
369
369
|
};
|
|
370
370
|
type GetPackageMaterialListParam = {
|
|
371
371
|
/**
|
|
@@ -6,19 +6,19 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
6
6
|
* @typedef BulkServiceabilityParam
|
|
7
7
|
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
8
8
|
* @property {string} schemeId - Unique identifier of a scheme
|
|
9
|
-
* @property {ServiceabilityPlatformModel.
|
|
9
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobSerializer} body
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @typedef BulkTatParam
|
|
14
14
|
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
15
15
|
* @property {string} schemeId - Unique identifier of a scheme
|
|
16
|
-
* @property {ServiceabilityPlatformModel.
|
|
16
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobSerializer} body
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @typedef CreateCourierPartnerAccountParam
|
|
21
|
-
* @property {ServiceabilityPlatformModel.
|
|
21
|
+
* @property {ServiceabilityPlatformModel.CourierAccountRequestBody} body
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -86,7 +86,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* @typedef GetOptimalLocationsParam
|
|
89
|
-
* @property {ServiceabilityPlatformModel.
|
|
89
|
+
* @property {ServiceabilityPlatformModel.OptimlLocationsRequestSchema} body
|
|
90
90
|
*/
|
|
91
91
|
|
|
92
92
|
/**
|
|
@@ -188,7 +188,7 @@ class ServiceabilityPlatformValidator {
|
|
|
188
188
|
return Joi.object({
|
|
189
189
|
extensionId: Joi.string().allow("").required(),
|
|
190
190
|
schemeId: Joi.string().allow("").required(),
|
|
191
|
-
body: ServiceabilityPlatformModel.
|
|
191
|
+
body: ServiceabilityPlatformModel.BulkRegionJobSerializer().required(),
|
|
192
192
|
}).required();
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -197,14 +197,14 @@ class ServiceabilityPlatformValidator {
|
|
|
197
197
|
return Joi.object({
|
|
198
198
|
extensionId: Joi.string().allow("").required(),
|
|
199
199
|
schemeId: Joi.string().allow("").required(),
|
|
200
|
-
body: ServiceabilityPlatformModel.
|
|
200
|
+
body: ServiceabilityPlatformModel.BulkRegionJobSerializer().required(),
|
|
201
201
|
}).required();
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
/** @returns {CreateCourierPartnerAccountParam} */
|
|
205
205
|
static createCourierPartnerAccount() {
|
|
206
206
|
return Joi.object({
|
|
207
|
-
body: ServiceabilityPlatformModel.
|
|
207
|
+
body: ServiceabilityPlatformModel.CourierAccountRequestBody().required(),
|
|
208
208
|
}).required();
|
|
209
209
|
}
|
|
210
210
|
|
|
@@ -294,7 +294,7 @@ class ServiceabilityPlatformValidator {
|
|
|
294
294
|
/** @returns {GetOptimalLocationsParam} */
|
|
295
295
|
static getOptimalLocations() {
|
|
296
296
|
return Joi.object({
|
|
297
|
-
body: ServiceabilityPlatformModel.
|
|
297
|
+
body: ServiceabilityPlatformModel.OptimlLocationsRequestSchema().required(),
|
|
298
298
|
}).required();
|
|
299
299
|
}
|
|
300
300
|
|
|
@@ -29,12 +29,12 @@ declare class Share {
|
|
|
29
29
|
*
|
|
30
30
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
31
31
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
32
|
-
* @returns {Promise<SharePlatformModel.
|
|
32
|
+
* @returns {Promise<SharePlatformModel.ClickStatsResponse>} - Success response
|
|
33
33
|
* @name getShortLinkClickStats
|
|
34
34
|
* @summary: Get short link click statistics
|
|
35
35
|
* @description: Retrieve statistics and analytics for clicks on a short link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkClickStats/).
|
|
36
36
|
*/
|
|
37
|
-
getShortLinkClickStats({ surlId, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkClickStatsParam, { responseHeaders }?: object): Promise<SharePlatformModel.
|
|
37
|
+
getShortLinkClickStats({ surlId, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkClickStatsParam, { responseHeaders }?: object): Promise<SharePlatformModel.ClickStatsResponse>;
|
|
38
38
|
/**
|
|
39
39
|
* @param {SharePlatformApplicationValidator.GetShortLinksParam} arg - Arg object
|
|
40
40
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -179,7 +179,7 @@ class Share {
|
|
|
179
179
|
*
|
|
180
180
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
181
181
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
182
|
-
* @returns {Promise<SharePlatformModel.
|
|
182
|
+
* @returns {Promise<SharePlatformModel.ClickStatsResponse>} - Success response
|
|
183
183
|
* @name getShortLinkClickStats
|
|
184
184
|
* @summary: Get short link click statistics
|
|
185
185
|
* @description: Retrieve statistics and analytics for clicks on a short link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkClickStats/).
|
|
@@ -232,7 +232,7 @@ class Share {
|
|
|
232
232
|
|
|
233
233
|
const {
|
|
234
234
|
error: res_error,
|
|
235
|
-
} = SharePlatformModel.
|
|
235
|
+
} = SharePlatformModel.ClickStatsResponse().validate(responseData, {
|
|
236
236
|
abortEarly: false,
|
|
237
237
|
allowUnknown: true,
|
|
238
238
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export = SharePlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
3
|
+
* @typedef ClickStatsResponse
|
|
4
4
|
* @property {ClickStatsItem[]} click_stats - An array of click statistics for
|
|
5
5
|
* the short link.
|
|
6
6
|
*/
|
|
@@ -55,24 +55,12 @@ export = SharePlatformModel;
|
|
|
55
55
|
* @property {Attribution} [attribution]
|
|
56
56
|
* @property {SocialMediaTags} [social_media_tags]
|
|
57
57
|
* @property {number} [count]
|
|
58
|
-
* @property {shortLinkReqMeta} [meta]
|
|
59
|
-
*/
|
|
60
|
-
/**
|
|
61
|
-
* @typedef shortLinkReqMeta
|
|
62
|
-
* @property {boolean} [for_sms] - For_sms flag specifies that the short-link
|
|
63
|
-
* will be used in SMS communication and based on TRAI (Indian) guidelines,
|
|
64
|
-
* the generated short-link must contain an active SMS HEADER; ex. DLFYND, GOFYND.
|
|
65
|
-
* @property {string} [sms_header] - This field is used to override the sms
|
|
66
|
-
* header to be used to generate a short-link for SMS communication in
|
|
67
|
-
* compliance with TRAI guidelines, this should be used in conjunction with
|
|
68
|
-
* for_sms flag set to true.
|
|
69
58
|
*/
|
|
70
59
|
/**
|
|
71
60
|
* @typedef UrlInfo
|
|
72
61
|
* @property {string} [original]
|
|
73
62
|
* @property {string} [hash]
|
|
74
63
|
* @property {string} [short_url]
|
|
75
|
-
* @property {string} [alias]
|
|
76
64
|
*/
|
|
77
65
|
/**
|
|
78
66
|
* @typedef ShortLinkRes
|
|
@@ -119,11 +107,11 @@ export = SharePlatformModel;
|
|
|
119
107
|
declare class SharePlatformModel {
|
|
120
108
|
}
|
|
121
109
|
declare namespace SharePlatformModel {
|
|
122
|
-
export {
|
|
110
|
+
export { ClickStatsResponse, ClickStatsItem, RedirectDevice, WebRedirect, Redirects, CampaignShortLink, Attribution, SocialMediaTags, ShortLinkReq, UrlInfo, ShortLinkRes, Page, ShortLinkList, ErrorRes };
|
|
123
111
|
}
|
|
124
|
-
/** @returns {
|
|
125
|
-
declare function
|
|
126
|
-
type
|
|
112
|
+
/** @returns {ClickStatsResponse} */
|
|
113
|
+
declare function ClickStatsResponse(): ClickStatsResponse;
|
|
114
|
+
type ClickStatsResponse = {
|
|
127
115
|
/**
|
|
128
116
|
* - An array of click statistics for
|
|
129
117
|
* the short link.
|
|
@@ -204,24 +192,6 @@ type ShortLinkReq = {
|
|
|
204
192
|
attribution?: Attribution;
|
|
205
193
|
social_media_tags?: SocialMediaTags;
|
|
206
194
|
count?: number;
|
|
207
|
-
meta?: shortLinkReqMeta;
|
|
208
|
-
};
|
|
209
|
-
/** @returns {shortLinkReqMeta} */
|
|
210
|
-
declare function shortLinkReqMeta(): shortLinkReqMeta;
|
|
211
|
-
type shortLinkReqMeta = {
|
|
212
|
-
/**
|
|
213
|
-
* - For_sms flag specifies that the short-link
|
|
214
|
-
* will be used in SMS communication and based on TRAI (Indian) guidelines,
|
|
215
|
-
* the generated short-link must contain an active SMS HEADER; ex. DLFYND, GOFYND.
|
|
216
|
-
*/
|
|
217
|
-
for_sms?: boolean;
|
|
218
|
-
/**
|
|
219
|
-
* - This field is used to override the sms
|
|
220
|
-
* header to be used to generate a short-link for SMS communication in
|
|
221
|
-
* compliance with TRAI guidelines, this should be used in conjunction with
|
|
222
|
-
* for_sms flag set to true.
|
|
223
|
-
*/
|
|
224
|
-
sms_header?: string;
|
|
225
195
|
};
|
|
226
196
|
/** @returns {UrlInfo} */
|
|
227
197
|
declare function UrlInfo(): UrlInfo;
|
|
@@ -229,7 +199,6 @@ type UrlInfo = {
|
|
|
229
199
|
original?: string;
|
|
230
200
|
hash?: string;
|
|
231
201
|
short_url?: string;
|
|
232
|
-
alias?: string;
|
|
233
202
|
};
|
|
234
203
|
/** @returns {ShortLinkRes} */
|
|
235
204
|
declare function ShortLinkRes(): ShortLinkRes;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef ClickStatsResponse
|
|
5
5
|
* @property {ClickStatsItem[]} click_stats - An array of click statistics for
|
|
6
6
|
* the short link.
|
|
7
7
|
*/
|
|
@@ -64,18 +64,6 @@ const Joi = require("joi");
|
|
|
64
64
|
* @property {Attribution} [attribution]
|
|
65
65
|
* @property {SocialMediaTags} [social_media_tags]
|
|
66
66
|
* @property {number} [count]
|
|
67
|
-
* @property {shortLinkReqMeta} [meta]
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @typedef shortLinkReqMeta
|
|
72
|
-
* @property {boolean} [for_sms] - For_sms flag specifies that the short-link
|
|
73
|
-
* will be used in SMS communication and based on TRAI (Indian) guidelines,
|
|
74
|
-
* the generated short-link must contain an active SMS HEADER; ex. DLFYND, GOFYND.
|
|
75
|
-
* @property {string} [sms_header] - This field is used to override the sms
|
|
76
|
-
* header to be used to generate a short-link for SMS communication in
|
|
77
|
-
* compliance with TRAI guidelines, this should be used in conjunction with
|
|
78
|
-
* for_sms flag set to true.
|
|
79
67
|
*/
|
|
80
68
|
|
|
81
69
|
/**
|
|
@@ -83,7 +71,6 @@ const Joi = require("joi");
|
|
|
83
71
|
* @property {string} [original]
|
|
84
72
|
* @property {string} [hash]
|
|
85
73
|
* @property {string} [short_url]
|
|
86
|
-
* @property {string} [alias]
|
|
87
74
|
*/
|
|
88
75
|
|
|
89
76
|
/**
|
|
@@ -133,8 +120,8 @@ const Joi = require("joi");
|
|
|
133
120
|
*/
|
|
134
121
|
|
|
135
122
|
class SharePlatformModel {
|
|
136
|
-
/** @returns {
|
|
137
|
-
static
|
|
123
|
+
/** @returns {ClickStatsResponse} */
|
|
124
|
+
static ClickStatsResponse() {
|
|
138
125
|
return Joi.object({
|
|
139
126
|
click_stats: Joi.array()
|
|
140
127
|
.items(SharePlatformModel.ClickStatsItem())
|
|
@@ -215,15 +202,6 @@ class SharePlatformModel {
|
|
|
215
202
|
attribution: SharePlatformModel.Attribution(),
|
|
216
203
|
social_media_tags: SharePlatformModel.SocialMediaTags(),
|
|
217
204
|
count: Joi.number(),
|
|
218
|
-
meta: SharePlatformModel.shortLinkReqMeta(),
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/** @returns {shortLinkReqMeta} */
|
|
223
|
-
static shortLinkReqMeta() {
|
|
224
|
-
return Joi.object({
|
|
225
|
-
for_sms: Joi.boolean(),
|
|
226
|
-
sms_header: Joi.string().allow(""),
|
|
227
205
|
});
|
|
228
206
|
}
|
|
229
207
|
|
|
@@ -233,7 +211,6 @@ class SharePlatformModel {
|
|
|
233
211
|
original: Joi.string().allow(""),
|
|
234
212
|
hash: Joi.string().allow(""),
|
|
235
213
|
short_url: Joi.string().allow(""),
|
|
236
|
-
alias: Joi.string().allow(""),
|
|
237
214
|
});
|
|
238
215
|
}
|
|
239
216
|
|
|
@@ -252,7 +229,7 @@ class SharePlatformModel {
|
|
|
252
229
|
application: Joi.string().allow(""),
|
|
253
230
|
user_id: Joi.string().allow(""),
|
|
254
231
|
created_at: Joi.string().allow(""),
|
|
255
|
-
meta: Joi.
|
|
232
|
+
meta: Joi.any(),
|
|
256
233
|
updated_at: Joi.string().allow(""),
|
|
257
234
|
personalized: Joi.boolean(),
|
|
258
235
|
campaign: SharePlatformModel.CampaignShortLink(),
|
|
@@ -177,12 +177,12 @@ declare class Theme {
|
|
|
177
177
|
* @param {ThemePlatformApplicationValidator.IsUpgradableParam} arg - Arg object
|
|
178
178
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
179
179
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
180
|
-
* @returns {Promise<ThemePlatformModel.
|
|
180
|
+
* @returns {Promise<ThemePlatformModel.ThemeUpgradableResponse>} - Success response
|
|
181
181
|
* @name isUpgradable
|
|
182
182
|
* @summary: Check theme is upgradable
|
|
183
183
|
* @description: Determine if a public theme is eligible for an upgrade to a new version after any new version released in marketplace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/isUpgradable/).
|
|
184
184
|
*/
|
|
185
|
-
isUpgradable({ themeId, requestHeaders }?: ThemePlatformApplicationValidator.IsUpgradableParam, { responseHeaders }?: object): Promise<ThemePlatformModel.
|
|
185
|
+
isUpgradable({ themeId, requestHeaders }?: ThemePlatformApplicationValidator.IsUpgradableParam, { responseHeaders }?: object): Promise<ThemePlatformModel.ThemeUpgradableResponse>;
|
|
186
186
|
/**
|
|
187
187
|
* @param {ThemePlatformApplicationValidator.UpdateMultiplePagesParam} arg
|
|
188
188
|
* - Arg object
|
|
@@ -204,7 +204,7 @@ declare class Theme {
|
|
|
204
204
|
* @summary: Update a page
|
|
205
205
|
* @description: Modify and update the content of a page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/updatePage/).
|
|
206
206
|
*/
|
|
207
|
-
updatePage({ themeId, pageValue,
|
|
207
|
+
updatePage({ themeId, pageValue, body, requestHeaders }?: ThemePlatformApplicationValidator.UpdatePageParam, { responseHeaders }?: object): Promise<ThemePlatformModel.AvailablePageSchema>;
|
|
208
208
|
/**
|
|
209
209
|
* @param {ThemePlatformApplicationValidator.UpdateThemeParam} arg - Arg object
|
|
210
210
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1260,7 +1260,7 @@ class Theme {
|
|
|
1260
1260
|
* @param {ThemePlatformApplicationValidator.IsUpgradableParam} arg - Arg object
|
|
1261
1261
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1262
1262
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1263
|
-
* @returns {Promise<ThemePlatformModel.
|
|
1263
|
+
* @returns {Promise<ThemePlatformModel.ThemeUpgradableResponse>} - Success response
|
|
1264
1264
|
* @name isUpgradable
|
|
1265
1265
|
* @summary: Check theme is upgradable
|
|
1266
1266
|
* @description: Determine if a public theme is eligible for an upgrade to a new version after any new version released in marketplace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/isUpgradable/).
|
|
@@ -1314,7 +1314,7 @@ class Theme {
|
|
|
1314
1314
|
|
|
1315
1315
|
const {
|
|
1316
1316
|
error: res_error,
|
|
1317
|
-
} = ThemePlatformModel.
|
|
1317
|
+
} = ThemePlatformModel.ThemeUpgradableResponse().validate(responseData, {
|
|
1318
1318
|
abortEarly: false,
|
|
1319
1319
|
allowUnknown: true,
|
|
1320
1320
|
});
|
|
@@ -1426,16 +1426,13 @@ class Theme {
|
|
|
1426
1426
|
* @description: Modify and update the content of a page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/updatePage/).
|
|
1427
1427
|
*/
|
|
1428
1428
|
async updatePage(
|
|
1429
|
-
{ themeId, pageValue,
|
|
1430
|
-
requestHeaders: {},
|
|
1431
|
-
},
|
|
1429
|
+
{ themeId, pageValue, body, requestHeaders } = { requestHeaders: {} },
|
|
1432
1430
|
{ responseHeaders } = { responseHeaders: false }
|
|
1433
1431
|
) {
|
|
1434
1432
|
const { error } = ThemePlatformApplicationValidator.updatePage().validate(
|
|
1435
1433
|
{
|
|
1436
1434
|
themeId,
|
|
1437
1435
|
pageValue,
|
|
1438
|
-
socketId,
|
|
1439
1436
|
body,
|
|
1440
1437
|
},
|
|
1441
1438
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -1451,7 +1448,6 @@ class Theme {
|
|
|
1451
1448
|
{
|
|
1452
1449
|
themeId,
|
|
1453
1450
|
pageValue,
|
|
1454
|
-
socketId,
|
|
1455
1451
|
body,
|
|
1456
1452
|
},
|
|
1457
1453
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -1468,7 +1464,7 @@ class Theme {
|
|
|
1468
1464
|
const response = await PlatformAPIClient.execute(
|
|
1469
1465
|
this.config,
|
|
1470
1466
|
"put",
|
|
1471
|
-
`/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/${pageValue}
|
|
1467
|
+
`/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/${pageValue}`,
|
|
1472
1468
|
query_params,
|
|
1473
1469
|
body,
|
|
1474
1470
|
requestHeaders,
|
|
@@ -68,7 +68,6 @@ export = ThemePlatformApplicationValidator;
|
|
|
68
68
|
* @typedef UpdatePageParam
|
|
69
69
|
* @property {string} themeId - ID of the theme
|
|
70
70
|
* @property {string} pageValue - Value of the page to be updated
|
|
71
|
-
* @property {string} socketId - Unique socket id for websocket
|
|
72
71
|
* @property {ThemePlatformModel.AvailablePageSchema} body
|
|
73
72
|
*/
|
|
74
73
|
/**
|
|
@@ -238,10 +237,6 @@ type UpdatePageParam = {
|
|
|
238
237
|
* - Value of the page to be updated
|
|
239
238
|
*/
|
|
240
239
|
pageValue: string;
|
|
241
|
-
/**
|
|
242
|
-
* - Unique socket id for websocket
|
|
243
|
-
*/
|
|
244
|
-
socketId: string;
|
|
245
240
|
body: ThemePlatformModel.AvailablePageSchema;
|
|
246
241
|
};
|
|
247
242
|
type UpdateThemeParam = {
|
|
@@ -89,7 +89,6 @@ const ThemePlatformModel = require("./ThemePlatformModel");
|
|
|
89
89
|
* @typedef UpdatePageParam
|
|
90
90
|
* @property {string} themeId - ID of the theme
|
|
91
91
|
* @property {string} pageValue - Value of the page to be updated
|
|
92
|
-
* @property {string} socketId - Unique socket id for websocket
|
|
93
92
|
* @property {ThemePlatformModel.AvailablePageSchema} body
|
|
94
93
|
*/
|
|
95
94
|
|
|
@@ -239,7 +238,6 @@ class ThemePlatformApplicationValidator {
|
|
|
239
238
|
return Joi.object({
|
|
240
239
|
themeId: Joi.string().allow("").required(),
|
|
241
240
|
pageValue: Joi.string().allow("").required(),
|
|
242
|
-
socketId: Joi.string().allow("").required(),
|
|
243
241
|
body: ThemePlatformModel.AvailablePageSchema().required(),
|
|
244
242
|
}).required();
|
|
245
243
|
}
|
|
@@ -135,15 +135,7 @@ export = ThemePlatformModel;
|
|
|
135
135
|
* @property {Object[]} [blocks]
|
|
136
136
|
* @property {Object} [preset]
|
|
137
137
|
* @property {AvailablePagePredicate} [predicate]
|
|
138
|
-
* @property {
|
|
139
|
-
*/
|
|
140
|
-
/**
|
|
141
|
-
* @typedef SectionSource
|
|
142
|
-
* @property {string} [id] - The source id specifying the source of the section.
|
|
143
|
-
* @property {string} [bundle_name] - This is the extension binding name
|
|
144
|
-
* containing this section.
|
|
145
|
-
* @property {string} [type] - This is source type. It will either be
|
|
146
|
-
* themeBundle or extension.
|
|
138
|
+
* @property {string} [source]
|
|
147
139
|
*/
|
|
148
140
|
/**
|
|
149
141
|
* @typedef AvailablePagePredicate
|
|
@@ -245,7 +237,7 @@ export = ThemePlatformModel;
|
|
|
245
237
|
* @property {string} [src]
|
|
246
238
|
*/
|
|
247
239
|
/**
|
|
248
|
-
* @typedef
|
|
240
|
+
* @typedef ThemeUpgradableResponse
|
|
249
241
|
* @property {boolean} [upgrade] - Indicates if the theme is upgradable or not
|
|
250
242
|
* @property {ThemeVersions} [versions]
|
|
251
243
|
* @property {string} [message] - A message describing the theme upgrade status
|
|
@@ -517,7 +509,7 @@ export = ThemePlatformModel;
|
|
|
517
509
|
* @property {string} [applied_theme] - The version of the applied theme
|
|
518
510
|
*/
|
|
519
511
|
/**
|
|
520
|
-
* @typedef
|
|
512
|
+
* @typedef DummyResponse
|
|
521
513
|
* @property {string} [message]
|
|
522
514
|
*/
|
|
523
515
|
/**
|
|
@@ -598,7 +590,7 @@ export = ThemePlatformModel;
|
|
|
598
590
|
declare class ThemePlatformModel {
|
|
599
591
|
}
|
|
600
592
|
declare namespace ThemePlatformModel {
|
|
601
|
-
export { GetExtensionSectionRes, ExtensionSection, PropExtension, AssetsExtension, ThemeReq, CompanyThemeSchema, MarketplaceThemeId, CompanyThemeMeta, ThemePayment, ThemeImages, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections,
|
|
593
|
+
export { GetExtensionSectionRes, ExtensionSection, PropExtension, AssetsExtension, ThemeReq, CompanyThemeSchema, MarketplaceThemeId, CompanyThemeMeta, ThemePayment, ThemeImages, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AllAvailablePageSchema, AddThemeRequestSchema, FontsSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, FontsSchemaItems, FontsSchemaItemsFiles, ThemesSchema, ThemeUpgradableResponse, UpdateThemeNameRequestBody, UpdateThemeRequestBody, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, ThemeMeta, Release, Images, CustomProps, GlobalSchema, Prop, Assets, UMDJs, CommonJS, CSS, SectionItem, Preset, Page, Section, Block, Predicate, Screen, ThemeUserSchema, Route, SectionProps, SectionPreset, BlockProps, TextProp, CheckboxProp, RangeProp, ImagePickerProp, UrlProp, ThemeVersions, DummyResponse, AppliedThemes, CompanyPrivateTheme, ActionPage, PageType };
|
|
602
594
|
}
|
|
603
595
|
/** @returns {GetExtensionSectionRes} */
|
|
604
596
|
declare function GetExtensionSectionRes(): GetExtensionSectionRes;
|
|
@@ -815,25 +807,7 @@ type AvailablePageSchemaSections = {
|
|
|
815
807
|
blocks?: any[];
|
|
816
808
|
preset?: any;
|
|
817
809
|
predicate?: AvailablePagePredicate;
|
|
818
|
-
|
|
819
|
-
};
|
|
820
|
-
/** @returns {SectionSource} */
|
|
821
|
-
declare function SectionSource(): SectionSource;
|
|
822
|
-
type SectionSource = {
|
|
823
|
-
/**
|
|
824
|
-
* - The source id specifying the source of the section.
|
|
825
|
-
*/
|
|
826
|
-
id?: string;
|
|
827
|
-
/**
|
|
828
|
-
* - This is the extension binding name
|
|
829
|
-
* containing this section.
|
|
830
|
-
*/
|
|
831
|
-
bundle_name?: string;
|
|
832
|
-
/**
|
|
833
|
-
* - This is source type. It will either be
|
|
834
|
-
* themeBundle or extension.
|
|
835
|
-
*/
|
|
836
|
-
type?: string;
|
|
810
|
+
source?: string;
|
|
837
811
|
};
|
|
838
812
|
/** @returns {AvailablePagePredicate} */
|
|
839
813
|
declare function AvailablePagePredicate(): AvailablePagePredicate;
|
|
@@ -1002,9 +976,9 @@ type ThemesSchema = {
|
|
|
1002
976
|
company_id?: number;
|
|
1003
977
|
src?: string;
|
|
1004
978
|
};
|
|
1005
|
-
/** @returns {
|
|
1006
|
-
declare function
|
|
1007
|
-
type
|
|
979
|
+
/** @returns {ThemeUpgradableResponse} */
|
|
980
|
+
declare function ThemeUpgradableResponse(): ThemeUpgradableResponse;
|
|
981
|
+
type ThemeUpgradableResponse = {
|
|
1008
982
|
/**
|
|
1009
983
|
* - Indicates if the theme is upgradable or not
|
|
1010
984
|
*/
|
|
@@ -1563,9 +1537,9 @@ type ThemeVersions = {
|
|
|
1563
1537
|
*/
|
|
1564
1538
|
applied_theme?: string;
|
|
1565
1539
|
};
|
|
1566
|
-
/** @returns {
|
|
1567
|
-
declare function
|
|
1568
|
-
type
|
|
1540
|
+
/** @returns {DummyResponse} */
|
|
1541
|
+
declare function DummyResponse(): DummyResponse;
|
|
1542
|
+
type DummyResponse = {
|
|
1569
1543
|
message?: string;
|
|
1570
1544
|
};
|
|
1571
1545
|
/** @returns {AppliedThemes} */
|
|
@@ -154,16 +154,7 @@ const Joi = require("joi");
|
|
|
154
154
|
* @property {Object[]} [blocks]
|
|
155
155
|
* @property {Object} [preset]
|
|
156
156
|
* @property {AvailablePagePredicate} [predicate]
|
|
157
|
-
* @property {
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* @typedef SectionSource
|
|
162
|
-
* @property {string} [id] - The source id specifying the source of the section.
|
|
163
|
-
* @property {string} [bundle_name] - This is the extension binding name
|
|
164
|
-
* containing this section.
|
|
165
|
-
* @property {string} [type] - This is source type. It will either be
|
|
166
|
-
* themeBundle or extension.
|
|
157
|
+
* @property {string} [source]
|
|
167
158
|
*/
|
|
168
159
|
|
|
169
160
|
/**
|
|
@@ -280,7 +271,7 @@ const Joi = require("joi");
|
|
|
280
271
|
*/
|
|
281
272
|
|
|
282
273
|
/**
|
|
283
|
-
* @typedef
|
|
274
|
+
* @typedef ThemeUpgradableResponse
|
|
284
275
|
* @property {boolean} [upgrade] - Indicates if the theme is upgradable or not
|
|
285
276
|
* @property {ThemeVersions} [versions]
|
|
286
277
|
* @property {string} [message] - A message describing the theme upgrade status
|
|
@@ -595,7 +586,7 @@ const Joi = require("joi");
|
|
|
595
586
|
*/
|
|
596
587
|
|
|
597
588
|
/**
|
|
598
|
-
* @typedef
|
|
589
|
+
* @typedef DummyResponse
|
|
599
590
|
* @property {string} [message]
|
|
600
591
|
*/
|
|
601
592
|
|
|
@@ -806,7 +797,7 @@ class ThemePlatformModel {
|
|
|
806
797
|
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
807
798
|
static AvailablePageSectionMetaAttributes() {
|
|
808
799
|
return Joi.object({
|
|
809
|
-
attributes: Joi.
|
|
800
|
+
attributes: Joi.any(),
|
|
810
801
|
});
|
|
811
802
|
}
|
|
812
803
|
|
|
@@ -868,20 +859,11 @@ class ThemePlatformModel {
|
|
|
868
859
|
return Joi.object({
|
|
869
860
|
name: Joi.string().allow(""),
|
|
870
861
|
label: Joi.string().allow(""),
|
|
871
|
-
props: Joi.
|
|
862
|
+
props: Joi.any(),
|
|
872
863
|
blocks: Joi.array().items(Joi.any()),
|
|
873
|
-
preset: Joi.
|
|
864
|
+
preset: Joi.any(),
|
|
874
865
|
predicate: ThemePlatformModel.AvailablePagePredicate(),
|
|
875
|
-
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
/** @returns {SectionSource} */
|
|
880
|
-
static SectionSource() {
|
|
881
|
-
return Joi.object({
|
|
882
|
-
id: Joi.string().allow(""),
|
|
883
|
-
bundle_name: Joi.string().allow(""),
|
|
884
|
-
type: Joi.string().allow(""),
|
|
866
|
+
source: Joi.string().allow(""),
|
|
885
867
|
});
|
|
886
868
|
}
|
|
887
869
|
|
|
@@ -919,7 +901,7 @@ class ThemePlatformModel {
|
|
|
919
901
|
return Joi.object({
|
|
920
902
|
selected: Joi.string().allow(""),
|
|
921
903
|
exact_url: Joi.string().allow(""),
|
|
922
|
-
query: Joi.
|
|
904
|
+
query: Joi.any(),
|
|
923
905
|
});
|
|
924
906
|
}
|
|
925
907
|
|
|
@@ -1015,7 +997,7 @@ class ThemePlatformModel {
|
|
|
1015
997
|
name: Joi.string().allow(""),
|
|
1016
998
|
template_theme_id: Joi.string().allow(""),
|
|
1017
999
|
version: Joi.string().allow(""),
|
|
1018
|
-
styles: Joi.
|
|
1000
|
+
styles: Joi.any(),
|
|
1019
1001
|
created_at: Joi.string().allow(""),
|
|
1020
1002
|
updated_at: Joi.string().allow(""),
|
|
1021
1003
|
assets: ThemePlatformModel.Assets(),
|
|
@@ -1026,8 +1008,8 @@ class ThemePlatformModel {
|
|
|
1026
1008
|
});
|
|
1027
1009
|
}
|
|
1028
1010
|
|
|
1029
|
-
/** @returns {
|
|
1030
|
-
static
|
|
1011
|
+
/** @returns {ThemeUpgradableResponse} */
|
|
1012
|
+
static ThemeUpgradableResponse() {
|
|
1031
1013
|
return Joi.object({
|
|
1032
1014
|
upgrade: Joi.boolean(),
|
|
1033
1015
|
versions: ThemePlatformModel.ThemeVersions(),
|
|
@@ -1093,7 +1075,7 @@ class ThemePlatformModel {
|
|
|
1093
1075
|
static ThemeConfiguration() {
|
|
1094
1076
|
return Joi.object({
|
|
1095
1077
|
name: Joi.string().allow(""),
|
|
1096
|
-
global_config: Joi.
|
|
1078
|
+
global_config: Joi.any(),
|
|
1097
1079
|
page: Joi.array().items(ThemePlatformModel.ThemeConfigListPage()),
|
|
1098
1080
|
});
|
|
1099
1081
|
}
|
|
@@ -1145,7 +1127,7 @@ class ThemePlatformModel {
|
|
|
1145
1127
|
/** @returns {ThemeConfigListPageSettingsProps} */
|
|
1146
1128
|
static ThemeConfigListPageSettingsProps() {
|
|
1147
1129
|
return Joi.object({
|
|
1148
|
-
props: Joi.
|
|
1130
|
+
props: Joi.any(),
|
|
1149
1131
|
});
|
|
1150
1132
|
}
|
|
1151
1133
|
|
|
@@ -1424,8 +1406,8 @@ class ThemePlatformModel {
|
|
|
1424
1406
|
});
|
|
1425
1407
|
}
|
|
1426
1408
|
|
|
1427
|
-
/** @returns {
|
|
1428
|
-
static
|
|
1409
|
+
/** @returns {DummyResponse} */
|
|
1410
|
+
static DummyResponse() {
|
|
1429
1411
|
return Joi.object({
|
|
1430
1412
|
message: Joi.string().allow(""),
|
|
1431
1413
|
});
|