@gofynd/fdk-client-javascript 1.4.8-beta.2 → 1.4.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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1206 -281
- package/sdk/application/Content/ContentApplicationModel.js +342 -276
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1401 -324
- package/sdk/application/Order/OrderApplicationModel.js +392 -316
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +75 -8
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +59 -7
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
- package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
- package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +60 -17
- package/sdk/platform/Content/ContentPlatformModel.js +30 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
- package/sdk/platform/Finance/FinancePlatformClient.js +30 -30
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1601 -348
- package/sdk/platform/Finance/FinancePlatformModel.js +488 -352
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +631 -39
- package/sdk/platform/Order/OrderPlatformModel.js +367 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +139 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +98 -21
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -20
- package/sdk/platform/User/UserPlatformModel.js +9 -11
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +54 -33
- package/sdk/platform/Webhook/WebhookPlatformModel.js +33 -33
- package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
- package/sdk/public/Billing/BillingPublicClient.js +80 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
- package/sdk/public/Billing/BillingPublicModel.js +252 -87
- package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
- package/sdk/public/Billing/BillingPublicValidator.js +12 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -26,6 +26,12 @@ export = BillingPlatformValidator;
|
|
|
26
26
|
* @property {string} extensionId - Extension _id
|
|
27
27
|
* @property {BillingPlatformModel.CreateOneTimeCharge} body
|
|
28
28
|
*/
|
|
29
|
+
/**
|
|
30
|
+
* @typedef CreateSubscriptionChargeParam
|
|
31
|
+
* @property {string} extensionId - Extension Id for which we need to crete new
|
|
32
|
+
* subscription
|
|
33
|
+
* @property {BillingPlatformModel.CreateSubscriptionCharge} body
|
|
34
|
+
*/
|
|
29
35
|
/**
|
|
30
36
|
* @typedef CreditTransactionParam
|
|
31
37
|
* @property {number} uniqueId - Unique ID of the company
|
|
@@ -43,6 +49,11 @@ export = BillingPlatformValidator;
|
|
|
43
49
|
* @property {string} [productSuite]
|
|
44
50
|
* @property {string} [type]
|
|
45
51
|
*/
|
|
52
|
+
/**
|
|
53
|
+
* @typedef CurrentLimitParam
|
|
54
|
+
* @property {string} [productSuite]
|
|
55
|
+
* @property {string} [type]
|
|
56
|
+
*/
|
|
46
57
|
/** @typedef GetBankListParam */
|
|
47
58
|
/**
|
|
48
59
|
* @typedef GetChargeDetailsParam
|
|
@@ -51,11 +62,6 @@ export = BillingPlatformValidator;
|
|
|
51
62
|
*/
|
|
52
63
|
/** @typedef GetCustomerDetailParam */
|
|
53
64
|
/** @typedef GetEnterprisePlansParam */
|
|
54
|
-
/**
|
|
55
|
-
* @typedef GetFeatureLimitConfigParam
|
|
56
|
-
* @property {string} [productSuite]
|
|
57
|
-
* @property {string} [type]
|
|
58
|
-
*/
|
|
59
65
|
/**
|
|
60
66
|
* @typedef GetInvoiceByIdParam
|
|
61
67
|
* @property {string} invoiceId - Invoice id
|
|
@@ -99,7 +105,7 @@ export = BillingPlatformValidator;
|
|
|
99
105
|
*/
|
|
100
106
|
/**
|
|
101
107
|
* @typedef PaymentInitiateParam
|
|
102
|
-
* @property {BillingPlatformModel.
|
|
108
|
+
* @property {BillingPlatformModel.SubscribePlan} body
|
|
103
109
|
*/
|
|
104
110
|
/**
|
|
105
111
|
* @typedef PaymentOptionsParam
|
|
@@ -194,10 +200,14 @@ declare class BillingPlatformValidator {
|
|
|
194
200
|
static checkCouponValidity(): CheckCouponValidityParam;
|
|
195
201
|
/** @returns {CreateOneTimeChargeParam} */
|
|
196
202
|
static createOneTimeCharge(): CreateOneTimeChargeParam;
|
|
203
|
+
/** @returns {CreateSubscriptionChargeParam} */
|
|
204
|
+
static createSubscriptionCharge(): CreateSubscriptionChargeParam;
|
|
197
205
|
/** @returns {CreditTransactionParam} */
|
|
198
206
|
static creditTransaction(): CreditTransactionParam;
|
|
199
207
|
/** @returns {CurrentAppLimitParam} */
|
|
200
208
|
static currentAppLimit(): CurrentAppLimitParam;
|
|
209
|
+
/** @returns {CurrentLimitParam} */
|
|
210
|
+
static currentLimit(): CurrentLimitParam;
|
|
201
211
|
/** @returns {GetBankListParam} */
|
|
202
212
|
static getBankList(): any;
|
|
203
213
|
/** @returns {GetChargeDetailsParam} */
|
|
@@ -206,8 +216,6 @@ declare class BillingPlatformValidator {
|
|
|
206
216
|
static getCustomerDetail(): any;
|
|
207
217
|
/** @returns {GetEnterprisePlansParam} */
|
|
208
218
|
static getEnterprisePlans(): any;
|
|
209
|
-
/** @returns {GetFeatureLimitConfigParam} */
|
|
210
|
-
static getFeatureLimitConfig(): GetFeatureLimitConfigParam;
|
|
211
219
|
/** @returns {GetInvoiceByIdParam} */
|
|
212
220
|
static getInvoiceById(): GetInvoiceByIdParam;
|
|
213
221
|
/** @returns {GetInvoicesParam} */
|
|
@@ -272,7 +280,7 @@ declare class BillingPlatformValidator {
|
|
|
272
280
|
static verifyPayment(): VerifyPaymentParam;
|
|
273
281
|
}
|
|
274
282
|
declare namespace BillingPlatformValidator {
|
|
275
|
-
export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, ChangePlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreditTransactionParam, CurrentAppLimitParam, GetBankListParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam,
|
|
283
|
+
export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, ChangePlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreateSubscriptionChargeParam, CreditTransactionParam, CurrentAppLimitParam, CurrentLimitParam, GetBankListParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam, GetInvoiceByIdParam, GetInvoicesParam, GetPaymentOptionsParam, GetPaymentTransactionParam, GetSubscriptionParam, GetSubscriptionChargeParam, GetentityDetailParam, GlobalSettingsParam, MethodDefaultParam, PaymentCollectParam, PaymentInitiateParam, PaymentOptionsParam, PaymentStatusParam, PlanDowngradeParam, PlanDowngradeGetParam, PlanStatusUpdateParam, SetupIntentParam, SetupMandateParam, SetupPaymentParam, SubscriptionConfigsParam, SubscriptionMethodsParam, SubscriptionMethodsDeleteParam, SubscriptionPlanChangeParam, SubscriptionRenewParam, TopupCancelCreditParam, TopupCreditParam, UpdateConsentParam, UpdateSetupIntentParam, UpgradePlanParam, UpsertCustomerDetailParam, VerifyPaymentParam };
|
|
276
284
|
}
|
|
277
285
|
type ActivateSubscriptionPlanParam = {
|
|
278
286
|
body: BillingPlatformModel.SubscriptionActivateReq;
|
|
@@ -310,6 +318,14 @@ type CreateOneTimeChargeParam = {
|
|
|
310
318
|
extensionId: string;
|
|
311
319
|
body: BillingPlatformModel.CreateOneTimeCharge;
|
|
312
320
|
};
|
|
321
|
+
type CreateSubscriptionChargeParam = {
|
|
322
|
+
/**
|
|
323
|
+
* - Extension Id for which we need to crete new
|
|
324
|
+
* subscription
|
|
325
|
+
*/
|
|
326
|
+
extensionId: string;
|
|
327
|
+
body: BillingPlatformModel.CreateSubscriptionCharge;
|
|
328
|
+
};
|
|
313
329
|
type CreditTransactionParam = {
|
|
314
330
|
/**
|
|
315
331
|
* - Unique ID of the company
|
|
@@ -352,6 +368,10 @@ type CurrentAppLimitParam = {
|
|
|
352
368
|
productSuite?: string;
|
|
353
369
|
type?: string;
|
|
354
370
|
};
|
|
371
|
+
type CurrentLimitParam = {
|
|
372
|
+
productSuite?: string;
|
|
373
|
+
type?: string;
|
|
374
|
+
};
|
|
355
375
|
type GetChargeDetailsParam = {
|
|
356
376
|
/**
|
|
357
377
|
* - Extension _id
|
|
@@ -362,10 +382,6 @@ type GetChargeDetailsParam = {
|
|
|
362
382
|
*/
|
|
363
383
|
chargeId: string;
|
|
364
384
|
};
|
|
365
|
-
type GetFeatureLimitConfigParam = {
|
|
366
|
-
productSuite?: string;
|
|
367
|
-
type?: string;
|
|
368
|
-
};
|
|
369
385
|
type GetInvoiceByIdParam = {
|
|
370
386
|
/**
|
|
371
387
|
* - Invoice id
|
|
@@ -437,7 +453,7 @@ type PaymentCollectParam = {
|
|
|
437
453
|
body: BillingPlatformModel.PaymentCollectReq;
|
|
438
454
|
};
|
|
439
455
|
type PaymentInitiateParam = {
|
|
440
|
-
body: BillingPlatformModel.
|
|
456
|
+
body: BillingPlatformModel.SubscribePlan;
|
|
441
457
|
};
|
|
442
458
|
type PaymentOptionsParam = {
|
|
443
459
|
/**
|
|
@@ -35,6 +35,13 @@ const BillingPlatformModel = require("./BillingPlatformModel");
|
|
|
35
35
|
* @property {BillingPlatformModel.CreateOneTimeCharge} body
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* @typedef CreateSubscriptionChargeParam
|
|
40
|
+
* @property {string} extensionId - Extension Id for which we need to crete new
|
|
41
|
+
* subscription
|
|
42
|
+
* @property {BillingPlatformModel.CreateSubscriptionCharge} body
|
|
43
|
+
*/
|
|
44
|
+
|
|
38
45
|
/**
|
|
39
46
|
* @typedef CreditTransactionParam
|
|
40
47
|
* @property {number} uniqueId - Unique ID of the company
|
|
@@ -54,6 +61,12 @@ const BillingPlatformModel = require("./BillingPlatformModel");
|
|
|
54
61
|
* @property {string} [type]
|
|
55
62
|
*/
|
|
56
63
|
|
|
64
|
+
/**
|
|
65
|
+
* @typedef CurrentLimitParam
|
|
66
|
+
* @property {string} [productSuite]
|
|
67
|
+
* @property {string} [type]
|
|
68
|
+
*/
|
|
69
|
+
|
|
57
70
|
/** @typedef GetBankListParam */
|
|
58
71
|
|
|
59
72
|
/**
|
|
@@ -66,12 +79,6 @@ const BillingPlatformModel = require("./BillingPlatformModel");
|
|
|
66
79
|
|
|
67
80
|
/** @typedef GetEnterprisePlansParam */
|
|
68
81
|
|
|
69
|
-
/**
|
|
70
|
-
* @typedef GetFeatureLimitConfigParam
|
|
71
|
-
* @property {string} [productSuite]
|
|
72
|
-
* @property {string} [type]
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
82
|
/**
|
|
76
83
|
* @typedef GetInvoiceByIdParam
|
|
77
84
|
* @property {string} invoiceId - Invoice id
|
|
@@ -125,7 +132,7 @@ const BillingPlatformModel = require("./BillingPlatformModel");
|
|
|
125
132
|
|
|
126
133
|
/**
|
|
127
134
|
* @typedef PaymentInitiateParam
|
|
128
|
-
* @property {BillingPlatformModel.
|
|
135
|
+
* @property {BillingPlatformModel.SubscribePlan} body
|
|
129
136
|
*/
|
|
130
137
|
|
|
131
138
|
/**
|
|
@@ -274,6 +281,14 @@ class BillingPlatformValidator {
|
|
|
274
281
|
}).required();
|
|
275
282
|
}
|
|
276
283
|
|
|
284
|
+
/** @returns {CreateSubscriptionChargeParam} */
|
|
285
|
+
static createSubscriptionCharge() {
|
|
286
|
+
return Joi.object({
|
|
287
|
+
extensionId: Joi.string().allow("").required(),
|
|
288
|
+
body: BillingPlatformModel.CreateSubscriptionCharge().required(),
|
|
289
|
+
}).required();
|
|
290
|
+
}
|
|
291
|
+
|
|
277
292
|
/** @returns {CreditTransactionParam} */
|
|
278
293
|
static creditTransaction() {
|
|
279
294
|
return Joi.object({
|
|
@@ -297,6 +312,14 @@ class BillingPlatformValidator {
|
|
|
297
312
|
}).required();
|
|
298
313
|
}
|
|
299
314
|
|
|
315
|
+
/** @returns {CurrentLimitParam} */
|
|
316
|
+
static currentLimit() {
|
|
317
|
+
return Joi.object({
|
|
318
|
+
productSuite: Joi.string().allow(""),
|
|
319
|
+
type: Joi.string().allow(""),
|
|
320
|
+
}).required();
|
|
321
|
+
}
|
|
322
|
+
|
|
300
323
|
/** @returns {GetBankListParam} */
|
|
301
324
|
static getBankList() {
|
|
302
325
|
return Joi.object({}).required();
|
|
@@ -320,14 +343,6 @@ class BillingPlatformValidator {
|
|
|
320
343
|
return Joi.object({}).required();
|
|
321
344
|
}
|
|
322
345
|
|
|
323
|
-
/** @returns {GetFeatureLimitConfigParam} */
|
|
324
|
-
static getFeatureLimitConfig() {
|
|
325
|
-
return Joi.object({
|
|
326
|
-
productSuite: Joi.string().allow(""),
|
|
327
|
-
type: Joi.string().allow(""),
|
|
328
|
-
}).required();
|
|
329
|
-
}
|
|
330
|
-
|
|
331
346
|
/** @returns {GetInvoiceByIdParam} */
|
|
332
347
|
static getInvoiceById() {
|
|
333
348
|
return Joi.object({
|
|
@@ -404,7 +419,7 @@ class BillingPlatformValidator {
|
|
|
404
419
|
/** @returns {PaymentInitiateParam} */
|
|
405
420
|
static paymentInitiate() {
|
|
406
421
|
return Joi.object({
|
|
407
|
-
body: BillingPlatformModel.
|
|
422
|
+
body: BillingPlatformModel.SubscribePlan().required(),
|
|
408
423
|
}).required();
|
|
409
424
|
}
|
|
410
425
|
|
|
@@ -161,13 +161,13 @@ export = CartPlatformModel;
|
|
|
161
161
|
*/
|
|
162
162
|
/**
|
|
163
163
|
* @typedef Page
|
|
164
|
-
* @property {number} [item_total]
|
|
165
|
-
* @property {string} [next_id]
|
|
166
|
-
* @property {boolean} [has_previous]
|
|
167
|
-
* @property {boolean} [has_next]
|
|
168
|
-
* @property {number} [current]
|
|
169
|
-
* @property {string} type
|
|
170
|
-
* @property {number} [size]
|
|
164
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
165
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
166
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
167
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
168
|
+
* @property {number} [current] - The current page number.
|
|
169
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
170
|
+
* @property {number} [size] - The number of items per page.
|
|
171
171
|
*/
|
|
172
172
|
/**
|
|
173
173
|
* @typedef CouponsResponse
|
|
@@ -1982,12 +1982,33 @@ type CouponAdd = {
|
|
|
1982
1982
|
/** @returns {Page} */
|
|
1983
1983
|
declare function Page(): Page;
|
|
1984
1984
|
type Page = {
|
|
1985
|
+
/**
|
|
1986
|
+
* - The total number of items on the page.
|
|
1987
|
+
*/
|
|
1985
1988
|
item_total?: number;
|
|
1989
|
+
/**
|
|
1990
|
+
* - The identifier for the next page.
|
|
1991
|
+
*/
|
|
1986
1992
|
next_id?: string;
|
|
1993
|
+
/**
|
|
1994
|
+
* - Indicates whether there is a previous page.
|
|
1995
|
+
*/
|
|
1987
1996
|
has_previous?: boolean;
|
|
1997
|
+
/**
|
|
1998
|
+
* - Indicates whether there is a next page.
|
|
1999
|
+
*/
|
|
1988
2000
|
has_next?: boolean;
|
|
2001
|
+
/**
|
|
2002
|
+
* - The current page number.
|
|
2003
|
+
*/
|
|
1989
2004
|
current?: number;
|
|
2005
|
+
/**
|
|
2006
|
+
* - The type of the page, such as 'PageType'.
|
|
2007
|
+
*/
|
|
1990
2008
|
type: string;
|
|
2009
|
+
/**
|
|
2010
|
+
* - The number of items per page.
|
|
2011
|
+
*/
|
|
1991
2012
|
size?: number;
|
|
1992
2013
|
};
|
|
1993
2014
|
/** @returns {CouponsResponse} */
|
|
@@ -184,13 +184,13 @@ const Joi = require("joi");
|
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* @typedef Page
|
|
187
|
-
* @property {number} [item_total]
|
|
188
|
-
* @property {string} [next_id]
|
|
189
|
-
* @property {boolean} [has_previous]
|
|
190
|
-
* @property {boolean} [has_next]
|
|
191
|
-
* @property {number} [current]
|
|
192
|
-
* @property {string} type
|
|
193
|
-
* @property {number} [size]
|
|
187
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
188
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
189
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
190
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
191
|
+
* @property {number} [current] - The current page number.
|
|
192
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
193
|
+
* @property {number} [size] - The number of items per page.
|
|
194
194
|
*/
|
|
195
195
|
|
|
196
196
|
/**
|
|
@@ -2412,7 +2412,7 @@ class CartPlatformModel {
|
|
|
2412
2412
|
/** @returns {Restrictions1} */
|
|
2413
2413
|
static Restrictions1() {
|
|
2414
2414
|
return Joi.object({
|
|
2415
|
-
payments: Joi.
|
|
2415
|
+
payments: Joi.object().pattern(/\S/, CartPlatformModel.PaymentModes()),
|
|
2416
2416
|
user_registered: CartPlatformModel.UserRegistered(),
|
|
2417
2417
|
platforms: Joi.array().items(Joi.string().allow("")),
|
|
2418
2418
|
post_order: CartPlatformModel.PostOrder1(),
|
|
@@ -305,7 +305,7 @@ declare class Catalog {
|
|
|
305
305
|
* @summary: List sales channel inventory
|
|
306
306
|
* @description: Retrieve inventory data related to the sales channel. this can be used to get the Inventory status of products with the filters of timestamp, store_ids, brand_ids, item_id, Items, Pagination. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppInventory/).
|
|
307
307
|
*/
|
|
308
|
-
getAppInventory({ itemIds, storeIds, brandIds, sellerIdentifiers, timestamp, pageSize, pageId, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAppInventoryParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.InventoryStockResponse>;
|
|
308
|
+
getAppInventory({ itemIds, storeIds, brandIds, sellerIdentifiers, timestamp, pageSize, pageId, qtyGt, qtyLt, qtyType, fromDate, toDate, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAppInventoryParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.InventoryStockResponse>;
|
|
309
309
|
/**
|
|
310
310
|
* @param {CatalogPlatformApplicationValidator.GetAppLocationsParam} arg - Arg object
|
|
311
311
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1829,6 +1829,11 @@ class Catalog {
|
|
|
1829
1829
|
timestamp,
|
|
1830
1830
|
pageSize,
|
|
1831
1831
|
pageId,
|
|
1832
|
+
qtyGt,
|
|
1833
|
+
qtyLt,
|
|
1834
|
+
qtyType,
|
|
1835
|
+
fromDate,
|
|
1836
|
+
toDate,
|
|
1832
1837
|
requestHeaders,
|
|
1833
1838
|
} = { requestHeaders: {} },
|
|
1834
1839
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -1844,6 +1849,11 @@ class Catalog {
|
|
|
1844
1849
|
timestamp,
|
|
1845
1850
|
pageSize,
|
|
1846
1851
|
pageId,
|
|
1852
|
+
qtyGt,
|
|
1853
|
+
qtyLt,
|
|
1854
|
+
qtyType,
|
|
1855
|
+
fromDate,
|
|
1856
|
+
toDate,
|
|
1847
1857
|
},
|
|
1848
1858
|
{ abortEarly: false, allowUnknown: true }
|
|
1849
1859
|
);
|
|
@@ -1863,6 +1873,11 @@ class Catalog {
|
|
|
1863
1873
|
timestamp,
|
|
1864
1874
|
pageSize,
|
|
1865
1875
|
pageId,
|
|
1876
|
+
qtyGt,
|
|
1877
|
+
qtyLt,
|
|
1878
|
+
qtyType,
|
|
1879
|
+
fromDate,
|
|
1880
|
+
toDate,
|
|
1866
1881
|
},
|
|
1867
1882
|
{ abortEarly: false, allowUnknown: false }
|
|
1868
1883
|
);
|
|
@@ -1881,6 +1896,11 @@ class Catalog {
|
|
|
1881
1896
|
query_params["timestamp"] = timestamp;
|
|
1882
1897
|
query_params["page_size"] = pageSize;
|
|
1883
1898
|
query_params["page_id"] = pageId;
|
|
1899
|
+
query_params["qty_gt"] = qtyGt;
|
|
1900
|
+
query_params["qty_lt"] = qtyLt;
|
|
1901
|
+
query_params["qty_type"] = qtyType;
|
|
1902
|
+
query_params["from_date"] = fromDate;
|
|
1903
|
+
query_params["to_date"] = toDate;
|
|
1884
1904
|
|
|
1885
1905
|
const response = await PlatformAPIClient.execute(
|
|
1886
1906
|
this.config,
|
|
@@ -106,6 +106,17 @@ export = CatalogPlatformApplicationValidator;
|
|
|
106
106
|
* @property {string} [timestamp] - Timestamp in UTC format (2020-07-23T10:27:50Z)
|
|
107
107
|
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
108
108
|
* @property {string} [pageId] - Page ID to retrieve next set of results.
|
|
109
|
+
* @property {number} [qtyGt] - This field allows you to filter for inventories
|
|
110
|
+
* that have quantity greater than to the specified value based on qty_type filter.
|
|
111
|
+
* @property {number} [qtyLt] - This field allows you to filter for inventories
|
|
112
|
+
* that have a quantity less than to the specified value based on qty_type filter.
|
|
113
|
+
* @property {string} [qtyType] - This field provides flexibility in selecting
|
|
114
|
+
* filter for inventory quantity counts and date queries. For example, you
|
|
115
|
+
* might use this field to specify "total" or "sellable" quantity.
|
|
116
|
+
* @property {string} [fromDate] - Inventory updated on filter to get
|
|
117
|
+
* inventories greater then or equal to provided date based on qty_type value.
|
|
118
|
+
* @property {string} [toDate] - Inventory updated on filter to get inventories
|
|
119
|
+
* less then or equal to provided date based on qty_type value.
|
|
109
120
|
*/
|
|
110
121
|
/**
|
|
111
122
|
* @typedef GetAppLocationsParam
|
|
@@ -709,6 +720,32 @@ type GetAppInventoryParam = {
|
|
|
709
720
|
* - Page ID to retrieve next set of results.
|
|
710
721
|
*/
|
|
711
722
|
pageId?: string;
|
|
723
|
+
/**
|
|
724
|
+
* - This field allows you to filter for inventories
|
|
725
|
+
* that have quantity greater than to the specified value based on qty_type filter.
|
|
726
|
+
*/
|
|
727
|
+
qtyGt?: number;
|
|
728
|
+
/**
|
|
729
|
+
* - This field allows you to filter for inventories
|
|
730
|
+
* that have a quantity less than to the specified value based on qty_type filter.
|
|
731
|
+
*/
|
|
732
|
+
qtyLt?: number;
|
|
733
|
+
/**
|
|
734
|
+
* - This field provides flexibility in selecting
|
|
735
|
+
* filter for inventory quantity counts and date queries. For example, you
|
|
736
|
+
* might use this field to specify "total" or "sellable" quantity.
|
|
737
|
+
*/
|
|
738
|
+
qtyType?: string;
|
|
739
|
+
/**
|
|
740
|
+
* - Inventory updated on filter to get
|
|
741
|
+
* inventories greater then or equal to provided date based on qty_type value.
|
|
742
|
+
*/
|
|
743
|
+
fromDate?: string;
|
|
744
|
+
/**
|
|
745
|
+
* - Inventory updated on filter to get inventories
|
|
746
|
+
* less then or equal to provided date based on qty_type value.
|
|
747
|
+
*/
|
|
748
|
+
toDate?: string;
|
|
712
749
|
};
|
|
713
750
|
type GetAppLocationsParam = {
|
|
714
751
|
/**
|
|
@@ -130,6 +130,17 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
130
130
|
* @property {string} [timestamp] - Timestamp in UTC format (2020-07-23T10:27:50Z)
|
|
131
131
|
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
132
132
|
* @property {string} [pageId] - Page ID to retrieve next set of results.
|
|
133
|
+
* @property {number} [qtyGt] - This field allows you to filter for inventories
|
|
134
|
+
* that have quantity greater than to the specified value based on qty_type filter.
|
|
135
|
+
* @property {number} [qtyLt] - This field allows you to filter for inventories
|
|
136
|
+
* that have a quantity less than to the specified value based on qty_type filter.
|
|
137
|
+
* @property {string} [qtyType] - This field provides flexibility in selecting
|
|
138
|
+
* filter for inventory quantity counts and date queries. For example, you
|
|
139
|
+
* might use this field to specify "total" or "sellable" quantity.
|
|
140
|
+
* @property {string} [fromDate] - Inventory updated on filter to get
|
|
141
|
+
* inventories greater then or equal to provided date based on qty_type value.
|
|
142
|
+
* @property {string} [toDate] - Inventory updated on filter to get inventories
|
|
143
|
+
* less then or equal to provided date based on qty_type value.
|
|
133
144
|
*/
|
|
134
145
|
|
|
135
146
|
/**
|
|
@@ -645,6 +656,11 @@ class CatalogPlatformApplicationValidator {
|
|
|
645
656
|
timestamp: Joi.string().allow(""),
|
|
646
657
|
pageSize: Joi.number(),
|
|
647
658
|
pageId: Joi.string().allow(""),
|
|
659
|
+
qtyGt: Joi.number(),
|
|
660
|
+
qtyLt: Joi.number(),
|
|
661
|
+
qtyType: Joi.string().allow(""),
|
|
662
|
+
fromDate: Joi.string().allow(""),
|
|
663
|
+
toDate: Joi.string().allow(""),
|
|
648
664
|
}).required();
|
|
649
665
|
}
|
|
650
666
|
|
|
@@ -681,7 +681,7 @@ declare class Catalog {
|
|
|
681
681
|
* @summary: List products
|
|
682
682
|
* @description: Retrieve a list of available products - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProducts/).
|
|
683
683
|
*/
|
|
684
|
-
getProducts({ brandIds, categoryIds, itemIds, departmentIds, itemCode, q, tags, pageNo, pageSize, requestHeaders, }?: CatalogPlatformValidator.GetProductsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ProductListingResponseV2>;
|
|
684
|
+
getProducts({ brandIds, categoryIds, itemIds, departmentIds, itemCode, name, slug, allIdentifiers, q, tags, pageNo, pageSize, pageType, sortOn, pageId, requestHeaders, }?: CatalogPlatformValidator.GetProductsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ProductListingResponseV2>;
|
|
685
685
|
/**
|
|
686
686
|
* @param {Object} arg - Arg object.
|
|
687
687
|
* @param {number[]} [arg.brandIds] - Get multiple products filtered by Brand Ids
|
|
@@ -691,23 +691,33 @@ declare class Catalog {
|
|
|
691
691
|
* @param {number[]} [arg.departmentIds] - Get multiple products filtered by
|
|
692
692
|
* Department Ids
|
|
693
693
|
* @param {string[]} [arg.itemCode] - Get multiple products filtered by Item Code
|
|
694
|
+
* @param {string} [arg.name] - Get multiple products filtered by Name (Pattern Match)
|
|
695
|
+
* @param {string} [arg.slug] - Get multiple products filtered by Slug
|
|
696
|
+
* @param {string[]} [arg.allIdentifiers] - Get multiple products filtered
|
|
697
|
+
* by All Identifiers
|
|
694
698
|
* @param {string} [arg.q] - Get multiple products filtered by q string
|
|
695
699
|
* @param {string[]} [arg.tags] - Get multiple products filtered by tags
|
|
696
700
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
697
701
|
* page. Default is 10.
|
|
702
|
+
* @param {string} [arg.sortOn] - Field which is to be used for sorting,
|
|
703
|
+
* default is latest. Value can be latest (modified_on) or created (record id)
|
|
698
704
|
* @returns {Paginator<CatalogPlatformModel.ProductListingResponseV2>}
|
|
699
705
|
* @summary: List products
|
|
700
706
|
* @description: Retrieve a list of available products
|
|
701
707
|
*/
|
|
702
|
-
getProductsPaginator({ brandIds, categoryIds, itemIds, departmentIds, itemCode, q, tags, pageSize, }?: {
|
|
708
|
+
getProductsPaginator({ brandIds, categoryIds, itemIds, departmentIds, itemCode, name, slug, allIdentifiers, q, tags, pageSize, sortOn, }?: {
|
|
703
709
|
brandIds?: number[];
|
|
704
710
|
categoryIds?: number[];
|
|
705
711
|
itemIds?: number[];
|
|
706
712
|
departmentIds?: number[];
|
|
707
713
|
itemCode?: string[];
|
|
714
|
+
name?: string;
|
|
715
|
+
slug?: string;
|
|
716
|
+
allIdentifiers?: string[];
|
|
708
717
|
q?: string;
|
|
709
718
|
tags?: string[];
|
|
710
719
|
pageSize?: number;
|
|
720
|
+
sortOn?: string;
|
|
711
721
|
}): Paginator<CatalogPlatformModel.ProductListingResponseV2>;
|
|
712
722
|
/**
|
|
713
723
|
* @param {CatalogPlatformValidator.GetSellerInsightsParam} arg - Arg object
|
|
@@ -4617,10 +4617,16 @@ class Catalog {
|
|
|
4617
4617
|
itemIds,
|
|
4618
4618
|
departmentIds,
|
|
4619
4619
|
itemCode,
|
|
4620
|
+
name,
|
|
4621
|
+
slug,
|
|
4622
|
+
allIdentifiers,
|
|
4620
4623
|
q,
|
|
4621
4624
|
tags,
|
|
4622
4625
|
pageNo,
|
|
4623
4626
|
pageSize,
|
|
4627
|
+
pageType,
|
|
4628
|
+
sortOn,
|
|
4629
|
+
pageId,
|
|
4624
4630
|
requestHeaders,
|
|
4625
4631
|
} = { requestHeaders: {} },
|
|
4626
4632
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -4632,10 +4638,16 @@ class Catalog {
|
|
|
4632
4638
|
itemIds,
|
|
4633
4639
|
departmentIds,
|
|
4634
4640
|
itemCode,
|
|
4641
|
+
name,
|
|
4642
|
+
slug,
|
|
4643
|
+
allIdentifiers,
|
|
4635
4644
|
q,
|
|
4636
4645
|
tags,
|
|
4637
4646
|
pageNo,
|
|
4638
4647
|
pageSize,
|
|
4648
|
+
pageType,
|
|
4649
|
+
sortOn,
|
|
4650
|
+
pageId,
|
|
4639
4651
|
},
|
|
4640
4652
|
{ abortEarly: false, allowUnknown: true }
|
|
4641
4653
|
);
|
|
@@ -4651,10 +4663,16 @@ class Catalog {
|
|
|
4651
4663
|
itemIds,
|
|
4652
4664
|
departmentIds,
|
|
4653
4665
|
itemCode,
|
|
4666
|
+
name,
|
|
4667
|
+
slug,
|
|
4668
|
+
allIdentifiers,
|
|
4654
4669
|
q,
|
|
4655
4670
|
tags,
|
|
4656
4671
|
pageNo,
|
|
4657
4672
|
pageSize,
|
|
4673
|
+
pageType,
|
|
4674
|
+
sortOn,
|
|
4675
|
+
pageId,
|
|
4658
4676
|
},
|
|
4659
4677
|
{ abortEarly: false, allowUnknown: false }
|
|
4660
4678
|
);
|
|
@@ -4671,10 +4689,16 @@ class Catalog {
|
|
|
4671
4689
|
query_params["item_ids"] = itemIds;
|
|
4672
4690
|
query_params["department_ids"] = departmentIds;
|
|
4673
4691
|
query_params["item_code"] = itemCode;
|
|
4692
|
+
query_params["name"] = name;
|
|
4693
|
+
query_params["slug"] = slug;
|
|
4694
|
+
query_params["all_identifiers"] = allIdentifiers;
|
|
4674
4695
|
query_params["q"] = q;
|
|
4675
4696
|
query_params["tags"] = tags;
|
|
4676
4697
|
query_params["page_no"] = pageNo;
|
|
4677
4698
|
query_params["page_size"] = pageSize;
|
|
4699
|
+
query_params["page_type"] = pageType;
|
|
4700
|
+
query_params["sort_on"] = sortOn;
|
|
4701
|
+
query_params["page_id"] = pageId;
|
|
4678
4702
|
|
|
4679
4703
|
const xHeaders = {};
|
|
4680
4704
|
|
|
@@ -4723,10 +4747,16 @@ class Catalog {
|
|
|
4723
4747
|
* @param {number[]} [arg.departmentIds] - Get multiple products filtered by
|
|
4724
4748
|
* Department Ids
|
|
4725
4749
|
* @param {string[]} [arg.itemCode] - Get multiple products filtered by Item Code
|
|
4750
|
+
* @param {string} [arg.name] - Get multiple products filtered by Name (Pattern Match)
|
|
4751
|
+
* @param {string} [arg.slug] - Get multiple products filtered by Slug
|
|
4752
|
+
* @param {string[]} [arg.allIdentifiers] - Get multiple products filtered
|
|
4753
|
+
* by All Identifiers
|
|
4726
4754
|
* @param {string} [arg.q] - Get multiple products filtered by q string
|
|
4727
4755
|
* @param {string[]} [arg.tags] - Get multiple products filtered by tags
|
|
4728
4756
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
4729
4757
|
* page. Default is 10.
|
|
4758
|
+
* @param {string} [arg.sortOn] - Field which is to be used for sorting,
|
|
4759
|
+
* default is latest. Value can be latest (modified_on) or created (record id)
|
|
4730
4760
|
* @returns {Paginator<CatalogPlatformModel.ProductListingResponseV2>}
|
|
4731
4761
|
* @summary: List products
|
|
4732
4762
|
* @description: Retrieve a list of available products
|
|
@@ -4737,25 +4767,35 @@ class Catalog {
|
|
|
4737
4767
|
itemIds,
|
|
4738
4768
|
departmentIds,
|
|
4739
4769
|
itemCode,
|
|
4770
|
+
name,
|
|
4771
|
+
slug,
|
|
4772
|
+
allIdentifiers,
|
|
4740
4773
|
q,
|
|
4741
4774
|
tags,
|
|
4742
4775
|
pageSize,
|
|
4776
|
+
sortOn,
|
|
4743
4777
|
} = {}) {
|
|
4744
4778
|
const paginator = new Paginator();
|
|
4745
4779
|
const callback = async () => {
|
|
4746
4780
|
const pageId = paginator.nextId;
|
|
4747
4781
|
const pageNo = paginator.pageNo;
|
|
4748
|
-
const pageType = "
|
|
4782
|
+
const pageType = "cursor";
|
|
4749
4783
|
const data = await this.getProducts({
|
|
4750
4784
|
brandIds: brandIds,
|
|
4751
4785
|
categoryIds: categoryIds,
|
|
4752
4786
|
itemIds: itemIds,
|
|
4753
4787
|
departmentIds: departmentIds,
|
|
4754
4788
|
itemCode: itemCode,
|
|
4789
|
+
name: name,
|
|
4790
|
+
slug: slug,
|
|
4791
|
+
allIdentifiers: allIdentifiers,
|
|
4755
4792
|
q: q,
|
|
4756
4793
|
tags: tags,
|
|
4757
4794
|
pageNo: pageNo,
|
|
4758
4795
|
pageSize: pageSize,
|
|
4796
|
+
pageType: pageType,
|
|
4797
|
+
sortOn: sortOn,
|
|
4798
|
+
pageId: pageId,
|
|
4759
4799
|
});
|
|
4760
4800
|
paginator.setPaginator({
|
|
4761
4801
|
hasNext: data.page.has_next ? true : false,
|