@gofynd/fdk-client-javascript 1.6.4 → 3.1.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 +100 -80
- package/sdk/application/Cart/CartApplicationClient.js +257 -126
- 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 +61 -21
- package/sdk/application/Content/ContentApplicationClient.js +250 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
- 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 +0 -10
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
- 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 +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
- package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
- 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 -238
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
- 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 +506 -270
- package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -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 +1206 -459
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
- 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 +871 -1315
- package/sdk/platform/Content/ContentPlatformModel.js +940 -599
- 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 +486 -277
- package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
- package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
- 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 +3531 -1292
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
- 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 +2188 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
- 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 +11 -50
- package/sdk/platform/Share/SharePlatformModel.js +5 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
- 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/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 +0 -2
- package/sdk/public/PublicClient.js +0 -4
- 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 +0 -1
- package/sdk/public/index.js +0 -2
- 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,15 +941,16 @@ 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
|
{
|
|
954
952
|
storeType,
|
|
953
|
+
storeCodes,
|
|
955
954
|
q,
|
|
956
955
|
stage,
|
|
957
956
|
pageNo,
|
|
@@ -966,6 +965,7 @@ class CompanyProfile {
|
|
|
966
965
|
const { error } = CompanyProfilePlatformValidator.getLocations().validate(
|
|
967
966
|
{
|
|
968
967
|
storeType,
|
|
968
|
+
storeCodes,
|
|
969
969
|
q,
|
|
970
970
|
stage,
|
|
971
971
|
pageNo,
|
|
@@ -986,6 +986,7 @@ class CompanyProfile {
|
|
|
986
986
|
} = CompanyProfilePlatformValidator.getLocations().validate(
|
|
987
987
|
{
|
|
988
988
|
storeType,
|
|
989
|
+
storeCodes,
|
|
989
990
|
q,
|
|
990
991
|
stage,
|
|
991
992
|
pageNo,
|
|
@@ -1005,6 +1006,7 @@ class CompanyProfile {
|
|
|
1005
1006
|
|
|
1006
1007
|
const query_params = {};
|
|
1007
1008
|
query_params["store_type"] = storeType;
|
|
1009
|
+
query_params["store_codes"] = storeCodes;
|
|
1008
1010
|
query_params["q"] = q;
|
|
1009
1011
|
query_params["stage"] = stage;
|
|
1010
1012
|
query_params["page_no"] = pageNo;
|
|
@@ -1018,7 +1020,7 @@ class CompanyProfile {
|
|
|
1018
1020
|
const response = await PlatformAPIClient.execute(
|
|
1019
1021
|
this.config,
|
|
1020
1022
|
"get",
|
|
1021
|
-
`/service/platform/
|
|
1023
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}/location`,
|
|
1022
1024
|
query_params,
|
|
1023
1025
|
undefined,
|
|
1024
1026
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -1032,7 +1034,7 @@ class CompanyProfile {
|
|
|
1032
1034
|
|
|
1033
1035
|
const {
|
|
1034
1036
|
error: res_error,
|
|
1035
|
-
} = CompanyProfilePlatformModel.
|
|
1037
|
+
} = CompanyProfilePlatformModel.LocationListSerializer().validate(
|
|
1036
1038
|
responseData,
|
|
1037
1039
|
{ abortEarly: false, allowUnknown: true }
|
|
1038
1040
|
);
|
|
@@ -1055,6 +1057,10 @@ class CompanyProfile {
|
|
|
1055
1057
|
* @param {Object} arg - Arg object.
|
|
1056
1058
|
* @param {string} [arg.storeType] - Helps to sort the location list on the
|
|
1057
1059
|
* basis of location type.
|
|
1060
|
+
* @param {string[]} [arg.storeCodes] - List of up to 50 store codes to
|
|
1061
|
+
* fetch. Specify multiple values by repeating the query parameter (e.g.,
|
|
1062
|
+
* `?store_codes=high_street&store_codes=main_avenue`). Comma-separated
|
|
1063
|
+
* values are not supported.
|
|
1058
1064
|
* @param {string} [arg.q] - Query that is to be searched.
|
|
1059
1065
|
* @param {string} [arg.stage] - To filter companies on basis of verified or
|
|
1060
1066
|
* unverified companies.
|
|
@@ -1065,12 +1071,13 @@ class CompanyProfile {
|
|
|
1065
1071
|
* basis of multiple location type.
|
|
1066
1072
|
* @param {string[]} [arg.tags] - Helps to get the location list on the
|
|
1067
1073
|
* basis of multiple location tag.
|
|
1068
|
-
* @returns {Paginator<CompanyProfilePlatformModel.
|
|
1069
|
-
* @summary: Get
|
|
1070
|
-
* @description:
|
|
1074
|
+
* @returns {Paginator<CompanyProfilePlatformModel.LocationListSerializer>}
|
|
1075
|
+
* @summary: Get list of locations
|
|
1076
|
+
* @description: This API allows to view all the locations associated to a company.
|
|
1071
1077
|
*/
|
|
1072
1078
|
getLocationsPaginator({
|
|
1073
1079
|
storeType,
|
|
1080
|
+
storeCodes,
|
|
1074
1081
|
q,
|
|
1075
1082
|
stage,
|
|
1076
1083
|
pageSize,
|
|
@@ -1085,6 +1092,7 @@ class CompanyProfile {
|
|
|
1085
1092
|
const pageType = "number";
|
|
1086
1093
|
const data = await this.getLocations({
|
|
1087
1094
|
storeType: storeType,
|
|
1095
|
+
storeCodes: storeCodes,
|
|
1088
1096
|
q: q,
|
|
1089
1097
|
stage: stage,
|
|
1090
1098
|
pageNo: pageNo,
|
|
@@ -1107,12 +1115,11 @@ class CompanyProfile {
|
|
|
1107
1115
|
* @param {CompanyProfilePlatformValidator.UpdateCompanyParam} arg - Arg object
|
|
1108
1116
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1109
1117
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1110
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
1111
|
-
*
|
|
1112
|
-
*
|
|
1118
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
1119
|
+
* Success response
|
|
1113
1120
|
* @name updateCompany
|
|
1114
|
-
* @summary:
|
|
1115
|
-
* @description:
|
|
1121
|
+
* @summary: Edit company profile
|
|
1122
|
+
* @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
1123
|
*/
|
|
1117
1124
|
async updateCompany(
|
|
1118
1125
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1151,7 +1158,7 @@ class CompanyProfile {
|
|
|
1151
1158
|
const response = await PlatformAPIClient.execute(
|
|
1152
1159
|
this.config,
|
|
1153
1160
|
"patch",
|
|
1154
|
-
`/service/platform/
|
|
1161
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}`,
|
|
1155
1162
|
query_params,
|
|
1156
1163
|
body,
|
|
1157
1164
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -1165,7 +1172,7 @@ class CompanyProfile {
|
|
|
1165
1172
|
|
|
1166
1173
|
const {
|
|
1167
1174
|
error: res_error,
|
|
1168
|
-
} = CompanyProfilePlatformModel.
|
|
1175
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
1169
1176
|
responseData,
|
|
1170
1177
|
{ abortEarly: false, allowUnknown: true }
|
|
1171
1178
|
);
|
|
@@ -1188,12 +1195,11 @@ class CompanyProfile {
|
|
|
1188
1195
|
* @param {CompanyProfilePlatformValidator.UpdateLocationParam} arg - Arg object
|
|
1189
1196
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1190
1197
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1191
|
-
* @returns {Promise<CompanyProfilePlatformModel.
|
|
1192
|
-
*
|
|
1193
|
-
*
|
|
1198
|
+
* @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
|
|
1199
|
+
* Success response
|
|
1194
1200
|
* @name updateLocation
|
|
1195
|
-
* @summary:
|
|
1196
|
-
* @description:
|
|
1201
|
+
* @summary: Edit a location asscoiated to a company.
|
|
1202
|
+
* @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
1203
|
*/
|
|
1198
1204
|
async updateLocation(
|
|
1199
1205
|
{ locationId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1234,7 +1240,7 @@ class CompanyProfile {
|
|
|
1234
1240
|
const response = await PlatformAPIClient.execute(
|
|
1235
1241
|
this.config,
|
|
1236
1242
|
"put",
|
|
1237
|
-
`/service/platform/
|
|
1243
|
+
`/service/platform/catalog/v2.0/company/${this.config.companyId}/location/${locationId}`,
|
|
1238
1244
|
query_params,
|
|
1239
1245
|
body,
|
|
1240
1246
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -1248,7 +1254,7 @@ class CompanyProfile {
|
|
|
1248
1254
|
|
|
1249
1255
|
const {
|
|
1250
1256
|
error: res_error,
|
|
1251
|
-
} = CompanyProfilePlatformModel.
|
|
1257
|
+
} = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
|
|
1252
1258
|
responseData,
|
|
1253
1259
|
{ abortEarly: false, allowUnknown: true }
|
|
1254
1260
|
);
|