@gofynd/fdk-client-javascript 1.1.0 → 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 +0 -1
- package/package.json +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +11 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.js +2 -0
- package/sdk/application/Content/ContentApplicationModel.js +0 -4
- 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/Constant.d.ts +0 -18
- package/sdk/common/Constant.js +0 -22
- 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 +3 -7
- 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 +12 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +62 -2
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +6 -0
- package/sdk/platform/Content/ContentPlatformModel.js +0 -4
- 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/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 +12 -41
- package/sdk/platform/PlatformApplicationClient.js +13 -45
- package/sdk/platform/PlatformClient.d.ts +90 -264
- package/sdk/platform/PlatformClient.js +110 -316
- 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/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
|
|
@@ -3575,6 +3572,11 @@ class PlatformClient {
|
|
|
3575
3572
|
* @property {string} description
|
|
3576
3573
|
* @property {boolean} success
|
|
3577
3574
|
*/
|
|
3575
|
+
/**
|
|
3576
|
+
* @typedef GetOauthUrlResponse
|
|
3577
|
+
* @property {boolean} success
|
|
3578
|
+
* @property {string} url
|
|
3579
|
+
*/
|
|
3578
3580
|
/**
|
|
3579
3581
|
* @typedef GetUserCODLimitResponse
|
|
3580
3582
|
* @property {boolean} success
|
|
@@ -3792,6 +3794,11 @@ class PlatformClient {
|
|
|
3792
3794
|
* @property {string} message
|
|
3793
3795
|
* @property {boolean} success
|
|
3794
3796
|
*/
|
|
3797
|
+
/**
|
|
3798
|
+
* @typedef RevokeOAuthToken
|
|
3799
|
+
* @property {string} message
|
|
3800
|
+
* @property {boolean} success
|
|
3801
|
+
*/
|
|
3795
3802
|
/**
|
|
3796
3803
|
* @typedef RootPaymentMode
|
|
3797
3804
|
* @property {boolean} [add_card_enabled]
|
|
@@ -3972,6 +3979,7 @@ class PlatformClient {
|
|
|
3972
3979
|
* @property {string} [marketplace_invoice_id]
|
|
3973
3980
|
* @property {string} [order_item_id]
|
|
3974
3981
|
* @property {number} [quantity]
|
|
3982
|
+
* @property {ReplacementDetails} [replacement_details]
|
|
3975
3983
|
* @property {number} [size_level_total_qty]
|
|
3976
3984
|
*/
|
|
3977
3985
|
/**
|
|
@@ -3995,6 +4003,8 @@ class PlatformClient {
|
|
|
3995
4003
|
/**
|
|
3996
4004
|
* @typedef AnnouncementsResponse
|
|
3997
4005
|
* @property {AnnouncementResponse[]} [announcements]
|
|
4006
|
+
* @property {string} [message]
|
|
4007
|
+
* @property {boolean} [success]
|
|
3998
4008
|
*/
|
|
3999
4009
|
/**
|
|
4000
4010
|
* @typedef AppliedPromos
|
|
@@ -4172,6 +4182,11 @@ class PlatformClient {
|
|
|
4172
4182
|
* @property {boolean} [notify_customer]
|
|
4173
4183
|
* @property {string} state_type
|
|
4174
4184
|
*/
|
|
4185
|
+
/**
|
|
4186
|
+
* @typedef BagStateTransitionMap
|
|
4187
|
+
* @property {Object} [affiliate]
|
|
4188
|
+
* @property {Object} [fynd]
|
|
4189
|
+
*/
|
|
4175
4190
|
/**
|
|
4176
4191
|
* @typedef BagStatusHistory
|
|
4177
4192
|
* @property {string} [app_display_name]
|
|
@@ -4208,8 +4223,8 @@ class PlatformClient {
|
|
|
4208
4223
|
*/
|
|
4209
4224
|
/**
|
|
4210
4225
|
* @typedef BaseResponse
|
|
4211
|
-
* @property {string} message
|
|
4212
|
-
* @property {boolean} success
|
|
4226
|
+
* @property {string} [message]
|
|
4227
|
+
* @property {boolean} [success]
|
|
4213
4228
|
*/
|
|
4214
4229
|
/**
|
|
4215
4230
|
* @typedef BillingInfo
|
|
@@ -4260,91 +4275,13 @@ class PlatformClient {
|
|
|
4260
4275
|
* @property {string} [start_date]
|
|
4261
4276
|
*/
|
|
4262
4277
|
/**
|
|
4263
|
-
* @typedef
|
|
4264
|
-
* @property {string} [
|
|
4265
|
-
* @property {string} [
|
|
4266
|
-
* @property {number} [failed_shipments_count]
|
|
4267
|
-
* @property {number} [processing_shipments_count]
|
|
4268
|
-
* @property {string[]} [successful_shipment_ids]
|
|
4269
|
-
* @property {number} [successful_shipments_count]
|
|
4270
|
-
* @property {number} [total_shipments_count]
|
|
4271
|
-
*/
|
|
4272
|
-
/**
|
|
4273
|
-
* @typedef BulkActionDetailsResponse
|
|
4274
|
-
* @property {BulkActionDetailsDataField[]} [data]
|
|
4275
|
-
* @property {string[]} [error]
|
|
4276
|
-
* @property {string[]} [failed_records]
|
|
4277
|
-
* @property {string} [message]
|
|
4278
|
-
* @property {boolean} [status]
|
|
4279
|
-
* @property {string} [success]
|
|
4280
|
-
* @property {string} [uploaded_by]
|
|
4281
|
-
* @property {string} [uploaded_on]
|
|
4282
|
-
* @property {string} [user_id]
|
|
4283
|
-
*/
|
|
4284
|
-
/**
|
|
4285
|
-
* @typedef BulkActionPayload
|
|
4286
|
-
* @property {string} url
|
|
4287
|
-
*/
|
|
4288
|
-
/**
|
|
4289
|
-
* @typedef BulkActionResponse
|
|
4290
|
-
* @property {string} [message]
|
|
4291
|
-
* @property {boolean} [status]
|
|
4292
|
-
*/
|
|
4293
|
-
/**
|
|
4294
|
-
* @typedef BulkInvoiceLabelResponse
|
|
4295
|
-
* @property {string} batch_id
|
|
4296
|
-
* @property {string} [company_id]
|
|
4297
|
-
* @property {Object} [data]
|
|
4298
|
-
* @property {boolean} do_invoice_label_generated
|
|
4299
|
-
* @property {Object} [invoice]
|
|
4300
|
-
* @property {string} [invoice_status]
|
|
4301
|
-
* @property {Object} [label]
|
|
4302
|
-
* @property {string} [store_code]
|
|
4303
|
-
* @property {string} [store_id]
|
|
4304
|
-
* @property {string} [store_name]
|
|
4305
|
-
*/
|
|
4306
|
-
/**
|
|
4307
|
-
* @typedef BulkInvoicingResponse
|
|
4308
|
-
* @property {string} [message]
|
|
4309
|
-
* @property {boolean} success
|
|
4310
|
-
*/
|
|
4311
|
-
/**
|
|
4312
|
-
* @typedef bulkListingData
|
|
4313
|
-
* @property {string} [batch_id]
|
|
4314
|
-
* @property {number} [company_id]
|
|
4315
|
-
* @property {string} [excel_url]
|
|
4316
|
-
* @property {number} [failed]
|
|
4317
|
-
* @property {Object[]} [failed_shipments]
|
|
4318
|
-
* @property {string} [file_name]
|
|
4319
|
-
* @property {string} [id]
|
|
4320
|
-
* @property {number} [processing]
|
|
4321
|
-
* @property {string[]} [processing_shipments]
|
|
4322
|
-
* @property {string} [status]
|
|
4323
|
-
* @property {string} [store_code]
|
|
4324
|
-
* @property {number} [store_id]
|
|
4325
|
-
* @property {string} [store_name]
|
|
4326
|
-
* @property {number} [successful]
|
|
4327
|
-
* @property {Object[]} [successful_shipments]
|
|
4328
|
-
* @property {number} [total]
|
|
4329
|
-
* @property {string} [uploaded_on]
|
|
4330
|
-
* @property {string} [user_id]
|
|
4331
|
-
* @property {string} [user_name]
|
|
4332
|
-
*/
|
|
4333
|
-
/**
|
|
4334
|
-
* @typedef BulkListingPage
|
|
4335
|
-
* @property {number} [current]
|
|
4336
|
-
* @property {boolean} [has_next]
|
|
4337
|
-
* @property {boolean} [has_previous]
|
|
4338
|
-
* @property {number} [size]
|
|
4339
|
-
* @property {number} [total]
|
|
4340
|
-
* @property {string} [type]
|
|
4278
|
+
* @typedef BulkActionTemplate
|
|
4279
|
+
* @property {string} [text]
|
|
4280
|
+
* @property {string} [value]
|
|
4341
4281
|
*/
|
|
4342
4282
|
/**
|
|
4343
|
-
* @typedef
|
|
4344
|
-
* @property {
|
|
4345
|
-
* @property {string} [error]
|
|
4346
|
-
* @property {BulkListingPage} [page]
|
|
4347
|
-
* @property {boolean} [success]
|
|
4283
|
+
* @typedef BulkActionTemplateResponse
|
|
4284
|
+
* @property {BulkActionTemplate[]} [template_x_slug]
|
|
4348
4285
|
*/
|
|
4349
4286
|
/**
|
|
4350
4287
|
* @typedef BuyerDetails
|
|
@@ -4376,7 +4313,7 @@ class PlatformClient {
|
|
|
4376
4313
|
* @property {Bags[]} [bags]
|
|
4377
4314
|
* @property {boolean} [is_bag_locked]
|
|
4378
4315
|
* @property {boolean} [is_shipment_locked]
|
|
4379
|
-
* @property {
|
|
4316
|
+
* @property {string} [lock_status]
|
|
4380
4317
|
* @property {OriginalFilter} [original_filter]
|
|
4381
4318
|
* @property {string} [shipment_id]
|
|
4382
4319
|
* @property {string} [status]
|
|
@@ -4384,7 +4321,7 @@ class PlatformClient {
|
|
|
4384
4321
|
/**
|
|
4385
4322
|
* @typedef Click2CallResponse
|
|
4386
4323
|
* @property {string} call_id
|
|
4387
|
-
* @property {boolean}
|
|
4324
|
+
* @property {boolean} success
|
|
4388
4325
|
*/
|
|
4389
4326
|
/**
|
|
4390
4327
|
* @typedef CompanyDetails
|
|
@@ -4587,8 +4524,9 @@ class PlatformClient {
|
|
|
4587
4524
|
/**
|
|
4588
4525
|
* @typedef ErrorResponse1
|
|
4589
4526
|
* @property {string} [error_trace]
|
|
4590
|
-
* @property {string} message
|
|
4591
|
-
* @property {number} status
|
|
4527
|
+
* @property {string} [message]
|
|
4528
|
+
* @property {number} [status]
|
|
4529
|
+
* @property {boolean} [success]
|
|
4592
4530
|
*/
|
|
4593
4531
|
/**
|
|
4594
4532
|
* @typedef FileResponse
|
|
@@ -4698,12 +4636,15 @@ class PlatformClient {
|
|
|
4698
4636
|
*/
|
|
4699
4637
|
/**
|
|
4700
4638
|
* @typedef HistoryDict
|
|
4639
|
+
* @property {string} [assigned_agent]
|
|
4701
4640
|
* @property {number} [bag_id]
|
|
4702
4641
|
* @property {string} createdat
|
|
4642
|
+
* @property {string} [display_message]
|
|
4703
4643
|
* @property {string} [l1_detail]
|
|
4704
4644
|
* @property {string} [l2_detail]
|
|
4705
4645
|
* @property {string} [l3_detail]
|
|
4706
4646
|
* @property {string} message
|
|
4647
|
+
* @property {Object} [meta]
|
|
4707
4648
|
* @property {string} [ticket_id]
|
|
4708
4649
|
* @property {string} [ticket_url]
|
|
4709
4650
|
* @property {string} type
|
|
@@ -4722,7 +4663,9 @@ class PlatformClient {
|
|
|
4722
4663
|
*/
|
|
4723
4664
|
/**
|
|
4724
4665
|
* @typedef InvalidateShipmentCachePayload
|
|
4725
|
-
* @property {string[]}
|
|
4666
|
+
* @property {string[]} [affiliate_bag_ids]
|
|
4667
|
+
* @property {string[]} [bag_ids]
|
|
4668
|
+
* @property {string[]} [shipment_ids]
|
|
4726
4669
|
*/
|
|
4727
4670
|
/**
|
|
4728
4671
|
* @typedef InvalidateShipmentCacheResponse
|
|
@@ -4767,25 +4710,6 @@ class PlatformClient {
|
|
|
4767
4710
|
* @typedef ItemCriterias
|
|
4768
4711
|
* @property {number[]} [item_brand]
|
|
4769
4712
|
*/
|
|
4770
|
-
/**
|
|
4771
|
-
* @typedef JioCodeUpsertDataSet
|
|
4772
|
-
* @property {string} [article_id]
|
|
4773
|
-
* @property {string} [company_id]
|
|
4774
|
-
* @property {string} [item_id]
|
|
4775
|
-
* @property {string} [jio_code]
|
|
4776
|
-
*/
|
|
4777
|
-
/**
|
|
4778
|
-
* @typedef JioCodeUpsertPayload
|
|
4779
|
-
* @property {JioCodeUpsertDataSet[]} [data]
|
|
4780
|
-
*/
|
|
4781
|
-
/**
|
|
4782
|
-
* @typedef JioCodeUpsertResponse
|
|
4783
|
-
* @property {Object[]} [data]
|
|
4784
|
-
* @property {NestedErrorSchemaDataSet[]} [error]
|
|
4785
|
-
* @property {string} [identifier]
|
|
4786
|
-
* @property {boolean} [success]
|
|
4787
|
-
* @property {string} [trace_id]
|
|
4788
|
-
*/
|
|
4789
4713
|
/**
|
|
4790
4714
|
* @typedef LaneConfigResponse
|
|
4791
4715
|
* @property {SuperLane[]} [super_lanes]
|
|
@@ -4811,18 +4735,6 @@ class PlatformClient {
|
|
|
4811
4735
|
* @property {boolean} [locked]
|
|
4812
4736
|
* @property {boolean} [mto]
|
|
4813
4737
|
*/
|
|
4814
|
-
/**
|
|
4815
|
-
* @typedef ManualAssignDPToShipment
|
|
4816
|
-
* @property {number} dp_id
|
|
4817
|
-
* @property {string} order_type
|
|
4818
|
-
* @property {string} qc_required
|
|
4819
|
-
* @property {string[]} [shipment_ids]
|
|
4820
|
-
*/
|
|
4821
|
-
/**
|
|
4822
|
-
* @typedef ManualAssignDPToShipmentResponse
|
|
4823
|
-
* @property {string[]} [errors]
|
|
4824
|
-
* @property {string} success
|
|
4825
|
-
*/
|
|
4826
4738
|
/**
|
|
4827
4739
|
* @typedef MarketPlacePdf
|
|
4828
4740
|
* @property {string} [invoice]
|
|
@@ -4837,40 +4749,6 @@ class PlatformClient {
|
|
|
4837
4749
|
* @property {number} [kafka_emission_status]
|
|
4838
4750
|
* @property {string} [state_manager_used]
|
|
4839
4751
|
*/
|
|
4840
|
-
/**
|
|
4841
|
-
* @typedef MetricCountResponse
|
|
4842
|
-
* @property {MetricsCount[]} [items]
|
|
4843
|
-
*/
|
|
4844
|
-
/**
|
|
4845
|
-
* @typedef MetricsCount
|
|
4846
|
-
* @property {string} key
|
|
4847
|
-
* @property {Options[]} [options]
|
|
4848
|
-
* @property {string} text
|
|
4849
|
-
* @property {number} value
|
|
4850
|
-
*/
|
|
4851
|
-
/**
|
|
4852
|
-
* @typedef NestedErrorSchemaDataSet
|
|
4853
|
-
* @property {string} [message]
|
|
4854
|
-
* @property {string} [type]
|
|
4855
|
-
* @property {string} [value]
|
|
4856
|
-
*/
|
|
4857
|
-
/**
|
|
4858
|
-
* @typedef OmsReports
|
|
4859
|
-
* @property {string} [display_name]
|
|
4860
|
-
* @property {string} [report_created_at]
|
|
4861
|
-
* @property {string} [report_id]
|
|
4862
|
-
* @property {string} [report_name]
|
|
4863
|
-
* @property {string} [report_requested_at]
|
|
4864
|
-
* @property {string} [report_type]
|
|
4865
|
-
* @property {Object} [request_details]
|
|
4866
|
-
* @property {string} [s3_key]
|
|
4867
|
-
* @property {string} [status]
|
|
4868
|
-
*/
|
|
4869
|
-
/**
|
|
4870
|
-
* @typedef Options
|
|
4871
|
-
* @property {string} [text]
|
|
4872
|
-
* @property {number} [value]
|
|
4873
|
-
*/
|
|
4874
4752
|
/**
|
|
4875
4753
|
* @typedef OrderBagArticle
|
|
4876
4754
|
* @property {Object} [identifiers]
|
|
@@ -5358,6 +5236,11 @@ class PlatformClient {
|
|
|
5358
5236
|
* @property {EntitiesReasons[]} [entities]
|
|
5359
5237
|
* @property {ProductsReasons[]} [products]
|
|
5360
5238
|
*/
|
|
5239
|
+
/**
|
|
5240
|
+
* @typedef ReplacementDetails
|
|
5241
|
+
* @property {string} [original_affiliate_order_id]
|
|
5242
|
+
* @property {string} [replacement_type]
|
|
5243
|
+
*/
|
|
5361
5244
|
/**
|
|
5362
5245
|
* @typedef ResponseDetail
|
|
5363
5246
|
* @property {string[]} [message]
|
|
@@ -5427,6 +5310,7 @@ class PlatformClient {
|
|
|
5427
5310
|
/**
|
|
5428
5311
|
* @typedef ShipmentHistoryResponse
|
|
5429
5312
|
* @property {HistoryDict[]} activity_history
|
|
5313
|
+
* @property {boolean} [success]
|
|
5430
5314
|
*/
|
|
5431
5315
|
/**
|
|
5432
5316
|
* @typedef ShipmentInfoResponse
|
|
@@ -5581,13 +5465,13 @@ class PlatformClient {
|
|
|
5581
5465
|
*/
|
|
5582
5466
|
/**
|
|
5583
5467
|
* @typedef SmsDataPayload
|
|
5584
|
-
* @property {number} amount_paid
|
|
5585
|
-
* @property {string} brand_name
|
|
5468
|
+
* @property {number} [amount_paid]
|
|
5469
|
+
* @property {string} [brand_name]
|
|
5586
5470
|
* @property {string} country_code
|
|
5587
|
-
* @property {string} customer_name
|
|
5471
|
+
* @property {string} [customer_name]
|
|
5588
5472
|
* @property {string} message
|
|
5589
5473
|
* @property {string} order_id
|
|
5590
|
-
* @property {string} payment_mode
|
|
5474
|
+
* @property {string} [payment_mode]
|
|
5591
5475
|
* @property {number} phone_number
|
|
5592
5476
|
* @property {number} shipment_id
|
|
5593
5477
|
*/
|
|
@@ -5721,11 +5605,6 @@ class PlatformClient {
|
|
|
5721
5605
|
* @property {number} [total_items]
|
|
5722
5606
|
* @property {string} [value]
|
|
5723
5607
|
*/
|
|
5724
|
-
/**
|
|
5725
|
-
* @typedef Success
|
|
5726
|
-
* @property {string} [message]
|
|
5727
|
-
* @property {boolean} [success]
|
|
5728
|
-
*/
|
|
5729
5608
|
/**
|
|
5730
5609
|
* @typedef SuccessResponse
|
|
5731
5610
|
* @property {string} [message]
|
|
@@ -6695,7 +6574,7 @@ class PlatformClient {
|
|
|
6695
6574
|
* @property {UserDetail} [created_by]
|
|
6696
6575
|
* @property {string} created_on
|
|
6697
6576
|
* @property {boolean} [is_active]
|
|
6698
|
-
* @property {
|
|
6577
|
+
* @property {Object} logo
|
|
6699
6578
|
* @property {UserDetail} [modified_by]
|
|
6700
6579
|
* @property {string} modified_on
|
|
6701
6580
|
* @property {Object} name
|
|
@@ -7879,7 +7758,7 @@ class PlatformClient {
|
|
|
7879
7758
|
* @property {NetQuantity} [net_quantity]
|
|
7880
7759
|
* @property {number} [no_of_boxes]
|
|
7881
7760
|
* @property {string[]} [product_group_tag]
|
|
7882
|
-
* @property {
|
|
7761
|
+
* @property {ProductPublish} [product_publish]
|
|
7883
7762
|
* @property {string} [requester]
|
|
7884
7763
|
* @property {ReturnConfig} return_config
|
|
7885
7764
|
* @property {string} [short_description]
|
|
@@ -8075,7 +7954,7 @@ class PlatformClient {
|
|
|
8075
7954
|
* @property {string} [pending]
|
|
8076
7955
|
* @property {string} [primary_color]
|
|
8077
7956
|
* @property {string[]} [product_group_tag]
|
|
8078
|
-
* @property {
|
|
7957
|
+
* @property {ProductPublish1} [product_publish]
|
|
8079
7958
|
* @property {ReturnConfigResponse} [return_config]
|
|
8080
7959
|
* @property {string} [short_description]
|
|
8081
7960
|
* @property {string} [size_guide]
|
|
@@ -8827,11 +8706,13 @@ class PlatformClient {
|
|
|
8827
8706
|
* @typedef GetLocationSerializer
|
|
8828
8707
|
* @property {Object} [_custom_json]
|
|
8829
8708
|
* @property {GetAddressSerializer} address
|
|
8709
|
+
* @property {boolean} [auto_invoice]
|
|
8830
8710
|
* @property {string} code
|
|
8831
8711
|
* @property {GetCompanySerializer} [company]
|
|
8832
8712
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
8833
8713
|
* @property {UserSerializer} [created_by]
|
|
8834
8714
|
* @property {string} [created_on]
|
|
8715
|
+
* @property {boolean} [credit_note]
|
|
8835
8716
|
* @property {string} display_name
|
|
8836
8717
|
* @property {Document[]} [documents]
|
|
8837
8718
|
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
@@ -8895,9 +8776,11 @@ class PlatformClient {
|
|
|
8895
8776
|
* @typedef LocationSerializer
|
|
8896
8777
|
* @property {Object} [_custom_json]
|
|
8897
8778
|
* @property {AddressSerializer} address
|
|
8779
|
+
* @property {boolean} [auto_invoice]
|
|
8898
8780
|
* @property {string} code
|
|
8899
8781
|
* @property {number} company
|
|
8900
8782
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
8783
|
+
* @property {boolean} [credit_note]
|
|
8901
8784
|
* @property {string} display_name
|
|
8902
8785
|
* @property {Document[]} [documents]
|
|
8903
8786
|
* @property {InvoiceDetailsSerializer} [gst_credentials]
|
|
@@ -9128,6 +9011,15 @@ class PlatformClient {
|
|
|
9128
9011
|
* @property {string} [medium]
|
|
9129
9012
|
* @property {string} [source]
|
|
9130
9013
|
*/
|
|
9014
|
+
/**
|
|
9015
|
+
* @typedef ClickStatsItem
|
|
9016
|
+
* @property {string} [display]
|
|
9017
|
+
* @property {number} [total]
|
|
9018
|
+
*/
|
|
9019
|
+
/**
|
|
9020
|
+
* @typedef ClickStatsResponse
|
|
9021
|
+
* @property {ClickStatsItem[]} click_stats
|
|
9022
|
+
*/
|
|
9131
9023
|
/**
|
|
9132
9024
|
* @typedef ErrorRes
|
|
9133
9025
|
* @property {string} [message]
|
|
@@ -11238,6 +11130,28 @@ class PlatformClient {
|
|
|
11238
11130
|
* @property {string} [group_id]
|
|
11239
11131
|
* @property {boolean} [primary_item]
|
|
11240
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
|
+
*/
|
|
11241
11155
|
/**
|
|
11242
11156
|
* @typedef CartProduct
|
|
11243
11157
|
* @property {ProductAction} [action]
|
|
@@ -11279,6 +11193,11 @@ class PlatformClient {
|
|
|
11279
11193
|
* @property {string} [name]
|
|
11280
11194
|
* @property {number} [uid]
|
|
11281
11195
|
*/
|
|
11196
|
+
/**
|
|
11197
|
+
* @typedef Charges
|
|
11198
|
+
* @property {number} [charges]
|
|
11199
|
+
* @property {number} [threshold]
|
|
11200
|
+
*/
|
|
11282
11201
|
/**
|
|
11283
11202
|
* @typedef CompareObject
|
|
11284
11203
|
* @property {number} [equals]
|
|
@@ -11367,6 +11286,11 @@ class PlatformClient {
|
|
|
11367
11286
|
* @property {Validation} [validation]
|
|
11368
11287
|
* @property {Validity} validity
|
|
11369
11288
|
*/
|
|
11289
|
+
/**
|
|
11290
|
+
* @typedef DeliveryCharges
|
|
11291
|
+
* @property {Charges[]} [charges]
|
|
11292
|
+
* @property {boolean} [enabled]
|
|
11293
|
+
*/
|
|
11370
11294
|
/**
|
|
11371
11295
|
* @typedef DiscountOffer
|
|
11372
11296
|
* @property {string} [code]
|
|
@@ -11829,6 +11753,7 @@ class PlatformClient {
|
|
|
11829
11753
|
* @typedef Restrictions1
|
|
11830
11754
|
* @property {boolean} [anonymous_users]
|
|
11831
11755
|
* @property {number} [order_quantity]
|
|
11756
|
+
* @property {number[]} [ordering_stores]
|
|
11832
11757
|
* @property {PromotionPaymentModes[]} [payments]
|
|
11833
11758
|
* @property {string[]} [platforms]
|
|
11834
11759
|
* @property {PostOrder1} [post_order]
|
|
@@ -12124,151 +12049,6 @@ class PlatformClient {
|
|
|
12124
12049
|
* @property {RewardUser} [user]
|
|
12125
12050
|
*/
|
|
12126
12051
|
|
|
12127
|
-
/**
|
|
12128
|
-
* @typedef AbandonCartDetail
|
|
12129
|
-
* @property {string} [_id]
|
|
12130
|
-
* @property {Object} [address]
|
|
12131
|
-
* @property {Object[]} [articles]
|
|
12132
|
-
* @property {Object} [breakup]
|
|
12133
|
-
* @property {string} [cart_value]
|
|
12134
|
-
* @property {string} [user_id]
|
|
12135
|
-
*/
|
|
12136
|
-
/**
|
|
12137
|
-
* @typedef AbandonCartsDetail
|
|
12138
|
-
* @property {string} [context_app_application_id]
|
|
12139
|
-
* @property {string} [context_traits_email]
|
|
12140
|
-
* @property {string} [context_traits_first_name]
|
|
12141
|
-
* @property {string} [context_traits_last_name]
|
|
12142
|
-
* @property {string} [context_traits_phone_number]
|
|
12143
|
-
* @property {string} [properties_breakup_values_raw_total]
|
|
12144
|
-
* @property {string} [properties_cart_id]
|
|
12145
|
-
* @property {ReceivedAt} [received_at]
|
|
12146
|
-
*/
|
|
12147
|
-
/**
|
|
12148
|
-
* @typedef AbandonCartsList
|
|
12149
|
-
* @property {string} [cart_total]
|
|
12150
|
-
* @property {AbandonCartsDetail[]} [items]
|
|
12151
|
-
* @property {Page} [page]
|
|
12152
|
-
*/
|
|
12153
|
-
/**
|
|
12154
|
-
* @typedef ErrorRes
|
|
12155
|
-
* @property {string} [message]
|
|
12156
|
-
*/
|
|
12157
|
-
/**
|
|
12158
|
-
* @typedef ExportJobReq
|
|
12159
|
-
* @property {string} [end_time]
|
|
12160
|
-
* @property {string} [event_type]
|
|
12161
|
-
* @property {string} [marketplace_name]
|
|
12162
|
-
* @property {string} [start_time]
|
|
12163
|
-
* @property {string} [trace_id]
|
|
12164
|
-
*/
|
|
12165
|
-
/**
|
|
12166
|
-
* @typedef ExportJobRes
|
|
12167
|
-
* @property {string} [job_id]
|
|
12168
|
-
* @property {string} [status]
|
|
12169
|
-
*/
|
|
12170
|
-
/**
|
|
12171
|
-
* @typedef ExportJobStatusRes
|
|
12172
|
-
* @property {string} [download_url]
|
|
12173
|
-
* @property {string} [job_id]
|
|
12174
|
-
* @property {string} [status]
|
|
12175
|
-
*/
|
|
12176
|
-
/**
|
|
12177
|
-
* @typedef GetLogsListReq
|
|
12178
|
-
* @property {string} [company_id]
|
|
12179
|
-
* @property {string} [end_date]
|
|
12180
|
-
* @property {string} [marketplace_name]
|
|
12181
|
-
* @property {string} [start_date]
|
|
12182
|
-
*/
|
|
12183
|
-
/**
|
|
12184
|
-
* @typedef GetLogsListRes
|
|
12185
|
-
* @property {MkpLogsResp[]} [items]
|
|
12186
|
-
* @property {Page} [page]
|
|
12187
|
-
*/
|
|
12188
|
-
/**
|
|
12189
|
-
* @typedef LogInfo
|
|
12190
|
-
* @property {string} [_id]
|
|
12191
|
-
* @property {string} [article_id]
|
|
12192
|
-
* @property {number} [brand_id]
|
|
12193
|
-
* @property {number} [company_id]
|
|
12194
|
-
* @property {string} [event]
|
|
12195
|
-
* @property {string} [event_type]
|
|
12196
|
-
* @property {number} [item_id]
|
|
12197
|
-
* @property {string} [marketplace_name]
|
|
12198
|
-
* @property {string} [seller_identifier]
|
|
12199
|
-
* @property {string} [status]
|
|
12200
|
-
* @property {string} [store_code]
|
|
12201
|
-
* @property {number} [store_id]
|
|
12202
|
-
* @property {string} [trace_id]
|
|
12203
|
-
*/
|
|
12204
|
-
/**
|
|
12205
|
-
* @typedef MkpLogsResp
|
|
12206
|
-
* @property {string} [count]
|
|
12207
|
-
* @property {string} [end_time_iso]
|
|
12208
|
-
* @property {string} [event_type]
|
|
12209
|
-
* @property {string} [start_time_iso]
|
|
12210
|
-
* @property {string} [status]
|
|
12211
|
-
* @property {string} [trace_id]
|
|
12212
|
-
*/
|
|
12213
|
-
/**
|
|
12214
|
-
* @typedef Page
|
|
12215
|
-
* @property {number} [current]
|
|
12216
|
-
* @property {boolean} [has_next]
|
|
12217
|
-
* @property {boolean} [has_previous]
|
|
12218
|
-
* @property {number} [item_total]
|
|
12219
|
-
* @property {string} [next_id]
|
|
12220
|
-
* @property {number} [size]
|
|
12221
|
-
* @property {string} type
|
|
12222
|
-
*/
|
|
12223
|
-
/**
|
|
12224
|
-
* @typedef ReceivedAt
|
|
12225
|
-
* @property {string} [value]
|
|
12226
|
-
*/
|
|
12227
|
-
/**
|
|
12228
|
-
* @typedef SearchLogReq
|
|
12229
|
-
* @property {string} [company_id]
|
|
12230
|
-
* @property {string} [end_date]
|
|
12231
|
-
* @property {string} [identifier]
|
|
12232
|
-
* @property {string} [identifier_value]
|
|
12233
|
-
* @property {string} [marketplace_name]
|
|
12234
|
-
* @property {string} [start_date]
|
|
12235
|
-
*/
|
|
12236
|
-
/**
|
|
12237
|
-
* @typedef SearchLogRes
|
|
12238
|
-
* @property {LogInfo[]} [items]
|
|
12239
|
-
* @property {Page} [page]
|
|
12240
|
-
*/
|
|
12241
|
-
/**
|
|
12242
|
-
* @typedef StatGroup
|
|
12243
|
-
* @property {string} [key]
|
|
12244
|
-
* @property {string} [title]
|
|
12245
|
-
* @property {string} [url]
|
|
12246
|
-
*/
|
|
12247
|
-
/**
|
|
12248
|
-
* @typedef StatsGroupComponent
|
|
12249
|
-
* @property {Object} [filters]
|
|
12250
|
-
* @property {string} [key]
|
|
12251
|
-
* @property {string} [title]
|
|
12252
|
-
* @property {string} [type]
|
|
12253
|
-
* @property {string} [url]
|
|
12254
|
-
*/
|
|
12255
|
-
/**
|
|
12256
|
-
* @typedef StatsGroupComponents
|
|
12257
|
-
* @property {StatsGroupComponent[]} [components]
|
|
12258
|
-
* @property {string} [title]
|
|
12259
|
-
*/
|
|
12260
|
-
/**
|
|
12261
|
-
* @typedef StatsGroups
|
|
12262
|
-
* @property {StatGroup[]} [groups]
|
|
12263
|
-
*/
|
|
12264
|
-
/**
|
|
12265
|
-
* @typedef StatsRes
|
|
12266
|
-
* @property {Object} [data]
|
|
12267
|
-
* @property {string} [key]
|
|
12268
|
-
* @property {string} [title]
|
|
12269
|
-
* @property {string} [type]
|
|
12270
|
-
*/
|
|
12271
|
-
|
|
12272
12052
|
/**
|
|
12273
12053
|
* @typedef BadRequestObject
|
|
12274
12054
|
* @property {string} message
|
|
@@ -12332,6 +12112,20 @@ class PlatformClient {
|
|
|
12332
12112
|
* @property {number[]} [brand_ids]
|
|
12333
12113
|
* @property {number[]} [store_ids]
|
|
12334
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
|
+
*/
|
|
12335
12129
|
/**
|
|
12336
12130
|
* @typedef FileJobResponse
|
|
12337
12131
|
* @property {Object} [body]
|
|
@@ -23,6 +23,17 @@ declare class Share {
|
|
|
23
23
|
getShortLinkByHash({ hash }?: {
|
|
24
24
|
hash: string;
|
|
25
25
|
}): Promise<ShortLinkRes>;
|
|
26
|
+
/**
|
|
27
|
+
* @param {Object} arg - Arg object.
|
|
28
|
+
* @param {string} arg.surlId - Short link ID for which click statistics are
|
|
29
|
+
* to be retrieved.
|
|
30
|
+
* @returns {Promise<ClickStatsResponse>} - Success response
|
|
31
|
+
* @summary: Get click statistics for a short link
|
|
32
|
+
* @description: Retrieve click statistics for a given short link ID.
|
|
33
|
+
*/
|
|
34
|
+
getShortLinkClickStats({ surlId }?: {
|
|
35
|
+
surlId: string;
|
|
36
|
+
}): Promise<ClickStatsResponse>;
|
|
26
37
|
/**
|
|
27
38
|
* @param {Object} arg - Arg object.
|
|
28
39
|
* @param {number} [arg.pageNo] - Current page number
|