@gofynd/fdk-client-javascript 1.6.4 → 2.0.0
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 +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -268
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
- package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
- package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
- package/sdk/application/Content/ContentApplicationClient.js +222 -191
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
- package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +68 -153
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
- package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
- package/sdk/platform/Cart/CartPlatformModel.js +38 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
- package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
- package/sdk/platform/Content/ContentPlatformModel.js +717 -34
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
- package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
- package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
- package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +2 -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 +212 -0
- package/sdk/platform/Order/OrderPlatformClient.js +397 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +41 -9
- package/sdk/platform/Order/OrderPlatformModel.js +20 -7
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
- package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +13 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +12 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +52 -1
- package/sdk/platform/User/UserPlatformModel.js +36 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +5 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +2 -0
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
- package/sdk/public/Content/ContentPublicClient.js +261 -104
- package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
- package/sdk/public/Content/ContentPublicModel.js +102 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
- package/sdk/public/Content/ContentPublicValidator.js +26 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export = ContentPlatformValidator;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef AddCompanyLanguageParam
|
|
4
|
+
* @property {ContentPlatformModel.CompanyLanguageCreate} body
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @typedef CreateCompanyResourceTranslationParam
|
|
8
|
+
* @property {ContentPlatformModel.ResourceTranslationCreate} body
|
|
9
|
+
*/
|
|
2
10
|
/**
|
|
3
11
|
* @typedef CreateCustomFieldDefinitionParam
|
|
4
12
|
* @property {string} resource
|
|
@@ -13,6 +21,14 @@ export = ContentPlatformValidator;
|
|
|
13
21
|
* @typedef CreateCustomObjectDefinitionParam
|
|
14
22
|
* @property {ContentPlatformModel.CustomObjectDefinitionRequestSchema} body
|
|
15
23
|
*/
|
|
24
|
+
/**
|
|
25
|
+
* @typedef DeleteCompanyLanguageParam
|
|
26
|
+
* @property {string} locale
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @typedef DeleteCompanyResourceTranslationParam
|
|
30
|
+
* @property {string} id
|
|
31
|
+
*/
|
|
16
32
|
/**
|
|
17
33
|
* @typedef DeleteCustomFieldDefinitionBySlugParam
|
|
18
34
|
* @property {string} slug
|
|
@@ -38,6 +54,19 @@ export = ContentPlatformValidator;
|
|
|
38
54
|
* @typedef ExportCustomObjectEntriesBySlugParam
|
|
39
55
|
* @property {string} slug
|
|
40
56
|
*/
|
|
57
|
+
/**
|
|
58
|
+
* @typedef GetAllResourceDefinitionsParam
|
|
59
|
+
* @property {string} [translatableResourceId]
|
|
60
|
+
*/
|
|
61
|
+
/** @typedef GetAllSectionsParam */
|
|
62
|
+
/** @typedef GetAllTranslatableResourcesParam */
|
|
63
|
+
/** @typedef GetCompanyLanguagesParam */
|
|
64
|
+
/**
|
|
65
|
+
* @typedef GetCompanyResourceTranslationParam
|
|
66
|
+
* @property {string} locale
|
|
67
|
+
* @property {string} type
|
|
68
|
+
* @property {string} resourceId
|
|
69
|
+
*/
|
|
41
70
|
/**
|
|
42
71
|
* @typedef GetCustomFieldDefinitionByResourceParam
|
|
43
72
|
* @property {string} pageNo
|
|
@@ -97,7 +126,23 @@ export = ContentPlatformValidator;
|
|
|
97
126
|
* @property {string} pageSize
|
|
98
127
|
* @property {string} actionType
|
|
99
128
|
*/
|
|
129
|
+
/**
|
|
130
|
+
* @typedef GetResourceDefinitionByIdParam
|
|
131
|
+
* @property {string} id
|
|
132
|
+
*/
|
|
100
133
|
/** @typedef GetResourcesParam */
|
|
134
|
+
/**
|
|
135
|
+
* @typedef GetSectionByIdParam
|
|
136
|
+
* @property {string} id
|
|
137
|
+
*/
|
|
138
|
+
/**
|
|
139
|
+
* @typedef GetTranslatableResourceByIdParam
|
|
140
|
+
* @property {string} id
|
|
141
|
+
*/
|
|
142
|
+
/**
|
|
143
|
+
* @typedef GetTranslatableResourcesBySectionIdParam
|
|
144
|
+
* @property {string} id
|
|
145
|
+
*/
|
|
101
146
|
/**
|
|
102
147
|
* @typedef ImportCustomObjectEntriesBySlugParam
|
|
103
148
|
* @property {string} slug
|
|
@@ -107,6 +152,15 @@ export = ContentPlatformValidator;
|
|
|
107
152
|
* @typedef SampleCustomObjectBulkEntryBySlugParam
|
|
108
153
|
* @property {string} slug
|
|
109
154
|
*/
|
|
155
|
+
/**
|
|
156
|
+
* @typedef UpdateCompanyLanguageDefaultParam
|
|
157
|
+
* @property {ContentPlatformModel.CompanyLanguageUpdate} body
|
|
158
|
+
*/
|
|
159
|
+
/**
|
|
160
|
+
* @typedef UpdateCompanyResourceTranslationParam
|
|
161
|
+
* @property {string} id
|
|
162
|
+
* @property {ContentPlatformModel.ResourceTranslationUpdate} body
|
|
163
|
+
*/
|
|
110
164
|
/**
|
|
111
165
|
* @typedef UpdateCustomFieldByResourceSlugParam
|
|
112
166
|
* @property {string} resource
|
|
@@ -132,12 +186,20 @@ export = ContentPlatformValidator;
|
|
|
132
186
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
133
187
|
*/
|
|
134
188
|
declare class ContentPlatformValidator {
|
|
189
|
+
/** @returns {AddCompanyLanguageParam} */
|
|
190
|
+
static addCompanyLanguage(): AddCompanyLanguageParam;
|
|
191
|
+
/** @returns {CreateCompanyResourceTranslationParam} */
|
|
192
|
+
static createCompanyResourceTranslation(): CreateCompanyResourceTranslationParam;
|
|
135
193
|
/** @returns {CreateCustomFieldDefinitionParam} */
|
|
136
194
|
static createCustomFieldDefinition(): CreateCustomFieldDefinitionParam;
|
|
137
195
|
/** @returns {CreateCustomObjectBySlugParam} */
|
|
138
196
|
static createCustomObjectBySlug(): CreateCustomObjectBySlugParam;
|
|
139
197
|
/** @returns {CreateCustomObjectDefinitionParam} */
|
|
140
198
|
static createCustomObjectDefinition(): CreateCustomObjectDefinitionParam;
|
|
199
|
+
/** @returns {DeleteCompanyLanguageParam} */
|
|
200
|
+
static deleteCompanyLanguage(): DeleteCompanyLanguageParam;
|
|
201
|
+
/** @returns {DeleteCompanyResourceTranslationParam} */
|
|
202
|
+
static deleteCompanyResourceTranslation(): DeleteCompanyResourceTranslationParam;
|
|
141
203
|
/** @returns {DeleteCustomFieldDefinitionBySlugParam} */
|
|
142
204
|
static deleteCustomFieldDefinitionBySlug(): DeleteCustomFieldDefinitionBySlugParam;
|
|
143
205
|
/** @returns {DeleteCustomFieldsByResourceSlugParam} */
|
|
@@ -148,6 +210,16 @@ declare class ContentPlatformValidator {
|
|
|
148
210
|
static deleteCustomObjectDefinitionBySlug(): DeleteCustomObjectDefinitionBySlugParam;
|
|
149
211
|
/** @returns {ExportCustomObjectEntriesBySlugParam} */
|
|
150
212
|
static exportCustomObjectEntriesBySlug(): ExportCustomObjectEntriesBySlugParam;
|
|
213
|
+
/** @returns {GetAllResourceDefinitionsParam} */
|
|
214
|
+
static getAllResourceDefinitions(): GetAllResourceDefinitionsParam;
|
|
215
|
+
/** @returns {GetAllSectionsParam} */
|
|
216
|
+
static getAllSections(): any;
|
|
217
|
+
/** @returns {GetAllTranslatableResourcesParam} */
|
|
218
|
+
static getAllTranslatableResources(): any;
|
|
219
|
+
/** @returns {GetCompanyLanguagesParam} */
|
|
220
|
+
static getCompanyLanguages(): any;
|
|
221
|
+
/** @returns {GetCompanyResourceTranslationParam} */
|
|
222
|
+
static getCompanyResourceTranslation(): GetCompanyResourceTranslationParam;
|
|
151
223
|
/** @returns {GetCustomFieldDefinitionByResourceParam} */
|
|
152
224
|
static getCustomFieldDefinitionByResource(): GetCustomFieldDefinitionByResourceParam;
|
|
153
225
|
/** @returns {GetCustomFieldDefinitionBySlugParam} */
|
|
@@ -168,12 +240,24 @@ declare class ContentPlatformValidator {
|
|
|
168
240
|
static getCustomObjectsBySlug(): GetCustomObjectsBySlugParam;
|
|
169
241
|
/** @returns {GetJobsParam} */
|
|
170
242
|
static getJobs(): GetJobsParam;
|
|
243
|
+
/** @returns {GetResourceDefinitionByIdParam} */
|
|
244
|
+
static getResourceDefinitionById(): GetResourceDefinitionByIdParam;
|
|
171
245
|
/** @returns {GetResourcesParam} */
|
|
172
246
|
static getResources(): any;
|
|
247
|
+
/** @returns {GetSectionByIdParam} */
|
|
248
|
+
static getSectionById(): GetSectionByIdParam;
|
|
249
|
+
/** @returns {GetTranslatableResourceByIdParam} */
|
|
250
|
+
static getTranslatableResourceById(): GetTranslatableResourceByIdParam;
|
|
251
|
+
/** @returns {GetTranslatableResourcesBySectionIdParam} */
|
|
252
|
+
static getTranslatableResourcesBySectionId(): GetTranslatableResourcesBySectionIdParam;
|
|
173
253
|
/** @returns {ImportCustomObjectEntriesBySlugParam} */
|
|
174
254
|
static importCustomObjectEntriesBySlug(): ImportCustomObjectEntriesBySlugParam;
|
|
175
255
|
/** @returns {SampleCustomObjectBulkEntryBySlugParam} */
|
|
176
256
|
static sampleCustomObjectBulkEntryBySlug(): SampleCustomObjectBulkEntryBySlugParam;
|
|
257
|
+
/** @returns {UpdateCompanyLanguageDefaultParam} */
|
|
258
|
+
static updateCompanyLanguageDefault(): UpdateCompanyLanguageDefaultParam;
|
|
259
|
+
/** @returns {UpdateCompanyResourceTranslationParam} */
|
|
260
|
+
static updateCompanyResourceTranslation(): UpdateCompanyResourceTranslationParam;
|
|
177
261
|
/** @returns {UpdateCustomFieldByResourceSlugParam} */
|
|
178
262
|
static updateCustomFieldByResourceSlug(): UpdateCustomFieldByResourceSlugParam;
|
|
179
263
|
/** @returns {UpdateCustomFieldDefinitionBySlugParam} */
|
|
@@ -184,8 +268,14 @@ declare class ContentPlatformValidator {
|
|
|
184
268
|
static updateCustomObjectDefinitionBySlug(): UpdateCustomObjectDefinitionBySlugParam;
|
|
185
269
|
}
|
|
186
270
|
declare namespace ContentPlatformValidator {
|
|
187
|
-
export { CreateCustomFieldDefinitionParam, CreateCustomObjectBySlugParam, CreateCustomObjectDefinitionParam, DeleteCustomFieldDefinitionBySlugParam, DeleteCustomFieldsByResourceSlugParam, DeleteCustomObjectBySlugParam, DeleteCustomObjectDefinitionBySlugParam, ExportCustomObjectEntriesBySlugParam, GetCustomFieldDefinitionByResourceParam, GetCustomFieldDefinitionBySlugParam, GetCustomFieldDefinitionsParam, GetCustomFieldTypesParam, GetCustomFieldsByResourceSlugParam, GetCustomObjectBySlugParam, GetCustomObjectDefinitionBySlugParam, GetCustomObjectDefinitionsParam, GetCustomObjectsBySlugParam, GetJobsParam, GetResourcesParam, ImportCustomObjectEntriesBySlugParam, SampleCustomObjectBulkEntryBySlugParam, UpdateCustomFieldByResourceSlugParam, UpdateCustomFieldDefinitionBySlugParam, UpdateCustomObjectBySlugParam, UpdateCustomObjectDefinitionBySlugParam };
|
|
271
|
+
export { AddCompanyLanguageParam, CreateCompanyResourceTranslationParam, CreateCustomFieldDefinitionParam, CreateCustomObjectBySlugParam, CreateCustomObjectDefinitionParam, DeleteCompanyLanguageParam, DeleteCompanyResourceTranslationParam, DeleteCustomFieldDefinitionBySlugParam, DeleteCustomFieldsByResourceSlugParam, DeleteCustomObjectBySlugParam, DeleteCustomObjectDefinitionBySlugParam, ExportCustomObjectEntriesBySlugParam, GetAllResourceDefinitionsParam, GetAllSectionsParam, GetAllTranslatableResourcesParam, GetCompanyLanguagesParam, GetCompanyResourceTranslationParam, GetCustomFieldDefinitionByResourceParam, GetCustomFieldDefinitionBySlugParam, GetCustomFieldDefinitionsParam, GetCustomFieldTypesParam, GetCustomFieldsByResourceSlugParam, GetCustomObjectBySlugParam, GetCustomObjectDefinitionBySlugParam, GetCustomObjectDefinitionsParam, GetCustomObjectsBySlugParam, GetJobsParam, GetResourceDefinitionByIdParam, GetResourcesParam, GetSectionByIdParam, GetTranslatableResourceByIdParam, GetTranslatableResourcesBySectionIdParam, ImportCustomObjectEntriesBySlugParam, SampleCustomObjectBulkEntryBySlugParam, UpdateCompanyLanguageDefaultParam, UpdateCompanyResourceTranslationParam, UpdateCustomFieldByResourceSlugParam, UpdateCustomFieldDefinitionBySlugParam, UpdateCustomObjectBySlugParam, UpdateCustomObjectDefinitionBySlugParam };
|
|
188
272
|
}
|
|
273
|
+
type AddCompanyLanguageParam = {
|
|
274
|
+
body: ContentPlatformModel.CompanyLanguageCreate;
|
|
275
|
+
};
|
|
276
|
+
type CreateCompanyResourceTranslationParam = {
|
|
277
|
+
body: ContentPlatformModel.ResourceTranslationCreate;
|
|
278
|
+
};
|
|
189
279
|
type CreateCustomFieldDefinitionParam = {
|
|
190
280
|
resource: string;
|
|
191
281
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema;
|
|
@@ -197,6 +287,12 @@ type CreateCustomObjectBySlugParam = {
|
|
|
197
287
|
type CreateCustomObjectDefinitionParam = {
|
|
198
288
|
body: ContentPlatformModel.CustomObjectDefinitionRequestSchema;
|
|
199
289
|
};
|
|
290
|
+
type DeleteCompanyLanguageParam = {
|
|
291
|
+
locale: string;
|
|
292
|
+
};
|
|
293
|
+
type DeleteCompanyResourceTranslationParam = {
|
|
294
|
+
id: string;
|
|
295
|
+
};
|
|
200
296
|
type DeleteCustomFieldDefinitionBySlugParam = {
|
|
201
297
|
slug: string;
|
|
202
298
|
resource: string;
|
|
@@ -217,6 +313,14 @@ type DeleteCustomObjectDefinitionBySlugParam = {
|
|
|
217
313
|
type ExportCustomObjectEntriesBySlugParam = {
|
|
218
314
|
slug: string;
|
|
219
315
|
};
|
|
316
|
+
type GetAllResourceDefinitionsParam = {
|
|
317
|
+
translatableResourceId?: string;
|
|
318
|
+
};
|
|
319
|
+
type GetCompanyResourceTranslationParam = {
|
|
320
|
+
locale: string;
|
|
321
|
+
type: string;
|
|
322
|
+
resourceId: string;
|
|
323
|
+
};
|
|
220
324
|
type GetCustomFieldDefinitionByResourceParam = {
|
|
221
325
|
pageNo: string;
|
|
222
326
|
pageSize: string;
|
|
@@ -266,6 +370,18 @@ type GetJobsParam = {
|
|
|
266
370
|
pageSize: string;
|
|
267
371
|
actionType: string;
|
|
268
372
|
};
|
|
373
|
+
type GetResourceDefinitionByIdParam = {
|
|
374
|
+
id: string;
|
|
375
|
+
};
|
|
376
|
+
type GetSectionByIdParam = {
|
|
377
|
+
id: string;
|
|
378
|
+
};
|
|
379
|
+
type GetTranslatableResourceByIdParam = {
|
|
380
|
+
id: string;
|
|
381
|
+
};
|
|
382
|
+
type GetTranslatableResourcesBySectionIdParam = {
|
|
383
|
+
id: string;
|
|
384
|
+
};
|
|
269
385
|
type ImportCustomObjectEntriesBySlugParam = {
|
|
270
386
|
slug: string;
|
|
271
387
|
body: ContentPlatformModel.CustomObjectBulkSchema;
|
|
@@ -273,6 +389,13 @@ type ImportCustomObjectEntriesBySlugParam = {
|
|
|
273
389
|
type SampleCustomObjectBulkEntryBySlugParam = {
|
|
274
390
|
slug: string;
|
|
275
391
|
};
|
|
392
|
+
type UpdateCompanyLanguageDefaultParam = {
|
|
393
|
+
body: ContentPlatformModel.CompanyLanguageUpdate;
|
|
394
|
+
};
|
|
395
|
+
type UpdateCompanyResourceTranslationParam = {
|
|
396
|
+
id: string;
|
|
397
|
+
body: ContentPlatformModel.ResourceTranslationUpdate;
|
|
398
|
+
};
|
|
276
399
|
type UpdateCustomFieldByResourceSlugParam = {
|
|
277
400
|
resource: string;
|
|
278
401
|
resourceSlug: string;
|
|
@@ -293,6 +416,9 @@ type UpdateCustomObjectDefinitionBySlugParam = {
|
|
|
293
416
|
slug: string;
|
|
294
417
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema;
|
|
295
418
|
};
|
|
419
|
+
type GetAllSectionsParam = any;
|
|
420
|
+
type GetAllTranslatableResourcesParam = any;
|
|
421
|
+
type GetCompanyLanguagesParam = any;
|
|
296
422
|
type GetCustomFieldTypesParam = any;
|
|
297
423
|
type GetResourcesParam = any;
|
|
298
424
|
import ContentPlatformModel = require("./ContentPlatformModel");
|
|
@@ -2,6 +2,16 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const ContentPlatformModel = require("./ContentPlatformModel");
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @typedef AddCompanyLanguageParam
|
|
7
|
+
* @property {ContentPlatformModel.CompanyLanguageCreate} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef CreateCompanyResourceTranslationParam
|
|
12
|
+
* @property {ContentPlatformModel.ResourceTranslationCreate} body
|
|
13
|
+
*/
|
|
14
|
+
|
|
5
15
|
/**
|
|
6
16
|
* @typedef CreateCustomFieldDefinitionParam
|
|
7
17
|
* @property {string} resource
|
|
@@ -19,6 +29,16 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
19
29
|
* @property {ContentPlatformModel.CustomObjectDefinitionRequestSchema} body
|
|
20
30
|
*/
|
|
21
31
|
|
|
32
|
+
/**
|
|
33
|
+
* @typedef DeleteCompanyLanguageParam
|
|
34
|
+
* @property {string} locale
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @typedef DeleteCompanyResourceTranslationParam
|
|
39
|
+
* @property {string} id
|
|
40
|
+
*/
|
|
41
|
+
|
|
22
42
|
/**
|
|
23
43
|
* @typedef DeleteCustomFieldDefinitionBySlugParam
|
|
24
44
|
* @property {string} slug
|
|
@@ -49,6 +69,24 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
49
69
|
* @property {string} slug
|
|
50
70
|
*/
|
|
51
71
|
|
|
72
|
+
/**
|
|
73
|
+
* @typedef GetAllResourceDefinitionsParam
|
|
74
|
+
* @property {string} [translatableResourceId]
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/** @typedef GetAllSectionsParam */
|
|
78
|
+
|
|
79
|
+
/** @typedef GetAllTranslatableResourcesParam */
|
|
80
|
+
|
|
81
|
+
/** @typedef GetCompanyLanguagesParam */
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef GetCompanyResourceTranslationParam
|
|
85
|
+
* @property {string} locale
|
|
86
|
+
* @property {string} type
|
|
87
|
+
* @property {string} resourceId
|
|
88
|
+
*/
|
|
89
|
+
|
|
52
90
|
/**
|
|
53
91
|
* @typedef GetCustomFieldDefinitionByResourceParam
|
|
54
92
|
* @property {string} pageNo
|
|
@@ -118,8 +156,28 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
118
156
|
* @property {string} actionType
|
|
119
157
|
*/
|
|
120
158
|
|
|
159
|
+
/**
|
|
160
|
+
* @typedef GetResourceDefinitionByIdParam
|
|
161
|
+
* @property {string} id
|
|
162
|
+
*/
|
|
163
|
+
|
|
121
164
|
/** @typedef GetResourcesParam */
|
|
122
165
|
|
|
166
|
+
/**
|
|
167
|
+
* @typedef GetSectionByIdParam
|
|
168
|
+
* @property {string} id
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @typedef GetTranslatableResourceByIdParam
|
|
173
|
+
* @property {string} id
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @typedef GetTranslatableResourcesBySectionIdParam
|
|
178
|
+
* @property {string} id
|
|
179
|
+
*/
|
|
180
|
+
|
|
123
181
|
/**
|
|
124
182
|
* @typedef ImportCustomObjectEntriesBySlugParam
|
|
125
183
|
* @property {string} slug
|
|
@@ -131,6 +189,17 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
131
189
|
* @property {string} slug
|
|
132
190
|
*/
|
|
133
191
|
|
|
192
|
+
/**
|
|
193
|
+
* @typedef UpdateCompanyLanguageDefaultParam
|
|
194
|
+
* @property {ContentPlatformModel.CompanyLanguageUpdate} body
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @typedef UpdateCompanyResourceTranslationParam
|
|
199
|
+
* @property {string} id
|
|
200
|
+
* @property {ContentPlatformModel.ResourceTranslationUpdate} body
|
|
201
|
+
*/
|
|
202
|
+
|
|
134
203
|
/**
|
|
135
204
|
* @typedef UpdateCustomFieldByResourceSlugParam
|
|
136
205
|
* @property {string} resource
|
|
@@ -160,6 +229,20 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
160
229
|
*/
|
|
161
230
|
|
|
162
231
|
class ContentPlatformValidator {
|
|
232
|
+
/** @returns {AddCompanyLanguageParam} */
|
|
233
|
+
static addCompanyLanguage() {
|
|
234
|
+
return Joi.object({
|
|
235
|
+
body: ContentPlatformModel.CompanyLanguageCreate().required(),
|
|
236
|
+
}).required();
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/** @returns {CreateCompanyResourceTranslationParam} */
|
|
240
|
+
static createCompanyResourceTranslation() {
|
|
241
|
+
return Joi.object({
|
|
242
|
+
body: ContentPlatformModel.ResourceTranslationCreate().required(),
|
|
243
|
+
}).required();
|
|
244
|
+
}
|
|
245
|
+
|
|
163
246
|
/** @returns {CreateCustomFieldDefinitionParam} */
|
|
164
247
|
static createCustomFieldDefinition() {
|
|
165
248
|
return Joi.object({
|
|
@@ -183,6 +266,20 @@ class ContentPlatformValidator {
|
|
|
183
266
|
}).required();
|
|
184
267
|
}
|
|
185
268
|
|
|
269
|
+
/** @returns {DeleteCompanyLanguageParam} */
|
|
270
|
+
static deleteCompanyLanguage() {
|
|
271
|
+
return Joi.object({
|
|
272
|
+
locale: Joi.string().allow("").required(),
|
|
273
|
+
}).required();
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/** @returns {DeleteCompanyResourceTranslationParam} */
|
|
277
|
+
static deleteCompanyResourceTranslation() {
|
|
278
|
+
return Joi.object({
|
|
279
|
+
id: Joi.string().allow("").required(),
|
|
280
|
+
}).required();
|
|
281
|
+
}
|
|
282
|
+
|
|
186
283
|
/** @returns {DeleteCustomFieldDefinitionBySlugParam} */
|
|
187
284
|
static deleteCustomFieldDefinitionBySlug() {
|
|
188
285
|
return Joi.object({
|
|
@@ -223,6 +320,37 @@ class ContentPlatformValidator {
|
|
|
223
320
|
}).required();
|
|
224
321
|
}
|
|
225
322
|
|
|
323
|
+
/** @returns {GetAllResourceDefinitionsParam} */
|
|
324
|
+
static getAllResourceDefinitions() {
|
|
325
|
+
return Joi.object({
|
|
326
|
+
translatableResourceId: Joi.string().allow(""),
|
|
327
|
+
}).required();
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/** @returns {GetAllSectionsParam} */
|
|
331
|
+
static getAllSections() {
|
|
332
|
+
return Joi.object({}).required();
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/** @returns {GetAllTranslatableResourcesParam} */
|
|
336
|
+
static getAllTranslatableResources() {
|
|
337
|
+
return Joi.object({}).required();
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/** @returns {GetCompanyLanguagesParam} */
|
|
341
|
+
static getCompanyLanguages() {
|
|
342
|
+
return Joi.object({}).required();
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/** @returns {GetCompanyResourceTranslationParam} */
|
|
346
|
+
static getCompanyResourceTranslation() {
|
|
347
|
+
return Joi.object({
|
|
348
|
+
locale: Joi.string().allow("").required(),
|
|
349
|
+
type: Joi.string().allow("").required(),
|
|
350
|
+
resourceId: Joi.string().allow("").required(),
|
|
351
|
+
}).required();
|
|
352
|
+
}
|
|
353
|
+
|
|
226
354
|
/** @returns {GetCustomFieldDefinitionByResourceParam} */
|
|
227
355
|
static getCustomFieldDefinitionByResource() {
|
|
228
356
|
return Joi.object({
|
|
@@ -313,11 +441,39 @@ class ContentPlatformValidator {
|
|
|
313
441
|
}).required();
|
|
314
442
|
}
|
|
315
443
|
|
|
444
|
+
/** @returns {GetResourceDefinitionByIdParam} */
|
|
445
|
+
static getResourceDefinitionById() {
|
|
446
|
+
return Joi.object({
|
|
447
|
+
id: Joi.string().allow("").required(),
|
|
448
|
+
}).required();
|
|
449
|
+
}
|
|
450
|
+
|
|
316
451
|
/** @returns {GetResourcesParam} */
|
|
317
452
|
static getResources() {
|
|
318
453
|
return Joi.object({}).required();
|
|
319
454
|
}
|
|
320
455
|
|
|
456
|
+
/** @returns {GetSectionByIdParam} */
|
|
457
|
+
static getSectionById() {
|
|
458
|
+
return Joi.object({
|
|
459
|
+
id: Joi.string().allow("").required(),
|
|
460
|
+
}).required();
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/** @returns {GetTranslatableResourceByIdParam} */
|
|
464
|
+
static getTranslatableResourceById() {
|
|
465
|
+
return Joi.object({
|
|
466
|
+
id: Joi.string().allow("").required(),
|
|
467
|
+
}).required();
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/** @returns {GetTranslatableResourcesBySectionIdParam} */
|
|
471
|
+
static getTranslatableResourcesBySectionId() {
|
|
472
|
+
return Joi.object({
|
|
473
|
+
id: Joi.string().allow("").required(),
|
|
474
|
+
}).required();
|
|
475
|
+
}
|
|
476
|
+
|
|
321
477
|
/** @returns {ImportCustomObjectEntriesBySlugParam} */
|
|
322
478
|
static importCustomObjectEntriesBySlug() {
|
|
323
479
|
return Joi.object({
|
|
@@ -333,6 +489,21 @@ class ContentPlatformValidator {
|
|
|
333
489
|
}).required();
|
|
334
490
|
}
|
|
335
491
|
|
|
492
|
+
/** @returns {UpdateCompanyLanguageDefaultParam} */
|
|
493
|
+
static updateCompanyLanguageDefault() {
|
|
494
|
+
return Joi.object({
|
|
495
|
+
body: ContentPlatformModel.CompanyLanguageUpdate().required(),
|
|
496
|
+
}).required();
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/** @returns {UpdateCompanyResourceTranslationParam} */
|
|
500
|
+
static updateCompanyResourceTranslation() {
|
|
501
|
+
return Joi.object({
|
|
502
|
+
id: Joi.string().allow("").required(),
|
|
503
|
+
body: ContentPlatformModel.ResourceTranslationUpdate().required(),
|
|
504
|
+
}).required();
|
|
505
|
+
}
|
|
506
|
+
|
|
336
507
|
/** @returns {UpdateCustomFieldByResourceSlugParam} */
|
|
337
508
|
static updateCustomFieldByResourceSlug() {
|
|
338
509
|
return Joi.object({
|
|
@@ -64,6 +64,39 @@ declare class Discount {
|
|
|
64
64
|
* @description: Retrieve a list of discounts. You can also retrieve discounts using filter query parameters. There are additional optional parameters that can be specified in the parameters of the request when retrieving discount - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscounts/).
|
|
65
65
|
*/
|
|
66
66
|
getDiscounts({ view, q, pageNo, pageSize, archived, month, year, type, appIds, requestHeaders, }?: DiscountPlatformValidator.GetDiscountsParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.ListOrCalender>;
|
|
67
|
+
/**
|
|
68
|
+
* @param {Object} arg - Arg object.
|
|
69
|
+
* @param {string} [arg.view] - Specifies the format in which the discounts
|
|
70
|
+
* are displayed. Options are 'listing' for a list view or 'calendar' for
|
|
71
|
+
* a calendar view. Defaults to 'listing'.
|
|
72
|
+
* @param {string} [arg.q] - The search query. This can be a partial or
|
|
73
|
+
* complete name of a discount.
|
|
74
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
75
|
+
* page. Default is 12.
|
|
76
|
+
* @param {boolean} [arg.archived] - Indicates whether to include expired
|
|
77
|
+
* discounts in the results. Defaults to false.
|
|
78
|
+
* @param {number} [arg.month] - The month for which discounts is requested.
|
|
79
|
+
* Defaults to the current month if not specified.
|
|
80
|
+
* @param {number} [arg.year] - The year for which discounts is requested.
|
|
81
|
+
* Defaults to the current year if not specified.
|
|
82
|
+
* @param {string} [arg.type] - Specifies the type of disocunt to list,
|
|
83
|
+
* either 'basic' or 'custom'.
|
|
84
|
+
* @param {string[]} [arg.appIds] - A `application_id` is a unique
|
|
85
|
+
* identifier for a particular sales channel.
|
|
86
|
+
* @returns {Paginator<DiscountPlatformModel.ListOrCalender>}
|
|
87
|
+
* @summary: List discounts
|
|
88
|
+
* @description: Retrieve a list of discounts. You can also retrieve discounts using filter query parameters. There are additional optional parameters that can be specified in the parameters of the request when retrieving discount
|
|
89
|
+
*/
|
|
90
|
+
getDiscountsPaginator({ view, q, pageSize, archived, month, year, type, appIds, }?: {
|
|
91
|
+
view?: string;
|
|
92
|
+
q?: string;
|
|
93
|
+
pageSize?: number;
|
|
94
|
+
archived?: boolean;
|
|
95
|
+
month?: number;
|
|
96
|
+
year?: number;
|
|
97
|
+
type?: string;
|
|
98
|
+
appIds?: string[];
|
|
99
|
+
}): Paginator<DiscountPlatformModel.ListOrCalender>;
|
|
67
100
|
/**
|
|
68
101
|
* @param {DiscountPlatformValidator.GetDownloadJobParam} arg - Arg object
|
|
69
102
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -117,3 +150,4 @@ declare class Discount {
|
|
|
117
150
|
}
|
|
118
151
|
import DiscountPlatformValidator = require("./DiscountPlatformValidator");
|
|
119
152
|
import DiscountPlatformModel = require("./DiscountPlatformModel");
|
|
153
|
+
import Paginator = require("../../common/Paginator");
|
|
@@ -528,6 +528,65 @@ class Discount {
|
|
|
528
528
|
return response;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
+
/**
|
|
532
|
+
* @param {Object} arg - Arg object.
|
|
533
|
+
* @param {string} [arg.view] - Specifies the format in which the discounts
|
|
534
|
+
* are displayed. Options are 'listing' for a list view or 'calendar' for
|
|
535
|
+
* a calendar view. Defaults to 'listing'.
|
|
536
|
+
* @param {string} [arg.q] - The search query. This can be a partial or
|
|
537
|
+
* complete name of a discount.
|
|
538
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
539
|
+
* page. Default is 12.
|
|
540
|
+
* @param {boolean} [arg.archived] - Indicates whether to include expired
|
|
541
|
+
* discounts in the results. Defaults to false.
|
|
542
|
+
* @param {number} [arg.month] - The month for which discounts is requested.
|
|
543
|
+
* Defaults to the current month if not specified.
|
|
544
|
+
* @param {number} [arg.year] - The year for which discounts is requested.
|
|
545
|
+
* Defaults to the current year if not specified.
|
|
546
|
+
* @param {string} [arg.type] - Specifies the type of disocunt to list,
|
|
547
|
+
* either 'basic' or 'custom'.
|
|
548
|
+
* @param {string[]} [arg.appIds] - A `application_id` is a unique
|
|
549
|
+
* identifier for a particular sales channel.
|
|
550
|
+
* @returns {Paginator<DiscountPlatformModel.ListOrCalender>}
|
|
551
|
+
* @summary: List discounts
|
|
552
|
+
* @description: Retrieve a list of discounts. You can also retrieve discounts using filter query parameters. There are additional optional parameters that can be specified in the parameters of the request when retrieving discount
|
|
553
|
+
*/
|
|
554
|
+
getDiscountsPaginator({
|
|
555
|
+
view,
|
|
556
|
+
q,
|
|
557
|
+
pageSize,
|
|
558
|
+
archived,
|
|
559
|
+
month,
|
|
560
|
+
year,
|
|
561
|
+
type,
|
|
562
|
+
appIds,
|
|
563
|
+
} = {}) {
|
|
564
|
+
const paginator = new Paginator();
|
|
565
|
+
const callback = async () => {
|
|
566
|
+
const pageId = paginator.nextId;
|
|
567
|
+
const pageNo = paginator.pageNo;
|
|
568
|
+
const pageType = "number";
|
|
569
|
+
const data = await this.getDiscounts({
|
|
570
|
+
view: view,
|
|
571
|
+
q: q,
|
|
572
|
+
pageNo: pageNo,
|
|
573
|
+
pageSize: pageSize,
|
|
574
|
+
archived: archived,
|
|
575
|
+
month: month,
|
|
576
|
+
year: year,
|
|
577
|
+
type: type,
|
|
578
|
+
appIds: appIds,
|
|
579
|
+
});
|
|
580
|
+
paginator.setPaginator({
|
|
581
|
+
hasNext: data.page.has_next ? true : false,
|
|
582
|
+
nextId: data.page.next_id,
|
|
583
|
+
});
|
|
584
|
+
return data;
|
|
585
|
+
};
|
|
586
|
+
paginator.setCallback(callback.bind(this));
|
|
587
|
+
return paginator;
|
|
588
|
+
}
|
|
589
|
+
|
|
531
590
|
/**
|
|
532
591
|
* @param {DiscountPlatformValidator.GetDownloadJobParam} arg - Arg object
|
|
533
592
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|