@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.3.11-beta.8
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/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -2,115 +2,230 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @typedef BulkServiceabilityParam
|
|
7
|
+
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
8
|
+
* @property {string} schemeId - Unique identifier of a scheme
|
|
9
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobSerializer} body
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @typedef BulkTatParam
|
|
14
|
+
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
15
|
+
* @property {string} schemeId - Unique identifier of a scheme
|
|
16
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobSerializer} body
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @typedef CreateCourierPartnerAccountParam
|
|
21
|
+
* @property {ServiceabilityPlatformModel.CourierAccount} body
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @typedef CreatePackageMaterialParam
|
|
26
|
+
* @property {ServiceabilityPlatformModel.PackageMaterial} body
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @typedef CreatePackageMaterialRuleParam
|
|
31
|
+
* @property {ServiceabilityPlatformModel.PackageRule} body
|
|
32
|
+
*/
|
|
33
|
+
|
|
5
34
|
/**
|
|
6
35
|
* @typedef CreateZoneParam
|
|
7
|
-
* @property {ServiceabilityPlatformModel.
|
|
36
|
+
* @property {ServiceabilityPlatformModel.CreateZoneData} body
|
|
8
37
|
*/
|
|
9
38
|
|
|
10
39
|
/** @typedef GetAllStoresParam */
|
|
11
40
|
|
|
12
41
|
/**
|
|
13
|
-
* @typedef
|
|
14
|
-
* @property {
|
|
42
|
+
* @typedef GetBulkServiceabilityParam
|
|
43
|
+
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
44
|
+
* @property {string} schemeId - Unique identifier of a scheme
|
|
45
|
+
* @property {number} [pageNo] - Index of the item to start returning with
|
|
46
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
47
|
+
* @property {string} [batchId] - Unique identifier of bulk job
|
|
48
|
+
* @property {string} [action] - Import or export bulk type
|
|
49
|
+
* @property {string} [status] - Status of the bulk actions
|
|
50
|
+
* @property {string} [country] - Country for which bulk job is initiated
|
|
51
|
+
* @property {string} [region] - Region for which bulk job is initiated
|
|
52
|
+
* @property {string} [startDate] - Fetch job history after a particule date
|
|
53
|
+
* @property {string} [endDate] - Fetch job history before a particule date
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @typedef GetBulkTatParam
|
|
58
|
+
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
59
|
+
* @property {string} schemeId - Unique identifier of a scheme
|
|
60
|
+
* @property {number} [pageNo] - Index of the item to start returning with
|
|
15
61
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
62
|
+
* @property {string} [batchId] - Unique identifier of bulk job
|
|
63
|
+
* @property {string} [action] - Import or export bulk type
|
|
64
|
+
* @property {string} [status] - Status of the bulk actions
|
|
65
|
+
* @property {string} [country] - Country for which bulk job is initiated
|
|
66
|
+
* @property {string} [region] - Region for which bulk job is initiated
|
|
67
|
+
* @property {string} [startDate] - Fetch job history after a particule date
|
|
68
|
+
* @property {string} [endDate] - Fetch job history before a particule date
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/** @typedef GetCompanyConfigurationParam */
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @typedef GetCourierPartnerAccountParam
|
|
75
|
+
* @property {string} accountId - Unique ID of courier account
|
|
16
76
|
*/
|
|
17
77
|
|
|
18
78
|
/**
|
|
19
|
-
* @typedef
|
|
20
|
-
* @property {number} [
|
|
79
|
+
* @typedef GetCourierPartnerAccountsParam
|
|
80
|
+
* @property {number} [pageNo] - Index of the item to start returning with
|
|
21
81
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
22
82
|
* @property {string} [stage] - Stage of the account. enabled/disabled
|
|
23
83
|
* @property {string} [paymentMode] - Filters dp accounts based on payment mode
|
|
24
84
|
* @property {string} [transportType] - Filters dp accounts based on transport_type
|
|
25
85
|
*/
|
|
26
86
|
|
|
27
|
-
/** @typedef GetDpCompanyRulesParam */
|
|
28
|
-
|
|
29
87
|
/**
|
|
30
|
-
* @typedef
|
|
31
|
-
* @property {
|
|
32
|
-
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
88
|
+
* @typedef GetOptimalLocationsParam
|
|
89
|
+
* @property {ServiceabilityPlatformModel.ReAssignStoreRequest} body
|
|
33
90
|
*/
|
|
34
91
|
|
|
35
92
|
/**
|
|
36
|
-
* @typedef
|
|
37
|
-
* @property {
|
|
93
|
+
* @typedef GetPackageMaterialListParam
|
|
94
|
+
* @property {number} [pageNo] - Index of the item to start returning with
|
|
95
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
96
|
+
* @property {string} [q] - Perform regex search on items matching name for given value
|
|
97
|
+
* @property {string} [size] - Filters items based on given size
|
|
98
|
+
* @property {string} [packageType] - Filters items based on given package_type
|
|
38
99
|
*/
|
|
39
100
|
|
|
40
101
|
/**
|
|
41
|
-
* @typedef
|
|
42
|
-
* @property {
|
|
102
|
+
* @typedef GetPackageMaterialRuleParam
|
|
103
|
+
* @property {string} ruleId - A `package_material_rule_id` is a unique
|
|
104
|
+
* identifier for a Package Material Rule
|
|
43
105
|
*/
|
|
44
106
|
|
|
45
107
|
/**
|
|
46
|
-
* @typedef
|
|
47
|
-
* @property {number} [
|
|
108
|
+
* @typedef GetPackageMaterialRulesParam
|
|
109
|
+
* @property {number} [pageNo] - Index of the item to start returning with
|
|
48
110
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
49
|
-
* @property {string} [
|
|
50
|
-
* @property {boolean} [isActive] - Status of zone whether active or inactive
|
|
51
|
-
* @property {string} [channelIds] - Zones associated with the given channel ids'
|
|
52
|
-
* @property {string} [q] - Search with name as a free text
|
|
111
|
+
* @property {string} [isActive] - Filters items based on given is_active
|
|
53
112
|
*/
|
|
54
113
|
|
|
55
114
|
/**
|
|
56
|
-
* @typedef
|
|
57
|
-
* @property {
|
|
115
|
+
* @typedef GetPackageMaterialsParam
|
|
116
|
+
* @property {string} packageMaterialId - A `package_material_id` is a unique
|
|
117
|
+
* identifier for a Package Material
|
|
58
118
|
*/
|
|
59
119
|
|
|
60
120
|
/**
|
|
61
|
-
* @typedef
|
|
62
|
-
* @property {
|
|
121
|
+
* @typedef GetServiceabilityParam
|
|
122
|
+
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
123
|
+
* @property {string} schemeId - Unique identifier of a scheme
|
|
124
|
+
* @property {string} regionId - Unique identifier of a region
|
|
63
125
|
*/
|
|
64
126
|
|
|
65
127
|
/**
|
|
66
|
-
* @typedef
|
|
128
|
+
* @typedef GetZoneByIdParam
|
|
67
129
|
* @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone.
|
|
68
130
|
*/
|
|
69
131
|
|
|
70
132
|
/**
|
|
71
|
-
* @typedef
|
|
72
|
-
* @property {number} [pageNumber] - Index of the item to start returning with
|
|
133
|
+
* @typedef GetZonesParam
|
|
73
134
|
* @property {number} [pageNo] - Index of the item to start returning with
|
|
74
135
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
75
|
-
* @property {
|
|
76
|
-
* @property {
|
|
77
|
-
* @property {string} [channelIds] - Zones associated with the given channel ids'
|
|
136
|
+
* @property {boolean} [isActive] - Status of Zone (either active or inactive)
|
|
137
|
+
* @property {string} [channelId] - Zones filtered by an application
|
|
78
138
|
* @property {string} [q] - Search with name as a free text
|
|
79
|
-
* @property {string
|
|
139
|
+
* @property {string} [country] - ISO2 code of the country
|
|
140
|
+
* @property {string} [state] - State name
|
|
141
|
+
* @property {string} [city] - City name
|
|
142
|
+
* @property {string} [pincode] - Pincode value to search zones
|
|
143
|
+
* @property {string} [sector] - Sector value to search zones
|
|
80
144
|
*/
|
|
81
145
|
|
|
82
146
|
/**
|
|
83
|
-
* @typedef
|
|
84
|
-
* @property {
|
|
85
|
-
* @property {ServiceabilityPlatformModel.DpRulesUpdateRequest} body
|
|
147
|
+
* @typedef UpdateCompanyConfigurationParam
|
|
148
|
+
* @property {ServiceabilityPlatformModel.CompanyConfig} body
|
|
86
149
|
*/
|
|
87
150
|
|
|
88
151
|
/**
|
|
89
|
-
* @typedef
|
|
90
|
-
* @property {string}
|
|
91
|
-
* @property {ServiceabilityPlatformModel.
|
|
152
|
+
* @typedef UpdateCourierPartnerAccountParam
|
|
153
|
+
* @property {string} accountId - Unique ID of courier account
|
|
154
|
+
* @property {ServiceabilityPlatformModel.CourierAccount} body
|
|
155
|
+
*/
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @typedef UpdatePackageMaterialRuleParam
|
|
159
|
+
* @property {string} ruleId - A `package_material_rule_id` is a unique
|
|
160
|
+
* identifier for a Package Material Rule
|
|
161
|
+
* @property {ServiceabilityPlatformModel.PackageRule} body
|
|
92
162
|
*/
|
|
93
163
|
|
|
94
164
|
/**
|
|
95
|
-
* @typedef
|
|
96
|
-
* @property {
|
|
165
|
+
* @typedef UpdatePackageMaterialsParam
|
|
166
|
+
* @property {string} packageMaterialId - A `package_material_id` is a unique
|
|
167
|
+
* identifier for a Package Material
|
|
168
|
+
* @property {ServiceabilityPlatformModel.PackageMaterial} body
|
|
97
169
|
*/
|
|
98
170
|
|
|
99
171
|
/**
|
|
100
|
-
* @typedef
|
|
101
|
-
* @property {
|
|
172
|
+
* @typedef UpdateServiceabilityParam
|
|
173
|
+
* @property {string} extensionId - Unique Identifier of CP Extension
|
|
174
|
+
* @property {string} schemeId - Unique identifier of a scheme
|
|
175
|
+
* @property {string} regionId - Unique identifier of a region
|
|
176
|
+
* @property {ServiceabilityPlatformModel.ServiceabilityModel} body
|
|
102
177
|
*/
|
|
103
178
|
|
|
104
179
|
/**
|
|
105
|
-
* @typedef
|
|
106
|
-
* @property {
|
|
180
|
+
* @typedef UpdateZoneByIdParam
|
|
181
|
+
* @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone.
|
|
182
|
+
* @property {ServiceabilityPlatformModel.UpdateZoneData} body
|
|
107
183
|
*/
|
|
108
184
|
|
|
109
185
|
class ServiceabilityPlatformValidator {
|
|
186
|
+
/** @returns {BulkServiceabilityParam} */
|
|
187
|
+
static bulkServiceability() {
|
|
188
|
+
return Joi.object({
|
|
189
|
+
extensionId: Joi.string().allow("").required(),
|
|
190
|
+
schemeId: Joi.string().allow("").required(),
|
|
191
|
+
body: ServiceabilityPlatformModel.BulkRegionJobSerializer().required(),
|
|
192
|
+
}).required();
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** @returns {BulkTatParam} */
|
|
196
|
+
static bulkTat() {
|
|
197
|
+
return Joi.object({
|
|
198
|
+
extensionId: Joi.string().allow("").required(),
|
|
199
|
+
schemeId: Joi.string().allow("").required(),
|
|
200
|
+
body: ServiceabilityPlatformModel.BulkRegionJobSerializer().required(),
|
|
201
|
+
}).required();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** @returns {CreateCourierPartnerAccountParam} */
|
|
205
|
+
static createCourierPartnerAccount() {
|
|
206
|
+
return Joi.object({
|
|
207
|
+
body: ServiceabilityPlatformModel.CourierAccount().required(),
|
|
208
|
+
}).required();
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** @returns {CreatePackageMaterialParam} */
|
|
212
|
+
static createPackageMaterial() {
|
|
213
|
+
return Joi.object({
|
|
214
|
+
body: ServiceabilityPlatformModel.PackageMaterial().required(),
|
|
215
|
+
}).required();
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** @returns {CreatePackageMaterialRuleParam} */
|
|
219
|
+
static createPackageMaterialRule() {
|
|
220
|
+
return Joi.object({
|
|
221
|
+
body: ServiceabilityPlatformModel.PackageRule().required(),
|
|
222
|
+
}).required();
|
|
223
|
+
}
|
|
224
|
+
|
|
110
225
|
/** @returns {CreateZoneParam} */
|
|
111
226
|
static createZone() {
|
|
112
227
|
return Joi.object({
|
|
113
|
-
body: ServiceabilityPlatformModel.
|
|
228
|
+
body: ServiceabilityPlatformModel.CreateZoneData().required(),
|
|
114
229
|
}).required();
|
|
115
230
|
}
|
|
116
231
|
|
|
@@ -119,133 +234,182 @@ class ServiceabilityPlatformValidator {
|
|
|
119
234
|
return Joi.object({}).required();
|
|
120
235
|
}
|
|
121
236
|
|
|
122
|
-
/** @returns {
|
|
123
|
-
static
|
|
237
|
+
/** @returns {GetBulkServiceabilityParam} */
|
|
238
|
+
static getBulkServiceability() {
|
|
124
239
|
return Joi.object({
|
|
125
|
-
|
|
240
|
+
extensionId: Joi.string().allow("").required(),
|
|
241
|
+
schemeId: Joi.string().allow("").required(),
|
|
242
|
+
pageNo: Joi.number(),
|
|
126
243
|
pageSize: Joi.number(),
|
|
244
|
+
batchId: Joi.string().allow(""),
|
|
245
|
+
action: Joi.string().allow(""),
|
|
246
|
+
status: Joi.string().allow(""),
|
|
247
|
+
country: Joi.string().allow(""),
|
|
248
|
+
region: Joi.string().allow(""),
|
|
249
|
+
startDate: Joi.string().allow(""),
|
|
250
|
+
endDate: Joi.string().allow(""),
|
|
127
251
|
}).required();
|
|
128
252
|
}
|
|
129
253
|
|
|
130
|
-
/** @returns {
|
|
131
|
-
static
|
|
254
|
+
/** @returns {GetBulkTatParam} */
|
|
255
|
+
static getBulkTat() {
|
|
132
256
|
return Joi.object({
|
|
133
|
-
|
|
257
|
+
extensionId: Joi.string().allow("").required(),
|
|
258
|
+
schemeId: Joi.string().allow("").required(),
|
|
259
|
+
pageNo: Joi.number(),
|
|
134
260
|
pageSize: Joi.number(),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
261
|
+
batchId: Joi.string().allow(""),
|
|
262
|
+
action: Joi.string().allow(""),
|
|
263
|
+
status: Joi.string().allow(""),
|
|
264
|
+
country: Joi.string().allow(""),
|
|
265
|
+
region: Joi.string().allow(""),
|
|
266
|
+
startDate: Joi.string().allow(""),
|
|
267
|
+
endDate: Joi.string().allow(""),
|
|
138
268
|
}).required();
|
|
139
269
|
}
|
|
140
270
|
|
|
141
|
-
/** @returns {
|
|
142
|
-
static
|
|
271
|
+
/** @returns {GetCompanyConfigurationParam} */
|
|
272
|
+
static getCompanyConfiguration() {
|
|
143
273
|
return Joi.object({}).required();
|
|
144
274
|
}
|
|
145
275
|
|
|
146
|
-
/** @returns {
|
|
147
|
-
static
|
|
276
|
+
/** @returns {GetCourierPartnerAccountParam} */
|
|
277
|
+
static getCourierPartnerAccount() {
|
|
148
278
|
return Joi.object({
|
|
149
|
-
|
|
150
|
-
pageSize: Joi.number(),
|
|
279
|
+
accountId: Joi.string().allow("").required(),
|
|
151
280
|
}).required();
|
|
152
281
|
}
|
|
153
282
|
|
|
154
|
-
/** @returns {
|
|
155
|
-
static
|
|
283
|
+
/** @returns {GetCourierPartnerAccountsParam} */
|
|
284
|
+
static getCourierPartnerAccounts() {
|
|
156
285
|
return Joi.object({
|
|
157
|
-
|
|
286
|
+
pageNo: Joi.number(),
|
|
287
|
+
pageSize: Joi.number(),
|
|
288
|
+
stage: Joi.string().allow(""),
|
|
289
|
+
paymentMode: Joi.string().allow(""),
|
|
290
|
+
transportType: Joi.string().allow(""),
|
|
158
291
|
}).required();
|
|
159
292
|
}
|
|
160
293
|
|
|
161
|
-
/** @returns {
|
|
162
|
-
static
|
|
294
|
+
/** @returns {GetOptimalLocationsParam} */
|
|
295
|
+
static getOptimalLocations() {
|
|
163
296
|
return Joi.object({
|
|
164
|
-
body: ServiceabilityPlatformModel.
|
|
297
|
+
body: ServiceabilityPlatformModel.ReAssignStoreRequest().required(),
|
|
165
298
|
}).required();
|
|
166
299
|
}
|
|
167
300
|
|
|
168
|
-
/** @returns {
|
|
169
|
-
static
|
|
301
|
+
/** @returns {GetPackageMaterialListParam} */
|
|
302
|
+
static getPackageMaterialList() {
|
|
170
303
|
return Joi.object({
|
|
171
|
-
|
|
304
|
+
pageNo: Joi.number(),
|
|
172
305
|
pageSize: Joi.number(),
|
|
173
|
-
name: Joi.string().allow(""),
|
|
174
|
-
isActive: Joi.boolean(),
|
|
175
|
-
channelIds: Joi.string().allow(""),
|
|
176
306
|
q: Joi.string().allow(""),
|
|
307
|
+
size: Joi.string().allow(""),
|
|
308
|
+
packageType: Joi.string().allow(""),
|
|
177
309
|
}).required();
|
|
178
310
|
}
|
|
179
311
|
|
|
180
|
-
/** @returns {
|
|
181
|
-
static
|
|
312
|
+
/** @returns {GetPackageMaterialRuleParam} */
|
|
313
|
+
static getPackageMaterialRule() {
|
|
182
314
|
return Joi.object({
|
|
183
|
-
|
|
315
|
+
ruleId: Joi.string().allow("").required(),
|
|
316
|
+
}).required();
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** @returns {GetPackageMaterialRulesParam} */
|
|
320
|
+
static getPackageMaterialRules() {
|
|
321
|
+
return Joi.object({
|
|
322
|
+
pageNo: Joi.number(),
|
|
323
|
+
pageSize: Joi.number(),
|
|
324
|
+
isActive: Joi.string().allow(""),
|
|
325
|
+
}).required();
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/** @returns {GetPackageMaterialsParam} */
|
|
329
|
+
static getPackageMaterials() {
|
|
330
|
+
return Joi.object({
|
|
331
|
+
packageMaterialId: Joi.string().allow("").required(),
|
|
184
332
|
}).required();
|
|
185
333
|
}
|
|
186
334
|
|
|
187
|
-
/** @returns {
|
|
188
|
-
static
|
|
335
|
+
/** @returns {GetServiceabilityParam} */
|
|
336
|
+
static getServiceability() {
|
|
189
337
|
return Joi.object({
|
|
190
|
-
|
|
338
|
+
extensionId: Joi.string().allow("").required(),
|
|
339
|
+
schemeId: Joi.string().allow("").required(),
|
|
340
|
+
regionId: Joi.string().allow("").required(),
|
|
191
341
|
}).required();
|
|
192
342
|
}
|
|
193
343
|
|
|
194
|
-
/** @returns {
|
|
195
|
-
static
|
|
344
|
+
/** @returns {GetZoneByIdParam} */
|
|
345
|
+
static getZoneById() {
|
|
196
346
|
return Joi.object({
|
|
197
347
|
zoneId: Joi.string().allow("").required(),
|
|
198
348
|
}).required();
|
|
199
349
|
}
|
|
200
350
|
|
|
201
|
-
/** @returns {
|
|
202
|
-
static
|
|
351
|
+
/** @returns {GetZonesParam} */
|
|
352
|
+
static getZones() {
|
|
203
353
|
return Joi.object({
|
|
204
|
-
pageNumber: Joi.number(),
|
|
205
354
|
pageNo: Joi.number(),
|
|
206
355
|
pageSize: Joi.number(),
|
|
207
|
-
name: Joi.string().allow(""),
|
|
208
356
|
isActive: Joi.boolean(),
|
|
209
|
-
|
|
357
|
+
channelId: Joi.string().allow(""),
|
|
210
358
|
q: Joi.string().allow(""),
|
|
211
|
-
|
|
359
|
+
country: Joi.string().allow(""),
|
|
360
|
+
state: Joi.string().allow(""),
|
|
361
|
+
city: Joi.string().allow(""),
|
|
362
|
+
pincode: Joi.string().allow(""),
|
|
363
|
+
sector: Joi.string().allow(""),
|
|
212
364
|
}).required();
|
|
213
365
|
}
|
|
214
366
|
|
|
215
|
-
/** @returns {
|
|
216
|
-
static
|
|
367
|
+
/** @returns {UpdateCompanyConfigurationParam} */
|
|
368
|
+
static updateCompanyConfiguration() {
|
|
217
369
|
return Joi.object({
|
|
218
|
-
|
|
219
|
-
body: ServiceabilityPlatformModel.DpRulesUpdateRequest().required(),
|
|
370
|
+
body: ServiceabilityPlatformModel.CompanyConfig().required(),
|
|
220
371
|
}).required();
|
|
221
372
|
}
|
|
222
373
|
|
|
223
|
-
/** @returns {
|
|
224
|
-
static
|
|
374
|
+
/** @returns {UpdateCourierPartnerAccountParam} */
|
|
375
|
+
static updateCourierPartnerAccount() {
|
|
225
376
|
return Joi.object({
|
|
226
|
-
|
|
227
|
-
body: ServiceabilityPlatformModel.
|
|
377
|
+
accountId: Joi.string().allow("").required(),
|
|
378
|
+
body: ServiceabilityPlatformModel.CourierAccount().required(),
|
|
379
|
+
}).required();
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/** @returns {UpdatePackageMaterialRuleParam} */
|
|
383
|
+
static updatePackageMaterialRule() {
|
|
384
|
+
return Joi.object({
|
|
385
|
+
ruleId: Joi.string().allow("").required(),
|
|
386
|
+
body: ServiceabilityPlatformModel.PackageRule().required(),
|
|
228
387
|
}).required();
|
|
229
388
|
}
|
|
230
389
|
|
|
231
|
-
/** @returns {
|
|
232
|
-
static
|
|
390
|
+
/** @returns {UpdatePackageMaterialsParam} */
|
|
391
|
+
static updatePackageMaterials() {
|
|
233
392
|
return Joi.object({
|
|
234
|
-
|
|
393
|
+
packageMaterialId: Joi.string().allow("").required(),
|
|
394
|
+
body: ServiceabilityPlatformModel.PackageMaterial().required(),
|
|
235
395
|
}).required();
|
|
236
396
|
}
|
|
237
397
|
|
|
238
|
-
/** @returns {
|
|
239
|
-
static
|
|
398
|
+
/** @returns {UpdateServiceabilityParam} */
|
|
399
|
+
static updateServiceability() {
|
|
240
400
|
return Joi.object({
|
|
241
|
-
|
|
401
|
+
extensionId: Joi.string().allow("").required(),
|
|
402
|
+
schemeId: Joi.string().allow("").required(),
|
|
403
|
+
regionId: Joi.string().allow("").required(),
|
|
404
|
+
body: ServiceabilityPlatformModel.ServiceabilityModel().required(),
|
|
242
405
|
}).required();
|
|
243
406
|
}
|
|
244
407
|
|
|
245
|
-
/** @returns {
|
|
246
|
-
static
|
|
408
|
+
/** @returns {UpdateZoneByIdParam} */
|
|
409
|
+
static updateZoneById() {
|
|
247
410
|
return Joi.object({
|
|
248
|
-
|
|
411
|
+
zoneId: Joi.string().allow("").required(),
|
|
412
|
+
body: ServiceabilityPlatformModel.UpdateZoneData().required(),
|
|
249
413
|
}).required();
|
|
250
414
|
}
|
|
251
415
|
}
|
|
@@ -22,6 +22,16 @@ declare class Theme {
|
|
|
22
22
|
* @description: Delete a specific theme for a company by providing the company ID and theme ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/deleteCompanyTheme/).
|
|
23
23
|
*/
|
|
24
24
|
deleteCompanyTheme({ themeId, requestHeaders }?: ThemePlatformValidator.DeleteCompanyThemeParam, { responseHeaders }?: object): Promise<ThemePlatformModel.CompanyThemeSchema>;
|
|
25
|
+
/**
|
|
26
|
+
* @param {ThemePlatformValidator.GetCompanyLevelPrivateThemesParam} arg - Arg object
|
|
27
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
28
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
29
|
+
* @returns {Promise<ThemePlatformModel.CompanyPrivateTheme[]>} - Success response
|
|
30
|
+
* @name getCompanyLevelPrivateThemes
|
|
31
|
+
* @summary: Get private themes for a company
|
|
32
|
+
* @description: Retrieve a list of private themes available for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getCompanyLevelPrivateThemes/).
|
|
33
|
+
*/
|
|
34
|
+
getCompanyLevelPrivateThemes({ searchText, requestHeaders }?: ThemePlatformValidator.GetCompanyLevelPrivateThemesParam, { responseHeaders }?: object): Promise<ThemePlatformModel.CompanyPrivateTheme[]>;
|
|
25
35
|
/**
|
|
26
36
|
* @param {ThemePlatformValidator.GetCompanyLevelThemesParam} arg - Arg object
|
|
27
37
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -31,7 +41,7 @@ declare class Theme {
|
|
|
31
41
|
* @summary: Get themes for a company
|
|
32
42
|
* @description: Retrieve a list of themes available for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getCompanyLevelThemes/).
|
|
33
43
|
*/
|
|
34
|
-
getCompanyLevelThemes({ requestHeaders }?:
|
|
44
|
+
getCompanyLevelThemes({ searchText, requestHeaders }?: ThemePlatformValidator.GetCompanyLevelThemesParam, { responseHeaders }?: object): Promise<ThemePlatformModel.CompanyThemeSchema[]>;
|
|
35
45
|
}
|
|
36
46
|
import ThemePlatformValidator = require("./ThemePlatformValidator");
|
|
37
47
|
import ThemePlatformModel = require("./ThemePlatformModel");
|
|
@@ -174,6 +174,85 @@ class Theme {
|
|
|
174
174
|
return response;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
/**
|
|
178
|
+
* @param {ThemePlatformValidator.GetCompanyLevelPrivateThemesParam} arg - Arg object
|
|
179
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
180
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
181
|
+
* @returns {Promise<ThemePlatformModel.CompanyPrivateTheme[]>} - Success response
|
|
182
|
+
* @name getCompanyLevelPrivateThemes
|
|
183
|
+
* @summary: Get private themes for a company
|
|
184
|
+
* @description: Retrieve a list of private themes available for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getCompanyLevelPrivateThemes/).
|
|
185
|
+
*/
|
|
186
|
+
async getCompanyLevelPrivateThemes(
|
|
187
|
+
{ searchText, requestHeaders } = { requestHeaders: {} },
|
|
188
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
189
|
+
) {
|
|
190
|
+
const {
|
|
191
|
+
error,
|
|
192
|
+
} = ThemePlatformValidator.getCompanyLevelPrivateThemes().validate(
|
|
193
|
+
{
|
|
194
|
+
searchText,
|
|
195
|
+
},
|
|
196
|
+
{ abortEarly: false, allowUnknown: true }
|
|
197
|
+
);
|
|
198
|
+
if (error) {
|
|
199
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Showing warrnings if extra unknown parameters are found
|
|
203
|
+
const {
|
|
204
|
+
error: warrning,
|
|
205
|
+
} = ThemePlatformValidator.getCompanyLevelPrivateThemes().validate(
|
|
206
|
+
{
|
|
207
|
+
searchText,
|
|
208
|
+
},
|
|
209
|
+
{ abortEarly: false, allowUnknown: false }
|
|
210
|
+
);
|
|
211
|
+
if (warrning) {
|
|
212
|
+
Logger({
|
|
213
|
+
level: "WARN",
|
|
214
|
+
message: `Parameter Validation warrnings for platform > Theme > getCompanyLevelPrivateThemes \n ${warrning}`,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const query_params = {};
|
|
219
|
+
query_params["search_text"] = searchText;
|
|
220
|
+
|
|
221
|
+
const xHeaders = {};
|
|
222
|
+
|
|
223
|
+
const response = await PlatformAPIClient.execute(
|
|
224
|
+
this.config,
|
|
225
|
+
"get",
|
|
226
|
+
`/service/platform/theme/v2.0/company/${this.config.companyId}/private_themes`,
|
|
227
|
+
query_params,
|
|
228
|
+
undefined,
|
|
229
|
+
{ ...xHeaders, ...requestHeaders },
|
|
230
|
+
{ responseHeaders }
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
let responseData = response;
|
|
234
|
+
if (responseHeaders) {
|
|
235
|
+
responseData = response[0];
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const { error: res_error } = Joi.array()
|
|
239
|
+
.items(ThemePlatformModel.CompanyPrivateTheme())
|
|
240
|
+
.validate(responseData, { abortEarly: false, allowUnknown: true });
|
|
241
|
+
|
|
242
|
+
if (res_error) {
|
|
243
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
244
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
245
|
+
} else {
|
|
246
|
+
Logger({
|
|
247
|
+
level: "WARN",
|
|
248
|
+
message: `Response Validation Warnings for platform > Theme > getCompanyLevelPrivateThemes \n ${res_error}`,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
return response;
|
|
254
|
+
}
|
|
255
|
+
|
|
177
256
|
/**
|
|
178
257
|
* @param {ThemePlatformValidator.GetCompanyLevelThemesParam} arg - Arg object
|
|
179
258
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -184,11 +263,13 @@ class Theme {
|
|
|
184
263
|
* @description: Retrieve a list of themes available for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getCompanyLevelThemes/).
|
|
185
264
|
*/
|
|
186
265
|
async getCompanyLevelThemes(
|
|
187
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
266
|
+
{ searchText, requestHeaders } = { requestHeaders: {} },
|
|
188
267
|
{ responseHeaders } = { responseHeaders: false }
|
|
189
268
|
) {
|
|
190
269
|
const { error } = ThemePlatformValidator.getCompanyLevelThemes().validate(
|
|
191
|
-
{
|
|
270
|
+
{
|
|
271
|
+
searchText,
|
|
272
|
+
},
|
|
192
273
|
{ abortEarly: false, allowUnknown: true }
|
|
193
274
|
);
|
|
194
275
|
if (error) {
|
|
@@ -199,7 +280,9 @@ class Theme {
|
|
|
199
280
|
const {
|
|
200
281
|
error: warrning,
|
|
201
282
|
} = ThemePlatformValidator.getCompanyLevelThemes().validate(
|
|
202
|
-
{
|
|
283
|
+
{
|
|
284
|
+
searchText,
|
|
285
|
+
},
|
|
203
286
|
{ abortEarly: false, allowUnknown: false }
|
|
204
287
|
);
|
|
205
288
|
if (warrning) {
|
|
@@ -210,6 +293,7 @@ class Theme {
|
|
|
210
293
|
}
|
|
211
294
|
|
|
212
295
|
const query_params = {};
|
|
296
|
+
query_params["search_text"] = searchText;
|
|
213
297
|
|
|
214
298
|
const xHeaders = {};
|
|
215
299
|
|