@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -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/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- 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 +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -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 +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- 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 +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -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 +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -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 +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -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 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- 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 +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- 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 +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- 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 +10 -8
- 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 +19 -793
- 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/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- 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/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- 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
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -4,16 +4,6 @@ declare class LogisticsValidator {
|
|
|
4
4
|
static getSampleFileServiceabilityStatus(): any;
|
|
5
5
|
static bulkTat(): any;
|
|
6
6
|
static getBulkTat(): any;
|
|
7
|
-
static createDeliveryTime(): any;
|
|
8
|
-
static getDeliveryTimes(): any;
|
|
9
|
-
static getDeliveryTime(): any;
|
|
10
|
-
static updateDeliveryTime(): any;
|
|
11
|
-
static deleteDeliveryTime(): any;
|
|
12
|
-
static createServiceability(): any;
|
|
13
|
-
static getServiceabilities(): any;
|
|
14
|
-
static getServiceability(): any;
|
|
15
|
-
static updateServiceability(): any;
|
|
16
|
-
static deleteServiceability(): any;
|
|
17
7
|
static bulkServiceability(): any;
|
|
18
8
|
static getBulkServiceability(): any;
|
|
19
9
|
static createCourierPartnerAccount(): any;
|
|
@@ -4,7 +4,7 @@ const LogisticsModel = require("./LogisticsPartnerModel");
|
|
|
4
4
|
class LogisticsValidator {
|
|
5
5
|
static sampleFileServiceability() {
|
|
6
6
|
return Joi.object({
|
|
7
|
-
body: LogisticsModel.
|
|
7
|
+
body: LogisticsModel.BulkRegionServiceabilityTatRequest().required(),
|
|
8
8
|
}).required();
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ class LogisticsValidator {
|
|
|
20
20
|
return Joi.object({
|
|
21
21
|
extensionId: Joi.string().allow("").required(),
|
|
22
22
|
schemeId: Joi.string().allow("").required(),
|
|
23
|
-
body: LogisticsModel.
|
|
23
|
+
body: LogisticsModel.BulkRegionJobSerializer().required(),
|
|
24
24
|
}).required();
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -40,125 +40,11 @@ class LogisticsValidator {
|
|
|
40
40
|
}).required();
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
static createDeliveryTime() {
|
|
44
|
-
return Joi.object({
|
|
45
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
46
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
47
|
-
schemeId: Joi.string().allow("").required(),
|
|
48
|
-
body: LogisticsModel.RegionTatDetails().required(),
|
|
49
|
-
}).required();
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
static getDeliveryTimes() {
|
|
53
|
-
return Joi.object({
|
|
54
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
55
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
56
|
-
schemeId: Joi.string().allow("").required(),
|
|
57
|
-
pageNo: Joi.number(),
|
|
58
|
-
pageSize: Joi.number(),
|
|
59
|
-
fromCountryCode: Joi.string().allow(""),
|
|
60
|
-
fromStateCode: Joi.string().allow(""),
|
|
61
|
-
fromCityCode: Joi.string().allow(""),
|
|
62
|
-
fromSectorCode: Joi.string().allow(""),
|
|
63
|
-
fromPincode: Joi.string().allow(""),
|
|
64
|
-
toCountryCode: Joi.string().allow(""),
|
|
65
|
-
toStateCode: Joi.string().allow(""),
|
|
66
|
-
toCityCode: Joi.string().allow(""),
|
|
67
|
-
toSectorCode: Joi.string().allow(""),
|
|
68
|
-
toPincode: Joi.string().allow(""),
|
|
69
|
-
}).required();
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
static getDeliveryTime() {
|
|
73
|
-
return Joi.object({
|
|
74
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
75
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
76
|
-
schemeId: Joi.string().allow("").required(),
|
|
77
|
-
id: Joi.string().allow("").required(),
|
|
78
|
-
}).required();
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
static updateDeliveryTime() {
|
|
82
|
-
return Joi.object({
|
|
83
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
84
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
85
|
-
schemeId: Joi.string().allow("").required(),
|
|
86
|
-
id: Joi.string().allow("").required(),
|
|
87
|
-
body: LogisticsModel.RegionTatUpdateDetails().required(),
|
|
88
|
-
}).required();
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
static deleteDeliveryTime() {
|
|
92
|
-
return Joi.object({
|
|
93
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
94
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
95
|
-
schemeId: Joi.string().allow("").required(),
|
|
96
|
-
id: Joi.string().allow("").required(),
|
|
97
|
-
}).required();
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
static createServiceability() {
|
|
101
|
-
return Joi.object({
|
|
102
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
103
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
104
|
-
schemeId: Joi.string().allow("").required(),
|
|
105
|
-
body: LogisticsModel.RegionServiceabilityDetails().required(),
|
|
106
|
-
}).required();
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
static getServiceabilities() {
|
|
110
|
-
return Joi.object({
|
|
111
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
112
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
113
|
-
schemeId: Joi.string().allow("").required(),
|
|
114
|
-
pageNo: Joi.number(),
|
|
115
|
-
pageSize: Joi.number(),
|
|
116
|
-
countryCode: Joi.string().allow(""),
|
|
117
|
-
stateCode: Joi.string().allow(""),
|
|
118
|
-
cityCode: Joi.string().allow(""),
|
|
119
|
-
sectorCode: Joi.string().allow(""),
|
|
120
|
-
pincode: Joi.string().allow(""),
|
|
121
|
-
firstMile: Joi.boolean(),
|
|
122
|
-
lastMile: Joi.boolean(),
|
|
123
|
-
doorstepReturn: Joi.boolean(),
|
|
124
|
-
doorstepQc: Joi.boolean(),
|
|
125
|
-
installation: Joi.boolean(),
|
|
126
|
-
}).required();
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
static getServiceability() {
|
|
130
|
-
return Joi.object({
|
|
131
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
132
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
133
|
-
schemeId: Joi.string().allow("").required(),
|
|
134
|
-
id: Joi.string().allow("").required(),
|
|
135
|
-
}).required();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
static updateServiceability() {
|
|
139
|
-
return Joi.object({
|
|
140
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
141
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
142
|
-
schemeId: Joi.string().allow("").required(),
|
|
143
|
-
id: Joi.string().allow("").required(),
|
|
144
|
-
body: LogisticsModel.ServiceabilityDetails().required(),
|
|
145
|
-
}).required();
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
static deleteServiceability() {
|
|
149
|
-
return Joi.object({
|
|
150
|
-
partnerOrgId: Joi.string().allow("").required(),
|
|
151
|
-
courierPartnerExtensionId: Joi.string().allow("").required(),
|
|
152
|
-
schemeId: Joi.string().allow("").required(),
|
|
153
|
-
id: Joi.string().allow("").required(),
|
|
154
|
-
}).required();
|
|
155
|
-
}
|
|
156
|
-
|
|
157
43
|
static bulkServiceability() {
|
|
158
44
|
return Joi.object({
|
|
159
45
|
extensionId: Joi.string().allow("").required(),
|
|
160
46
|
schemeId: Joi.string().allow("").required(),
|
|
161
|
-
body: LogisticsModel.
|
|
47
|
+
body: LogisticsModel.BulkRegionJobSerializer().required(),
|
|
162
48
|
}).required();
|
|
163
49
|
}
|
|
164
50
|
|
|
@@ -181,7 +67,7 @@ class LogisticsValidator {
|
|
|
181
67
|
static createCourierPartnerAccount() {
|
|
182
68
|
return Joi.object({
|
|
183
69
|
companyId: Joi.number().required(),
|
|
184
|
-
body: LogisticsModel.
|
|
70
|
+
body: LogisticsModel.CourierAccountRequestBody().required(),
|
|
185
71
|
}).required();
|
|
186
72
|
}
|
|
187
73
|
|
|
@@ -213,14 +99,14 @@ class LogisticsValidator {
|
|
|
213
99
|
|
|
214
100
|
static createCourierPartnerScheme() {
|
|
215
101
|
return Joi.object({
|
|
216
|
-
body: LogisticsModel.
|
|
102
|
+
body: LogisticsModel.CourierPartnerSchemeRequestModel().required(),
|
|
217
103
|
}).required();
|
|
218
104
|
}
|
|
219
105
|
|
|
220
106
|
static updateCourierPartnerScheme() {
|
|
221
107
|
return Joi.object({
|
|
222
108
|
schemeId: Joi.string().allow("").required(),
|
|
223
|
-
body: LogisticsModel.
|
|
109
|
+
body: LogisticsModel.CourierPartnerSchemeUpdateRequest().required(),
|
|
224
110
|
}).required();
|
|
225
111
|
}
|
|
226
112
|
|
|
@@ -6,6 +6,7 @@ const querystring = require("query-string");
|
|
|
6
6
|
const { sign } = require("@gofynd/fp-signature");
|
|
7
7
|
const { convertStringToBase64 } = require("../common/utils");
|
|
8
8
|
|
|
9
|
+
const refreshTokenRequestCache = {};
|
|
9
10
|
class OAuthClient extends BaseOAuthClient {
|
|
10
11
|
constructor(config) {
|
|
11
12
|
super(config);
|
|
@@ -176,42 +176,44 @@ declare class Theme {
|
|
|
176
176
|
* @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
|
|
177
177
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
178
178
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
179
|
-
* @returns {Promise<ThemePartnerModel.
|
|
179
|
+
* @returns {Promise<ThemePartnerModel.DraftExtensionSectionResponse>} -
|
|
180
|
+
* Success response
|
|
180
181
|
* @name createExtensionSectionDraft
|
|
181
182
|
* @summary: Draft extension section
|
|
182
183
|
* @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createExtensionSectionDraft/).
|
|
183
184
|
*/
|
|
184
|
-
createExtensionSectionDraft({ extensionId, body, requestHeaders }?: ThemePartnerValidator.CreateExtensionSectionDraftParam, { responseHeaders }?: object): Promise<ThemePartnerModel.
|
|
185
|
+
createExtensionSectionDraft({ extensionId, body, requestHeaders }?: ThemePartnerValidator.CreateExtensionSectionDraftParam, { responseHeaders }?: object): Promise<ThemePartnerModel.DraftExtensionSectionResponse>;
|
|
185
186
|
/**
|
|
186
187
|
* @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
|
|
187
188
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
188
189
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
189
|
-
* @returns {Promise<ThemePartnerModel.
|
|
190
|
+
* @returns {Promise<ThemePartnerModel.PublishExtensionSectionResponse>} -
|
|
191
|
+
* Success response
|
|
190
192
|
* @name publishExtensionSections
|
|
191
193
|
* @summary: Publish an extension section
|
|
192
194
|
* @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/publishExtensionSections/).
|
|
193
195
|
*/
|
|
194
|
-
publishExtensionSections({ extensionId, body, requestHeaders }?: ThemePartnerValidator.PublishExtensionSectionsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.
|
|
196
|
+
publishExtensionSections({ extensionId, body, requestHeaders }?: ThemePartnerValidator.PublishExtensionSectionsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.PublishExtensionSectionResponse>;
|
|
195
197
|
/**
|
|
196
198
|
* @param {ThemePartnerValidator.ApplyExtensionPreviewParam} arg - Arg object.
|
|
197
199
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
198
200
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
199
|
-
* @returns {Promise<ThemePartnerModel.
|
|
201
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
|
|
200
202
|
* @name applyExtensionPreview
|
|
201
203
|
* @summary: Start a Preview of Extension Section
|
|
202
204
|
* @description: Use this API to start a local session for previewing the extension section binding. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/applyExtensionPreview/).
|
|
203
205
|
*/
|
|
204
|
-
applyExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.ApplyExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.
|
|
206
|
+
applyExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.ApplyExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionPreviewResponse>;
|
|
205
207
|
/**
|
|
206
208
|
* @param {ThemePartnerValidator.RemoveExtensionPreviewParam} arg - Arg object.
|
|
207
209
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
208
210
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
209
|
-
* @returns {Promise<ThemePartnerModel.
|
|
211
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
|
|
210
212
|
* @name removeExtensionPreview
|
|
211
213
|
* @summary: Close a Preview of Extension Section
|
|
212
214
|
* @description: Use this API to close a local session for previewing the extension section binding - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/removeExtensionPreview/).
|
|
213
215
|
*/
|
|
214
|
-
removeExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.RemoveExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.
|
|
216
|
+
removeExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.RemoveExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionPreviewResponse>;
|
|
215
217
|
/**
|
|
216
218
|
* @param {ThemePartnerValidator.GetThemeRejectionReasonsParam} arg - Arg object.
|
|
217
219
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1374,7 +1374,8 @@ class Theme {
|
|
|
1374
1374
|
* @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
|
|
1375
1375
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1376
1376
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1377
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1377
|
+
* @returns {Promise<ThemePartnerModel.DraftExtensionSectionResponse>} -
|
|
1378
|
+
* Success response
|
|
1378
1379
|
* @name createExtensionSectionDraft
|
|
1379
1380
|
* @summary: Draft extension section
|
|
1380
1381
|
* @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createExtensionSectionDraft/).
|
|
@@ -1432,10 +1433,10 @@ class Theme {
|
|
|
1432
1433
|
|
|
1433
1434
|
const {
|
|
1434
1435
|
error: res_error,
|
|
1435
|
-
} = ThemePartnerModel.
|
|
1436
|
-
|
|
1437
|
-
allowUnknown: true
|
|
1438
|
-
|
|
1436
|
+
} = ThemePartnerModel.DraftExtensionSectionResponse().validate(
|
|
1437
|
+
responseData,
|
|
1438
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1439
|
+
);
|
|
1439
1440
|
|
|
1440
1441
|
if (res_error) {
|
|
1441
1442
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1455,7 +1456,8 @@ class Theme {
|
|
|
1455
1456
|
* @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
|
|
1456
1457
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1457
1458
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1458
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1459
|
+
* @returns {Promise<ThemePartnerModel.PublishExtensionSectionResponse>} -
|
|
1460
|
+
* Success response
|
|
1459
1461
|
* @name publishExtensionSections
|
|
1460
1462
|
* @summary: Publish an extension section
|
|
1461
1463
|
* @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/publishExtensionSections/).
|
|
@@ -1511,10 +1513,10 @@ class Theme {
|
|
|
1511
1513
|
|
|
1512
1514
|
const {
|
|
1513
1515
|
error: res_error,
|
|
1514
|
-
} = ThemePartnerModel.
|
|
1515
|
-
|
|
1516
|
-
allowUnknown: true
|
|
1517
|
-
|
|
1516
|
+
} = ThemePartnerModel.PublishExtensionSectionResponse().validate(
|
|
1517
|
+
responseData,
|
|
1518
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1519
|
+
);
|
|
1518
1520
|
|
|
1519
1521
|
if (res_error) {
|
|
1520
1522
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1534,7 +1536,7 @@ class Theme {
|
|
|
1534
1536
|
* @param {ThemePartnerValidator.ApplyExtensionPreviewParam} arg - Arg object.
|
|
1535
1537
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1536
1538
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1537
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1539
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
|
|
1538
1540
|
* @name applyExtensionPreview
|
|
1539
1541
|
* @summary: Start a Preview of Extension Section
|
|
1540
1542
|
* @description: Use this API to start a local session for previewing the extension section binding. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/applyExtensionPreview/).
|
|
@@ -1590,7 +1592,7 @@ class Theme {
|
|
|
1590
1592
|
|
|
1591
1593
|
const {
|
|
1592
1594
|
error: res_error,
|
|
1593
|
-
} = ThemePartnerModel.
|
|
1595
|
+
} = ThemePartnerModel.ExtensionPreviewResponse().validate(responseData, {
|
|
1594
1596
|
abortEarly: false,
|
|
1595
1597
|
allowUnknown: true,
|
|
1596
1598
|
});
|
|
@@ -1613,7 +1615,7 @@ class Theme {
|
|
|
1613
1615
|
* @param {ThemePartnerValidator.RemoveExtensionPreviewParam} arg - Arg object.
|
|
1614
1616
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1615
1617
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1616
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1618
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
|
|
1617
1619
|
* @name removeExtensionPreview
|
|
1618
1620
|
* @summary: Close a Preview of Extension Section
|
|
1619
1621
|
* @description: Use this API to close a local session for previewing the extension section binding - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/removeExtensionPreview/).
|
|
@@ -1669,7 +1671,7 @@ class Theme {
|
|
|
1669
1671
|
|
|
1670
1672
|
const {
|
|
1671
1673
|
error: res_error,
|
|
1672
|
-
} = ThemePartnerModel.
|
|
1674
|
+
} = ThemePartnerModel.ExtensionPreviewResponse().validate(responseData, {
|
|
1673
1675
|
abortEarly: false,
|
|
1674
1676
|
allowUnknown: true,
|
|
1675
1677
|
});
|
|
@@ -15,7 +15,7 @@ export = ThemePartnerModel;
|
|
|
15
15
|
* @property {string} [updated_at] - The last update timestamp of the page
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
|
-
* @typedef
|
|
18
|
+
* @typedef DraftExtensionSectionRequest
|
|
19
19
|
* @property {string} [extension_id]
|
|
20
20
|
* @property {string} [bundle_name]
|
|
21
21
|
* @property {string} [organization_id]
|
|
@@ -25,11 +25,11 @@ export = ThemePartnerModel;
|
|
|
25
25
|
* @property {string} [status]
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
|
-
* @typedef
|
|
29
|
-
* @property {
|
|
28
|
+
* @typedef DraftExtensionSectionResponse
|
|
29
|
+
* @property {SectionsResponse} [sections]
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
|
-
* @typedef
|
|
32
|
+
* @typedef SectionsResponse
|
|
33
33
|
* @property {boolean} [acknowledged]
|
|
34
34
|
* @property {number} [matched_count]
|
|
35
35
|
* @property {number} [modified_count]
|
|
@@ -56,7 +56,7 @@ export = ThemePartnerModel;
|
|
|
56
56
|
* @property {string} [css]
|
|
57
57
|
*/
|
|
58
58
|
/**
|
|
59
|
-
* @typedef
|
|
59
|
+
* @typedef PublishExtensionSectionRequest
|
|
60
60
|
* @property {string} [extension_id]
|
|
61
61
|
* @property {string} [bundle_name]
|
|
62
62
|
* @property {string} [organization_id]
|
|
@@ -66,17 +66,17 @@ export = ThemePartnerModel;
|
|
|
66
66
|
* @property {string} [status]
|
|
67
67
|
*/
|
|
68
68
|
/**
|
|
69
|
-
* @typedef
|
|
69
|
+
* @typedef ExtensionPreviewRequest
|
|
70
70
|
* @property {string} [application_id] - Application ID
|
|
71
71
|
* @property {string} [section_preview_hash] - Hash for the section preview
|
|
72
72
|
*/
|
|
73
73
|
/**
|
|
74
|
-
* @typedef
|
|
74
|
+
* @typedef ExtensionPreviewResponse
|
|
75
75
|
* @property {string} [message]
|
|
76
76
|
*/
|
|
77
77
|
/**
|
|
78
|
-
* @typedef
|
|
79
|
-
* @property {
|
|
78
|
+
* @typedef PublishExtensionSectionResponse
|
|
79
|
+
* @property {SectionsResponse} [sections]
|
|
80
80
|
*/
|
|
81
81
|
/**
|
|
82
82
|
* @typedef AvailablePageSectionMetaAttributes
|
|
@@ -125,15 +125,7 @@ export = ThemePartnerModel;
|
|
|
125
125
|
* @property {Object[]} [blocks]
|
|
126
126
|
* @property {Object} [preset]
|
|
127
127
|
* @property {AvailablePagePredicate} [predicate]
|
|
128
|
-
* @property {
|
|
129
|
-
*/
|
|
130
|
-
/**
|
|
131
|
-
* @typedef SectionSource
|
|
132
|
-
* @property {string} [id] - The source id specifying the source of the section.
|
|
133
|
-
* @property {string} [bundle_name] - This is the extension binding name
|
|
134
|
-
* containing this section.
|
|
135
|
-
* @property {string} [type] - This is source type. It will either be
|
|
136
|
-
* themeBundle or extension.
|
|
128
|
+
* @property {string} [source]
|
|
137
129
|
*/
|
|
138
130
|
/**
|
|
139
131
|
* @typedef AvailablePageScreenPredicate
|
|
@@ -281,26 +273,12 @@ export = ThemePartnerModel;
|
|
|
281
273
|
* @property {string} admin_id - The ID of the admin who rejected the theme
|
|
282
274
|
* @property {string} user_id - The ID of the user who submitted the theme
|
|
283
275
|
* @property {string} status - The status of the theme (e.g., rejected)
|
|
284
|
-
* @property {
|
|
276
|
+
* @property {Object} rejection_reasons
|
|
285
277
|
* @property {string} [created_at] - The date and time when the theme rejection
|
|
286
278
|
* reasons object was created
|
|
287
279
|
* @property {string} [updated_at] - The date and time when the theme rejection
|
|
288
280
|
* reasons object was last updated
|
|
289
281
|
*/
|
|
290
|
-
/**
|
|
291
|
-
* @typedef RejectedMessages
|
|
292
|
-
* @property {ThemeReviewRequestMessage} [theme_file]
|
|
293
|
-
* @property {ThemeReviewRequestMessage} [theme_details]
|
|
294
|
-
* @property {ThemeReviewRequestMessage} [theme_value_proposition]
|
|
295
|
-
* @property {ThemeReviewRequestMessage} [theme_attributes]
|
|
296
|
-
* @property {ThemeReviewRequestMessage} [theme_variations]
|
|
297
|
-
* @property {ThemeReviewRequestMessage} [theme_docs]
|
|
298
|
-
* @property {ThemeReviewRequestMessage} [theme_review]
|
|
299
|
-
*/
|
|
300
|
-
/**
|
|
301
|
-
* @typedef ThemeReviewRequestMessage
|
|
302
|
-
* @property {string} [message] - Message Explaining what the issue is
|
|
303
|
-
*/
|
|
304
282
|
/**
|
|
305
283
|
* @typedef AllAvailablePageSchema
|
|
306
284
|
* @property {AvailablePageSchema[]} [pages]
|
|
@@ -504,16 +482,7 @@ export = ThemePartnerModel;
|
|
|
504
482
|
*/
|
|
505
483
|
/**
|
|
506
484
|
* @typedef GlobalSchema
|
|
507
|
-
* @property {
|
|
508
|
-
*/
|
|
509
|
-
/**
|
|
510
|
-
* @typedef Prop
|
|
511
|
-
* @property {string} [type] - The type of the property
|
|
512
|
-
* @property {string} [category] - The category of the property
|
|
513
|
-
* @property {string} [value] - The value of the property
|
|
514
|
-
* @property {string} [id] - The ID of the property
|
|
515
|
-
* @property {string} [label] - The label of the property
|
|
516
|
-
* @property {string} [info] - Additional information about the property
|
|
485
|
+
* @property {Object[]} [props]
|
|
517
486
|
*/
|
|
518
487
|
/**
|
|
519
488
|
* @typedef Preset
|
|
@@ -678,7 +647,7 @@ export = ThemePartnerModel;
|
|
|
678
647
|
declare class ThemePartnerModel {
|
|
679
648
|
}
|
|
680
649
|
declare namespace ThemePartnerModel {
|
|
681
|
-
export { AvailablePageSchema,
|
|
650
|
+
export { AvailablePageSchema, DraftExtensionSectionRequest, DraftExtensionSectionResponse, SectionsResponse, ExtensionSection, PropExtension, AssetsExtension, PublishExtensionSectionRequest, ExtensionPreviewRequest, ExtensionPreviewResponse, PublishExtensionSectionResponse, AvailablePageSectionMetaAttributes, AvailablePageSeo, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AvailablePagePredicate, MarketplaceThemeSchema, MarketplaceTheme, PaymentInfo, ContactInfo, CatalogSize, MarketplaceThemeImages, CarouselItem, ExploreInfo, Feature, FeatureItem, Highlight, Variation, Documentation, Comments, ThemeRejectionReasons, AllAvailablePageSchema, PaginationSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, ThemesSchema, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, CustomProps, ThemeMeta, ThemePayment, Release, Images, Assets, UMDJs, CommonJS, CSS, SectionItem, GlobalSchema, Preset, Page, SectionProps, SectionPreset, ImagePickerProp, UrlProp, BlockProps, TextProp, CheckboxProp, RangeProp, Section, Block, Predicate, Screen, ThemeUserSchema, Route, UpdateThemeRequestBody, CreateNewTheme, ActionPage, PageType };
|
|
682
651
|
}
|
|
683
652
|
/** @returns {AvailablePageSchema} */
|
|
684
653
|
declare function AvailablePageSchema(): AvailablePageSchema;
|
|
@@ -702,9 +671,9 @@ type AvailablePageSchema = {
|
|
|
702
671
|
*/
|
|
703
672
|
updated_at?: string;
|
|
704
673
|
};
|
|
705
|
-
/** @returns {
|
|
706
|
-
declare function
|
|
707
|
-
type
|
|
674
|
+
/** @returns {DraftExtensionSectionRequest} */
|
|
675
|
+
declare function DraftExtensionSectionRequest(): DraftExtensionSectionRequest;
|
|
676
|
+
type DraftExtensionSectionRequest = {
|
|
708
677
|
extension_id?: string;
|
|
709
678
|
bundle_name?: string;
|
|
710
679
|
organization_id?: string;
|
|
@@ -713,14 +682,14 @@ type DraftExtensionSection = {
|
|
|
713
682
|
type?: string;
|
|
714
683
|
status?: string;
|
|
715
684
|
};
|
|
716
|
-
/** @returns {
|
|
717
|
-
declare function
|
|
718
|
-
type
|
|
719
|
-
sections?:
|
|
685
|
+
/** @returns {DraftExtensionSectionResponse} */
|
|
686
|
+
declare function DraftExtensionSectionResponse(): DraftExtensionSectionResponse;
|
|
687
|
+
type DraftExtensionSectionResponse = {
|
|
688
|
+
sections?: SectionsResponse;
|
|
720
689
|
};
|
|
721
|
-
/** @returns {
|
|
722
|
-
declare function
|
|
723
|
-
type
|
|
690
|
+
/** @returns {SectionsResponse} */
|
|
691
|
+
declare function SectionsResponse(): SectionsResponse;
|
|
692
|
+
type SectionsResponse = {
|
|
724
693
|
acknowledged?: boolean;
|
|
725
694
|
matched_count?: number;
|
|
726
695
|
modified_count?: number;
|
|
@@ -749,9 +718,9 @@ type AssetsExtension = {
|
|
|
749
718
|
js?: string;
|
|
750
719
|
css?: string;
|
|
751
720
|
};
|
|
752
|
-
/** @returns {
|
|
753
|
-
declare function
|
|
754
|
-
type
|
|
721
|
+
/** @returns {PublishExtensionSectionRequest} */
|
|
722
|
+
declare function PublishExtensionSectionRequest(): PublishExtensionSectionRequest;
|
|
723
|
+
type PublishExtensionSectionRequest = {
|
|
755
724
|
extension_id?: string;
|
|
756
725
|
bundle_name?: string;
|
|
757
726
|
organization_id?: string;
|
|
@@ -760,9 +729,9 @@ type PublishExtensionSection = {
|
|
|
760
729
|
type?: string;
|
|
761
730
|
status?: string;
|
|
762
731
|
};
|
|
763
|
-
/** @returns {
|
|
764
|
-
declare function
|
|
765
|
-
type
|
|
732
|
+
/** @returns {ExtensionPreviewRequest} */
|
|
733
|
+
declare function ExtensionPreviewRequest(): ExtensionPreviewRequest;
|
|
734
|
+
type ExtensionPreviewRequest = {
|
|
766
735
|
/**
|
|
767
736
|
* - Application ID
|
|
768
737
|
*/
|
|
@@ -772,15 +741,15 @@ type PreviewExtension = {
|
|
|
772
741
|
*/
|
|
773
742
|
section_preview_hash?: string;
|
|
774
743
|
};
|
|
775
|
-
/** @returns {
|
|
776
|
-
declare function
|
|
777
|
-
type
|
|
744
|
+
/** @returns {ExtensionPreviewResponse} */
|
|
745
|
+
declare function ExtensionPreviewResponse(): ExtensionPreviewResponse;
|
|
746
|
+
type ExtensionPreviewResponse = {
|
|
778
747
|
message?: string;
|
|
779
748
|
};
|
|
780
|
-
/** @returns {
|
|
781
|
-
declare function
|
|
782
|
-
type
|
|
783
|
-
sections?:
|
|
749
|
+
/** @returns {PublishExtensionSectionResponse} */
|
|
750
|
+
declare function PublishExtensionSectionResponse(): PublishExtensionSectionResponse;
|
|
751
|
+
type PublishExtensionSectionResponse = {
|
|
752
|
+
sections?: SectionsResponse;
|
|
784
753
|
};
|
|
785
754
|
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
786
755
|
declare function AvailablePageSectionMetaAttributes(): AvailablePageSectionMetaAttributes;
|
|
@@ -840,25 +809,7 @@ type AvailablePageSchemaSections = {
|
|
|
840
809
|
blocks?: any[];
|
|
841
810
|
preset?: any;
|
|
842
811
|
predicate?: AvailablePagePredicate;
|
|
843
|
-
|
|
844
|
-
};
|
|
845
|
-
/** @returns {SectionSource} */
|
|
846
|
-
declare function SectionSource(): SectionSource;
|
|
847
|
-
type SectionSource = {
|
|
848
|
-
/**
|
|
849
|
-
* - The source id specifying the source of the section.
|
|
850
|
-
*/
|
|
851
|
-
id?: string;
|
|
852
|
-
/**
|
|
853
|
-
* - This is the extension binding name
|
|
854
|
-
* containing this section.
|
|
855
|
-
*/
|
|
856
|
-
bundle_name?: string;
|
|
857
|
-
/**
|
|
858
|
-
* - This is source type. It will either be
|
|
859
|
-
* themeBundle or extension.
|
|
860
|
-
*/
|
|
861
|
-
type?: string;
|
|
812
|
+
source?: string;
|
|
862
813
|
};
|
|
863
814
|
/** @returns {AvailablePageScreenPredicate} */
|
|
864
815
|
declare function AvailablePageScreenPredicate(): AvailablePageScreenPredicate;
|
|
@@ -1183,7 +1134,7 @@ type ThemeRejectionReasons = {
|
|
|
1183
1134
|
* - The status of the theme (e.g., rejected)
|
|
1184
1135
|
*/
|
|
1185
1136
|
status: string;
|
|
1186
|
-
rejection_reasons:
|
|
1137
|
+
rejection_reasons: any;
|
|
1187
1138
|
/**
|
|
1188
1139
|
* - The date and time when the theme rejection
|
|
1189
1140
|
* reasons object was created
|
|
@@ -1195,25 +1146,6 @@ type ThemeRejectionReasons = {
|
|
|
1195
1146
|
*/
|
|
1196
1147
|
updated_at?: string;
|
|
1197
1148
|
};
|
|
1198
|
-
/** @returns {RejectedMessages} */
|
|
1199
|
-
declare function RejectedMessages(): RejectedMessages;
|
|
1200
|
-
type RejectedMessages = {
|
|
1201
|
-
theme_file?: ThemeReviewRequestMessage;
|
|
1202
|
-
theme_details?: ThemeReviewRequestMessage;
|
|
1203
|
-
theme_value_proposition?: ThemeReviewRequestMessage;
|
|
1204
|
-
theme_attributes?: ThemeReviewRequestMessage;
|
|
1205
|
-
theme_variations?: ThemeReviewRequestMessage;
|
|
1206
|
-
theme_docs?: ThemeReviewRequestMessage;
|
|
1207
|
-
theme_review?: ThemeReviewRequestMessage;
|
|
1208
|
-
};
|
|
1209
|
-
/** @returns {ThemeReviewRequestMessage} */
|
|
1210
|
-
declare function ThemeReviewRequestMessage(): ThemeReviewRequestMessage;
|
|
1211
|
-
type ThemeReviewRequestMessage = {
|
|
1212
|
-
/**
|
|
1213
|
-
* - Message Explaining what the issue is
|
|
1214
|
-
*/
|
|
1215
|
-
message?: string;
|
|
1216
|
-
};
|
|
1217
1149
|
/** @returns {AllAvailablePageSchema} */
|
|
1218
1150
|
declare function AllAvailablePageSchema(): AllAvailablePageSchema;
|
|
1219
1151
|
type AllAvailablePageSchema = {
|
|
@@ -1640,35 +1572,7 @@ type SectionItem = {
|
|
|
1640
1572
|
/** @returns {GlobalSchema} */
|
|
1641
1573
|
declare function GlobalSchema(): GlobalSchema;
|
|
1642
1574
|
type GlobalSchema = {
|
|
1643
|
-
props?:
|
|
1644
|
-
};
|
|
1645
|
-
/** @returns {Prop} */
|
|
1646
|
-
declare function Prop(): Prop;
|
|
1647
|
-
type Prop = {
|
|
1648
|
-
/**
|
|
1649
|
-
* - The type of the property
|
|
1650
|
-
*/
|
|
1651
|
-
type?: string;
|
|
1652
|
-
/**
|
|
1653
|
-
* - The category of the property
|
|
1654
|
-
*/
|
|
1655
|
-
category?: string;
|
|
1656
|
-
/**
|
|
1657
|
-
* - The value of the property
|
|
1658
|
-
*/
|
|
1659
|
-
value?: string;
|
|
1660
|
-
/**
|
|
1661
|
-
* - The ID of the property
|
|
1662
|
-
*/
|
|
1663
|
-
id?: string;
|
|
1664
|
-
/**
|
|
1665
|
-
* - The label of the property
|
|
1666
|
-
*/
|
|
1667
|
-
label?: string;
|
|
1668
|
-
/**
|
|
1669
|
-
* - Additional information about the property
|
|
1670
|
-
*/
|
|
1671
|
-
info?: string;
|
|
1575
|
+
props?: any[];
|
|
1672
1576
|
};
|
|
1673
1577
|
/** @returns {Preset} */
|
|
1674
1578
|
declare function Preset(): Preset;
|