@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9
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 +1205 -282
- package/sdk/application/Content/ContentApplicationModel.js +341 -277
- 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 +1400 -325
- package/sdk/application/Order/OrderApplicationModel.js +391 -317
- 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 +28 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
- 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 +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
- package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- 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 +58 -17
- package/sdk/platform/Content/ContentPlatformModel.js +28 -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 +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
- package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
- 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 +613 -39
- package/sdk/platform/Order/OrderPlatformModel.js +359 -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/ServiceabilityPlatformModel.d.ts +120 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
- 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 -18
- package/sdk/platform/User/UserPlatformModel.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
- package/sdk/public/Billing/BillingPublicClient.js +0 -269
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
- package/sdk/public/Billing/BillingPublicModel.js +0 -395
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
- package/sdk/public/Billing/BillingPublicValidator.js +0 -38
- 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
|
@@ -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,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export = CatalogPlatformModel;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef Action
|
|
4
|
-
* @property {string} [type]
|
|
4
|
+
* @property {string} [type] - Type of action to be taken e.g, page.
|
|
5
5
|
* @property {ActionPage} [page]
|
|
6
6
|
* @property {ActionPage} [popup]
|
|
7
7
|
*/
|
|
@@ -2171,13 +2171,13 @@ export = CatalogPlatformModel;
|
|
|
2171
2171
|
*/
|
|
2172
2172
|
/**
|
|
2173
2173
|
* @typedef Page
|
|
2174
|
-
* @property {number} [item_total]
|
|
2175
|
-
* @property {string} [next_id]
|
|
2176
|
-
* @property {boolean} [has_previous]
|
|
2177
|
-
* @property {boolean} [has_next]
|
|
2178
|
-
* @property {number} [current]
|
|
2179
|
-
* @property {string} type
|
|
2180
|
-
* @property {number} [size]
|
|
2174
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
2175
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
2176
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
2177
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
2178
|
+
* @property {number} [current] - The current page number.
|
|
2179
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
2180
|
+
* @property {number} [size] - The number of items per page.
|
|
2181
2181
|
*/
|
|
2182
2182
|
/**
|
|
2183
2183
|
* @typedef PageResponse
|
|
@@ -3285,9 +3285,9 @@ export = CatalogPlatformModel;
|
|
|
3285
3285
|
*/
|
|
3286
3286
|
/**
|
|
3287
3287
|
* @typedef ActionPage
|
|
3288
|
-
* @property {Object} [params]
|
|
3289
|
-
* @property {Object} [query]
|
|
3290
|
-
* @property {string} [url]
|
|
3288
|
+
* @property {Object} [params] - Parameters that should be considered in path.
|
|
3289
|
+
* @property {Object} [query] - Query parameter if any to be added to the action.
|
|
3290
|
+
* @property {string} [url] - The URL for the action.
|
|
3291
3291
|
* @property {PageType} type
|
|
3292
3292
|
*/
|
|
3293
3293
|
/**
|
|
@@ -3302,6 +3302,7 @@ export = CatalogPlatformModel;
|
|
|
3302
3302
|
* | "category"
|
|
3303
3303
|
* | "collection"
|
|
3304
3304
|
* | "collections"
|
|
3305
|
+
* | "custom"
|
|
3305
3306
|
* | "contact-us"
|
|
3306
3307
|
* | "external"
|
|
3307
3308
|
* | "faq"
|
|
@@ -3346,6 +3347,9 @@ declare namespace CatalogPlatformModel {
|
|
|
3346
3347
|
/** @returns {Action} */
|
|
3347
3348
|
declare function Action(): Action;
|
|
3348
3349
|
type Action = {
|
|
3350
|
+
/**
|
|
3351
|
+
* - Type of action to be taken e.g, page.
|
|
3352
|
+
*/
|
|
3349
3353
|
type?: string;
|
|
3350
3354
|
page?: ActionPage;
|
|
3351
3355
|
popup?: ActionPage;
|
|
@@ -6644,12 +6648,33 @@ type PTErrorResponse = {
|
|
|
6644
6648
|
/** @returns {Page} */
|
|
6645
6649
|
declare function Page(): Page;
|
|
6646
6650
|
type Page = {
|
|
6651
|
+
/**
|
|
6652
|
+
* - The total number of items on the page.
|
|
6653
|
+
*/
|
|
6647
6654
|
item_total?: number;
|
|
6655
|
+
/**
|
|
6656
|
+
* - The identifier for the next page.
|
|
6657
|
+
*/
|
|
6648
6658
|
next_id?: string;
|
|
6659
|
+
/**
|
|
6660
|
+
* - Indicates whether there is a previous page.
|
|
6661
|
+
*/
|
|
6649
6662
|
has_previous?: boolean;
|
|
6663
|
+
/**
|
|
6664
|
+
* - Indicates whether there is a next page.
|
|
6665
|
+
*/
|
|
6650
6666
|
has_next?: boolean;
|
|
6667
|
+
/**
|
|
6668
|
+
* - The current page number.
|
|
6669
|
+
*/
|
|
6651
6670
|
current?: number;
|
|
6671
|
+
/**
|
|
6672
|
+
* - The type of the page, such as 'PageType'.
|
|
6673
|
+
*/
|
|
6652
6674
|
type: string;
|
|
6675
|
+
/**
|
|
6676
|
+
* - The number of items per page.
|
|
6677
|
+
*/
|
|
6653
6678
|
size?: number;
|
|
6654
6679
|
};
|
|
6655
6680
|
/** @returns {PageResponse} */
|
|
@@ -8065,8 +8090,17 @@ type UpdateMarketplaceOptinResponse = {
|
|
|
8065
8090
|
/** @returns {ActionPage} */
|
|
8066
8091
|
declare function ActionPage(): ActionPage;
|
|
8067
8092
|
type ActionPage = {
|
|
8093
|
+
/**
|
|
8094
|
+
* - Parameters that should be considered in path.
|
|
8095
|
+
*/
|
|
8068
8096
|
params?: any;
|
|
8097
|
+
/**
|
|
8098
|
+
* - Query parameter if any to be added to the action.
|
|
8099
|
+
*/
|
|
8069
8100
|
query?: any;
|
|
8101
|
+
/**
|
|
8102
|
+
* - The URL for the action.
|
|
8103
|
+
*/
|
|
8070
8104
|
url?: string;
|
|
8071
8105
|
type: PageType;
|
|
8072
8106
|
};
|
|
@@ -8076,4 +8110,4 @@ type ActionPage = {
|
|
|
8076
8110
|
* @returns {PageType}
|
|
8077
8111
|
*/
|
|
8078
8112
|
declare function PageType(): PageType;
|
|
8079
|
-
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
|
|
8113
|
+
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
|
|
@@ -2,7 +2,7 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef Action
|
|
5
|
-
* @property {string} [type]
|
|
5
|
+
* @property {string} [type] - Type of action to be taken e.g, page.
|
|
6
6
|
* @property {ActionPage} [page]
|
|
7
7
|
* @property {ActionPage} [popup]
|
|
8
8
|
*/
|
|
@@ -2427,13 +2427,13 @@ const Joi = require("joi");
|
|
|
2427
2427
|
|
|
2428
2428
|
/**
|
|
2429
2429
|
* @typedef Page
|
|
2430
|
-
* @property {number} [item_total]
|
|
2431
|
-
* @property {string} [next_id]
|
|
2432
|
-
* @property {boolean} [has_previous]
|
|
2433
|
-
* @property {boolean} [has_next]
|
|
2434
|
-
* @property {number} [current]
|
|
2435
|
-
* @property {string} type
|
|
2436
|
-
* @property {number} [size]
|
|
2430
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
2431
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
2432
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
2433
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
2434
|
+
* @property {number} [current] - The current page number.
|
|
2435
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
2436
|
+
* @property {number} [size] - The number of items per page.
|
|
2437
2437
|
*/
|
|
2438
2438
|
|
|
2439
2439
|
/**
|
|
@@ -3659,9 +3659,9 @@ const Joi = require("joi");
|
|
|
3659
3659
|
|
|
3660
3660
|
/**
|
|
3661
3661
|
* @typedef ActionPage
|
|
3662
|
-
* @property {Object} [params]
|
|
3663
|
-
* @property {Object} [query]
|
|
3664
|
-
* @property {string} [url]
|
|
3662
|
+
* @property {Object} [params] - Parameters that should be considered in path.
|
|
3663
|
+
* @property {Object} [query] - Query parameter if any to be added to the action.
|
|
3664
|
+
* @property {string} [url] - The URL for the action.
|
|
3665
3665
|
* @property {PageType} type
|
|
3666
3666
|
*/
|
|
3667
3667
|
|
|
@@ -3677,6 +3677,7 @@ const Joi = require("joi");
|
|
|
3677
3677
|
* | "category"
|
|
3678
3678
|
* | "collection"
|
|
3679
3679
|
* | "collections"
|
|
3680
|
+
* | "custom"
|
|
3680
3681
|
* | "contact-us"
|
|
3681
3682
|
* | "external"
|
|
3682
3683
|
* | "faq"
|
|
@@ -8150,6 +8151,8 @@ class CatalogPlatformModel {
|
|
|
8150
8151
|
|
|
8151
8152
|
"collections",
|
|
8152
8153
|
|
|
8154
|
+
"custom",
|
|
8155
|
+
|
|
8153
8156
|
"contact-us",
|
|
8154
8157
|
|
|
8155
8158
|
"external",
|
|
@@ -290,12 +290,23 @@ export = CatalogPlatformValidator;
|
|
|
290
290
|
* @property {number[]} [itemIds] - Get multiple products filtered by Item Ids
|
|
291
291
|
* @property {number[]} [departmentIds] - Get multiple products filtered by Department Ids
|
|
292
292
|
* @property {string[]} [itemCode] - Get multiple products filtered by Item Code
|
|
293
|
+
* @property {string} [name] - Get multiple products filtered by Name (Pattern Match)
|
|
294
|
+
* @property {string} [slug] - Get multiple products filtered by Slug
|
|
295
|
+
* @property {string[]} [allIdentifiers] - Get multiple products filtered by All
|
|
296
|
+
* Identifiers
|
|
293
297
|
* @property {string} [q] - Get multiple products filtered by q string
|
|
294
298
|
* @property {string[]} [tags] - Get multiple products filtered by tags
|
|
295
299
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
296
300
|
* set of results
|
|
297
301
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
298
302
|
* Default is 10.
|
|
303
|
+
* @property {string} [pageType] - For pagination type value can be cursor or
|
|
304
|
+
* number. Default is number.
|
|
305
|
+
* @property {string} [sortOn] - Field which is to be used for sorting, default
|
|
306
|
+
* is latest. Value can be latest (modified_on) or created (record id)
|
|
307
|
+
* @property {string} [pageId] - If page_type is cursor, each response will
|
|
308
|
+
* contain **next_id** param (datetime or id depending upon sort_on), which
|
|
309
|
+
* should be sent back as page_id to make cursor pagination work.
|
|
299
310
|
*/
|
|
300
311
|
/**
|
|
301
312
|
* @typedef GetSellerInsightsParam
|
|
@@ -1137,6 +1148,19 @@ type GetProductsParam = {
|
|
|
1137
1148
|
* - Get multiple products filtered by Item Code
|
|
1138
1149
|
*/
|
|
1139
1150
|
itemCode?: string[];
|
|
1151
|
+
/**
|
|
1152
|
+
* - Get multiple products filtered by Name (Pattern Match)
|
|
1153
|
+
*/
|
|
1154
|
+
name?: string;
|
|
1155
|
+
/**
|
|
1156
|
+
* - Get multiple products filtered by Slug
|
|
1157
|
+
*/
|
|
1158
|
+
slug?: string;
|
|
1159
|
+
/**
|
|
1160
|
+
* - Get multiple products filtered by All
|
|
1161
|
+
* Identifiers
|
|
1162
|
+
*/
|
|
1163
|
+
allIdentifiers?: string[];
|
|
1140
1164
|
/**
|
|
1141
1165
|
* - Get multiple products filtered by q string
|
|
1142
1166
|
*/
|
|
@@ -1155,6 +1179,22 @@ type GetProductsParam = {
|
|
|
1155
1179
|
* Default is 10.
|
|
1156
1180
|
*/
|
|
1157
1181
|
pageSize?: number;
|
|
1182
|
+
/**
|
|
1183
|
+
* - For pagination type value can be cursor or
|
|
1184
|
+
* number. Default is number.
|
|
1185
|
+
*/
|
|
1186
|
+
pageType?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* - Field which is to be used for sorting, default
|
|
1189
|
+
* is latest. Value can be latest (modified_on) or created (record id)
|
|
1190
|
+
*/
|
|
1191
|
+
sortOn?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* - If page_type is cursor, each response will
|
|
1194
|
+
* contain **next_id** param (datetime or id depending upon sort_on), which
|
|
1195
|
+
* should be sent back as page_id to make cursor pagination work.
|
|
1196
|
+
*/
|
|
1197
|
+
pageId?: string;
|
|
1158
1198
|
};
|
|
1159
1199
|
type GetSellerInsightsParam = {
|
|
1160
1200
|
/**
|
|
@@ -345,12 +345,23 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
345
345
|
* @property {number[]} [itemIds] - Get multiple products filtered by Item Ids
|
|
346
346
|
* @property {number[]} [departmentIds] - Get multiple products filtered by Department Ids
|
|
347
347
|
* @property {string[]} [itemCode] - Get multiple products filtered by Item Code
|
|
348
|
+
* @property {string} [name] - Get multiple products filtered by Name (Pattern Match)
|
|
349
|
+
* @property {string} [slug] - Get multiple products filtered by Slug
|
|
350
|
+
* @property {string[]} [allIdentifiers] - Get multiple products filtered by All
|
|
351
|
+
* Identifiers
|
|
348
352
|
* @property {string} [q] - Get multiple products filtered by q string
|
|
349
353
|
* @property {string[]} [tags] - Get multiple products filtered by tags
|
|
350
354
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
351
355
|
* set of results
|
|
352
356
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
353
357
|
* Default is 10.
|
|
358
|
+
* @property {string} [pageType] - For pagination type value can be cursor or
|
|
359
|
+
* number. Default is number.
|
|
360
|
+
* @property {string} [sortOn] - Field which is to be used for sorting, default
|
|
361
|
+
* is latest. Value can be latest (modified_on) or created (record id)
|
|
362
|
+
* @property {string} [pageId] - If page_type is cursor, each response will
|
|
363
|
+
* contain **next_id** param (datetime or id depending upon sort_on), which
|
|
364
|
+
* should be sent back as page_id to make cursor pagination work.
|
|
354
365
|
*/
|
|
355
366
|
|
|
356
367
|
/**
|
|
@@ -963,10 +974,16 @@ class CatalogPlatformValidator {
|
|
|
963
974
|
itemIds: Joi.array().items(Joi.number()),
|
|
964
975
|
departmentIds: Joi.array().items(Joi.number()),
|
|
965
976
|
itemCode: Joi.array().items(Joi.string().allow("")),
|
|
977
|
+
name: Joi.string().allow(""),
|
|
978
|
+
slug: Joi.string().allow(""),
|
|
979
|
+
allIdentifiers: Joi.array().items(Joi.string().allow("")),
|
|
966
980
|
q: Joi.string().allow(""),
|
|
967
981
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
968
982
|
pageNo: Joi.number(),
|
|
969
983
|
pageSize: Joi.number(),
|
|
984
|
+
pageType: Joi.string().allow(""),
|
|
985
|
+
sortOn: Joi.string().allow(""),
|
|
986
|
+
pageId: Joi.string().allow(""),
|
|
970
987
|
}).required();
|
|
971
988
|
}
|
|
972
989
|
|
|
@@ -804,13 +804,13 @@ export = CommunicationPlatformModel;
|
|
|
804
804
|
*/
|
|
805
805
|
/**
|
|
806
806
|
* @typedef Page
|
|
807
|
-
* @property {number} [item_total]
|
|
808
|
-
* @property {string} [next_id]
|
|
809
|
-
* @property {boolean} [has_previous]
|
|
810
|
-
* @property {boolean} [has_next]
|
|
811
|
-
* @property {number} [current]
|
|
812
|
-
* @property {string} type
|
|
813
|
-
* @property {number} [size]
|
|
807
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
808
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
809
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
810
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
811
|
+
* @property {number} [current] - The current page number.
|
|
812
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
813
|
+
* @property {number} [size] - The number of items per page.
|
|
814
814
|
*/
|
|
815
815
|
/**
|
|
816
816
|
* @typedef GenericError
|
|
@@ -1825,12 +1825,33 @@ type SystemNotifications = {
|
|
|
1825
1825
|
/** @returns {Page} */
|
|
1826
1826
|
declare function Page(): Page;
|
|
1827
1827
|
type Page = {
|
|
1828
|
+
/**
|
|
1829
|
+
* - The total number of items on the page.
|
|
1830
|
+
*/
|
|
1828
1831
|
item_total?: number;
|
|
1832
|
+
/**
|
|
1833
|
+
* - The identifier for the next page.
|
|
1834
|
+
*/
|
|
1829
1835
|
next_id?: string;
|
|
1836
|
+
/**
|
|
1837
|
+
* - Indicates whether there is a previous page.
|
|
1838
|
+
*/
|
|
1830
1839
|
has_previous?: boolean;
|
|
1840
|
+
/**
|
|
1841
|
+
* - Indicates whether there is a next page.
|
|
1842
|
+
*/
|
|
1831
1843
|
has_next?: boolean;
|
|
1844
|
+
/**
|
|
1845
|
+
* - The current page number.
|
|
1846
|
+
*/
|
|
1832
1847
|
current?: number;
|
|
1848
|
+
/**
|
|
1849
|
+
* - The type of the page, such as 'PageType'.
|
|
1850
|
+
*/
|
|
1833
1851
|
type: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* - The number of items per page.
|
|
1854
|
+
*/
|
|
1834
1855
|
size?: number;
|
|
1835
1856
|
};
|
|
1836
1857
|
/** @returns {GenericError} */
|
|
@@ -912,13 +912,13 @@ const Joi = require("joi");
|
|
|
912
912
|
|
|
913
913
|
/**
|
|
914
914
|
* @typedef Page
|
|
915
|
-
* @property {number} [item_total]
|
|
916
|
-
* @property {string} [next_id]
|
|
917
|
-
* @property {boolean} [has_previous]
|
|
918
|
-
* @property {boolean} [has_next]
|
|
919
|
-
* @property {number} [current]
|
|
920
|
-
* @property {string} type
|
|
921
|
-
* @property {number} [size]
|
|
915
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
916
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
917
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
918
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
919
|
+
* @property {number} [current] - The current page number.
|
|
920
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
921
|
+
* @property {number} [size] - The number of items per page.
|
|
922
922
|
*/
|
|
923
923
|
|
|
924
924
|
/**
|
|
@@ -259,13 +259,13 @@ export = CompanyProfilePlatformModel;
|
|
|
259
259
|
*/
|
|
260
260
|
/**
|
|
261
261
|
* @typedef Page
|
|
262
|
-
* @property {number} [item_total]
|
|
263
|
-
* @property {string} [next_id]
|
|
264
|
-
* @property {boolean} [has_previous]
|
|
265
|
-
* @property {boolean} [has_next]
|
|
266
|
-
* @property {number} [current]
|
|
267
|
-
* @property {string} type
|
|
268
|
-
* @property {number} [size]
|
|
262
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
263
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
264
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
265
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
266
|
+
* @property {number} [current] - The current page number.
|
|
267
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
268
|
+
* @property {number} [size] - The number of items per page.
|
|
269
269
|
*/
|
|
270
270
|
/**
|
|
271
271
|
* @typedef CompanyBrandListSerializer
|
|
@@ -733,12 +733,33 @@ type CompanyBrandSerializer = {
|
|
|
733
733
|
/** @returns {Page} */
|
|
734
734
|
declare function Page(): Page;
|
|
735
735
|
type Page = {
|
|
736
|
+
/**
|
|
737
|
+
* - The total number of items on the page.
|
|
738
|
+
*/
|
|
736
739
|
item_total?: number;
|
|
740
|
+
/**
|
|
741
|
+
* - The identifier for the next page.
|
|
742
|
+
*/
|
|
737
743
|
next_id?: string;
|
|
744
|
+
/**
|
|
745
|
+
* - Indicates whether there is a previous page.
|
|
746
|
+
*/
|
|
738
747
|
has_previous?: boolean;
|
|
748
|
+
/**
|
|
749
|
+
* - Indicates whether there is a next page.
|
|
750
|
+
*/
|
|
739
751
|
has_next?: boolean;
|
|
752
|
+
/**
|
|
753
|
+
* - The current page number.
|
|
754
|
+
*/
|
|
740
755
|
current?: number;
|
|
756
|
+
/**
|
|
757
|
+
* - The type of the page, such as 'PageType'.
|
|
758
|
+
*/
|
|
741
759
|
type: string;
|
|
760
|
+
/**
|
|
761
|
+
* - The number of items per page.
|
|
762
|
+
*/
|
|
742
763
|
size?: number;
|
|
743
764
|
};
|
|
744
765
|
/** @returns {CompanyBrandListSerializer} */
|
|
@@ -286,13 +286,13 @@ const Joi = require("joi");
|
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
288
|
* @typedef Page
|
|
289
|
-
* @property {number} [item_total]
|
|
290
|
-
* @property {string} [next_id]
|
|
291
|
-
* @property {boolean} [has_previous]
|
|
292
|
-
* @property {boolean} [has_next]
|
|
293
|
-
* @property {number} [current]
|
|
294
|
-
* @property {string} type
|
|
295
|
-
* @property {number} [size]
|
|
289
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
290
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
291
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
292
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
293
|
+
* @property {number} [current] - The current page number.
|
|
294
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
295
|
+
* @property {number} [size] - The number of items per page.
|
|
296
296
|
*/
|
|
297
297
|
|
|
298
298
|
/**
|