@gofynd/fdk-client-javascript 1.6.4 → 3.0.0-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 +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -18,12 +18,12 @@ class CompanyProfile {
|
|
|
18
18
|
* @param {CompanyProfilePlatformValidator.CbsOnboardGetParam} arg - Arg object
|
|
19
19
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
20
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
21
|
+
* @returns {Promise<CompanyProfilePlatformModel.GetCompanyProfileSerializerResponse>}
|
|
22
22
|
* - Success response
|
|
23
23
|
*
|
|
24
24
|
* @name cbsOnboardGet
|
|
25
25
|
* @summary: Get company profile
|
|
26
|
-
* @description:
|
|
26
|
+
* @description: This API allows to view the company profile of the seller account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/cbsOnboardGet/).
|
|
27
27
|
*/
|
|
28
28
|
async cbsOnboardGet(
|
|
29
29
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -58,7 +58,7 @@ class CompanyProfile {
|
|
|
58
58
|
const response = await PlatformAPIClient.execute(
|
|
59
59
|
this.config,
|
|
60
60
|
"get",
|
|
61
|
-
`/service/platform/
|
|
61
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}`,
|
|
62
62
|
query_params,
|
|
63
63
|
undefined,
|
|
64
64
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -72,7 +72,7 @@ class CompanyProfile {
|
|
|
72
72
|
|
|
73
73
|
const {
|
|
74
74
|
error: res_error,
|
|
75
|
-
} = CompanyProfilePlatformModel.
|
|
75
|
+
} = CompanyProfilePlatformModel.GetCompanyProfileSerializerResponse().validate(
|
|
76
76
|
responseData,
|
|
77
77
|
{ abortEarly: false, allowUnknown: true }
|
|
78
78
|
);
|
|
@@ -95,12 +95,11 @@ class CompanyProfile {
|
|
|
95
95
|
* @param {CompanyProfilePlatformValidator.CreateBrandParam} arg - Arg object
|
|
96
96
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
97
97
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
98
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
99
|
-
*
|
|
100
|
-
*
|
|
98
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
99
|
+
* Success response
|
|
101
100
|
* @name createBrand
|
|
102
|
-
* @summary: Create
|
|
103
|
-
* @description:
|
|
101
|
+
* @summary: Create a Brand.
|
|
102
|
+
* @description: This API allows to create a brand associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createBrand/).
|
|
104
103
|
*/
|
|
105
104
|
async createBrand(
|
|
106
105
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -139,7 +138,7 @@ class CompanyProfile {
|
|
|
139
138
|
const response = await PlatformAPIClient.execute(
|
|
140
139
|
this.config,
|
|
141
140
|
"post",
|
|
142
|
-
`/service/platform/
|
|
141
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/brand`,
|
|
143
142
|
query_params,
|
|
144
143
|
body,
|
|
145
144
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -153,7 +152,7 @@ class CompanyProfile {
|
|
|
153
152
|
|
|
154
153
|
const {
|
|
155
154
|
error: res_error,
|
|
156
|
-
} = CompanyProfilePlatformModel.
|
|
155
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
157
156
|
responseData,
|
|
158
157
|
{ abortEarly: false, allowUnknown: true }
|
|
159
158
|
);
|
|
@@ -178,12 +177,11 @@ class CompanyProfile {
|
|
|
178
177
|
*
|
|
179
178
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
180
179
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
181
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
182
|
-
*
|
|
183
|
-
*
|
|
180
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
181
|
+
* Success response
|
|
184
182
|
* @name createCompanyBrandMapping
|
|
185
|
-
* @summary: Create company
|
|
186
|
-
* @description:
|
|
183
|
+
* @summary: Create a company brand mapping.
|
|
184
|
+
* @description: This API allows to create a company brand mapping, for a already existing brand in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createCompanyBrandMapping/).
|
|
187
185
|
*/
|
|
188
186
|
async createCompanyBrandMapping(
|
|
189
187
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -224,7 +222,7 @@ class CompanyProfile {
|
|
|
224
222
|
const response = await PlatformAPIClient.execute(
|
|
225
223
|
this.config,
|
|
226
224
|
"post",
|
|
227
|
-
`/service/platform/
|
|
225
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}/company-brand`,
|
|
228
226
|
query_params,
|
|
229
227
|
body,
|
|
230
228
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -238,7 +236,7 @@ class CompanyProfile {
|
|
|
238
236
|
|
|
239
237
|
const {
|
|
240
238
|
error: res_error,
|
|
241
|
-
} = CompanyProfilePlatformModel.
|
|
239
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
242
240
|
responseData,
|
|
243
241
|
{ abortEarly: false, allowUnknown: true }
|
|
244
242
|
);
|
|
@@ -261,12 +259,11 @@ class CompanyProfile {
|
|
|
261
259
|
* @param {CompanyProfilePlatformValidator.CreateLocationParam} arg - Arg object
|
|
262
260
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
263
261
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
264
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
265
|
-
*
|
|
266
|
-
*
|
|
262
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
263
|
+
* Success response
|
|
267
264
|
* @name createLocation
|
|
268
|
-
* @summary: Create company
|
|
269
|
-
* @description:
|
|
265
|
+
* @summary: Create a location associated to a company.
|
|
266
|
+
* @description: This API allows to edit a location associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createLocation/).
|
|
270
267
|
*/
|
|
271
268
|
async createLocation(
|
|
272
269
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -305,7 +302,7 @@ class CompanyProfile {
|
|
|
305
302
|
const response = await PlatformAPIClient.execute(
|
|
306
303
|
this.config,
|
|
307
304
|
"post",
|
|
308
|
-
`/service/platform/
|
|
305
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}/location`,
|
|
309
306
|
query_params,
|
|
310
307
|
body,
|
|
311
308
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -319,7 +316,7 @@ class CompanyProfile {
|
|
|
319
316
|
|
|
320
317
|
const {
|
|
321
318
|
error: res_error,
|
|
322
|
-
} = CompanyProfilePlatformModel.
|
|
319
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
323
320
|
responseData,
|
|
324
321
|
{ abortEarly: false, allowUnknown: true }
|
|
325
322
|
);
|
|
@@ -342,12 +339,11 @@ class CompanyProfile {
|
|
|
342
339
|
* @param {CompanyProfilePlatformValidator.CreateLocationBulkParam} arg - Arg object
|
|
343
340
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
344
341
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
345
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
346
|
-
*
|
|
347
|
-
*
|
|
342
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
343
|
+
* Success response
|
|
348
344
|
* @name createLocationBulk
|
|
349
|
-
* @summary:
|
|
350
|
-
* @description:
|
|
345
|
+
* @summary: Create a location asscoiated to a company in bulk.
|
|
346
|
+
* @description: This API allows to create a location associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createLocationBulk/).
|
|
351
347
|
*/
|
|
352
348
|
async createLocationBulk(
|
|
353
349
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -388,7 +384,7 @@ class CompanyProfile {
|
|
|
388
384
|
const response = await PlatformAPIClient.execute(
|
|
389
385
|
this.config,
|
|
390
386
|
"post",
|
|
391
|
-
`/service/platform/
|
|
387
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/location/bulk`,
|
|
392
388
|
query_params,
|
|
393
389
|
body,
|
|
394
390
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -402,7 +398,7 @@ class CompanyProfile {
|
|
|
402
398
|
|
|
403
399
|
const {
|
|
404
400
|
error: res_error,
|
|
405
|
-
} = CompanyProfilePlatformModel.
|
|
401
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
406
402
|
responseData,
|
|
407
403
|
{ abortEarly: false, allowUnknown: true }
|
|
408
404
|
);
|
|
@@ -425,12 +421,11 @@ class CompanyProfile {
|
|
|
425
421
|
* @param {CompanyProfilePlatformValidator.EditBrandParam} arg - Arg object
|
|
426
422
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
427
423
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
428
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
429
|
-
*
|
|
430
|
-
*
|
|
424
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
425
|
+
* Success response
|
|
431
426
|
* @name editBrand
|
|
432
|
-
* @summary:
|
|
433
|
-
* @description:
|
|
427
|
+
* @summary: Edit a brand.
|
|
428
|
+
* @description: This API allows to edit meta of a brand. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/editBrand/).
|
|
434
429
|
*/
|
|
435
430
|
async editBrand(
|
|
436
431
|
{ brandId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -471,7 +466,7 @@ class CompanyProfile {
|
|
|
471
466
|
const response = await PlatformAPIClient.execute(
|
|
472
467
|
this.config,
|
|
473
468
|
"put",
|
|
474
|
-
`/service/platform/
|
|
469
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/brand/${brandId}`,
|
|
475
470
|
query_params,
|
|
476
471
|
body,
|
|
477
472
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -485,7 +480,7 @@ class CompanyProfile {
|
|
|
485
480
|
|
|
486
481
|
const {
|
|
487
482
|
error: res_error,
|
|
488
|
-
} = CompanyProfilePlatformModel.
|
|
483
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
489
484
|
responseData,
|
|
490
485
|
{ abortEarly: false, allowUnknown: true }
|
|
491
486
|
);
|
|
@@ -508,11 +503,12 @@ class CompanyProfile {
|
|
|
508
503
|
* @param {CompanyProfilePlatformValidator.GetBrandParam} arg - Arg object
|
|
509
504
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
510
505
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
511
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
512
|
-
* Success response
|
|
506
|
+
* @returns {Promise<CompanyProfilePlatformModel.GetBrandResponseSerializer>}
|
|
507
|
+
* - Success response
|
|
508
|
+
*
|
|
513
509
|
* @name getBrand
|
|
514
|
-
* @summary: Get a brand
|
|
515
|
-
* @description:
|
|
510
|
+
* @summary: Get a single company brand.
|
|
511
|
+
* @description: This API helps to get data associated to a particular company brand. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getBrand/).
|
|
516
512
|
*/
|
|
517
513
|
async getBrand(
|
|
518
514
|
{ brandId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -551,7 +547,7 @@ class CompanyProfile {
|
|
|
551
547
|
const response = await PlatformAPIClient.execute(
|
|
552
548
|
this.config,
|
|
553
549
|
"get",
|
|
554
|
-
`/service/platform/
|
|
550
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/brand/${brandId}`,
|
|
555
551
|
query_params,
|
|
556
552
|
undefined,
|
|
557
553
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -565,7 +561,7 @@ class CompanyProfile {
|
|
|
565
561
|
|
|
566
562
|
const {
|
|
567
563
|
error: res_error,
|
|
568
|
-
} = CompanyProfilePlatformModel.
|
|
564
|
+
} = CompanyProfilePlatformModel.GetBrandResponseSerializer().validate(
|
|
569
565
|
responseData,
|
|
570
566
|
{ abortEarly: false, allowUnknown: true }
|
|
571
567
|
);
|
|
@@ -588,11 +584,12 @@ class CompanyProfile {
|
|
|
588
584
|
* @param {CompanyProfilePlatformValidator.GetBrandsParam} arg - Arg object
|
|
589
585
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
590
586
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
591
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
592
|
-
* Success response
|
|
587
|
+
* @returns {Promise<CompanyProfilePlatformModel.CompanyBrandListSerializer>}
|
|
588
|
+
* - Success response
|
|
589
|
+
*
|
|
593
590
|
* @name getBrands
|
|
594
|
-
* @summary:
|
|
595
|
-
* @description:
|
|
591
|
+
* @summary: Get brands associated to a company
|
|
592
|
+
* @description: This API helps to get view brands associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getBrands/).
|
|
596
593
|
*/
|
|
597
594
|
async getBrands(
|
|
598
595
|
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
|
|
@@ -638,7 +635,7 @@ class CompanyProfile {
|
|
|
638
635
|
const response = await PlatformAPIClient.execute(
|
|
639
636
|
this.config,
|
|
640
637
|
"get",
|
|
641
|
-
`/service/platform/
|
|
638
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}/company-brand`,
|
|
642
639
|
query_params,
|
|
643
640
|
undefined,
|
|
644
641
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -652,7 +649,7 @@ class CompanyProfile {
|
|
|
652
649
|
|
|
653
650
|
const {
|
|
654
651
|
error: res_error,
|
|
655
|
-
} = CompanyProfilePlatformModel.
|
|
652
|
+
} = CompanyProfilePlatformModel.CompanyBrandListSerializer().validate(
|
|
656
653
|
responseData,
|
|
657
654
|
{ abortEarly: false, allowUnknown: true }
|
|
658
655
|
);
|
|
@@ -676,9 +673,9 @@ class CompanyProfile {
|
|
|
676
673
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
677
674
|
* page. Default is 10.
|
|
678
675
|
* @param {string} [arg.q] - Search term for name.
|
|
679
|
-
* @returns {Paginator<CompanyProfilePlatformModel.
|
|
680
|
-
* @summary:
|
|
681
|
-
* @description:
|
|
676
|
+
* @returns {Paginator<CompanyProfilePlatformModel.CompanyBrandListSerializer>}
|
|
677
|
+
* @summary: Get brands associated to a company
|
|
678
|
+
* @description: This API helps to get view brands associated to a particular company.
|
|
682
679
|
*/
|
|
683
680
|
getBrandsPaginator({ pageSize, q } = {}) {
|
|
684
681
|
const paginator = new Paginator();
|
|
@@ -705,10 +702,11 @@ class CompanyProfile {
|
|
|
705
702
|
* @param {CompanyProfilePlatformValidator.GetCompanyMetricsParam} arg - Arg object
|
|
706
703
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
707
704
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
708
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
705
|
+
* @returns {Promise<CompanyProfilePlatformModel.MetricsSerializer>} -
|
|
706
|
+
* Success response
|
|
709
707
|
* @name getCompanyMetrics
|
|
710
708
|
* @summary: Get company metrics
|
|
711
|
-
* @description:
|
|
709
|
+
* @description: This API allows to view the company metrics, i.e. the status of its brand and stores. Also its allows to view the number of products, company documents & store documents which are verified and unverified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getCompanyMetrics/).
|
|
712
710
|
*/
|
|
713
711
|
async getCompanyMetrics(
|
|
714
712
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -745,7 +743,7 @@ class CompanyProfile {
|
|
|
745
743
|
const response = await PlatformAPIClient.execute(
|
|
746
744
|
this.config,
|
|
747
745
|
"get",
|
|
748
|
-
`/service/platform/
|
|
746
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/metrics`,
|
|
749
747
|
query_params,
|
|
750
748
|
undefined,
|
|
751
749
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -759,7 +757,7 @@ class CompanyProfile {
|
|
|
759
757
|
|
|
760
758
|
const {
|
|
761
759
|
error: res_error,
|
|
762
|
-
} = CompanyProfilePlatformModel.
|
|
760
|
+
} = CompanyProfilePlatformModel.MetricsSerializer().validate(responseData, {
|
|
763
761
|
abortEarly: false,
|
|
764
762
|
allowUnknown: true,
|
|
765
763
|
});
|
|
@@ -782,11 +780,11 @@ class CompanyProfile {
|
|
|
782
780
|
* @param {CompanyProfilePlatformValidator.GetLocationDetailParam} arg - Arg object
|
|
783
781
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
784
782
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
785
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
783
|
+
* @returns {Promise<CompanyProfilePlatformModel.GetLocationSerializer>} -
|
|
786
784
|
* Success response
|
|
787
785
|
* @name getLocationDetail
|
|
788
|
-
* @summary: Get
|
|
789
|
-
* @description:
|
|
786
|
+
* @summary: Get details of a specific location.
|
|
787
|
+
* @description: This API helps to get data associated to a specific location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocationDetail/).
|
|
790
788
|
*/
|
|
791
789
|
async getLocationDetail(
|
|
792
790
|
{ locationId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -827,7 +825,7 @@ class CompanyProfile {
|
|
|
827
825
|
const response = await PlatformAPIClient.execute(
|
|
828
826
|
this.config,
|
|
829
827
|
"get",
|
|
830
|
-
`/service/platform/
|
|
828
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}/location/${locationId}`,
|
|
831
829
|
query_params,
|
|
832
830
|
undefined,
|
|
833
831
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -841,10 +839,10 @@ class CompanyProfile {
|
|
|
841
839
|
|
|
842
840
|
const {
|
|
843
841
|
error: res_error,
|
|
844
|
-
} = CompanyProfilePlatformModel.
|
|
845
|
-
|
|
846
|
-
allowUnknown: true
|
|
847
|
-
|
|
842
|
+
} = CompanyProfilePlatformModel.GetLocationSerializer().validate(
|
|
843
|
+
responseData,
|
|
844
|
+
{ abortEarly: false, allowUnknown: true }
|
|
845
|
+
);
|
|
848
846
|
|
|
849
847
|
if (res_error) {
|
|
850
848
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -868,8 +866,8 @@ class CompanyProfile {
|
|
|
868
866
|
* - Success response
|
|
869
867
|
*
|
|
870
868
|
* @name getLocationTags
|
|
871
|
-
* @summary: Get
|
|
872
|
-
* @description:
|
|
869
|
+
* @summary: Get tags associated with locations for a company.
|
|
870
|
+
* @description: This API fetches all the tags associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocationTags/).
|
|
873
871
|
*/
|
|
874
872
|
async getLocationTags(
|
|
875
873
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -906,7 +904,7 @@ class CompanyProfile {
|
|
|
906
904
|
const response = await PlatformAPIClient.execute(
|
|
907
905
|
this.config,
|
|
908
906
|
"get",
|
|
909
|
-
`/service/platform/
|
|
907
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/location/tags`,
|
|
910
908
|
query_params,
|
|
911
909
|
undefined,
|
|
912
910
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -943,11 +941,11 @@ class CompanyProfile {
|
|
|
943
941
|
* @param {CompanyProfilePlatformValidator.GetLocationsParam} arg - Arg object
|
|
944
942
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
945
943
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
946
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
944
|
+
* @returns {Promise<CompanyProfilePlatformModel.LocationListSerializer>} -
|
|
947
945
|
* Success response
|
|
948
946
|
* @name getLocations
|
|
949
|
-
* @summary: Get
|
|
950
|
-
* @description:
|
|
947
|
+
* @summary: Get list of locations
|
|
948
|
+
* @description: This API allows to view all the locations associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocations/).
|
|
951
949
|
*/
|
|
952
950
|
async getLocations(
|
|
953
951
|
{
|
|
@@ -1018,7 +1016,7 @@ class CompanyProfile {
|
|
|
1018
1016
|
const response = await PlatformAPIClient.execute(
|
|
1019
1017
|
this.config,
|
|
1020
1018
|
"get",
|
|
1021
|
-
`/service/platform/
|
|
1019
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}/location`,
|
|
1022
1020
|
query_params,
|
|
1023
1021
|
undefined,
|
|
1024
1022
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -1032,7 +1030,7 @@ class CompanyProfile {
|
|
|
1032
1030
|
|
|
1033
1031
|
const {
|
|
1034
1032
|
error: res_error,
|
|
1035
|
-
} = CompanyProfilePlatformModel.
|
|
1033
|
+
} = CompanyProfilePlatformModel.LocationListSerializer().validate(
|
|
1036
1034
|
responseData,
|
|
1037
1035
|
{ abortEarly: false, allowUnknown: true }
|
|
1038
1036
|
);
|
|
@@ -1051,68 +1049,15 @@ class CompanyProfile {
|
|
|
1051
1049
|
return response;
|
|
1052
1050
|
}
|
|
1053
1051
|
|
|
1054
|
-
/**
|
|
1055
|
-
* @param {Object} arg - Arg object.
|
|
1056
|
-
* @param {string} [arg.storeType] - Helps to sort the location list on the
|
|
1057
|
-
* basis of location type.
|
|
1058
|
-
* @param {string} [arg.q] - Query that is to be searched.
|
|
1059
|
-
* @param {string} [arg.stage] - To filter companies on basis of verified or
|
|
1060
|
-
* unverified companies.
|
|
1061
|
-
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
1062
|
-
* page. Default is 10.
|
|
1063
|
-
* @param {number[]} [arg.locationIds] - Helps to filter stores on the basis of uids.
|
|
1064
|
-
* @param {string[]} [arg.types] - Helps to get the location list on the
|
|
1065
|
-
* basis of multiple location type.
|
|
1066
|
-
* @param {string[]} [arg.tags] - Helps to get the location list on the
|
|
1067
|
-
* basis of multiple location tag.
|
|
1068
|
-
* @returns {Paginator<CompanyProfilePlatformModel.LocationListSchema>}
|
|
1069
|
-
* @summary: Get company specific stores
|
|
1070
|
-
* @description: Retrieve a list of locations associated with the company.
|
|
1071
|
-
*/
|
|
1072
|
-
getLocationsPaginator({
|
|
1073
|
-
storeType,
|
|
1074
|
-
q,
|
|
1075
|
-
stage,
|
|
1076
|
-
pageSize,
|
|
1077
|
-
locationIds,
|
|
1078
|
-
types,
|
|
1079
|
-
tags,
|
|
1080
|
-
} = {}) {
|
|
1081
|
-
const paginator = new Paginator();
|
|
1082
|
-
const callback = async () => {
|
|
1083
|
-
const pageId = paginator.nextId;
|
|
1084
|
-
const pageNo = paginator.pageNo;
|
|
1085
|
-
const pageType = "number";
|
|
1086
|
-
const data = await this.getLocations({
|
|
1087
|
-
storeType: storeType,
|
|
1088
|
-
q: q,
|
|
1089
|
-
stage: stage,
|
|
1090
|
-
pageNo: pageNo,
|
|
1091
|
-
pageSize: pageSize,
|
|
1092
|
-
locationIds: locationIds,
|
|
1093
|
-
types: types,
|
|
1094
|
-
tags: tags,
|
|
1095
|
-
});
|
|
1096
|
-
paginator.setPaginator({
|
|
1097
|
-
hasNext: data.page.has_next ? true : false,
|
|
1098
|
-
nextId: data.page.next_id,
|
|
1099
|
-
});
|
|
1100
|
-
return data;
|
|
1101
|
-
};
|
|
1102
|
-
paginator.setCallback(callback.bind(this));
|
|
1103
|
-
return paginator;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
1052
|
/**
|
|
1107
1053
|
* @param {CompanyProfilePlatformValidator.UpdateCompanyParam} arg - Arg object
|
|
1108
1054
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1109
1055
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1110
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
1111
|
-
*
|
|
1112
|
-
*
|
|
1056
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
1057
|
+
* Success response
|
|
1113
1058
|
* @name updateCompany
|
|
1114
|
-
* @summary:
|
|
1115
|
-
* @description:
|
|
1059
|
+
* @summary: Edit company profile
|
|
1060
|
+
* @description: This API allows to edit the company profile of the seller account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/updateCompany/).
|
|
1116
1061
|
*/
|
|
1117
1062
|
async updateCompany(
|
|
1118
1063
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1151,7 +1096,7 @@ class CompanyProfile {
|
|
|
1151
1096
|
const response = await PlatformAPIClient.execute(
|
|
1152
1097
|
this.config,
|
|
1153
1098
|
"patch",
|
|
1154
|
-
`/service/platform/
|
|
1099
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}`,
|
|
1155
1100
|
query_params,
|
|
1156
1101
|
body,
|
|
1157
1102
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -1165,7 +1110,7 @@ class CompanyProfile {
|
|
|
1165
1110
|
|
|
1166
1111
|
const {
|
|
1167
1112
|
error: res_error,
|
|
1168
|
-
} = CompanyProfilePlatformModel.
|
|
1113
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
1169
1114
|
responseData,
|
|
1170
1115
|
{ abortEarly: false, allowUnknown: true }
|
|
1171
1116
|
);
|
|
@@ -1188,12 +1133,11 @@ class CompanyProfile {
|
|
|
1188
1133
|
* @param {CompanyProfilePlatformValidator.UpdateLocationParam} arg - Arg object
|
|
1189
1134
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1190
1135
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1191
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
1192
|
-
*
|
|
1193
|
-
*
|
|
1136
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
1137
|
+
* Success response
|
|
1194
1138
|
* @name updateLocation
|
|
1195
|
-
* @summary:
|
|
1196
|
-
* @description:
|
|
1139
|
+
* @summary: Edit a location asscoiated to a company.
|
|
1140
|
+
* @description: This API allows to edit a location associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/updateLocation/).
|
|
1197
1141
|
*/
|
|
1198
1142
|
async updateLocation(
|
|
1199
1143
|
{ locationId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1234,7 +1178,7 @@ class CompanyProfile {
|
|
|
1234
1178
|
const response = await PlatformAPIClient.execute(
|
|
1235
1179
|
this.config,
|
|
1236
1180
|
"put",
|
|
1237
|
-
`/service/platform/
|
|
1181
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}/location/${locationId}`,
|
|
1238
1182
|
query_params,
|
|
1239
1183
|
body,
|
|
1240
1184
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -1248,7 +1192,7 @@ class CompanyProfile {
|
|
|
1248
1192
|
|
|
1249
1193
|
const {
|
|
1250
1194
|
error: res_error,
|
|
1251
|
-
} = CompanyProfilePlatformModel.
|
|
1195
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
1252
1196
|
responseData,
|
|
1253
1197
|
{ abortEarly: false, allowUnknown: true }
|
|
1254
1198
|
);
|