@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0
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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -171,6 +171,168 @@ class User {
|
|
|
171
171
|
return response;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
/**
|
|
175
|
+
* @param {UserPlatformApplicationValidator.BulkImportStoreFrontUsersParam} arg
|
|
176
|
+
* - Arg object
|
|
177
|
+
*
|
|
178
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
179
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
180
|
+
* @returns {Promise<UserPlatformModel.BulkActionModel>} - Success response
|
|
181
|
+
* @name bulkImportStoreFrontUsers
|
|
182
|
+
* @summary: Bulk import storefront customers using CSV and XLSX files.
|
|
183
|
+
* @description: The API allows bulk import of storefront customers using CSV or XLSX files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/bulkImportStoreFrontUsers/).
|
|
184
|
+
*/
|
|
185
|
+
async bulkImportStoreFrontUsers(
|
|
186
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
187
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
188
|
+
) {
|
|
189
|
+
const {
|
|
190
|
+
error,
|
|
191
|
+
} = UserPlatformApplicationValidator.bulkImportStoreFrontUsers().validate(
|
|
192
|
+
{
|
|
193
|
+
body,
|
|
194
|
+
},
|
|
195
|
+
{ abortEarly: false, allowUnknown: true }
|
|
196
|
+
);
|
|
197
|
+
if (error) {
|
|
198
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Showing warrnings if extra unknown parameters are found
|
|
202
|
+
const {
|
|
203
|
+
error: warrning,
|
|
204
|
+
} = UserPlatformApplicationValidator.bulkImportStoreFrontUsers().validate(
|
|
205
|
+
{
|
|
206
|
+
body,
|
|
207
|
+
},
|
|
208
|
+
{ abortEarly: false, allowUnknown: false }
|
|
209
|
+
);
|
|
210
|
+
if (warrning) {
|
|
211
|
+
Logger({
|
|
212
|
+
level: "WARN",
|
|
213
|
+
message: `Parameter Validation warrnings for platform > User > bulkImportStoreFrontUsers \n ${warrning}`,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const query_params = {};
|
|
218
|
+
|
|
219
|
+
const response = await PlatformAPIClient.execute(
|
|
220
|
+
this.config,
|
|
221
|
+
"post",
|
|
222
|
+
`/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/users/jobs/import`,
|
|
223
|
+
query_params,
|
|
224
|
+
body,
|
|
225
|
+
requestHeaders,
|
|
226
|
+
{ responseHeaders }
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
let responseData = response;
|
|
230
|
+
if (responseHeaders) {
|
|
231
|
+
responseData = response[0];
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const {
|
|
235
|
+
error: res_error,
|
|
236
|
+
} = UserPlatformModel.BulkActionModel().validate(responseData, {
|
|
237
|
+
abortEarly: false,
|
|
238
|
+
allowUnknown: true,
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
if (res_error) {
|
|
242
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
243
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
244
|
+
} else {
|
|
245
|
+
Logger({
|
|
246
|
+
level: "WARN",
|
|
247
|
+
message: `Response Validation Warnings for platform > User > bulkImportStoreFrontUsers \n ${res_error}`,
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
return response;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @param {UserPlatformApplicationValidator.CreateBulkExportUsersParam} arg
|
|
257
|
+
* - Arg object
|
|
258
|
+
*
|
|
259
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
260
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
261
|
+
* @returns {Promise<UserPlatformModel.BulkActionModel>} - Success response
|
|
262
|
+
* @name createBulkExportUsers
|
|
263
|
+
* @summary: Bulk export storefront customers using CSV and XLSX files.
|
|
264
|
+
* @description: This API allows bulk export of storefront users by requesting files in CSV or XLSX format. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/createBulkExportUsers/).
|
|
265
|
+
*/
|
|
266
|
+
async createBulkExportUsers(
|
|
267
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
268
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
269
|
+
) {
|
|
270
|
+
const {
|
|
271
|
+
error,
|
|
272
|
+
} = UserPlatformApplicationValidator.createBulkExportUsers().validate(
|
|
273
|
+
{
|
|
274
|
+
body,
|
|
275
|
+
},
|
|
276
|
+
{ abortEarly: false, allowUnknown: true }
|
|
277
|
+
);
|
|
278
|
+
if (error) {
|
|
279
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// Showing warrnings if extra unknown parameters are found
|
|
283
|
+
const {
|
|
284
|
+
error: warrning,
|
|
285
|
+
} = UserPlatformApplicationValidator.createBulkExportUsers().validate(
|
|
286
|
+
{
|
|
287
|
+
body,
|
|
288
|
+
},
|
|
289
|
+
{ abortEarly: false, allowUnknown: false }
|
|
290
|
+
);
|
|
291
|
+
if (warrning) {
|
|
292
|
+
Logger({
|
|
293
|
+
level: "WARN",
|
|
294
|
+
message: `Parameter Validation warrnings for platform > User > createBulkExportUsers \n ${warrning}`,
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const query_params = {};
|
|
299
|
+
|
|
300
|
+
const response = await PlatformAPIClient.execute(
|
|
301
|
+
this.config,
|
|
302
|
+
"post",
|
|
303
|
+
`/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/users/jobs/export`,
|
|
304
|
+
query_params,
|
|
305
|
+
body,
|
|
306
|
+
requestHeaders,
|
|
307
|
+
{ responseHeaders }
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
let responseData = response;
|
|
311
|
+
if (responseHeaders) {
|
|
312
|
+
responseData = response[0];
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
const {
|
|
316
|
+
error: res_error,
|
|
317
|
+
} = UserPlatformModel.BulkActionModel().validate(responseData, {
|
|
318
|
+
abortEarly: false,
|
|
319
|
+
allowUnknown: true,
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
if (res_error) {
|
|
323
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
324
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
325
|
+
} else {
|
|
326
|
+
Logger({
|
|
327
|
+
level: "WARN",
|
|
328
|
+
message: `Response Validation Warnings for platform > User > createBulkExportUsers \n ${res_error}`,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
return response;
|
|
334
|
+
}
|
|
335
|
+
|
|
174
336
|
/**
|
|
175
337
|
* @param {UserPlatformApplicationValidator.CreateUserParam} arg - Arg object
|
|
176
338
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -254,7 +416,7 @@ class User {
|
|
|
254
416
|
*
|
|
255
417
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
256
418
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
257
|
-
* @returns {Promise<UserPlatformModel.
|
|
419
|
+
* @returns {Promise<UserPlatformModel.UserAttributeDefinitionDetails>} -
|
|
258
420
|
* Success response
|
|
259
421
|
* @name createUserAttributeDefinition
|
|
260
422
|
* @summary: Create a User Attribute Definition
|
|
@@ -311,7 +473,7 @@ class User {
|
|
|
311
473
|
|
|
312
474
|
const {
|
|
313
475
|
error: res_error,
|
|
314
|
-
} = UserPlatformModel.
|
|
476
|
+
} = UserPlatformModel.UserAttributeDefinitionDetails().validate(
|
|
315
477
|
responseData,
|
|
316
478
|
{ abortEarly: false, allowUnknown: true }
|
|
317
479
|
);
|
|
@@ -664,7 +826,7 @@ class User {
|
|
|
664
826
|
* @param {UserPlatformApplicationValidator.DeleteUserAttributeParam} arg - Arg object
|
|
665
827
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
666
828
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
667
|
-
* @returns {Promise<UserPlatformModel.
|
|
829
|
+
* @returns {Promise<UserPlatformModel.SuccessMessage>} - Success response
|
|
668
830
|
* @name deleteUserAttribute
|
|
669
831
|
* @summary: Delete User Attribute
|
|
670
832
|
* @description: Delete User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/deleteUserAttribute/).
|
|
@@ -716,7 +878,7 @@ class User {
|
|
|
716
878
|
|
|
717
879
|
const {
|
|
718
880
|
error: res_error,
|
|
719
|
-
} = UserPlatformModel.
|
|
881
|
+
} = UserPlatformModel.SuccessMessage().validate(responseData, {
|
|
720
882
|
abortEarly: false,
|
|
721
883
|
allowUnknown: true,
|
|
722
884
|
});
|
|
@@ -741,7 +903,7 @@ class User {
|
|
|
741
903
|
*
|
|
742
904
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
743
905
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
744
|
-
* @returns {Promise<UserPlatformModel.
|
|
906
|
+
* @returns {Promise<UserPlatformModel.SuccessMessage>} - Success response
|
|
745
907
|
* @name deleteUserAttributeDefinitionById
|
|
746
908
|
* @summary: Delete User Attribute Definition
|
|
747
909
|
* @description: Delete a user attribute definition by its unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/deleteUserAttributeDefinitionById/).
|
|
@@ -793,7 +955,7 @@ class User {
|
|
|
793
955
|
|
|
794
956
|
const {
|
|
795
957
|
error: res_error,
|
|
796
|
-
} = UserPlatformModel.
|
|
958
|
+
} = UserPlatformModel.SuccessMessage().validate(responseData, {
|
|
797
959
|
abortEarly: false,
|
|
798
960
|
allowUnknown: true,
|
|
799
961
|
});
|
|
@@ -892,6 +1054,228 @@ class User {
|
|
|
892
1054
|
return response;
|
|
893
1055
|
}
|
|
894
1056
|
|
|
1057
|
+
/**
|
|
1058
|
+
* @param {UserPlatformApplicationValidator.GetBulkExportUsersListParam} arg
|
|
1059
|
+
* - Arg object
|
|
1060
|
+
*
|
|
1061
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1062
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1063
|
+
* @returns {Promise<UserPlatformModel.BulkActionPaginationSchema>} - Success response
|
|
1064
|
+
* @name getBulkExportUsersList
|
|
1065
|
+
* @summary: Get Bulk User's Export Lists for a specific Application.
|
|
1066
|
+
* @description: This API allows fetching the list of bulk user exports for a specific application and company.
|
|
1067
|
+
* It supports pagination and filtering based on various parameters.
|
|
1068
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getBulkExportUsersList/).
|
|
1069
|
+
*/
|
|
1070
|
+
async getBulkExportUsersList(
|
|
1071
|
+
{
|
|
1072
|
+
pageNo,
|
|
1073
|
+
pageSize,
|
|
1074
|
+
fileFormat,
|
|
1075
|
+
search,
|
|
1076
|
+
startDate,
|
|
1077
|
+
endDate,
|
|
1078
|
+
status,
|
|
1079
|
+
requestHeaders,
|
|
1080
|
+
} = { requestHeaders: {} },
|
|
1081
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1082
|
+
) {
|
|
1083
|
+
const {
|
|
1084
|
+
error,
|
|
1085
|
+
} = UserPlatformApplicationValidator.getBulkExportUsersList().validate(
|
|
1086
|
+
{
|
|
1087
|
+
pageNo,
|
|
1088
|
+
pageSize,
|
|
1089
|
+
fileFormat,
|
|
1090
|
+
search,
|
|
1091
|
+
startDate,
|
|
1092
|
+
endDate,
|
|
1093
|
+
status,
|
|
1094
|
+
},
|
|
1095
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1096
|
+
);
|
|
1097
|
+
if (error) {
|
|
1098
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1102
|
+
const {
|
|
1103
|
+
error: warrning,
|
|
1104
|
+
} = UserPlatformApplicationValidator.getBulkExportUsersList().validate(
|
|
1105
|
+
{
|
|
1106
|
+
pageNo,
|
|
1107
|
+
pageSize,
|
|
1108
|
+
fileFormat,
|
|
1109
|
+
search,
|
|
1110
|
+
startDate,
|
|
1111
|
+
endDate,
|
|
1112
|
+
status,
|
|
1113
|
+
},
|
|
1114
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1115
|
+
);
|
|
1116
|
+
if (warrning) {
|
|
1117
|
+
Logger({
|
|
1118
|
+
level: "WARN",
|
|
1119
|
+
message: `Parameter Validation warrnings for platform > User > getBulkExportUsersList \n ${warrning}`,
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
const query_params = {};
|
|
1124
|
+
query_params["page_no"] = pageNo;
|
|
1125
|
+
query_params["page_size"] = pageSize;
|
|
1126
|
+
query_params["file_format"] = fileFormat;
|
|
1127
|
+
query_params["search"] = search;
|
|
1128
|
+
query_params["start_date"] = startDate;
|
|
1129
|
+
query_params["end_date"] = endDate;
|
|
1130
|
+
query_params["status"] = status;
|
|
1131
|
+
|
|
1132
|
+
const response = await PlatformAPIClient.execute(
|
|
1133
|
+
this.config,
|
|
1134
|
+
"get",
|
|
1135
|
+
`/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/users/jobs/export`,
|
|
1136
|
+
query_params,
|
|
1137
|
+
undefined,
|
|
1138
|
+
requestHeaders,
|
|
1139
|
+
{ responseHeaders }
|
|
1140
|
+
);
|
|
1141
|
+
|
|
1142
|
+
let responseData = response;
|
|
1143
|
+
if (responseHeaders) {
|
|
1144
|
+
responseData = response[0];
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
const {
|
|
1148
|
+
error: res_error,
|
|
1149
|
+
} = UserPlatformModel.BulkActionPaginationSchema().validate(responseData, {
|
|
1150
|
+
abortEarly: false,
|
|
1151
|
+
allowUnknown: true,
|
|
1152
|
+
});
|
|
1153
|
+
|
|
1154
|
+
if (res_error) {
|
|
1155
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1156
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1157
|
+
} else {
|
|
1158
|
+
Logger({
|
|
1159
|
+
level: "WARN",
|
|
1160
|
+
message: `Response Validation Warnings for platform > User > getBulkExportUsersList \n ${res_error}`,
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
return response;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* @param {UserPlatformApplicationValidator.GetBulkImportUsersListParam} arg
|
|
1170
|
+
* - Arg object
|
|
1171
|
+
*
|
|
1172
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1173
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1174
|
+
* @returns {Promise<UserPlatformModel.BulkActionPaginationSchema>} - Success response
|
|
1175
|
+
* @name getBulkImportUsersList
|
|
1176
|
+
* @summary: Get Bulk User's Import Lists for a specific Application.
|
|
1177
|
+
* @description: This API allows fetching the list of bulk user imports for a specific application and company.
|
|
1178
|
+
* It supports pagination and filtering based on various parameters.
|
|
1179
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getBulkImportUsersList/).
|
|
1180
|
+
*/
|
|
1181
|
+
async getBulkImportUsersList(
|
|
1182
|
+
{
|
|
1183
|
+
pageNo,
|
|
1184
|
+
pageSize,
|
|
1185
|
+
search,
|
|
1186
|
+
startDate,
|
|
1187
|
+
endDate,
|
|
1188
|
+
status,
|
|
1189
|
+
fileFormat,
|
|
1190
|
+
requestHeaders,
|
|
1191
|
+
} = { requestHeaders: {} },
|
|
1192
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1193
|
+
) {
|
|
1194
|
+
const {
|
|
1195
|
+
error,
|
|
1196
|
+
} = UserPlatformApplicationValidator.getBulkImportUsersList().validate(
|
|
1197
|
+
{
|
|
1198
|
+
pageNo,
|
|
1199
|
+
pageSize,
|
|
1200
|
+
search,
|
|
1201
|
+
startDate,
|
|
1202
|
+
endDate,
|
|
1203
|
+
status,
|
|
1204
|
+
fileFormat,
|
|
1205
|
+
},
|
|
1206
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1207
|
+
);
|
|
1208
|
+
if (error) {
|
|
1209
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1213
|
+
const {
|
|
1214
|
+
error: warrning,
|
|
1215
|
+
} = UserPlatformApplicationValidator.getBulkImportUsersList().validate(
|
|
1216
|
+
{
|
|
1217
|
+
pageNo,
|
|
1218
|
+
pageSize,
|
|
1219
|
+
search,
|
|
1220
|
+
startDate,
|
|
1221
|
+
endDate,
|
|
1222
|
+
status,
|
|
1223
|
+
fileFormat,
|
|
1224
|
+
},
|
|
1225
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1226
|
+
);
|
|
1227
|
+
if (warrning) {
|
|
1228
|
+
Logger({
|
|
1229
|
+
level: "WARN",
|
|
1230
|
+
message: `Parameter Validation warrnings for platform > User > getBulkImportUsersList \n ${warrning}`,
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
const query_params = {};
|
|
1235
|
+
query_params["page_no"] = pageNo;
|
|
1236
|
+
query_params["page_size"] = pageSize;
|
|
1237
|
+
query_params["search"] = search;
|
|
1238
|
+
query_params["start_date"] = startDate;
|
|
1239
|
+
query_params["end_date"] = endDate;
|
|
1240
|
+
query_params["status"] = status;
|
|
1241
|
+
query_params["file_format"] = fileFormat;
|
|
1242
|
+
|
|
1243
|
+
const response = await PlatformAPIClient.execute(
|
|
1244
|
+
this.config,
|
|
1245
|
+
"get",
|
|
1246
|
+
`/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/users/jobs/import`,
|
|
1247
|
+
query_params,
|
|
1248
|
+
undefined,
|
|
1249
|
+
requestHeaders,
|
|
1250
|
+
{ responseHeaders }
|
|
1251
|
+
);
|
|
1252
|
+
|
|
1253
|
+
let responseData = response;
|
|
1254
|
+
if (responseHeaders) {
|
|
1255
|
+
responseData = response[0];
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
const {
|
|
1259
|
+
error: res_error,
|
|
1260
|
+
} = UserPlatformModel.BulkActionPaginationSchema().validate(responseData, {
|
|
1261
|
+
abortEarly: false,
|
|
1262
|
+
allowUnknown: true,
|
|
1263
|
+
});
|
|
1264
|
+
|
|
1265
|
+
if (res_error) {
|
|
1266
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1267
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1268
|
+
} else {
|
|
1269
|
+
Logger({
|
|
1270
|
+
level: "WARN",
|
|
1271
|
+
message: `Response Validation Warnings for platform > User > getBulkImportUsersList \n ${res_error}`,
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
return response;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
895
1279
|
/**
|
|
896
1280
|
* @param {UserPlatformApplicationValidator.GetCustomersParam} arg - Arg object
|
|
897
1281
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1055,7 +1439,7 @@ class User {
|
|
|
1055
1439
|
* @param {UserPlatformApplicationValidator.GetUserAttributeParam} arg - Arg object
|
|
1056
1440
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1057
1441
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1058
|
-
* @returns {Promise<UserPlatformModel.
|
|
1442
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
1059
1443
|
* @name getUserAttribute
|
|
1060
1444
|
* @summary: Get User Attribute
|
|
1061
1445
|
* @description: Get User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getUserAttribute/).
|
|
@@ -1107,7 +1491,7 @@ class User {
|
|
|
1107
1491
|
|
|
1108
1492
|
const {
|
|
1109
1493
|
error: res_error,
|
|
1110
|
-
} = UserPlatformModel.
|
|
1494
|
+
} = UserPlatformModel.UserAttribute().validate(responseData, {
|
|
1111
1495
|
abortEarly: false,
|
|
1112
1496
|
allowUnknown: true,
|
|
1113
1497
|
});
|
|
@@ -1132,7 +1516,7 @@ class User {
|
|
|
1132
1516
|
*
|
|
1133
1517
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1134
1518
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1135
|
-
* @returns {Promise<UserPlatformModel.
|
|
1519
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
1136
1520
|
* @name getUserAttributeById
|
|
1137
1521
|
* @summary: Get User Attribute
|
|
1138
1522
|
* @description: Retrieve User Attribute details by ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getUserAttributeById/).
|
|
@@ -1184,7 +1568,7 @@ class User {
|
|
|
1184
1568
|
|
|
1185
1569
|
const {
|
|
1186
1570
|
error: res_error,
|
|
1187
|
-
} = UserPlatformModel.
|
|
1571
|
+
} = UserPlatformModel.UserAttribute().validate(responseData, {
|
|
1188
1572
|
abortEarly: false,
|
|
1189
1573
|
allowUnknown: true,
|
|
1190
1574
|
});
|
|
@@ -1666,23 +2050,23 @@ class User {
|
|
|
1666
2050
|
}
|
|
1667
2051
|
|
|
1668
2052
|
/**
|
|
1669
|
-
* @param {UserPlatformApplicationValidator.
|
|
2053
|
+
* @param {UserPlatformApplicationValidator.GetUserTimelineParam} arg - Arg object
|
|
1670
2054
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1671
2055
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1672
|
-
* @returns {Promise<UserPlatformModel.
|
|
1673
|
-
* @name
|
|
1674
|
-
* @summary: Get
|
|
1675
|
-
* @description:
|
|
2056
|
+
* @returns {Promise<UserPlatformModel.GetUserTimeline>} - Success response
|
|
2057
|
+
* @name getUserTimeline
|
|
2058
|
+
* @summary: Get Deleted User Timeline
|
|
2059
|
+
* @description: Fetches the timeline for the user who has made a data erase request. The timeline will show when the request was raised and when the request will be completed. It will also show if request has been cancelled before completion. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getUserTimeline/).
|
|
1676
2060
|
*/
|
|
1677
|
-
async
|
|
1678
|
-
{
|
|
2061
|
+
async getUserTimeline(
|
|
2062
|
+
{ userId, requestHeaders } = { requestHeaders: {} },
|
|
1679
2063
|
{ responseHeaders } = { responseHeaders: false }
|
|
1680
2064
|
) {
|
|
1681
2065
|
const {
|
|
1682
2066
|
error,
|
|
1683
|
-
} = UserPlatformApplicationValidator.
|
|
2067
|
+
} = UserPlatformApplicationValidator.getUserTimeline().validate(
|
|
1684
2068
|
{
|
|
1685
|
-
|
|
2069
|
+
userId,
|
|
1686
2070
|
},
|
|
1687
2071
|
{ abortEarly: false, allowUnknown: true }
|
|
1688
2072
|
);
|
|
@@ -1693,16 +2077,16 @@ class User {
|
|
|
1693
2077
|
// Showing warrnings if extra unknown parameters are found
|
|
1694
2078
|
const {
|
|
1695
2079
|
error: warrning,
|
|
1696
|
-
} = UserPlatformApplicationValidator.
|
|
2080
|
+
} = UserPlatformApplicationValidator.getUserTimeline().validate(
|
|
1697
2081
|
{
|
|
1698
|
-
|
|
2082
|
+
userId,
|
|
1699
2083
|
},
|
|
1700
2084
|
{ abortEarly: false, allowUnknown: false }
|
|
1701
2085
|
);
|
|
1702
2086
|
if (warrning) {
|
|
1703
2087
|
Logger({
|
|
1704
2088
|
level: "WARN",
|
|
1705
|
-
message: `Parameter Validation warrnings for platform > User >
|
|
2089
|
+
message: `Parameter Validation warrnings for platform > User > getUserTimeline \n ${warrning}`,
|
|
1706
2090
|
});
|
|
1707
2091
|
}
|
|
1708
2092
|
|
|
@@ -1711,7 +2095,7 @@ class User {
|
|
|
1711
2095
|
const response = await PlatformAPIClient.execute(
|
|
1712
2096
|
this.config,
|
|
1713
2097
|
"get",
|
|
1714
|
-
`/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
2098
|
+
`/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/customers/${userId}/timeline`,
|
|
1715
2099
|
query_params,
|
|
1716
2100
|
undefined,
|
|
1717
2101
|
requestHeaders,
|
|
@@ -1725,7 +2109,87 @@ class User {
|
|
|
1725
2109
|
|
|
1726
2110
|
const {
|
|
1727
2111
|
error: res_error,
|
|
1728
|
-
} = UserPlatformModel.
|
|
2112
|
+
} = UserPlatformModel.GetUserTimeline().validate(responseData, {
|
|
2113
|
+
abortEarly: false,
|
|
2114
|
+
allowUnknown: true,
|
|
2115
|
+
});
|
|
2116
|
+
|
|
2117
|
+
if (res_error) {
|
|
2118
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2119
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2120
|
+
} else {
|
|
2121
|
+
Logger({
|
|
2122
|
+
level: "WARN",
|
|
2123
|
+
message: `Response Validation Warnings for platform > User > getUserTimeline \n ${res_error}`,
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
return response;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* @param {UserPlatformApplicationValidator.GetUsersJobByJobIdParam} arg - Arg object
|
|
2133
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2134
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2135
|
+
* @returns {Promise<UserPlatformModel.BulkActionModel>} - Success response
|
|
2136
|
+
* @name getUsersJobByJobId
|
|
2137
|
+
* @summary: Retrieve Job Details by Job ID for a Specific Application, Including Both Import and Export Jobs.
|
|
2138
|
+
* @description: This endpoint retrieves the details of a specific user's import and export related jobs associated with a given `job_id`, `application_id`, and `company_id`.
|
|
2139
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/getUsersJobByJobId/).
|
|
2140
|
+
*/
|
|
2141
|
+
async getUsersJobByJobId(
|
|
2142
|
+
{ jobId, requestHeaders } = { requestHeaders: {} },
|
|
2143
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2144
|
+
) {
|
|
2145
|
+
const {
|
|
2146
|
+
error,
|
|
2147
|
+
} = UserPlatformApplicationValidator.getUsersJobByJobId().validate(
|
|
2148
|
+
{
|
|
2149
|
+
jobId,
|
|
2150
|
+
},
|
|
2151
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2152
|
+
);
|
|
2153
|
+
if (error) {
|
|
2154
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2158
|
+
const {
|
|
2159
|
+
error: warrning,
|
|
2160
|
+
} = UserPlatformApplicationValidator.getUsersJobByJobId().validate(
|
|
2161
|
+
{
|
|
2162
|
+
jobId,
|
|
2163
|
+
},
|
|
2164
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2165
|
+
);
|
|
2166
|
+
if (warrning) {
|
|
2167
|
+
Logger({
|
|
2168
|
+
level: "WARN",
|
|
2169
|
+
message: `Parameter Validation warrnings for platform > User > getUsersJobByJobId \n ${warrning}`,
|
|
2170
|
+
});
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
const query_params = {};
|
|
2174
|
+
|
|
2175
|
+
const response = await PlatformAPIClient.execute(
|
|
2176
|
+
this.config,
|
|
2177
|
+
"get",
|
|
2178
|
+
`/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/users/jobs/${jobId}`,
|
|
2179
|
+
query_params,
|
|
2180
|
+
undefined,
|
|
2181
|
+
requestHeaders,
|
|
2182
|
+
{ responseHeaders }
|
|
2183
|
+
);
|
|
2184
|
+
|
|
2185
|
+
let responseData = response;
|
|
2186
|
+
if (responseHeaders) {
|
|
2187
|
+
responseData = response[0];
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
const {
|
|
2191
|
+
error: res_error,
|
|
2192
|
+
} = UserPlatformModel.BulkActionModel().validate(responseData, {
|
|
1729
2193
|
abortEarly: false,
|
|
1730
2194
|
allowUnknown: true,
|
|
1731
2195
|
});
|
|
@@ -1736,7 +2200,7 @@ class User {
|
|
|
1736
2200
|
} else {
|
|
1737
2201
|
Logger({
|
|
1738
2202
|
level: "WARN",
|
|
1739
|
-
message: `Response Validation Warnings for platform > User >
|
|
2203
|
+
message: `Response Validation Warnings for platform > User > getUsersJobByJobId \n ${res_error}`,
|
|
1740
2204
|
});
|
|
1741
2205
|
}
|
|
1742
2206
|
}
|
|
@@ -2066,7 +2530,7 @@ class User {
|
|
|
2066
2530
|
* @param {UserPlatformApplicationValidator.UpdateUserAttributeParam} arg - Arg object
|
|
2067
2531
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2068
2532
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2069
|
-
* @returns {Promise<UserPlatformModel.
|
|
2533
|
+
* @returns {Promise<UserPlatformModel.UserAttribute>} - Success response
|
|
2070
2534
|
* @name updateUserAttribute
|
|
2071
2535
|
* @summary: Update Or Create User Attribute
|
|
2072
2536
|
* @description: Update Or Create User Attribute - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserAttribute/).
|
|
@@ -2128,7 +2592,7 @@ class User {
|
|
|
2128
2592
|
|
|
2129
2593
|
const {
|
|
2130
2594
|
error: res_error,
|
|
2131
|
-
} = UserPlatformModel.
|
|
2595
|
+
} = UserPlatformModel.UserAttribute().validate(responseData, {
|
|
2132
2596
|
abortEarly: false,
|
|
2133
2597
|
allowUnknown: true,
|
|
2134
2598
|
});
|