@gofynd/fdk-client-javascript 1.4.15-beta.1 → 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.js +0 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
- package/sdk/application/Cart/CartApplicationClient.js +60 -1185
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1293
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +5 -89
- 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 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
- package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
- package/sdk/application/Content/ContentApplicationClient.js +77 -914
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -12
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +22 -125
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +32 -202
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
- package/sdk/application/Order/OrderApplicationClient.js +86 -472
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
- package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
- 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 +28 -162
- package/sdk/application/User/UserApplicationClient.d.ts +85 -136
- package/sdk/application/User/UserApplicationClient.js +45 -1815
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- 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/FileStoragePartnerModel.d.ts +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -0
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
- package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -0
- package/sdk/platform/Cart/CartPlatformModel.js +12 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
- package/sdk/platform/Order/OrderPlatformClient.js +99 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
- package/sdk/public/Content/ContentPublicClient.js +14 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- 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 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- 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 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- 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 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- 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 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- 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 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- 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
|
@@ -1728,7 +1728,7 @@ class Serviceability {
|
|
|
1728
1728
|
pageNo,
|
|
1729
1729
|
pageSize,
|
|
1730
1730
|
isActive,
|
|
1731
|
-
|
|
1731
|
+
applicationIds,
|
|
1732
1732
|
q,
|
|
1733
1733
|
countryIsoCode,
|
|
1734
1734
|
state,
|
|
@@ -1744,7 +1744,7 @@ class Serviceability {
|
|
|
1744
1744
|
pageNo,
|
|
1745
1745
|
pageSize,
|
|
1746
1746
|
isActive,
|
|
1747
|
-
|
|
1747
|
+
applicationIds,
|
|
1748
1748
|
q,
|
|
1749
1749
|
countryIsoCode,
|
|
1750
1750
|
state,
|
|
@@ -1766,7 +1766,7 @@ class Serviceability {
|
|
|
1766
1766
|
pageNo,
|
|
1767
1767
|
pageSize,
|
|
1768
1768
|
isActive,
|
|
1769
|
-
|
|
1769
|
+
applicationIds,
|
|
1770
1770
|
q,
|
|
1771
1771
|
countryIsoCode,
|
|
1772
1772
|
state,
|
|
@@ -1787,7 +1787,7 @@ class Serviceability {
|
|
|
1787
1787
|
query_params["page_no"] = pageNo;
|
|
1788
1788
|
query_params["page_size"] = pageSize;
|
|
1789
1789
|
query_params["is_active"] = isActive;
|
|
1790
|
-
query_params["
|
|
1790
|
+
query_params["application_ids"] = applicationIds;
|
|
1791
1791
|
query_params["q"] = q;
|
|
1792
1792
|
query_params["country_iso_code"] = countryIsoCode;
|
|
1793
1793
|
query_params["state"] = state;
|
|
@@ -133,11 +133,23 @@ export = ServiceabilityPlatformModel;
|
|
|
133
133
|
* @property {string} type
|
|
134
134
|
* @property {string[]} tags
|
|
135
135
|
*/
|
|
136
|
+
/**
|
|
137
|
+
* @typedef ZoneMappingDetailType
|
|
138
|
+
* @property {string} country - Uid for the country.
|
|
139
|
+
* @property {ZoneMappingRegions[]} [regions] - List of regions with its details.
|
|
140
|
+
*/
|
|
136
141
|
/**
|
|
137
142
|
* @typedef ZoneMappingType
|
|
138
143
|
* @property {string} country
|
|
139
|
-
* @property {string[]}
|
|
140
|
-
|
|
144
|
+
* @property {string[]} regions
|
|
145
|
+
*/
|
|
146
|
+
/**
|
|
147
|
+
* @typedef ZoneMappingRegions
|
|
148
|
+
* @property {string} [display_name] - Name of the region that is in proper casing.
|
|
149
|
+
* @property {string[]} [parent_id]
|
|
150
|
+
* @property {string} [parent_uid] - Unique identifier for that regions parent.
|
|
151
|
+
* @property {string} [sub_type] - What type does the region belong to.
|
|
152
|
+
* @property {string} [uid] - Unique identifier for that region.
|
|
141
153
|
*/
|
|
142
154
|
/**
|
|
143
155
|
* @typedef UpdateZoneData
|
|
@@ -151,7 +163,6 @@ export = ServiceabilityPlatformModel;
|
|
|
151
163
|
* @property {number[]} store_ids
|
|
152
164
|
* @property {string} region_type
|
|
153
165
|
* @property {ZoneMappingType[]} mapping
|
|
154
|
-
* @property {string} [assignment_preference]
|
|
155
166
|
*/
|
|
156
167
|
/**
|
|
157
168
|
* @typedef ZoneUpdateRequest
|
|
@@ -175,7 +186,6 @@ export = ServiceabilityPlatformModel;
|
|
|
175
186
|
* @property {number[]} store_ids
|
|
176
187
|
* @property {string} [region_type]
|
|
177
188
|
* @property {ZoneMappingType[]} mapping
|
|
178
|
-
* @property {string} [assignment_preference]
|
|
179
189
|
* @property {number} stores_count
|
|
180
190
|
*/
|
|
181
191
|
/**
|
|
@@ -193,9 +203,7 @@ export = ServiceabilityPlatformModel;
|
|
|
193
203
|
* @property {ZoneProductTypes} product
|
|
194
204
|
* @property {number[]} store_ids
|
|
195
205
|
* @property {string} region_type
|
|
196
|
-
* @property {
|
|
197
|
-
* @property {string} [assignment_preference]
|
|
198
|
-
* @property {number} stores_count
|
|
206
|
+
* @property {ZoneMappingDetailType[]} mapping - Country to region mapping for the zone.
|
|
199
207
|
*/
|
|
200
208
|
/**
|
|
201
209
|
* @typedef CreateZoneData
|
|
@@ -205,9 +213,9 @@ export = ServiceabilityPlatformModel;
|
|
|
205
213
|
* @property {boolean} is_active
|
|
206
214
|
* @property {GetZoneDataViewChannels[]} channels
|
|
207
215
|
* @property {number[]} store_ids
|
|
216
|
+
* @property {ZoneProductTypes} product
|
|
208
217
|
* @property {string} region_type
|
|
209
218
|
* @property {ZoneMappingType[]} mapping
|
|
210
|
-
* @property {string} [assignment_preference]
|
|
211
219
|
*/
|
|
212
220
|
/**
|
|
213
221
|
* @typedef ZoneResponse
|
|
@@ -229,7 +237,6 @@ export = ServiceabilityPlatformModel;
|
|
|
229
237
|
* @property {string} slug
|
|
230
238
|
* @property {boolean} is_active
|
|
231
239
|
* @property {number[]} store_ids
|
|
232
|
-
* @property {string} assignment_preference
|
|
233
240
|
*/
|
|
234
241
|
/**
|
|
235
242
|
* @typedef GetZoneFromPincodeViewResponse
|
|
@@ -1027,7 +1034,7 @@ export = ServiceabilityPlatformModel;
|
|
|
1027
1034
|
declare class ServiceabilityPlatformModel {
|
|
1028
1035
|
}
|
|
1029
1036
|
declare namespace ServiceabilityPlatformModel {
|
|
1030
|
-
export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingType, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, CourierAccountRequestBody, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerRuleCPListResponse, CourierPartnerRuleResponse, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, ApplicationConfig, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse, ArticleAssignment, ServiceabilityLocation, LocationDetailsServiceability, OptimalLocationsArticles, OptimlLocationsRequestSchema, OptimalLocationArticlesResponse, OptimalLocationAssignedStoresResponse, OptimalLocationsResponse };
|
|
1037
|
+
export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingDetailType, ZoneMappingType, ZoneMappingRegions, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, CourierAccountRequestBody, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerRuleCPListResponse, CourierPartnerRuleResponse, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, ApplicationConfig, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse, ArticleAssignment, ServiceabilityLocation, LocationDetailsServiceability, OptimalLocationsArticles, OptimlLocationsRequestSchema, OptimalLocationArticlesResponse, OptimalLocationAssignedStoresResponse, OptimalLocationsResponse };
|
|
1031
1038
|
}
|
|
1032
1039
|
/** @returns {UpdateZoneConfigRequest} */
|
|
1033
1040
|
declare function UpdateZoneConfigRequest(): UpdateZoneConfigRequest;
|
|
@@ -1211,12 +1218,44 @@ type ZoneProductTypes = {
|
|
|
1211
1218
|
type: string;
|
|
1212
1219
|
tags: string[];
|
|
1213
1220
|
};
|
|
1221
|
+
/** @returns {ZoneMappingDetailType} */
|
|
1222
|
+
declare function ZoneMappingDetailType(): ZoneMappingDetailType;
|
|
1223
|
+
type ZoneMappingDetailType = {
|
|
1224
|
+
/**
|
|
1225
|
+
* - Uid for the country.
|
|
1226
|
+
*/
|
|
1227
|
+
country: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* - List of regions with its details.
|
|
1230
|
+
*/
|
|
1231
|
+
regions?: ZoneMappingRegions[];
|
|
1232
|
+
};
|
|
1214
1233
|
/** @returns {ZoneMappingType} */
|
|
1215
1234
|
declare function ZoneMappingType(): ZoneMappingType;
|
|
1216
1235
|
type ZoneMappingType = {
|
|
1217
1236
|
country: string;
|
|
1218
|
-
|
|
1219
|
-
|
|
1237
|
+
regions: string[];
|
|
1238
|
+
};
|
|
1239
|
+
/** @returns {ZoneMappingRegions} */
|
|
1240
|
+
declare function ZoneMappingRegions(): ZoneMappingRegions;
|
|
1241
|
+
type ZoneMappingRegions = {
|
|
1242
|
+
/**
|
|
1243
|
+
* - Name of the region that is in proper casing.
|
|
1244
|
+
*/
|
|
1245
|
+
display_name?: string;
|
|
1246
|
+
parent_id?: string[];
|
|
1247
|
+
/**
|
|
1248
|
+
* - Unique identifier for that regions parent.
|
|
1249
|
+
*/
|
|
1250
|
+
parent_uid?: string;
|
|
1251
|
+
/**
|
|
1252
|
+
* - What type does the region belong to.
|
|
1253
|
+
*/
|
|
1254
|
+
sub_type?: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* - Unique identifier for that region.
|
|
1257
|
+
*/
|
|
1258
|
+
uid?: string;
|
|
1220
1259
|
};
|
|
1221
1260
|
/** @returns {UpdateZoneData} */
|
|
1222
1261
|
declare function UpdateZoneData(): UpdateZoneData;
|
|
@@ -1231,7 +1270,6 @@ type UpdateZoneData = {
|
|
|
1231
1270
|
store_ids: number[];
|
|
1232
1271
|
region_type: string;
|
|
1233
1272
|
mapping: ZoneMappingType[];
|
|
1234
|
-
assignment_preference?: string;
|
|
1235
1273
|
};
|
|
1236
1274
|
/** @returns {ZoneUpdateRequest} */
|
|
1237
1275
|
declare function ZoneUpdateRequest(): ZoneUpdateRequest;
|
|
@@ -1258,7 +1296,6 @@ type GetZoneDataViewItems = {
|
|
|
1258
1296
|
store_ids: number[];
|
|
1259
1297
|
region_type?: string;
|
|
1260
1298
|
mapping: ZoneMappingType[];
|
|
1261
|
-
assignment_preference?: string;
|
|
1262
1299
|
stores_count: number;
|
|
1263
1300
|
};
|
|
1264
1301
|
/** @returns {GetSingleZoneDataViewResponse} */
|
|
@@ -1278,9 +1315,10 @@ type GetZoneByIdSchema = {
|
|
|
1278
1315
|
product: ZoneProductTypes;
|
|
1279
1316
|
store_ids: number[];
|
|
1280
1317
|
region_type: string;
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1318
|
+
/**
|
|
1319
|
+
* - Country to region mapping for the zone.
|
|
1320
|
+
*/
|
|
1321
|
+
mapping: ZoneMappingDetailType[];
|
|
1284
1322
|
};
|
|
1285
1323
|
/** @returns {CreateZoneData} */
|
|
1286
1324
|
declare function CreateZoneData(): CreateZoneData;
|
|
@@ -1291,9 +1329,9 @@ type CreateZoneData = {
|
|
|
1291
1329
|
is_active: boolean;
|
|
1292
1330
|
channels: GetZoneDataViewChannels[];
|
|
1293
1331
|
store_ids: number[];
|
|
1332
|
+
product: ZoneProductTypes;
|
|
1294
1333
|
region_type: string;
|
|
1295
1334
|
mapping: ZoneMappingType[];
|
|
1296
|
-
assignment_preference?: string;
|
|
1297
1335
|
};
|
|
1298
1336
|
/** @returns {ZoneResponse} */
|
|
1299
1337
|
declare function ZoneResponse(): ZoneResponse;
|
|
@@ -1318,7 +1356,6 @@ type Zone = {
|
|
|
1318
1356
|
slug: string;
|
|
1319
1357
|
is_active: boolean;
|
|
1320
1358
|
store_ids: number[];
|
|
1321
|
-
assignment_preference: string;
|
|
1322
1359
|
};
|
|
1323
1360
|
/** @returns {GetZoneFromPincodeViewResponse} */
|
|
1324
1361
|
declare function GetZoneFromPincodeViewResponse(): GetZoneFromPincodeViewResponse;
|
|
@@ -155,11 +155,25 @@ const Joi = require("joi");
|
|
|
155
155
|
* @property {string[]} tags
|
|
156
156
|
*/
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* @typedef ZoneMappingDetailType
|
|
160
|
+
* @property {string} country - Uid for the country.
|
|
161
|
+
* @property {ZoneMappingRegions[]} [regions] - List of regions with its details.
|
|
162
|
+
*/
|
|
163
|
+
|
|
158
164
|
/**
|
|
159
165
|
* @typedef ZoneMappingType
|
|
160
166
|
* @property {string} country
|
|
161
|
-
* @property {string[]}
|
|
162
|
-
|
|
167
|
+
* @property {string[]} regions
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @typedef ZoneMappingRegions
|
|
172
|
+
* @property {string} [display_name] - Name of the region that is in proper casing.
|
|
173
|
+
* @property {string[]} [parent_id]
|
|
174
|
+
* @property {string} [parent_uid] - Unique identifier for that regions parent.
|
|
175
|
+
* @property {string} [sub_type] - What type does the region belong to.
|
|
176
|
+
* @property {string} [uid] - Unique identifier for that region.
|
|
163
177
|
*/
|
|
164
178
|
|
|
165
179
|
/**
|
|
@@ -174,7 +188,6 @@ const Joi = require("joi");
|
|
|
174
188
|
* @property {number[]} store_ids
|
|
175
189
|
* @property {string} region_type
|
|
176
190
|
* @property {ZoneMappingType[]} mapping
|
|
177
|
-
* @property {string} [assignment_preference]
|
|
178
191
|
*/
|
|
179
192
|
|
|
180
193
|
/**
|
|
@@ -201,7 +214,6 @@ const Joi = require("joi");
|
|
|
201
214
|
* @property {number[]} store_ids
|
|
202
215
|
* @property {string} [region_type]
|
|
203
216
|
* @property {ZoneMappingType[]} mapping
|
|
204
|
-
* @property {string} [assignment_preference]
|
|
205
217
|
* @property {number} stores_count
|
|
206
218
|
*/
|
|
207
219
|
|
|
@@ -221,9 +233,7 @@ const Joi = require("joi");
|
|
|
221
233
|
* @property {ZoneProductTypes} product
|
|
222
234
|
* @property {number[]} store_ids
|
|
223
235
|
* @property {string} region_type
|
|
224
|
-
* @property {
|
|
225
|
-
* @property {string} [assignment_preference]
|
|
226
|
-
* @property {number} stores_count
|
|
236
|
+
* @property {ZoneMappingDetailType[]} mapping - Country to region mapping for the zone.
|
|
227
237
|
*/
|
|
228
238
|
|
|
229
239
|
/**
|
|
@@ -234,9 +244,9 @@ const Joi = require("joi");
|
|
|
234
244
|
* @property {boolean} is_active
|
|
235
245
|
* @property {GetZoneDataViewChannels[]} channels
|
|
236
246
|
* @property {number[]} store_ids
|
|
247
|
+
* @property {ZoneProductTypes} product
|
|
237
248
|
* @property {string} region_type
|
|
238
249
|
* @property {ZoneMappingType[]} mapping
|
|
239
|
-
* @property {string} [assignment_preference]
|
|
240
250
|
*/
|
|
241
251
|
|
|
242
252
|
/**
|
|
@@ -261,7 +271,6 @@ const Joi = require("joi");
|
|
|
261
271
|
* @property {string} slug
|
|
262
272
|
* @property {boolean} is_active
|
|
263
273
|
* @property {number[]} store_ids
|
|
264
|
-
* @property {string} assignment_preference
|
|
265
274
|
*/
|
|
266
275
|
|
|
267
276
|
/**
|
|
@@ -1365,12 +1374,32 @@ class ServiceabilityPlatformModel {
|
|
|
1365
1374
|
});
|
|
1366
1375
|
}
|
|
1367
1376
|
|
|
1377
|
+
/** @returns {ZoneMappingDetailType} */
|
|
1378
|
+
static ZoneMappingDetailType() {
|
|
1379
|
+
return Joi.object({
|
|
1380
|
+
country: Joi.string().allow("").required(),
|
|
1381
|
+
regions: Joi.array().items(
|
|
1382
|
+
ServiceabilityPlatformModel.ZoneMappingRegions()
|
|
1383
|
+
),
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1368
1387
|
/** @returns {ZoneMappingType} */
|
|
1369
1388
|
static ZoneMappingType() {
|
|
1370
1389
|
return Joi.object({
|
|
1371
1390
|
country: Joi.string().allow("").required(),
|
|
1372
|
-
|
|
1373
|
-
|
|
1391
|
+
regions: Joi.array().items(Joi.string().allow("")).required(),
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/** @returns {ZoneMappingRegions} */
|
|
1396
|
+
static ZoneMappingRegions() {
|
|
1397
|
+
return Joi.object({
|
|
1398
|
+
display_name: Joi.string().allow(""),
|
|
1399
|
+
parent_id: Joi.array().items(Joi.string().allow("")),
|
|
1400
|
+
parent_uid: Joi.string().allow(""),
|
|
1401
|
+
sub_type: Joi.string().allow(""),
|
|
1402
|
+
uid: Joi.string().allow(""),
|
|
1374
1403
|
});
|
|
1375
1404
|
}
|
|
1376
1405
|
|
|
@@ -1391,7 +1420,6 @@ class ServiceabilityPlatformModel {
|
|
|
1391
1420
|
mapping: Joi.array()
|
|
1392
1421
|
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
1393
1422
|
.required(),
|
|
1394
|
-
assignment_preference: Joi.string().allow(""),
|
|
1395
1423
|
});
|
|
1396
1424
|
}
|
|
1397
1425
|
|
|
@@ -1428,7 +1456,6 @@ class ServiceabilityPlatformModel {
|
|
|
1428
1456
|
mapping: Joi.array()
|
|
1429
1457
|
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
1430
1458
|
.required(),
|
|
1431
|
-
assignment_preference: Joi.string().allow(""),
|
|
1432
1459
|
stores_count: Joi.number().required(),
|
|
1433
1460
|
});
|
|
1434
1461
|
}
|
|
@@ -1455,10 +1482,8 @@ class ServiceabilityPlatformModel {
|
|
|
1455
1482
|
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1456
1483
|
region_type: Joi.string().allow("").required(),
|
|
1457
1484
|
mapping: Joi.array()
|
|
1458
|
-
.items(ServiceabilityPlatformModel.
|
|
1485
|
+
.items(ServiceabilityPlatformModel.ZoneMappingDetailType())
|
|
1459
1486
|
.required(),
|
|
1460
|
-
assignment_preference: Joi.string().allow(""),
|
|
1461
|
-
stores_count: Joi.number().required(),
|
|
1462
1487
|
});
|
|
1463
1488
|
}
|
|
1464
1489
|
|
|
@@ -1473,11 +1498,11 @@ class ServiceabilityPlatformModel {
|
|
|
1473
1498
|
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
1474
1499
|
.required(),
|
|
1475
1500
|
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1501
|
+
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
1476
1502
|
region_type: Joi.string().allow("").required(),
|
|
1477
1503
|
mapping: Joi.array()
|
|
1478
1504
|
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
1479
1505
|
.required(),
|
|
1480
|
-
assignment_preference: Joi.string().allow(""),
|
|
1481
1506
|
});
|
|
1482
1507
|
}
|
|
1483
1508
|
|
|
@@ -1508,7 +1533,6 @@ class ServiceabilityPlatformModel {
|
|
|
1508
1533
|
slug: Joi.string().allow("").required(),
|
|
1509
1534
|
is_active: Joi.boolean().required(),
|
|
1510
1535
|
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1511
|
-
assignment_preference: Joi.string().allow("").required(),
|
|
1512
1536
|
});
|
|
1513
1537
|
}
|
|
1514
1538
|
|
|
@@ -112,7 +112,7 @@ export = ServiceabilityPlatformValidator;
|
|
|
112
112
|
* @property {number} [pageNo] - Index of the item to start returning with
|
|
113
113
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
114
114
|
* @property {boolean} [isActive] - Status of Zone (either active or inactive)
|
|
115
|
-
* @property {string} [
|
|
115
|
+
* @property {string} [applicationIds] - Zones filtered by applications
|
|
116
116
|
* @property {string} [q] - Search with name as a free text
|
|
117
117
|
* @property {string} [countryIsoCode] - ISO2 code of the country
|
|
118
118
|
* @property {string} [state] - State name
|
|
@@ -451,9 +451,9 @@ type GetZonesParam = {
|
|
|
451
451
|
*/
|
|
452
452
|
isActive?: boolean;
|
|
453
453
|
/**
|
|
454
|
-
* - Zones filtered by
|
|
454
|
+
* - Zones filtered by applications
|
|
455
455
|
*/
|
|
456
|
-
|
|
456
|
+
applicationIds?: string;
|
|
457
457
|
/**
|
|
458
458
|
* - Search with name as a free text
|
|
459
459
|
*/
|
|
@@ -134,7 +134,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
134
134
|
* @property {number} [pageNo] - Index of the item to start returning with
|
|
135
135
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
136
136
|
* @property {boolean} [isActive] - Status of Zone (either active or inactive)
|
|
137
|
-
* @property {string} [
|
|
137
|
+
* @property {string} [applicationIds] - Zones filtered by applications
|
|
138
138
|
* @property {string} [q] - Search with name as a free text
|
|
139
139
|
* @property {string} [countryIsoCode] - ISO2 code of the country
|
|
140
140
|
* @property {string} [state] - State name
|
|
@@ -354,7 +354,7 @@ class ServiceabilityPlatformValidator {
|
|
|
354
354
|
pageNo: Joi.number(),
|
|
355
355
|
pageSize: Joi.number(),
|
|
356
356
|
isActive: Joi.boolean(),
|
|
357
|
-
|
|
357
|
+
applicationIds: Joi.string().allow(""),
|
|
358
358
|
q: Joi.string().allow(""),
|
|
359
359
|
countryIsoCode: Joi.string().allow(""),
|
|
360
360
|
state: Joi.string().allow(""),
|
|
@@ -379,16 +379,7 @@ export = ThemePlatformModel;
|
|
|
379
379
|
*/
|
|
380
380
|
/**
|
|
381
381
|
* @typedef GlobalSchema
|
|
382
|
-
* @property {
|
|
383
|
-
*/
|
|
384
|
-
/**
|
|
385
|
-
* @typedef Prop
|
|
386
|
-
* @property {string} [type] - The type of the property
|
|
387
|
-
* @property {string} [category] - The category of the property
|
|
388
|
-
* @property {string} [value] - The value of the property
|
|
389
|
-
* @property {string} [id] - The ID of the property
|
|
390
|
-
* @property {string} [label] - The label of the property
|
|
391
|
-
* @property {string} [info] - Additional information about the property
|
|
382
|
+
* @property {Object[]} [props]
|
|
392
383
|
*/
|
|
393
384
|
/**
|
|
394
385
|
* @typedef Assets
|
|
@@ -590,7 +581,7 @@ export = ThemePlatformModel;
|
|
|
590
581
|
declare class ThemePlatformModel {
|
|
591
582
|
}
|
|
592
583
|
declare namespace ThemePlatformModel {
|
|
593
|
-
export { GetExtensionSectionRes, ExtensionSection, PropExtension, AssetsExtension, ThemeReq, CompanyThemeSchema, MarketplaceThemeId, CompanyThemeMeta, ThemePayment, ThemeImages, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AllAvailablePageSchema, AddThemeRequestSchema, FontsSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, FontsSchemaItems, FontsSchemaItemsFiles, ThemesSchema, ThemeUpgradableResponse, UpdateThemeNameRequestBody, UpdateThemeRequestBody, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, ThemeMeta, Release, Images, CustomProps, GlobalSchema,
|
|
584
|
+
export { GetExtensionSectionRes, ExtensionSection, PropExtension, AssetsExtension, ThemeReq, CompanyThemeSchema, MarketplaceThemeId, CompanyThemeMeta, ThemePayment, ThemeImages, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AllAvailablePageSchema, AddThemeRequestSchema, FontsSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, FontsSchemaItems, FontsSchemaItemsFiles, ThemesSchema, ThemeUpgradableResponse, UpdateThemeNameRequestBody, UpdateThemeRequestBody, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, ThemeMeta, Release, Images, CustomProps, GlobalSchema, Assets, UMDJs, CommonJS, CSS, SectionItem, Preset, Page, Section, Block, Predicate, Screen, ThemeUserSchema, Route, SectionProps, SectionPreset, BlockProps, TextProp, CheckboxProp, RangeProp, ImagePickerProp, UrlProp, ThemeVersions, DummyResponse, AppliedThemes, CompanyPrivateTheme, ActionPage, PageType };
|
|
594
585
|
}
|
|
595
586
|
/** @returns {GetExtensionSectionRes} */
|
|
596
587
|
declare function GetExtensionSectionRes(): GetExtensionSectionRes;
|
|
@@ -1286,35 +1277,7 @@ type CustomProps = {
|
|
|
1286
1277
|
/** @returns {GlobalSchema} */
|
|
1287
1278
|
declare function GlobalSchema(): GlobalSchema;
|
|
1288
1279
|
type GlobalSchema = {
|
|
1289
|
-
props?:
|
|
1290
|
-
};
|
|
1291
|
-
/** @returns {Prop} */
|
|
1292
|
-
declare function Prop(): Prop;
|
|
1293
|
-
type Prop = {
|
|
1294
|
-
/**
|
|
1295
|
-
* - The type of the property
|
|
1296
|
-
*/
|
|
1297
|
-
type?: string;
|
|
1298
|
-
/**
|
|
1299
|
-
* - The category of the property
|
|
1300
|
-
*/
|
|
1301
|
-
category?: string;
|
|
1302
|
-
/**
|
|
1303
|
-
* - The value of the property
|
|
1304
|
-
*/
|
|
1305
|
-
value?: string;
|
|
1306
|
-
/**
|
|
1307
|
-
* - The ID of the property
|
|
1308
|
-
*/
|
|
1309
|
-
id?: string;
|
|
1310
|
-
/**
|
|
1311
|
-
* - The label of the property
|
|
1312
|
-
*/
|
|
1313
|
-
label?: string;
|
|
1314
|
-
/**
|
|
1315
|
-
* - Additional information about the property
|
|
1316
|
-
*/
|
|
1317
|
-
info?: string;
|
|
1280
|
+
props?: any[];
|
|
1318
1281
|
};
|
|
1319
1282
|
/** @returns {Assets} */
|
|
1320
1283
|
declare function Assets(): Assets;
|
|
@@ -432,17 +432,7 @@ const Joi = require("joi");
|
|
|
432
432
|
|
|
433
433
|
/**
|
|
434
434
|
* @typedef GlobalSchema
|
|
435
|
-
* @property {
|
|
436
|
-
*/
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* @typedef Prop
|
|
440
|
-
* @property {string} [type] - The type of the property
|
|
441
|
-
* @property {string} [category] - The category of the property
|
|
442
|
-
* @property {string} [value] - The value of the property
|
|
443
|
-
* @property {string} [id] - The ID of the property
|
|
444
|
-
* @property {string} [label] - The label of the property
|
|
445
|
-
* @property {string} [info] - Additional information about the property
|
|
435
|
+
* @property {Object[]} [props]
|
|
446
436
|
*/
|
|
447
437
|
|
|
448
438
|
/**
|
|
@@ -1206,19 +1196,7 @@ class ThemePlatformModel {
|
|
|
1206
1196
|
/** @returns {GlobalSchema} */
|
|
1207
1197
|
static GlobalSchema() {
|
|
1208
1198
|
return Joi.object({
|
|
1209
|
-
props: Joi.array().items(
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
/** @returns {Prop} */
|
|
1214
|
-
static Prop() {
|
|
1215
|
-
return Joi.object({
|
|
1216
|
-
type: Joi.string().allow(""),
|
|
1217
|
-
category: Joi.string().allow(""),
|
|
1218
|
-
value: Joi.string().allow(""),
|
|
1219
|
-
id: Joi.string().allow(""),
|
|
1220
|
-
label: Joi.string().allow(""),
|
|
1221
|
-
info: Joi.string().allow(""),
|
|
1199
|
+
props: Joi.array().items(Joi.any()),
|
|
1222
1200
|
});
|
|
1223
1201
|
}
|
|
1224
1202
|
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
const PublicAPIClient = require("../PublicAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const PublicAPIClient = require("../PublicAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
10
|
+
|
|
8
11
|
const ConfigurationPublicValidator = require("./ConfigurationPublicValidator");
|
|
9
12
|
const ConfigurationPublicModel = require("./ConfigurationPublicModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
13
|
const Joi = require("joi");
|
|
14
|
+
const { Logger } = require("./../../common/Logger");
|
|
12
15
|
|
|
13
16
|
class Configuration {
|
|
14
17
|
constructor(_conf) {
|
|
@@ -16,7 +16,7 @@ declare class Content {
|
|
|
16
16
|
* @summary: Get credentials to power chat support systems
|
|
17
17
|
* @description: Get credentials for support system - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getCredentialsByEntity/).
|
|
18
18
|
*/
|
|
19
|
-
getCredentialsByEntity({ entity, requestHeaders }?: ContentPublicValidator.GetCredentialsByEntityParam, { responseHeaders }?: object): Promise<ContentPublicModel.CredentialsSchema>;
|
|
19
|
+
getCredentialsByEntity({ entity, requestHeaders }?: ContentPublicValidator.GetCredentialsByEntityParam, { responseHeaders }?: object, ...args: any[]): Promise<ContentPublicModel.CredentialsSchema>;
|
|
20
20
|
}
|
|
21
21
|
import ContentPublicValidator = require("./ContentPublicValidator");
|
|
22
22
|
import ContentPublicModel = require("./ContentPublicModel");
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
const PublicAPIClient = require("../PublicAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const PublicAPIClient = require("../PublicAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
10
|
+
|
|
8
11
|
const ContentPublicValidator = require("./ContentPublicValidator");
|
|
9
12
|
const ContentPublicModel = require("./ContentPublicModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
13
|
const Joi = require("joi");
|
|
14
|
+
const { Logger } = require("./../../common/Logger");
|
|
12
15
|
|
|
13
16
|
class Content {
|
|
14
17
|
constructor(_conf) {
|
|
@@ -45,6 +48,15 @@ class Content {
|
|
|
45
48
|
{ entity, requestHeaders } = { requestHeaders: {} },
|
|
46
49
|
{ responseHeaders } = { responseHeaders: false }
|
|
47
50
|
) {
|
|
51
|
+
const errors = validateRequiredParams(arguments[0], ["entity"]);
|
|
52
|
+
if (errors.length > 0) {
|
|
53
|
+
const error = new FDKClientValidationError({
|
|
54
|
+
message: "Missing required field",
|
|
55
|
+
details: errors,
|
|
56
|
+
});
|
|
57
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
58
|
+
}
|
|
59
|
+
|
|
48
60
|
const { error } = ContentPublicValidator.getCredentialsByEntity().validate(
|
|
49
61
|
{ entity },
|
|
50
62
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -16,7 +16,7 @@ declare class Partner {
|
|
|
16
16
|
* @summary: Get panel extension details
|
|
17
17
|
* @description: Retrieve detailed information about panel extensions in the public server setup. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/partner/getPanelExtensionDetails/).
|
|
18
18
|
*/
|
|
19
|
-
getPanelExtensionDetails({ slug, requestHeaders }?: PartnerPublicValidator.GetPanelExtensionDetailsParam, { responseHeaders }?: object): Promise<PartnerPublicModel.ExtensionUsingSlug>;
|
|
19
|
+
getPanelExtensionDetails({ slug, requestHeaders }?: PartnerPublicValidator.GetPanelExtensionDetailsParam, { responseHeaders }?: object, ...args: any[]): Promise<PartnerPublicModel.ExtensionUsingSlug>;
|
|
20
20
|
}
|
|
21
21
|
import PartnerPublicValidator = require("./PartnerPublicValidator");
|
|
22
22
|
import PartnerPublicModel = require("./PartnerPublicModel");
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
const PublicAPIClient = require("../PublicAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const PublicAPIClient = require("../PublicAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
10
|
+
|
|
8
11
|
const PartnerPublicValidator = require("./PartnerPublicValidator");
|
|
9
12
|
const PartnerPublicModel = require("./PartnerPublicModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
13
|
const Joi = require("joi");
|
|
14
|
+
const { Logger } = require("./../../common/Logger");
|
|
12
15
|
|
|
13
16
|
class Partner {
|
|
14
17
|
constructor(_conf) {
|
|
@@ -46,6 +49,15 @@ class Partner {
|
|
|
46
49
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
47
50
|
{ responseHeaders } = { responseHeaders: false }
|
|
48
51
|
) {
|
|
52
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
53
|
+
if (errors.length > 0) {
|
|
54
|
+
const error = new FDKClientValidationError({
|
|
55
|
+
message: "Missing required field",
|
|
56
|
+
details: errors,
|
|
57
|
+
});
|
|
58
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
59
|
+
}
|
|
60
|
+
|
|
49
61
|
const {
|
|
50
62
|
error,
|
|
51
63
|
} = PartnerPublicValidator.getPanelExtensionDetails().validate(
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
const PublicAPIClient = require("../PublicAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const PublicAPIClient = require("../PublicAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
10
|
+
|
|
8
11
|
const WebhookPublicValidator = require("./WebhookPublicValidator");
|
|
9
12
|
const WebhookPublicModel = require("./WebhookPublicModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
13
|
const Joi = require("joi");
|
|
14
|
+
const { Logger } = require("./../../common/Logger");
|
|
12
15
|
|
|
13
16
|
class Webhook {
|
|
14
17
|
constructor(_conf) {
|