@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1
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 +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -227,7 +227,6 @@ export = CatalogPlatformModel;
|
|
|
227
227
|
* @property {string} [description]
|
|
228
228
|
* @property {AttributeMasterDetails} details
|
|
229
229
|
* @property {boolean} [enabled_for_end_consumer]
|
|
230
|
-
* @property {string} [example]
|
|
231
230
|
* @property {AttributeMasterFilter} filters
|
|
232
231
|
* @property {boolean} [is_nested]
|
|
233
232
|
* @property {string} [logo]
|
|
@@ -381,7 +380,7 @@ export = CatalogPlatformModel;
|
|
|
381
380
|
* @property {UserInfo1} [created_by] - The user who created the item.
|
|
382
381
|
* @property {string} created_on - The date and time when the item was created.
|
|
383
382
|
* @property {boolean} [is_active] - Whether the item is active or not.
|
|
384
|
-
* @property {
|
|
383
|
+
* @property {string} [modified_by] - The user who last modified the item.
|
|
385
384
|
* @property {string} [modified_on] - The date and time when the item was last modified.
|
|
386
385
|
*/
|
|
387
386
|
/**
|
|
@@ -1551,7 +1550,7 @@ export = CatalogPlatformModel;
|
|
|
1551
1550
|
* @property {BrandMeta} brand - The metadata of the brand.
|
|
1552
1551
|
* @property {CompanyMeta} company - The metadata of the company.
|
|
1553
1552
|
* @property {string} country_of_origin - The country of origin of the article.
|
|
1554
|
-
* @property {
|
|
1553
|
+
* @property {string} [created_by] - The user who created the article.
|
|
1555
1554
|
* @property {DimensionResponse} dimension - The dimensions of the article.
|
|
1556
1555
|
* @property {string} [expiration_date] - The expiration date of the article.
|
|
1557
1556
|
* @property {boolean} fragile - Indicates if the article is fragile.
|
|
@@ -1564,7 +1563,7 @@ export = CatalogPlatformModel;
|
|
|
1564
1563
|
* @property {number} item_id - The ID of the item.
|
|
1565
1564
|
* @property {ManufacturerResponse} manufacturer - The manufacturer of the article.
|
|
1566
1565
|
* @property {Object} [meta] - Additional metadata for the article.
|
|
1567
|
-
* @property {
|
|
1566
|
+
* @property {string} [modified_by] - The user who modified the article.
|
|
1568
1567
|
* @property {PriceMeta} price - The price metadata of the article.
|
|
1569
1568
|
* @property {Quantities} [quantities]
|
|
1570
1569
|
* @property {Object} [raw_meta] - The raw metadata of the article.
|
|
@@ -2074,7 +2073,7 @@ export = CatalogPlatformModel;
|
|
|
2074
2073
|
* @property {number} brand_uid
|
|
2075
2074
|
* @property {string} [bulk_job_id]
|
|
2076
2075
|
* @property {string} category_slug
|
|
2077
|
-
* @property {
|
|
2076
|
+
* @property {string} [change_request_id]
|
|
2078
2077
|
* @property {number} company_id
|
|
2079
2078
|
* @property {string} country_of_origin
|
|
2080
2079
|
* @property {string} currency
|
|
@@ -2697,7 +2696,7 @@ export = CatalogPlatformModel;
|
|
|
2697
2696
|
* @property {boolean} [is_visible]
|
|
2698
2697
|
* @property {CollectionImage} [logo]
|
|
2699
2698
|
* @property {Object} [meta]
|
|
2700
|
-
* @property {
|
|
2699
|
+
* @property {string} [modified_by]
|
|
2701
2700
|
* @property {string} [name]
|
|
2702
2701
|
* @property {number} [priority]
|
|
2703
2702
|
* @property {boolean} [published]
|
|
@@ -3159,7 +3158,6 @@ type AttributeMasterSerializer = {
|
|
|
3159
3158
|
description?: string;
|
|
3160
3159
|
details: AttributeMasterDetails;
|
|
3161
3160
|
enabled_for_end_consumer?: boolean;
|
|
3162
|
-
example?: string;
|
|
3163
3161
|
filters: AttributeMasterFilter;
|
|
3164
3162
|
is_nested?: boolean;
|
|
3165
3163
|
logo?: string;
|
|
@@ -3362,7 +3360,7 @@ type BulkResponse = {
|
|
|
3362
3360
|
/**
|
|
3363
3361
|
* - The user who last modified the item.
|
|
3364
3362
|
*/
|
|
3365
|
-
modified_by?:
|
|
3363
|
+
modified_by?: string;
|
|
3366
3364
|
/**
|
|
3367
3365
|
* - The date and time when the item was last modified.
|
|
3368
3366
|
*/
|
|
@@ -5198,7 +5196,7 @@ type InventorySellerResponse = {
|
|
|
5198
5196
|
/**
|
|
5199
5197
|
* - The user who created the article.
|
|
5200
5198
|
*/
|
|
5201
|
-
created_by?:
|
|
5199
|
+
created_by?: string;
|
|
5202
5200
|
/**
|
|
5203
5201
|
* - The dimensions of the article.
|
|
5204
5202
|
*/
|
|
@@ -5247,7 +5245,7 @@ type InventorySellerResponse = {
|
|
|
5247
5245
|
/**
|
|
5248
5246
|
* - The user who modified the article.
|
|
5249
5247
|
*/
|
|
5250
|
-
modified_by?:
|
|
5248
|
+
modified_by?: string;
|
|
5251
5249
|
/**
|
|
5252
5250
|
* - The price metadata of the article.
|
|
5253
5251
|
*/
|
|
@@ -5947,7 +5945,7 @@ type ProductCreateUpdateSchemaV2 = {
|
|
|
5947
5945
|
brand_uid: number;
|
|
5948
5946
|
bulk_job_id?: string;
|
|
5949
5947
|
category_slug: string;
|
|
5950
|
-
change_request_id?:
|
|
5948
|
+
change_request_id?: string;
|
|
5951
5949
|
company_id: number;
|
|
5952
5950
|
country_of_origin: string;
|
|
5953
5951
|
currency: string;
|
|
@@ -6701,7 +6699,7 @@ type UpdateCollection = {
|
|
|
6701
6699
|
is_visible?: boolean;
|
|
6702
6700
|
logo?: CollectionImage;
|
|
6703
6701
|
meta?: any;
|
|
6704
|
-
modified_by?:
|
|
6702
|
+
modified_by?: string;
|
|
6705
6703
|
name?: string;
|
|
6706
6704
|
priority?: number;
|
|
6707
6705
|
published?: boolean;
|
|
@@ -258,7 +258,6 @@ const Joi = require("joi");
|
|
|
258
258
|
* @property {string} [description]
|
|
259
259
|
* @property {AttributeMasterDetails} details
|
|
260
260
|
* @property {boolean} [enabled_for_end_consumer]
|
|
261
|
-
* @property {string} [example]
|
|
262
261
|
* @property {AttributeMasterFilter} filters
|
|
263
262
|
* @property {boolean} [is_nested]
|
|
264
263
|
* @property {string} [logo]
|
|
@@ -431,7 +430,7 @@ const Joi = require("joi");
|
|
|
431
430
|
* @property {UserInfo1} [created_by] - The user who created the item.
|
|
432
431
|
* @property {string} created_on - The date and time when the item was created.
|
|
433
432
|
* @property {boolean} [is_active] - Whether the item is active or not.
|
|
434
|
-
* @property {
|
|
433
|
+
* @property {string} [modified_by] - The user who last modified the item.
|
|
435
434
|
* @property {string} [modified_on] - The date and time when the item was last modified.
|
|
436
435
|
*/
|
|
437
436
|
|
|
@@ -1736,7 +1735,7 @@ const Joi = require("joi");
|
|
|
1736
1735
|
* @property {BrandMeta} brand - The metadata of the brand.
|
|
1737
1736
|
* @property {CompanyMeta} company - The metadata of the company.
|
|
1738
1737
|
* @property {string} country_of_origin - The country of origin of the article.
|
|
1739
|
-
* @property {
|
|
1738
|
+
* @property {string} [created_by] - The user who created the article.
|
|
1740
1739
|
* @property {DimensionResponse} dimension - The dimensions of the article.
|
|
1741
1740
|
* @property {string} [expiration_date] - The expiration date of the article.
|
|
1742
1741
|
* @property {boolean} fragile - Indicates if the article is fragile.
|
|
@@ -1749,7 +1748,7 @@ const Joi = require("joi");
|
|
|
1749
1748
|
* @property {number} item_id - The ID of the item.
|
|
1750
1749
|
* @property {ManufacturerResponse} manufacturer - The manufacturer of the article.
|
|
1751
1750
|
* @property {Object} [meta] - Additional metadata for the article.
|
|
1752
|
-
* @property {
|
|
1751
|
+
* @property {string} [modified_by] - The user who modified the article.
|
|
1753
1752
|
* @property {PriceMeta} price - The price metadata of the article.
|
|
1754
1753
|
* @property {Quantities} [quantities]
|
|
1755
1754
|
* @property {Object} [raw_meta] - The raw metadata of the article.
|
|
@@ -2317,7 +2316,7 @@ const Joi = require("joi");
|
|
|
2317
2316
|
* @property {number} brand_uid
|
|
2318
2317
|
* @property {string} [bulk_job_id]
|
|
2319
2318
|
* @property {string} category_slug
|
|
2320
|
-
* @property {
|
|
2319
|
+
* @property {string} [change_request_id]
|
|
2321
2320
|
* @property {number} company_id
|
|
2322
2321
|
* @property {string} country_of_origin
|
|
2323
2322
|
* @property {string} currency
|
|
@@ -3005,7 +3004,7 @@ const Joi = require("joi");
|
|
|
3005
3004
|
* @property {boolean} [is_visible]
|
|
3006
3005
|
* @property {CollectionImage} [logo]
|
|
3007
3006
|
* @property {Object} [meta]
|
|
3008
|
-
* @property {
|
|
3007
|
+
* @property {string} [modified_by]
|
|
3009
3008
|
* @property {string} [name]
|
|
3010
3009
|
* @property {number} [priority]
|
|
3011
3010
|
* @property {boolean} [published]
|
|
@@ -3511,7 +3510,6 @@ class CatalogPlatformModel {
|
|
|
3511
3510
|
description: Joi.string().allow(""),
|
|
3512
3511
|
details: CatalogPlatformModel.AttributeMasterDetails().required(),
|
|
3513
3512
|
enabled_for_end_consumer: Joi.boolean(),
|
|
3514
|
-
example: Joi.string().allow(""),
|
|
3515
3513
|
filters: CatalogPlatformModel.AttributeMasterFilter().required(),
|
|
3516
3514
|
is_nested: Joi.boolean(),
|
|
3517
3515
|
logo: Joi.string().allow(""),
|
|
@@ -3721,7 +3719,7 @@ class CatalogPlatformModel {
|
|
|
3721
3719
|
created_by: CatalogPlatformModel.UserInfo1(),
|
|
3722
3720
|
created_on: Joi.string().allow("").required(),
|
|
3723
3721
|
is_active: Joi.boolean(),
|
|
3724
|
-
modified_by:
|
|
3722
|
+
modified_by: Joi.string().allow("").allow(null),
|
|
3725
3723
|
modified_on: Joi.string().allow(""),
|
|
3726
3724
|
});
|
|
3727
3725
|
}
|
|
@@ -5280,7 +5278,7 @@ class CatalogPlatformModel {
|
|
|
5280
5278
|
brand: CatalogPlatformModel.BrandMeta().required(),
|
|
5281
5279
|
company: CatalogPlatformModel.CompanyMeta().required(),
|
|
5282
5280
|
country_of_origin: Joi.string().allow("").required(),
|
|
5283
|
-
created_by:
|
|
5281
|
+
created_by: Joi.string().allow("").allow(null),
|
|
5284
5282
|
dimension: CatalogPlatformModel.DimensionResponse().required(),
|
|
5285
5283
|
expiration_date: Joi.string().allow(""),
|
|
5286
5284
|
fragile: Joi.boolean().required(),
|
|
@@ -5293,7 +5291,7 @@ class CatalogPlatformModel {
|
|
|
5293
5291
|
item_id: Joi.number().required(),
|
|
5294
5292
|
manufacturer: CatalogPlatformModel.ManufacturerResponse().required(),
|
|
5295
5293
|
meta: Joi.any().allow(null),
|
|
5296
|
-
modified_by:
|
|
5294
|
+
modified_by: Joi.string().allow("").allow(null),
|
|
5297
5295
|
price: CatalogPlatformModel.PriceMeta().required(),
|
|
5298
5296
|
quantities: CatalogPlatformModel.Quantities(),
|
|
5299
5297
|
raw_meta: Joi.any(),
|
|
@@ -5979,7 +5977,7 @@ class CatalogPlatformModel {
|
|
|
5979
5977
|
brand_uid: Joi.number().required(),
|
|
5980
5978
|
bulk_job_id: Joi.string().allow(""),
|
|
5981
5979
|
category_slug: Joi.string().allow("").required(),
|
|
5982
|
-
change_request_id: Joi.
|
|
5980
|
+
change_request_id: Joi.string().allow("").allow(null),
|
|
5983
5981
|
company_id: Joi.number().required(),
|
|
5984
5982
|
country_of_origin: Joi.string().allow("").required(),
|
|
5985
5983
|
currency: Joi.string().allow("").required(),
|
|
@@ -6800,7 +6798,7 @@ class CatalogPlatformModel {
|
|
|
6800
6798
|
is_visible: Joi.boolean(),
|
|
6801
6799
|
logo: CatalogPlatformModel.CollectionImage(),
|
|
6802
6800
|
meta: Joi.any(),
|
|
6803
|
-
modified_by:
|
|
6801
|
+
modified_by: Joi.string().allow("").allow(null),
|
|
6804
6802
|
name: Joi.string().allow(""),
|
|
6805
6803
|
priority: Joi.number(),
|
|
6806
6804
|
published: Joi.boolean(),
|
|
@@ -111,6 +111,9 @@ export = CatalogPlatformValidator;
|
|
|
111
111
|
/**
|
|
112
112
|
* @typedef DownloadProductTemplateViewsParam
|
|
113
113
|
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
114
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
115
|
+
* default value is standard.
|
|
116
|
+
* @property {string} [type] - Format type of the sample file. The default value is excel.
|
|
114
117
|
*/
|
|
115
118
|
/**
|
|
116
119
|
* @typedef EditProductParam
|
|
@@ -419,6 +422,12 @@ export = CatalogPlatformValidator;
|
|
|
419
422
|
/**
|
|
420
423
|
* @typedef ValidateProductTemplateParam
|
|
421
424
|
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
425
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
426
|
+
* default value is standard.
|
|
427
|
+
* @property {boolean} [bulk] - This specification determines the schema type to
|
|
428
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
429
|
+
* when set to false, it will provide the schema for a single product. The
|
|
430
|
+
* default value is false.
|
|
422
431
|
*/
|
|
423
432
|
/**
|
|
424
433
|
* @typedef ValidateProductTemplateSchemaParam
|
|
@@ -725,6 +734,15 @@ type DownloadProductTemplateViewsParam = {
|
|
|
725
734
|
* - A `slug` is a unique identifier for a particular template.
|
|
726
735
|
*/
|
|
727
736
|
slug: string;
|
|
737
|
+
/**
|
|
738
|
+
* - An `item_type` defines the type of item. The
|
|
739
|
+
* default value is standard.
|
|
740
|
+
*/
|
|
741
|
+
itemType?: string;
|
|
742
|
+
/**
|
|
743
|
+
* - Format type of the sample file. The default value is excel.
|
|
744
|
+
*/
|
|
745
|
+
type?: string;
|
|
728
746
|
};
|
|
729
747
|
type EditProductParam = {
|
|
730
748
|
/**
|
|
@@ -1321,6 +1339,18 @@ type ValidateProductTemplateParam = {
|
|
|
1321
1339
|
* - A `slug` is a unique identifier for a particular template.
|
|
1322
1340
|
*/
|
|
1323
1341
|
slug: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* - An `item_type` defines the type of item. The
|
|
1344
|
+
* default value is standard.
|
|
1345
|
+
*/
|
|
1346
|
+
itemType?: string;
|
|
1347
|
+
/**
|
|
1348
|
+
* - This specification determines the schema type to
|
|
1349
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
1350
|
+
* when set to false, it will provide the schema for a single product. The
|
|
1351
|
+
* default value is false.
|
|
1352
|
+
*/
|
|
1353
|
+
bulk?: boolean;
|
|
1324
1354
|
};
|
|
1325
1355
|
type ValidateProductTemplateSchemaParam = {
|
|
1326
1356
|
/**
|
|
@@ -138,6 +138,9 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
138
138
|
/**
|
|
139
139
|
* @typedef DownloadProductTemplateViewsParam
|
|
140
140
|
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
141
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
142
|
+
* default value is standard.
|
|
143
|
+
* @property {string} [type] - Format type of the sample file. The default value is excel.
|
|
141
144
|
*/
|
|
142
145
|
|
|
143
146
|
/**
|
|
@@ -497,6 +500,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
497
500
|
/**
|
|
498
501
|
* @typedef ValidateProductTemplateParam
|
|
499
502
|
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
503
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
504
|
+
* default value is standard.
|
|
505
|
+
* @property {boolean} [bulk] - This specification determines the schema type to
|
|
506
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
507
|
+
* when set to false, it will provide the schema for a single product. The
|
|
508
|
+
* default value is false.
|
|
500
509
|
*/
|
|
501
510
|
|
|
502
511
|
/**
|
|
@@ -688,6 +697,8 @@ class CatalogPlatformValidator {
|
|
|
688
697
|
static downloadProductTemplateViews() {
|
|
689
698
|
return Joi.object({
|
|
690
699
|
slug: Joi.string().allow("").required(),
|
|
700
|
+
itemType: Joi.string().allow(""),
|
|
701
|
+
type: Joi.string().allow(""),
|
|
691
702
|
}).required();
|
|
692
703
|
}
|
|
693
704
|
|
|
@@ -1109,6 +1120,8 @@ class CatalogPlatformValidator {
|
|
|
1109
1120
|
static validateProductTemplate() {
|
|
1110
1121
|
return Joi.object({
|
|
1111
1122
|
slug: Joi.string().allow("").required(),
|
|
1123
|
+
itemType: Joi.string().allow(""),
|
|
1124
|
+
bulk: Joi.boolean(),
|
|
1112
1125
|
}).required();
|
|
1113
1126
|
}
|
|
1114
1127
|
|
|
@@ -4,22 +4,24 @@ declare class Common {
|
|
|
4
4
|
config: any;
|
|
5
5
|
/**
|
|
6
6
|
* @param {CommonPlatformValidator.GetLocationsParam} arg - Arg object
|
|
7
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7
8
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
8
9
|
* @returns {Promise<CommonPlatformModel.Locations>} - Success response
|
|
9
10
|
* @name getLocations
|
|
10
11
|
* @summary: Get countries, states, cities
|
|
11
|
-
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/getLocations/).
|
|
12
|
+
* @description: Retrieve a list of countries, states, or cities based on the provided location_type and id parameters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/getLocations/).
|
|
12
13
|
*/
|
|
13
|
-
getLocations({ locationType, id }?: CommonPlatformValidator.GetLocationsParam, {
|
|
14
|
+
getLocations({ locationType, id, requestHeaders }?: CommonPlatformValidator.GetLocationsParam, { responseHeaders }?: object): Promise<CommonPlatformModel.Locations>;
|
|
14
15
|
/**
|
|
15
16
|
* @param {CommonPlatformValidator.SearchApplicationParam} arg - Arg object
|
|
17
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
16
18
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
17
19
|
* @returns {Promise<CommonPlatformModel.ApplicationResponse>} - Success response
|
|
18
20
|
* @name searchApplication
|
|
19
21
|
* @summary: Search Application
|
|
20
22
|
* @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/searchApplication/).
|
|
21
23
|
*/
|
|
22
|
-
searchApplication({ authorization, query }?: CommonPlatformValidator.SearchApplicationParam, {
|
|
24
|
+
searchApplication({ authorization, query, requestHeaders }?: CommonPlatformValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<CommonPlatformModel.ApplicationResponse>;
|
|
23
25
|
}
|
|
24
26
|
import CommonPlatformValidator = require("./CommonPlatformValidator");
|
|
25
27
|
import CommonPlatformModel = require("./CommonPlatformModel");
|
|
@@ -13,15 +13,16 @@ class Common {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @param {CommonPlatformValidator.GetLocationsParam} arg - Arg object
|
|
16
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
16
17
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
17
18
|
* @returns {Promise<CommonPlatformModel.Locations>} - Success response
|
|
18
19
|
* @name getLocations
|
|
19
20
|
* @summary: Get countries, states, cities
|
|
20
|
-
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/getLocations/).
|
|
21
|
+
* @description: Retrieve a list of countries, states, or cities based on the provided location_type and id parameters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/getLocations/).
|
|
21
22
|
*/
|
|
22
23
|
async getLocations(
|
|
23
|
-
{ locationType, id } = {},
|
|
24
|
-
{
|
|
24
|
+
{ locationType, id, requestHeaders } = { requestHeaders: {} },
|
|
25
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
25
26
|
) {
|
|
26
27
|
const { error } = CommonPlatformValidator.getLocations().validate(
|
|
27
28
|
{ locationType, id },
|
|
@@ -55,12 +56,12 @@ class Common {
|
|
|
55
56
|
`/service/common/configuration/v1.0/location`,
|
|
56
57
|
query_params,
|
|
57
58
|
undefined,
|
|
58
|
-
xHeaders,
|
|
59
|
-
{
|
|
59
|
+
{ ...xHeaders, ...requestHeaders },
|
|
60
|
+
{ responseHeaders }
|
|
60
61
|
);
|
|
61
62
|
|
|
62
63
|
let responseData = response;
|
|
63
|
-
if (
|
|
64
|
+
if (responseHeaders) {
|
|
64
65
|
responseData = response[0];
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -83,6 +84,7 @@ class Common {
|
|
|
83
84
|
|
|
84
85
|
/**
|
|
85
86
|
* @param {CommonPlatformValidator.SearchApplicationParam} arg - Arg object
|
|
87
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
86
88
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
87
89
|
* @returns {Promise<CommonPlatformModel.ApplicationResponse>} - Success response
|
|
88
90
|
* @name searchApplication
|
|
@@ -90,8 +92,8 @@ class Common {
|
|
|
90
92
|
* @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/searchApplication/).
|
|
91
93
|
*/
|
|
92
94
|
async searchApplication(
|
|
93
|
-
{ authorization, query } = {},
|
|
94
|
-
{
|
|
95
|
+
{ authorization, query, requestHeaders } = { requestHeaders: {} },
|
|
96
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
95
97
|
) {
|
|
96
98
|
const { error } = CommonPlatformValidator.searchApplication().validate(
|
|
97
99
|
{ authorization, query },
|
|
@@ -127,12 +129,12 @@ class Common {
|
|
|
127
129
|
`/service/common/configuration/v1.0/application/search-application`,
|
|
128
130
|
query_params,
|
|
129
131
|
undefined,
|
|
130
|
-
xHeaders,
|
|
131
|
-
{
|
|
132
|
+
{ ...xHeaders, ...requestHeaders },
|
|
133
|
+
{ responseHeaders }
|
|
132
134
|
);
|
|
133
135
|
|
|
134
136
|
let responseData = response;
|
|
135
|
-
if (
|
|
137
|
+
if (responseHeaders) {
|
|
136
138
|
responseData = response[0];
|
|
137
139
|
}
|
|
138
140
|
|
|
@@ -61,22 +61,9 @@ export = CommonPlatformModel;
|
|
|
61
61
|
*/
|
|
62
62
|
/**
|
|
63
63
|
* @typedef ApplicationResponse
|
|
64
|
-
* @property {Application} [application]
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* @typedef ApplicationWebsite
|
|
68
|
-
* @property {string} [basepath] - Base path for the current sales channel website
|
|
69
|
-
* @property {boolean} [enabled] - Shows whether sales channel website URL is
|
|
70
|
-
* enabled or not
|
|
71
|
-
*/
|
|
72
|
-
/**
|
|
73
|
-
* @typedef BadRequest
|
|
74
|
-
* @property {string} [message] - Failure message (in a string format)
|
|
75
|
-
*/
|
|
76
|
-
/**
|
|
77
|
-
* @typedef Currency
|
|
78
64
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
79
65
|
* of the current sales channel supported currency
|
|
66
|
+
* @property {Application} [application]
|
|
80
67
|
* @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
|
|
81
68
|
* @property {string} [created_at] - ISO 8601 timestamp of sales channel support
|
|
82
69
|
* currency creation
|
|
@@ -90,6 +77,16 @@ export = CommonPlatformModel;
|
|
|
90
77
|
* @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
|
|
91
78
|
* currency updation
|
|
92
79
|
*/
|
|
80
|
+
/**
|
|
81
|
+
* @typedef ApplicationWebsite
|
|
82
|
+
* @property {string} [basepath] - Base path for the current sales channel website
|
|
83
|
+
* @property {boolean} [enabled] - Shows whether sales channel website URL is
|
|
84
|
+
* enabled or not
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* @typedef BadRequest
|
|
88
|
+
* @property {string} [message] - Failure message (in a string format)
|
|
89
|
+
*/
|
|
93
90
|
/**
|
|
94
91
|
* @typedef Domain
|
|
95
92
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -135,22 +132,12 @@ export = CommonPlatformModel;
|
|
|
135
132
|
*/
|
|
136
133
|
/**
|
|
137
134
|
* @typedef Locations
|
|
138
|
-
* @property {
|
|
135
|
+
* @property {LocationCountry[]} [items] - Object Containing Country Locations Details
|
|
139
136
|
*/
|
|
140
137
|
/**
|
|
141
138
|
* @typedef NotFound
|
|
142
139
|
* @property {string} [message] - Response message for not found
|
|
143
140
|
*/
|
|
144
|
-
/**
|
|
145
|
-
* @typedef Page
|
|
146
|
-
* @property {number} [current]
|
|
147
|
-
* @property {boolean} [has_next]
|
|
148
|
-
* @property {boolean} [has_previous]
|
|
149
|
-
* @property {number} [item_total]
|
|
150
|
-
* @property {string} [next_id]
|
|
151
|
-
* @property {number} [size]
|
|
152
|
-
* @property {string} type
|
|
153
|
-
*/
|
|
154
141
|
/**
|
|
155
142
|
* @typedef SecureUrl
|
|
156
143
|
* @property {string} [secure_url] - Hosted URL of the image
|
|
@@ -158,7 +145,7 @@ export = CommonPlatformModel;
|
|
|
158
145
|
declare class CommonPlatformModel {
|
|
159
146
|
}
|
|
160
147
|
declare namespace CommonPlatformModel {
|
|
161
|
-
export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest,
|
|
148
|
+
export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
|
|
162
149
|
}
|
|
163
150
|
/** @returns {Application} */
|
|
164
151
|
declare function Application(): Application;
|
|
@@ -288,37 +275,12 @@ type ApplicationRedirections = {
|
|
|
288
275
|
/** @returns {ApplicationResponse} */
|
|
289
276
|
declare function ApplicationResponse(): ApplicationResponse;
|
|
290
277
|
type ApplicationResponse = {
|
|
291
|
-
application?: Application;
|
|
292
|
-
};
|
|
293
|
-
/** @returns {ApplicationWebsite} */
|
|
294
|
-
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
295
|
-
type ApplicationWebsite = {
|
|
296
|
-
/**
|
|
297
|
-
* - Base path for the current sales channel website
|
|
298
|
-
*/
|
|
299
|
-
basepath?: string;
|
|
300
|
-
/**
|
|
301
|
-
* - Shows whether sales channel website URL is
|
|
302
|
-
* enabled or not
|
|
303
|
-
*/
|
|
304
|
-
enabled?: boolean;
|
|
305
|
-
};
|
|
306
|
-
/** @returns {BadRequest} */
|
|
307
|
-
declare function BadRequest(): BadRequest;
|
|
308
|
-
type BadRequest = {
|
|
309
|
-
/**
|
|
310
|
-
* - Failure message (in a string format)
|
|
311
|
-
*/
|
|
312
|
-
message?: string;
|
|
313
|
-
};
|
|
314
|
-
/** @returns {Currency} */
|
|
315
|
-
declare function Currency(): Currency;
|
|
316
|
-
type Currency = {
|
|
317
278
|
/**
|
|
318
279
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
319
280
|
* of the current sales channel supported currency
|
|
320
281
|
*/
|
|
321
282
|
_id?: string;
|
|
283
|
+
application?: Application;
|
|
322
284
|
/**
|
|
323
285
|
* - 3-character currency code, e.g. INR, USD, EUR.
|
|
324
286
|
*/
|
|
@@ -353,6 +315,27 @@ type Currency = {
|
|
|
353
315
|
*/
|
|
354
316
|
updated_at?: string;
|
|
355
317
|
};
|
|
318
|
+
/** @returns {ApplicationWebsite} */
|
|
319
|
+
declare function ApplicationWebsite(): ApplicationWebsite;
|
|
320
|
+
type ApplicationWebsite = {
|
|
321
|
+
/**
|
|
322
|
+
* - Base path for the current sales channel website
|
|
323
|
+
*/
|
|
324
|
+
basepath?: string;
|
|
325
|
+
/**
|
|
326
|
+
* - Shows whether sales channel website URL is
|
|
327
|
+
* enabled or not
|
|
328
|
+
*/
|
|
329
|
+
enabled?: boolean;
|
|
330
|
+
};
|
|
331
|
+
/** @returns {BadRequest} */
|
|
332
|
+
declare function BadRequest(): BadRequest;
|
|
333
|
+
type BadRequest = {
|
|
334
|
+
/**
|
|
335
|
+
* - Failure message (in a string format)
|
|
336
|
+
*/
|
|
337
|
+
message?: string;
|
|
338
|
+
};
|
|
356
339
|
/** @returns {Domain} */
|
|
357
340
|
declare function Domain(): Domain;
|
|
358
341
|
type Domain = {
|
|
@@ -418,7 +401,10 @@ type LocationDefaultLanguage = {
|
|
|
418
401
|
/** @returns {Locations} */
|
|
419
402
|
declare function Locations(): Locations;
|
|
420
403
|
type Locations = {
|
|
421
|
-
|
|
404
|
+
/**
|
|
405
|
+
* - Object Containing Country Locations Details
|
|
406
|
+
*/
|
|
407
|
+
items?: LocationCountry[];
|
|
422
408
|
};
|
|
423
409
|
/** @returns {NotFound} */
|
|
424
410
|
declare function NotFound(): NotFound;
|
|
@@ -428,17 +414,6 @@ type NotFound = {
|
|
|
428
414
|
*/
|
|
429
415
|
message?: string;
|
|
430
416
|
};
|
|
431
|
-
/** @returns {Page} */
|
|
432
|
-
declare function Page(): Page;
|
|
433
|
-
type Page = {
|
|
434
|
-
current?: number;
|
|
435
|
-
has_next?: boolean;
|
|
436
|
-
has_previous?: boolean;
|
|
437
|
-
item_total?: number;
|
|
438
|
-
next_id?: string;
|
|
439
|
-
size?: number;
|
|
440
|
-
type: string;
|
|
441
|
-
};
|
|
442
417
|
/** @returns {SecureUrl} */
|
|
443
418
|
declare function SecureUrl(): SecureUrl;
|
|
444
419
|
type SecureUrl = {
|