@gofynd/fdk-client-javascript 1.0.4 → 1.1.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 +19 -0
- package/index.d.ts +4 -1
- package/index.js +19 -3
- package/package.json +13 -4
- package/partner.d.ts +4 -0
- package/partner.js +7 -0
- package/sdk/application/ApplicationAPIClient.js +2 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +11 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.js +2 -0
- package/sdk/application/Content/ContentApplicationModel.js +0 -5
- package/sdk/application/Lead/LeadApplicationModel.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +0 -15
- package/sdk/application/Order/OrderApplicationClient.js +0 -68
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -17
- package/sdk/application/Order/OrderApplicationModel.js +0 -111
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -1
- package/sdk/application/Order/OrderApplicationValidator.js +0 -7
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/BaseOAuthClient.d.ts +17 -0
- package/sdk/common/BaseOAuthClient.js +67 -0
- package/sdk/common/Constant.d.ts +0 -18
- package/sdk/common/Constant.js +0 -22
- package/sdk/common/RequestSigner.js +0 -5
- package/sdk/partner/OAuthClient.d.ts +14 -0
- package/sdk/partner/OAuthClient.js +112 -0
- package/sdk/{APIClient.d.ts → partner/PartnerAPIClient.d.ts} +2 -1
- package/sdk/{APIClient.js → partner/PartnerAPIClient.js} +13 -6
- package/sdk/{Client.d.ts → partner/PartnerClient.d.ts} +2 -2
- package/sdk/{Client.js → partner/PartnerClient.js} +2 -2
- package/sdk/partner/PartnerConfig.d.ts +30 -0
- package/sdk/partner/PartnerConfig.js +39 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +5 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +134 -0
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +4 -0
- package/sdk/platform/Billing/BillingPlatformModel.js +44 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +2 -0
- package/sdk/platform/Billing/BillingPlatformValidator.js +14 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +29 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +181 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformModel.js +37 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +5 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -5
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +0 -183
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +0 -417
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +0 -10
- package/sdk/platform/Communication/CommunicationPlatformClient.js +0 -26
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +4 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -22
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +0 -56
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +22 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +123 -2
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +12 -0
- package/sdk/platform/Content/ContentPlatformModel.js +0 -5
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +1 -1
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +1 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +15 -0
- package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +1 -1
- package/sdk/platform/Lead/LeadPlatformModel.js +1 -0
- package/sdk/platform/OAuthClient.js +3 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -47
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -201
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -3
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -26
- package/sdk/platform/Order/OrderPlatformClient.d.ts +51 -183
- package/sdk/platform/Order/OrderPlatformClient.js +243 -931
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4 -20
- package/sdk/platform/Order/OrderPlatformModel.js +38 -182
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +3 -12
- package/sdk/platform/Order/OrderPlatformValidator.js +19 -95
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +24 -10
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +111 -44
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +2 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +13 -5
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +12 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +16 -41
- package/sdk/platform/PlatformApplicationClient.js +17 -45
- package/sdk/platform/PlatformClient.d.ts +124 -263
- package/sdk/platform/PlatformClient.js +148 -315
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +14 -16
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +63 -77
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +7 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +61 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -0
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
- package/sdk/platform/Share/SharePlatformModel.js +11 -0
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/Config.d.ts +0 -9
- package/sdk/Config.js +0 -17
- package/sdk/constructUrl.d.ts +0 -5
- package/sdk/constructUrl.js +0 -13
- package/sdk/index.d.ts +0 -3
- package/sdk/index.js +0 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +0 -109
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +0 -558
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +0 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +0 -56
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +0 -88
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +0 -361
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +0 -23
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +0 -169
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.d.ts +0 -7
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +0 -38
|
@@ -20,8 +20,6 @@ const Inventory = require("./Inventory/InventoryPlatformClient");
|
|
|
20
20
|
|
|
21
21
|
const Configuration = require("./Configuration/ConfigurationPlatformClient");
|
|
22
22
|
|
|
23
|
-
const Analytics = require("./Analytics/AnalyticsPlatformClient");
|
|
24
|
-
|
|
25
23
|
const Discount = require("./Discount/DiscountPlatformClient");
|
|
26
24
|
|
|
27
25
|
const Webhook = require("./Webhook/WebhookPlatformClient");
|
|
@@ -57,8 +55,6 @@ class PlatformClient {
|
|
|
57
55
|
|
|
58
56
|
this.configuration = new Configuration(config);
|
|
59
57
|
|
|
60
|
-
this.analytics = new Analytics(config);
|
|
61
|
-
|
|
62
58
|
this.discount = new Discount(config);
|
|
63
59
|
|
|
64
60
|
this.webhook = new Webhook(config);
|
|
@@ -439,6 +435,7 @@ class PlatformClient {
|
|
|
439
435
|
* @property {CommunicationDetails} [support_email]
|
|
440
436
|
* @property {CommunicationDetails} [support_faq]
|
|
441
437
|
* @property {CommunicationDetails} [support_phone]
|
|
438
|
+
* @property {string} [type]
|
|
442
439
|
*/
|
|
443
440
|
/**
|
|
444
441
|
* @typedef Ticket
|
|
@@ -1789,7 +1786,6 @@ class PlatformClient {
|
|
|
1789
1786
|
/**
|
|
1790
1787
|
* @typedef Detail
|
|
1791
1788
|
* @property {string} [description]
|
|
1792
|
-
* @property {string} [image_url]
|
|
1793
1789
|
* @property {string} [title]
|
|
1794
1790
|
*/
|
|
1795
1791
|
/**
|
|
@@ -2264,6 +2260,18 @@ class PlatformClient {
|
|
|
2264
2260
|
* @property {number} [discount_amount]
|
|
2265
2261
|
* @property {boolean} [is_valid]
|
|
2266
2262
|
*/
|
|
2263
|
+
/**
|
|
2264
|
+
* @typedef CreateOneTimeCharge
|
|
2265
|
+
* @property {OneTimeChargeItem} charge
|
|
2266
|
+
* @property {boolean} [is_test]
|
|
2267
|
+
* @property {string} name
|
|
2268
|
+
* @property {string} return_url
|
|
2269
|
+
*/
|
|
2270
|
+
/**
|
|
2271
|
+
* @typedef CreateOneTimeChargeResponse
|
|
2272
|
+
* @property {OneTimeChargeEntity} [charge]
|
|
2273
|
+
* @property {string} [confirm_url]
|
|
2274
|
+
*/
|
|
2267
2275
|
/**
|
|
2268
2276
|
* @typedef CreateSubscriptionCharge
|
|
2269
2277
|
* @property {boolean} [is_test]
|
|
@@ -2536,6 +2544,33 @@ class PlatformClient {
|
|
|
2536
2544
|
* @property {string} [end]
|
|
2537
2545
|
* @property {string} [start]
|
|
2538
2546
|
*/
|
|
2547
|
+
/**
|
|
2548
|
+
* @typedef OneTimeChargeEntity
|
|
2549
|
+
* @property {string} [_id]
|
|
2550
|
+
* @property {string} [activated_on]
|
|
2551
|
+
* @property {string} [cancelled_on]
|
|
2552
|
+
* @property {string} [entity_id]
|
|
2553
|
+
* @property {string} [entity_type]
|
|
2554
|
+
* @property {boolean} [is_test]
|
|
2555
|
+
* @property {Object} [meta]
|
|
2556
|
+
* @property {Object} [metadata]
|
|
2557
|
+
* @property {string} [name]
|
|
2558
|
+
* @property {EntityChargePrice} [price]
|
|
2559
|
+
* @property {string} [pricing_type]
|
|
2560
|
+
* @property {string} [return_url]
|
|
2561
|
+
* @property {string} [status]
|
|
2562
|
+
* @property {string} [subscriber_id]
|
|
2563
|
+
*/
|
|
2564
|
+
/**
|
|
2565
|
+
* @typedef OneTimeChargeItem
|
|
2566
|
+
* @property {number} [capped_amount]
|
|
2567
|
+
* @property {boolean} [is_test]
|
|
2568
|
+
* @property {Object} [metadata]
|
|
2569
|
+
* @property {string} name
|
|
2570
|
+
* @property {EntityChargePrice} price
|
|
2571
|
+
* @property {string} pricing_type
|
|
2572
|
+
* @property {string} [term]
|
|
2573
|
+
*/
|
|
2539
2574
|
/**
|
|
2540
2575
|
* @typedef Page
|
|
2541
2576
|
* @property {number} [current]
|
|
@@ -2724,6 +2759,7 @@ class PlatformClient {
|
|
|
2724
2759
|
/**
|
|
2725
2760
|
* @typedef SubscriptionStatus
|
|
2726
2761
|
* @property {boolean} [is_enabled]
|
|
2762
|
+
* @property {number} [mandate_amount]
|
|
2727
2763
|
* @property {Subscription} [subscription]
|
|
2728
2764
|
*/
|
|
2729
2765
|
/**
|
|
@@ -3536,6 +3572,11 @@ class PlatformClient {
|
|
|
3536
3572
|
* @property {string} description
|
|
3537
3573
|
* @property {boolean} success
|
|
3538
3574
|
*/
|
|
3575
|
+
/**
|
|
3576
|
+
* @typedef GetOauthUrlResponse
|
|
3577
|
+
* @property {boolean} success
|
|
3578
|
+
* @property {string} url
|
|
3579
|
+
*/
|
|
3539
3580
|
/**
|
|
3540
3581
|
* @typedef GetUserCODLimitResponse
|
|
3541
3582
|
* @property {boolean} success
|
|
@@ -3753,6 +3794,11 @@ class PlatformClient {
|
|
|
3753
3794
|
* @property {string} message
|
|
3754
3795
|
* @property {boolean} success
|
|
3755
3796
|
*/
|
|
3797
|
+
/**
|
|
3798
|
+
* @typedef RevokeOAuthToken
|
|
3799
|
+
* @property {string} message
|
|
3800
|
+
* @property {boolean} success
|
|
3801
|
+
*/
|
|
3756
3802
|
/**
|
|
3757
3803
|
* @typedef RootPaymentMode
|
|
3758
3804
|
* @property {boolean} [add_card_enabled]
|
|
@@ -3933,6 +3979,7 @@ class PlatformClient {
|
|
|
3933
3979
|
* @property {string} [marketplace_invoice_id]
|
|
3934
3980
|
* @property {string} [order_item_id]
|
|
3935
3981
|
* @property {number} [quantity]
|
|
3982
|
+
* @property {ReplacementDetails} [replacement_details]
|
|
3936
3983
|
* @property {number} [size_level_total_qty]
|
|
3937
3984
|
*/
|
|
3938
3985
|
/**
|
|
@@ -3956,6 +4003,8 @@ class PlatformClient {
|
|
|
3956
4003
|
/**
|
|
3957
4004
|
* @typedef AnnouncementsResponse
|
|
3958
4005
|
* @property {AnnouncementResponse[]} [announcements]
|
|
4006
|
+
* @property {string} [message]
|
|
4007
|
+
* @property {boolean} [success]
|
|
3959
4008
|
*/
|
|
3960
4009
|
/**
|
|
3961
4010
|
* @typedef AppliedPromos
|
|
@@ -4133,6 +4182,11 @@ class PlatformClient {
|
|
|
4133
4182
|
* @property {boolean} [notify_customer]
|
|
4134
4183
|
* @property {string} state_type
|
|
4135
4184
|
*/
|
|
4185
|
+
/**
|
|
4186
|
+
* @typedef BagStateTransitionMap
|
|
4187
|
+
* @property {Object} [affiliate]
|
|
4188
|
+
* @property {Object} [fynd]
|
|
4189
|
+
*/
|
|
4136
4190
|
/**
|
|
4137
4191
|
* @typedef BagStatusHistory
|
|
4138
4192
|
* @property {string} [app_display_name]
|
|
@@ -4169,8 +4223,8 @@ class PlatformClient {
|
|
|
4169
4223
|
*/
|
|
4170
4224
|
/**
|
|
4171
4225
|
* @typedef BaseResponse
|
|
4172
|
-
* @property {string} message
|
|
4173
|
-
* @property {boolean} success
|
|
4226
|
+
* @property {string} [message]
|
|
4227
|
+
* @property {boolean} [success]
|
|
4174
4228
|
*/
|
|
4175
4229
|
/**
|
|
4176
4230
|
* @typedef BillingInfo
|
|
@@ -4221,91 +4275,13 @@ class PlatformClient {
|
|
|
4221
4275
|
* @property {string} [start_date]
|
|
4222
4276
|
*/
|
|
4223
4277
|
/**
|
|
4224
|
-
* @typedef
|
|
4225
|
-
* @property {string} [
|
|
4226
|
-
* @property {string} [
|
|
4227
|
-
* @property {number} [failed_shipments_count]
|
|
4228
|
-
* @property {number} [processing_shipments_count]
|
|
4229
|
-
* @property {string[]} [successful_shipment_ids]
|
|
4230
|
-
* @property {number} [successful_shipments_count]
|
|
4231
|
-
* @property {number} [total_shipments_count]
|
|
4232
|
-
*/
|
|
4233
|
-
/**
|
|
4234
|
-
* @typedef BulkActionDetailsResponse
|
|
4235
|
-
* @property {BulkActionDetailsDataField[]} [data]
|
|
4236
|
-
* @property {string[]} [error]
|
|
4237
|
-
* @property {string[]} [failed_records]
|
|
4238
|
-
* @property {string} [message]
|
|
4239
|
-
* @property {boolean} [status]
|
|
4240
|
-
* @property {string} [success]
|
|
4241
|
-
* @property {string} [uploaded_by]
|
|
4242
|
-
* @property {string} [uploaded_on]
|
|
4243
|
-
* @property {string} [user_id]
|
|
4244
|
-
*/
|
|
4245
|
-
/**
|
|
4246
|
-
* @typedef BulkActionPayload
|
|
4247
|
-
* @property {string} url
|
|
4248
|
-
*/
|
|
4249
|
-
/**
|
|
4250
|
-
* @typedef BulkActionResponse
|
|
4251
|
-
* @property {string} [message]
|
|
4252
|
-
* @property {boolean} [status]
|
|
4253
|
-
*/
|
|
4254
|
-
/**
|
|
4255
|
-
* @typedef BulkInvoiceLabelResponse
|
|
4256
|
-
* @property {string} batch_id
|
|
4257
|
-
* @property {string} [company_id]
|
|
4258
|
-
* @property {Object} [data]
|
|
4259
|
-
* @property {boolean} do_invoice_label_generated
|
|
4260
|
-
* @property {Object} [invoice]
|
|
4261
|
-
* @property {string} [invoice_status]
|
|
4262
|
-
* @property {Object} [label]
|
|
4263
|
-
* @property {string} [store_code]
|
|
4264
|
-
* @property {string} [store_id]
|
|
4265
|
-
* @property {string} [store_name]
|
|
4266
|
-
*/
|
|
4267
|
-
/**
|
|
4268
|
-
* @typedef BulkInvoicingResponse
|
|
4269
|
-
* @property {string} [message]
|
|
4270
|
-
* @property {boolean} success
|
|
4271
|
-
*/
|
|
4272
|
-
/**
|
|
4273
|
-
* @typedef bulkListingData
|
|
4274
|
-
* @property {string} [batch_id]
|
|
4275
|
-
* @property {number} [company_id]
|
|
4276
|
-
* @property {string} [excel_url]
|
|
4277
|
-
* @property {number} [failed]
|
|
4278
|
-
* @property {Object[]} [failed_shipments]
|
|
4279
|
-
* @property {string} [file_name]
|
|
4280
|
-
* @property {string} [id]
|
|
4281
|
-
* @property {number} [processing]
|
|
4282
|
-
* @property {string[]} [processing_shipments]
|
|
4283
|
-
* @property {string} [status]
|
|
4284
|
-
* @property {string} [store_code]
|
|
4285
|
-
* @property {number} [store_id]
|
|
4286
|
-
* @property {string} [store_name]
|
|
4287
|
-
* @property {number} [successful]
|
|
4288
|
-
* @property {Object[]} [successful_shipments]
|
|
4289
|
-
* @property {number} [total]
|
|
4290
|
-
* @property {string} [uploaded_on]
|
|
4291
|
-
* @property {string} [user_id]
|
|
4292
|
-
* @property {string} [user_name]
|
|
4293
|
-
*/
|
|
4294
|
-
/**
|
|
4295
|
-
* @typedef BulkListingPage
|
|
4296
|
-
* @property {number} [current]
|
|
4297
|
-
* @property {boolean} [has_next]
|
|
4298
|
-
* @property {boolean} [has_previous]
|
|
4299
|
-
* @property {number} [size]
|
|
4300
|
-
* @property {number} [total]
|
|
4301
|
-
* @property {string} [type]
|
|
4278
|
+
* @typedef BulkActionTemplate
|
|
4279
|
+
* @property {string} [text]
|
|
4280
|
+
* @property {string} [value]
|
|
4302
4281
|
*/
|
|
4303
4282
|
/**
|
|
4304
|
-
* @typedef
|
|
4305
|
-
* @property {
|
|
4306
|
-
* @property {string} [error]
|
|
4307
|
-
* @property {BulkListingPage} [page]
|
|
4308
|
-
* @property {boolean} [success]
|
|
4283
|
+
* @typedef BulkActionTemplateResponse
|
|
4284
|
+
* @property {BulkActionTemplate[]} [template_x_slug]
|
|
4309
4285
|
*/
|
|
4310
4286
|
/**
|
|
4311
4287
|
* @typedef BuyerDetails
|
|
@@ -4337,7 +4313,7 @@ class PlatformClient {
|
|
|
4337
4313
|
* @property {Bags[]} [bags]
|
|
4338
4314
|
* @property {boolean} [is_bag_locked]
|
|
4339
4315
|
* @property {boolean} [is_shipment_locked]
|
|
4340
|
-
* @property {
|
|
4316
|
+
* @property {string} [lock_status]
|
|
4341
4317
|
* @property {OriginalFilter} [original_filter]
|
|
4342
4318
|
* @property {string} [shipment_id]
|
|
4343
4319
|
* @property {string} [status]
|
|
@@ -4345,7 +4321,7 @@ class PlatformClient {
|
|
|
4345
4321
|
/**
|
|
4346
4322
|
* @typedef Click2CallResponse
|
|
4347
4323
|
* @property {string} call_id
|
|
4348
|
-
* @property {boolean}
|
|
4324
|
+
* @property {boolean} success
|
|
4349
4325
|
*/
|
|
4350
4326
|
/**
|
|
4351
4327
|
* @typedef CompanyDetails
|
|
@@ -4548,8 +4524,9 @@ class PlatformClient {
|
|
|
4548
4524
|
/**
|
|
4549
4525
|
* @typedef ErrorResponse1
|
|
4550
4526
|
* @property {string} [error_trace]
|
|
4551
|
-
* @property {string} message
|
|
4552
|
-
* @property {number} status
|
|
4527
|
+
* @property {string} [message]
|
|
4528
|
+
* @property {number} [status]
|
|
4529
|
+
* @property {boolean} [success]
|
|
4553
4530
|
*/
|
|
4554
4531
|
/**
|
|
4555
4532
|
* @typedef FileResponse
|
|
@@ -4659,12 +4636,15 @@ class PlatformClient {
|
|
|
4659
4636
|
*/
|
|
4660
4637
|
/**
|
|
4661
4638
|
* @typedef HistoryDict
|
|
4639
|
+
* @property {string} [assigned_agent]
|
|
4662
4640
|
* @property {number} [bag_id]
|
|
4663
4641
|
* @property {string} createdat
|
|
4642
|
+
* @property {string} [display_message]
|
|
4664
4643
|
* @property {string} [l1_detail]
|
|
4665
4644
|
* @property {string} [l2_detail]
|
|
4666
4645
|
* @property {string} [l3_detail]
|
|
4667
4646
|
* @property {string} message
|
|
4647
|
+
* @property {Object} [meta]
|
|
4668
4648
|
* @property {string} [ticket_id]
|
|
4669
4649
|
* @property {string} [ticket_url]
|
|
4670
4650
|
* @property {string} type
|
|
@@ -4683,7 +4663,9 @@ class PlatformClient {
|
|
|
4683
4663
|
*/
|
|
4684
4664
|
/**
|
|
4685
4665
|
* @typedef InvalidateShipmentCachePayload
|
|
4686
|
-
* @property {string[]}
|
|
4666
|
+
* @property {string[]} [affiliate_bag_ids]
|
|
4667
|
+
* @property {string[]} [bag_ids]
|
|
4668
|
+
* @property {string[]} [shipment_ids]
|
|
4687
4669
|
*/
|
|
4688
4670
|
/**
|
|
4689
4671
|
* @typedef InvalidateShipmentCacheResponse
|
|
@@ -4728,25 +4710,6 @@ class PlatformClient {
|
|
|
4728
4710
|
* @typedef ItemCriterias
|
|
4729
4711
|
* @property {number[]} [item_brand]
|
|
4730
4712
|
*/
|
|
4731
|
-
/**
|
|
4732
|
-
* @typedef JioCodeUpsertDataSet
|
|
4733
|
-
* @property {string} [article_id]
|
|
4734
|
-
* @property {string} [company_id]
|
|
4735
|
-
* @property {string} [item_id]
|
|
4736
|
-
* @property {string} [jio_code]
|
|
4737
|
-
*/
|
|
4738
|
-
/**
|
|
4739
|
-
* @typedef JioCodeUpsertPayload
|
|
4740
|
-
* @property {JioCodeUpsertDataSet[]} [data]
|
|
4741
|
-
*/
|
|
4742
|
-
/**
|
|
4743
|
-
* @typedef JioCodeUpsertResponse
|
|
4744
|
-
* @property {Object[]} [data]
|
|
4745
|
-
* @property {NestedErrorSchemaDataSet[]} [error]
|
|
4746
|
-
* @property {string} [identifier]
|
|
4747
|
-
* @property {boolean} [success]
|
|
4748
|
-
* @property {string} [trace_id]
|
|
4749
|
-
*/
|
|
4750
4713
|
/**
|
|
4751
4714
|
* @typedef LaneConfigResponse
|
|
4752
4715
|
* @property {SuperLane[]} [super_lanes]
|
|
@@ -4772,18 +4735,6 @@ class PlatformClient {
|
|
|
4772
4735
|
* @property {boolean} [locked]
|
|
4773
4736
|
* @property {boolean} [mto]
|
|
4774
4737
|
*/
|
|
4775
|
-
/**
|
|
4776
|
-
* @typedef ManualAssignDPToShipment
|
|
4777
|
-
* @property {number} dp_id
|
|
4778
|
-
* @property {string} order_type
|
|
4779
|
-
* @property {string} qc_required
|
|
4780
|
-
* @property {string[]} [shipment_ids]
|
|
4781
|
-
*/
|
|
4782
|
-
/**
|
|
4783
|
-
* @typedef ManualAssignDPToShipmentResponse
|
|
4784
|
-
* @property {string[]} [errors]
|
|
4785
|
-
* @property {string} success
|
|
4786
|
-
*/
|
|
4787
4738
|
/**
|
|
4788
4739
|
* @typedef MarketPlacePdf
|
|
4789
4740
|
* @property {string} [invoice]
|
|
@@ -4798,40 +4749,6 @@ class PlatformClient {
|
|
|
4798
4749
|
* @property {number} [kafka_emission_status]
|
|
4799
4750
|
* @property {string} [state_manager_used]
|
|
4800
4751
|
*/
|
|
4801
|
-
/**
|
|
4802
|
-
* @typedef MetricCountResponse
|
|
4803
|
-
* @property {MetricsCount[]} [items]
|
|
4804
|
-
*/
|
|
4805
|
-
/**
|
|
4806
|
-
* @typedef MetricsCount
|
|
4807
|
-
* @property {string} key
|
|
4808
|
-
* @property {Options[]} [options]
|
|
4809
|
-
* @property {string} text
|
|
4810
|
-
* @property {number} value
|
|
4811
|
-
*/
|
|
4812
|
-
/**
|
|
4813
|
-
* @typedef NestedErrorSchemaDataSet
|
|
4814
|
-
* @property {string} [message]
|
|
4815
|
-
* @property {string} [type]
|
|
4816
|
-
* @property {string} [value]
|
|
4817
|
-
*/
|
|
4818
|
-
/**
|
|
4819
|
-
* @typedef OmsReports
|
|
4820
|
-
* @property {string} [display_name]
|
|
4821
|
-
* @property {string} [report_created_at]
|
|
4822
|
-
* @property {string} [report_id]
|
|
4823
|
-
* @property {string} [report_name]
|
|
4824
|
-
* @property {string} [report_requested_at]
|
|
4825
|
-
* @property {string} [report_type]
|
|
4826
|
-
* @property {Object} [request_details]
|
|
4827
|
-
* @property {string} [s3_key]
|
|
4828
|
-
* @property {string} [status]
|
|
4829
|
-
*/
|
|
4830
|
-
/**
|
|
4831
|
-
* @typedef Options
|
|
4832
|
-
* @property {string} [text]
|
|
4833
|
-
* @property {number} [value]
|
|
4834
|
-
*/
|
|
4835
4752
|
/**
|
|
4836
4753
|
* @typedef OrderBagArticle
|
|
4837
4754
|
* @property {Object} [identifiers]
|
|
@@ -5319,6 +5236,11 @@ class PlatformClient {
|
|
|
5319
5236
|
* @property {EntitiesReasons[]} [entities]
|
|
5320
5237
|
* @property {ProductsReasons[]} [products]
|
|
5321
5238
|
*/
|
|
5239
|
+
/**
|
|
5240
|
+
* @typedef ReplacementDetails
|
|
5241
|
+
* @property {string} [original_affiliate_order_id]
|
|
5242
|
+
* @property {string} [replacement_type]
|
|
5243
|
+
*/
|
|
5322
5244
|
/**
|
|
5323
5245
|
* @typedef ResponseDetail
|
|
5324
5246
|
* @property {string[]} [message]
|
|
@@ -5388,6 +5310,7 @@ class PlatformClient {
|
|
|
5388
5310
|
/**
|
|
5389
5311
|
* @typedef ShipmentHistoryResponse
|
|
5390
5312
|
* @property {HistoryDict[]} activity_history
|
|
5313
|
+
* @property {boolean} [success]
|
|
5391
5314
|
*/
|
|
5392
5315
|
/**
|
|
5393
5316
|
* @typedef ShipmentInfoResponse
|
|
@@ -5542,13 +5465,13 @@ class PlatformClient {
|
|
|
5542
5465
|
*/
|
|
5543
5466
|
/**
|
|
5544
5467
|
* @typedef SmsDataPayload
|
|
5545
|
-
* @property {number} amount_paid
|
|
5546
|
-
* @property {string} brand_name
|
|
5468
|
+
* @property {number} [amount_paid]
|
|
5469
|
+
* @property {string} [brand_name]
|
|
5547
5470
|
* @property {string} country_code
|
|
5548
|
-
* @property {string} customer_name
|
|
5471
|
+
* @property {string} [customer_name]
|
|
5549
5472
|
* @property {string} message
|
|
5550
5473
|
* @property {string} order_id
|
|
5551
|
-
* @property {string} payment_mode
|
|
5474
|
+
* @property {string} [payment_mode]
|
|
5552
5475
|
* @property {number} phone_number
|
|
5553
5476
|
* @property {number} shipment_id
|
|
5554
5477
|
*/
|
|
@@ -5682,11 +5605,6 @@ class PlatformClient {
|
|
|
5682
5605
|
* @property {number} [total_items]
|
|
5683
5606
|
* @property {string} [value]
|
|
5684
5607
|
*/
|
|
5685
|
-
/**
|
|
5686
|
-
* @typedef Success
|
|
5687
|
-
* @property {string} [message]
|
|
5688
|
-
* @property {boolean} [success]
|
|
5689
|
-
*/
|
|
5690
5608
|
/**
|
|
5691
5609
|
* @typedef SuccessResponse
|
|
5692
5610
|
* @property {string} [message]
|
|
@@ -6656,7 +6574,7 @@ class PlatformClient {
|
|
|
6656
6574
|
* @property {UserDetail} [created_by]
|
|
6657
6575
|
* @property {string} created_on
|
|
6658
6576
|
* @property {boolean} [is_active]
|
|
6659
|
-
* @property {
|
|
6577
|
+
* @property {Object} logo
|
|
6660
6578
|
* @property {UserDetail} [modified_by]
|
|
6661
6579
|
* @property {string} modified_on
|
|
6662
6580
|
* @property {Object} name
|
|
@@ -8788,11 +8706,13 @@ class PlatformClient {
|
|
|
8788
8706
|
* @typedef GetLocationSerializer
|
|
8789
8707
|
* @property {Object} [_custom_json]
|
|
8790
8708
|
* @property {GetAddressSerializer} address
|
|
8709
|
+
* @property {boolean} [auto_invoice]
|
|
8791
8710
|
* @property {string} code
|
|
8792
8711
|
* @property {GetCompanySerializer} [company]
|
|
8793
8712
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
8794
8713
|
* @property {UserSerializer} [created_by]
|
|
8795
8714
|
* @property {string} [created_on]
|
|
8715
|
+
* @property {boolean} [credit_note]
|
|
8796
8716
|
* @property {string} display_name
|
|
8797
8717
|
* @property {Document[]} [documents]
|
|
8798
8718
|
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
@@ -8856,9 +8776,11 @@ class PlatformClient {
|
|
|
8856
8776
|
* @typedef LocationSerializer
|
|
8857
8777
|
* @property {Object} [_custom_json]
|
|
8858
8778
|
* @property {AddressSerializer} address
|
|
8779
|
+
* @property {boolean} [auto_invoice]
|
|
8859
8780
|
* @property {string} code
|
|
8860
8781
|
* @property {number} company
|
|
8861
8782
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
8783
|
+
* @property {boolean} [credit_note]
|
|
8862
8784
|
* @property {string} display_name
|
|
8863
8785
|
* @property {Document[]} [documents]
|
|
8864
8786
|
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
@@ -9089,6 +9011,15 @@ class PlatformClient {
|
|
|
9089
9011
|
* @property {string} [medium]
|
|
9090
9012
|
* @property {string} [source]
|
|
9091
9013
|
*/
|
|
9014
|
+
/**
|
|
9015
|
+
* @typedef ClickStatsItem
|
|
9016
|
+
* @property {string} [display]
|
|
9017
|
+
* @property {number} [total]
|
|
9018
|
+
*/
|
|
9019
|
+
/**
|
|
9020
|
+
* @typedef ClickStatsResponse
|
|
9021
|
+
* @property {ClickStatsItem[]} click_stats
|
|
9022
|
+
*/
|
|
9092
9023
|
/**
|
|
9093
9024
|
* @typedef ErrorRes
|
|
9094
9025
|
* @property {string} [message]
|
|
@@ -11199,6 +11130,28 @@ class PlatformClient {
|
|
|
11199
11130
|
* @property {string} [group_id]
|
|
11200
11131
|
* @property {boolean} [primary_item]
|
|
11201
11132
|
*/
|
|
11133
|
+
/**
|
|
11134
|
+
* @typedef CartMetaConfigAdd
|
|
11135
|
+
* @property {boolean} [bulk_coupons]
|
|
11136
|
+
* @property {DeliveryCharges} [delivery_charges]
|
|
11137
|
+
* @property {boolean} [enabled]
|
|
11138
|
+
* @property {string} [gift_display_text]
|
|
11139
|
+
* @property {number} [gift_pricing]
|
|
11140
|
+
* @property {number} [max_cart_items]
|
|
11141
|
+
* @property {number} [min_cart_value]
|
|
11142
|
+
* @property {boolean} [revenue_engine_coupon]
|
|
11143
|
+
*/
|
|
11144
|
+
/**
|
|
11145
|
+
* @typedef CartMetaConfigUpdate
|
|
11146
|
+
* @property {boolean} [bulk_coupons]
|
|
11147
|
+
* @property {DeliveryCharges} [delivery_charges]
|
|
11148
|
+
* @property {boolean} [enabled]
|
|
11149
|
+
* @property {string} [gift_display_text]
|
|
11150
|
+
* @property {number} [gift_pricing]
|
|
11151
|
+
* @property {number} [max_cart_items]
|
|
11152
|
+
* @property {number} [min_cart_value]
|
|
11153
|
+
* @property {boolean} [revenue_engine_coupon]
|
|
11154
|
+
*/
|
|
11202
11155
|
/**
|
|
11203
11156
|
* @typedef CartProduct
|
|
11204
11157
|
* @property {ProductAction} [action]
|
|
@@ -11240,6 +11193,11 @@ class PlatformClient {
|
|
|
11240
11193
|
* @property {string} [name]
|
|
11241
11194
|
* @property {number} [uid]
|
|
11242
11195
|
*/
|
|
11196
|
+
/**
|
|
11197
|
+
* @typedef Charges
|
|
11198
|
+
* @property {number} [charges]
|
|
11199
|
+
* @property {number} [threshold]
|
|
11200
|
+
*/
|
|
11243
11201
|
/**
|
|
11244
11202
|
* @typedef CompareObject
|
|
11245
11203
|
* @property {number} [equals]
|
|
@@ -11328,6 +11286,11 @@ class PlatformClient {
|
|
|
11328
11286
|
* @property {Validation} [validation]
|
|
11329
11287
|
* @property {Validity} validity
|
|
11330
11288
|
*/
|
|
11289
|
+
/**
|
|
11290
|
+
* @typedef DeliveryCharges
|
|
11291
|
+
* @property {Charges[]} [charges]
|
|
11292
|
+
* @property {boolean} [enabled]
|
|
11293
|
+
*/
|
|
11331
11294
|
/**
|
|
11332
11295
|
* @typedef DiscountOffer
|
|
11333
11296
|
* @property {string} [code]
|
|
@@ -11790,6 +11753,7 @@ class PlatformClient {
|
|
|
11790
11753
|
* @typedef Restrictions1
|
|
11791
11754
|
* @property {boolean} [anonymous_users]
|
|
11792
11755
|
* @property {number} [order_quantity]
|
|
11756
|
+
* @property {number[]} [ordering_stores]
|
|
11793
11757
|
* @property {PromotionPaymentModes[]} [payments]
|
|
11794
11758
|
* @property {string[]} [platforms]
|
|
11795
11759
|
* @property {PostOrder1} [post_order]
|
|
@@ -12085,151 +12049,6 @@ class PlatformClient {
|
|
|
12085
12049
|
* @property {RewardUser} [user]
|
|
12086
12050
|
*/
|
|
12087
12051
|
|
|
12088
|
-
/**
|
|
12089
|
-
* @typedef AbandonCartDetail
|
|
12090
|
-
* @property {string} [_id]
|
|
12091
|
-
* @property {Object} [address]
|
|
12092
|
-
* @property {Object[]} [articles]
|
|
12093
|
-
* @property {Object} [breakup]
|
|
12094
|
-
* @property {string} [cart_value]
|
|
12095
|
-
* @property {string} [user_id]
|
|
12096
|
-
*/
|
|
12097
|
-
/**
|
|
12098
|
-
* @typedef AbandonCartsDetail
|
|
12099
|
-
* @property {string} [context_app_application_id]
|
|
12100
|
-
* @property {string} [context_traits_email]
|
|
12101
|
-
* @property {string} [context_traits_first_name]
|
|
12102
|
-
* @property {string} [context_traits_last_name]
|
|
12103
|
-
* @property {string} [context_traits_phone_number]
|
|
12104
|
-
* @property {string} [properties_breakup_values_raw_total]
|
|
12105
|
-
* @property {string} [properties_cart_id]
|
|
12106
|
-
* @property {ReceivedAt} [received_at]
|
|
12107
|
-
*/
|
|
12108
|
-
/**
|
|
12109
|
-
* @typedef AbandonCartsList
|
|
12110
|
-
* @property {string} [cart_total]
|
|
12111
|
-
* @property {AbandonCartsDetail[]} [items]
|
|
12112
|
-
* @property {Page} [page]
|
|
12113
|
-
*/
|
|
12114
|
-
/**
|
|
12115
|
-
* @typedef ErrorRes
|
|
12116
|
-
* @property {string} [message]
|
|
12117
|
-
*/
|
|
12118
|
-
/**
|
|
12119
|
-
* @typedef ExportJobReq
|
|
12120
|
-
* @property {string} [end_time]
|
|
12121
|
-
* @property {string} [event_type]
|
|
12122
|
-
* @property {string} [marketplace_name]
|
|
12123
|
-
* @property {string} [start_time]
|
|
12124
|
-
* @property {string} [trace_id]
|
|
12125
|
-
*/
|
|
12126
|
-
/**
|
|
12127
|
-
* @typedef ExportJobRes
|
|
12128
|
-
* @property {string} [job_id]
|
|
12129
|
-
* @property {string} [status]
|
|
12130
|
-
*/
|
|
12131
|
-
/**
|
|
12132
|
-
* @typedef ExportJobStatusRes
|
|
12133
|
-
* @property {string} [download_url]
|
|
12134
|
-
* @property {string} [job_id]
|
|
12135
|
-
* @property {string} [status]
|
|
12136
|
-
*/
|
|
12137
|
-
/**
|
|
12138
|
-
* @typedef GetLogsListReq
|
|
12139
|
-
* @property {string} [company_id]
|
|
12140
|
-
* @property {string} [end_date]
|
|
12141
|
-
* @property {string} [marketplace_name]
|
|
12142
|
-
* @property {string} [start_date]
|
|
12143
|
-
*/
|
|
12144
|
-
/**
|
|
12145
|
-
* @typedef GetLogsListRes
|
|
12146
|
-
* @property {MkpLogsResp[]} [items]
|
|
12147
|
-
* @property {Page} [page]
|
|
12148
|
-
*/
|
|
12149
|
-
/**
|
|
12150
|
-
* @typedef LogInfo
|
|
12151
|
-
* @property {string} [_id]
|
|
12152
|
-
* @property {string} [article_id]
|
|
12153
|
-
* @property {number} [brand_id]
|
|
12154
|
-
* @property {number} [company_id]
|
|
12155
|
-
* @property {string} [event]
|
|
12156
|
-
* @property {string} [event_type]
|
|
12157
|
-
* @property {number} [item_id]
|
|
12158
|
-
* @property {string} [marketplace_name]
|
|
12159
|
-
* @property {string} [seller_identifier]
|
|
12160
|
-
* @property {string} [status]
|
|
12161
|
-
* @property {string} [store_code]
|
|
12162
|
-
* @property {number} [store_id]
|
|
12163
|
-
* @property {string} [trace_id]
|
|
12164
|
-
*/
|
|
12165
|
-
/**
|
|
12166
|
-
* @typedef MkpLogsResp
|
|
12167
|
-
* @property {string} [count]
|
|
12168
|
-
* @property {string} [end_time_iso]
|
|
12169
|
-
* @property {string} [event_type]
|
|
12170
|
-
* @property {string} [start_time_iso]
|
|
12171
|
-
* @property {string} [status]
|
|
12172
|
-
* @property {string} [trace_id]
|
|
12173
|
-
*/
|
|
12174
|
-
/**
|
|
12175
|
-
* @typedef Page
|
|
12176
|
-
* @property {number} [current]
|
|
12177
|
-
* @property {boolean} [has_next]
|
|
12178
|
-
* @property {boolean} [has_previous]
|
|
12179
|
-
* @property {number} [item_total]
|
|
12180
|
-
* @property {string} [next_id]
|
|
12181
|
-
* @property {number} [size]
|
|
12182
|
-
* @property {string} type
|
|
12183
|
-
*/
|
|
12184
|
-
/**
|
|
12185
|
-
* @typedef ReceivedAt
|
|
12186
|
-
* @property {string} [value]
|
|
12187
|
-
*/
|
|
12188
|
-
/**
|
|
12189
|
-
* @typedef SearchLogReq
|
|
12190
|
-
* @property {string} [company_id]
|
|
12191
|
-
* @property {string} [end_date]
|
|
12192
|
-
* @property {string} [identifier]
|
|
12193
|
-
* @property {string} [identifier_value]
|
|
12194
|
-
* @property {string} [marketplace_name]
|
|
12195
|
-
* @property {string} [start_date]
|
|
12196
|
-
*/
|
|
12197
|
-
/**
|
|
12198
|
-
* @typedef SearchLogRes
|
|
12199
|
-
* @property {LogInfo[]} [items]
|
|
12200
|
-
* @property {Page} [page]
|
|
12201
|
-
*/
|
|
12202
|
-
/**
|
|
12203
|
-
* @typedef StatGroup
|
|
12204
|
-
* @property {string} [key]
|
|
12205
|
-
* @property {string} [title]
|
|
12206
|
-
* @property {string} [url]
|
|
12207
|
-
*/
|
|
12208
|
-
/**
|
|
12209
|
-
* @typedef StatsGroupComponent
|
|
12210
|
-
* @property {Object} [filters]
|
|
12211
|
-
* @property {string} [key]
|
|
12212
|
-
* @property {string} [title]
|
|
12213
|
-
* @property {string} [type]
|
|
12214
|
-
* @property {string} [url]
|
|
12215
|
-
*/
|
|
12216
|
-
/**
|
|
12217
|
-
* @typedef StatsGroupComponents
|
|
12218
|
-
* @property {StatsGroupComponent[]} [components]
|
|
12219
|
-
* @property {string} [title]
|
|
12220
|
-
*/
|
|
12221
|
-
/**
|
|
12222
|
-
* @typedef StatsGroups
|
|
12223
|
-
* @property {StatGroup[]} [groups]
|
|
12224
|
-
*/
|
|
12225
|
-
/**
|
|
12226
|
-
* @typedef StatsRes
|
|
12227
|
-
* @property {Object} [data]
|
|
12228
|
-
* @property {string} [key]
|
|
12229
|
-
* @property {string} [title]
|
|
12230
|
-
* @property {string} [type]
|
|
12231
|
-
*/
|
|
12232
|
-
|
|
12233
12052
|
/**
|
|
12234
12053
|
* @typedef BadRequestObject
|
|
12235
12054
|
* @property {string} message
|
|
@@ -12293,6 +12112,20 @@ class PlatformClient {
|
|
|
12293
12112
|
* @property {number[]} [brand_ids]
|
|
12294
12113
|
* @property {number[]} [store_ids]
|
|
12295
12114
|
*/
|
|
12115
|
+
/**
|
|
12116
|
+
* @typedef FileJobRequest
|
|
12117
|
+
* @property {string[]} [app_ids]
|
|
12118
|
+
* @property {number[]} [brand_ids]
|
|
12119
|
+
* @property {string} [discount_level]
|
|
12120
|
+
* @property {string} [discount_type]
|
|
12121
|
+
* @property {string} [file_path]
|
|
12122
|
+
* @property {boolean} is_active
|
|
12123
|
+
* @property {string} [job_type]
|
|
12124
|
+
* @property {Object} [meta]
|
|
12125
|
+
* @property {string} name
|
|
12126
|
+
* @property {number[]} [store_ids]
|
|
12127
|
+
* @property {ValidityObject} validity
|
|
12128
|
+
*/
|
|
12296
12129
|
/**
|
|
12297
12130
|
* @typedef FileJobResponse
|
|
12298
12131
|
* @property {Object} [body]
|