@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.4
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 +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
- package/sdk/application/Content/ContentApplicationClient.js +54 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -89
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -47
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- 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 +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- 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 +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 +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- 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 +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -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 +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- 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 +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
- 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 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
|
@@ -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
|
|
|
@@ -200,7 +86,7 @@ class LogisticsValidator {
|
|
|
200
86
|
return Joi.object({
|
|
201
87
|
companyId: Joi.number().required(),
|
|
202
88
|
accountId: Joi.string().allow("").required(),
|
|
203
|
-
body: LogisticsModel.
|
|
89
|
+
body: LogisticsModel.CourierAccount().required(),
|
|
204
90
|
}).required();
|
|
205
91
|
}
|
|
206
92
|
|
|
@@ -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]
|
|
@@ -678,7 +656,7 @@ export = ThemePartnerModel;
|
|
|
678
656
|
declare class ThemePartnerModel {
|
|
679
657
|
}
|
|
680
658
|
declare namespace ThemePartnerModel {
|
|
681
|
-
export { AvailablePageSchema,
|
|
659
|
+
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, Prop, Preset, Page, SectionProps, SectionPreset, ImagePickerProp, UrlProp, BlockProps, TextProp, CheckboxProp, RangeProp, Section, Block, Predicate, Screen, ThemeUserSchema, Route, UpdateThemeRequestBody, CreateNewTheme, ActionPage, PageType };
|
|
682
660
|
}
|
|
683
661
|
/** @returns {AvailablePageSchema} */
|
|
684
662
|
declare function AvailablePageSchema(): AvailablePageSchema;
|
|
@@ -702,9 +680,9 @@ type AvailablePageSchema = {
|
|
|
702
680
|
*/
|
|
703
681
|
updated_at?: string;
|
|
704
682
|
};
|
|
705
|
-
/** @returns {
|
|
706
|
-
declare function
|
|
707
|
-
type
|
|
683
|
+
/** @returns {DraftExtensionSectionRequest} */
|
|
684
|
+
declare function DraftExtensionSectionRequest(): DraftExtensionSectionRequest;
|
|
685
|
+
type DraftExtensionSectionRequest = {
|
|
708
686
|
extension_id?: string;
|
|
709
687
|
bundle_name?: string;
|
|
710
688
|
organization_id?: string;
|
|
@@ -713,14 +691,14 @@ type DraftExtensionSection = {
|
|
|
713
691
|
type?: string;
|
|
714
692
|
status?: string;
|
|
715
693
|
};
|
|
716
|
-
/** @returns {
|
|
717
|
-
declare function
|
|
718
|
-
type
|
|
719
|
-
sections?:
|
|
694
|
+
/** @returns {DraftExtensionSectionResponse} */
|
|
695
|
+
declare function DraftExtensionSectionResponse(): DraftExtensionSectionResponse;
|
|
696
|
+
type DraftExtensionSectionResponse = {
|
|
697
|
+
sections?: SectionsResponse;
|
|
720
698
|
};
|
|
721
|
-
/** @returns {
|
|
722
|
-
declare function
|
|
723
|
-
type
|
|
699
|
+
/** @returns {SectionsResponse} */
|
|
700
|
+
declare function SectionsResponse(): SectionsResponse;
|
|
701
|
+
type SectionsResponse = {
|
|
724
702
|
acknowledged?: boolean;
|
|
725
703
|
matched_count?: number;
|
|
726
704
|
modified_count?: number;
|
|
@@ -749,9 +727,9 @@ type AssetsExtension = {
|
|
|
749
727
|
js?: string;
|
|
750
728
|
css?: string;
|
|
751
729
|
};
|
|
752
|
-
/** @returns {
|
|
753
|
-
declare function
|
|
754
|
-
type
|
|
730
|
+
/** @returns {PublishExtensionSectionRequest} */
|
|
731
|
+
declare function PublishExtensionSectionRequest(): PublishExtensionSectionRequest;
|
|
732
|
+
type PublishExtensionSectionRequest = {
|
|
755
733
|
extension_id?: string;
|
|
756
734
|
bundle_name?: string;
|
|
757
735
|
organization_id?: string;
|
|
@@ -760,9 +738,9 @@ type PublishExtensionSection = {
|
|
|
760
738
|
type?: string;
|
|
761
739
|
status?: string;
|
|
762
740
|
};
|
|
763
|
-
/** @returns {
|
|
764
|
-
declare function
|
|
765
|
-
type
|
|
741
|
+
/** @returns {ExtensionPreviewRequest} */
|
|
742
|
+
declare function ExtensionPreviewRequest(): ExtensionPreviewRequest;
|
|
743
|
+
type ExtensionPreviewRequest = {
|
|
766
744
|
/**
|
|
767
745
|
* - Application ID
|
|
768
746
|
*/
|
|
@@ -772,15 +750,15 @@ type PreviewExtension = {
|
|
|
772
750
|
*/
|
|
773
751
|
section_preview_hash?: string;
|
|
774
752
|
};
|
|
775
|
-
/** @returns {
|
|
776
|
-
declare function
|
|
777
|
-
type
|
|
753
|
+
/** @returns {ExtensionPreviewResponse} */
|
|
754
|
+
declare function ExtensionPreviewResponse(): ExtensionPreviewResponse;
|
|
755
|
+
type ExtensionPreviewResponse = {
|
|
778
756
|
message?: string;
|
|
779
757
|
};
|
|
780
|
-
/** @returns {
|
|
781
|
-
declare function
|
|
782
|
-
type
|
|
783
|
-
sections?:
|
|
758
|
+
/** @returns {PublishExtensionSectionResponse} */
|
|
759
|
+
declare function PublishExtensionSectionResponse(): PublishExtensionSectionResponse;
|
|
760
|
+
type PublishExtensionSectionResponse = {
|
|
761
|
+
sections?: SectionsResponse;
|
|
784
762
|
};
|
|
785
763
|
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
786
764
|
declare function AvailablePageSectionMetaAttributes(): AvailablePageSectionMetaAttributes;
|
|
@@ -840,25 +818,7 @@ type AvailablePageSchemaSections = {
|
|
|
840
818
|
blocks?: any[];
|
|
841
819
|
preset?: any;
|
|
842
820
|
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;
|
|
821
|
+
source?: string;
|
|
862
822
|
};
|
|
863
823
|
/** @returns {AvailablePageScreenPredicate} */
|
|
864
824
|
declare function AvailablePageScreenPredicate(): AvailablePageScreenPredicate;
|
|
@@ -1183,7 +1143,7 @@ type ThemeRejectionReasons = {
|
|
|
1183
1143
|
* - The status of the theme (e.g., rejected)
|
|
1184
1144
|
*/
|
|
1185
1145
|
status: string;
|
|
1186
|
-
rejection_reasons:
|
|
1146
|
+
rejection_reasons: any;
|
|
1187
1147
|
/**
|
|
1188
1148
|
* - The date and time when the theme rejection
|
|
1189
1149
|
* reasons object was created
|
|
@@ -1195,25 +1155,6 @@ type ThemeRejectionReasons = {
|
|
|
1195
1155
|
*/
|
|
1196
1156
|
updated_at?: string;
|
|
1197
1157
|
};
|
|
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
1158
|
/** @returns {AllAvailablePageSchema} */
|
|
1218
1159
|
declare function AllAvailablePageSchema(): AllAvailablePageSchema;
|
|
1219
1160
|
type AllAvailablePageSchema = {
|