@gofynd/fdk-client-javascript 1.3.3-beta.1 → 1.3.3-beta.2
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/package.json
CHANGED
|
@@ -81,6 +81,7 @@ export = OrderPlatformModel;
|
|
|
81
81
|
/**
|
|
82
82
|
* @typedef AffiliateConfig
|
|
83
83
|
* @property {AffiliateAppConfig} [app]
|
|
84
|
+
* @property {number} [app_company_id]
|
|
84
85
|
* @property {AffiliateInventoryConfig} [inventory]
|
|
85
86
|
*/
|
|
86
87
|
/**
|
|
@@ -93,6 +94,7 @@ export = OrderPlatformModel;
|
|
|
93
94
|
* @property {string} affiliate_shipment_id
|
|
94
95
|
* @property {string} affiliate_store_id
|
|
95
96
|
* @property {string} [company_affiliate_tag]
|
|
97
|
+
* @property {AffiliateConfig} [config]
|
|
96
98
|
* @property {PDFLinks} [pdf_links]
|
|
97
99
|
* @property {ShipmentMeta} shipment_meta
|
|
98
100
|
*/
|
|
@@ -700,7 +702,7 @@ export = OrderPlatformModel;
|
|
|
700
702
|
* @property {string} [state_type]
|
|
701
703
|
* @property {string} [status]
|
|
702
704
|
* @property {number} [store_id]
|
|
703
|
-
* @property {
|
|
705
|
+
* @property {string} [updated_at]
|
|
704
706
|
*/
|
|
705
707
|
/**
|
|
706
708
|
* @typedef DataUpdates
|
|
@@ -1211,6 +1213,7 @@ export = OrderPlatformModel;
|
|
|
1211
1213
|
* @property {string} [affiliate_id]
|
|
1212
1214
|
* @property {string} [cod_charges]
|
|
1213
1215
|
* @property {string} fynd_order_id
|
|
1216
|
+
* @property {OrderMeta} [meta]
|
|
1214
1217
|
* @property {string} [order_date]
|
|
1215
1218
|
* @property {string} [order_value]
|
|
1216
1219
|
* @property {string} [ordering_channel]
|
|
@@ -1484,6 +1487,7 @@ export = OrderPlatformModel;
|
|
|
1484
1487
|
* @property {boolean} [can_update_dimension]
|
|
1485
1488
|
* @property {CompanyDetails} [company_details]
|
|
1486
1489
|
* @property {Object} [coupon]
|
|
1490
|
+
* @property {string} [credit_note_id]
|
|
1487
1491
|
* @property {string} [custom_message]
|
|
1488
1492
|
* @property {Object[]} [custom_meta]
|
|
1489
1493
|
* @property {UserDetailsData} [delivery_details]
|
|
@@ -1512,14 +1516,17 @@ export = OrderPlatformModel;
|
|
|
1512
1516
|
* @property {Object} [pdf_links]
|
|
1513
1517
|
* @property {string} [picked_date]
|
|
1514
1518
|
* @property {string} [platform_logo]
|
|
1519
|
+
* @property {string} [previous_shipment_id]
|
|
1515
1520
|
* @property {Prices} [prices]
|
|
1516
1521
|
* @property {string} [priority_text]
|
|
1522
|
+
* @property {PlatformDeliveryAddress} [rto_address]
|
|
1517
1523
|
* @property {string} [shipment_created_at]
|
|
1518
1524
|
* @property {ShipmentDetails} [shipment_details]
|
|
1519
1525
|
* @property {string} shipment_id
|
|
1520
1526
|
* @property {string[]} [shipment_images]
|
|
1521
1527
|
* @property {number} [shipment_quantity]
|
|
1522
1528
|
* @property {string} [shipment_status]
|
|
1529
|
+
* @property {number} [shipment_update_time]
|
|
1523
1530
|
* @property {ShipmentStatusData} [status]
|
|
1524
1531
|
* @property {number} [total_bags]
|
|
1525
1532
|
* @property {number} [total_items]
|
|
@@ -2436,6 +2443,7 @@ type AffiliateBagsDetails = {
|
|
|
2436
2443
|
declare function AffiliateConfig(): AffiliateConfig;
|
|
2437
2444
|
type AffiliateConfig = {
|
|
2438
2445
|
app?: AffiliateAppConfig;
|
|
2446
|
+
app_company_id?: number;
|
|
2439
2447
|
inventory?: AffiliateInventoryConfig;
|
|
2440
2448
|
};
|
|
2441
2449
|
/** @returns {AffiliateDetails} */
|
|
@@ -2449,6 +2457,7 @@ type AffiliateDetails = {
|
|
|
2449
2457
|
affiliate_shipment_id: string;
|
|
2450
2458
|
affiliate_store_id: string;
|
|
2451
2459
|
company_affiliate_tag?: string;
|
|
2460
|
+
config?: AffiliateConfig;
|
|
2452
2461
|
pdf_links?: PDFLinks;
|
|
2453
2462
|
shipment_meta: ShipmentMeta;
|
|
2454
2463
|
};
|
|
@@ -3217,7 +3226,7 @@ type CurrentStatus = {
|
|
|
3217
3226
|
state_type?: string;
|
|
3218
3227
|
status?: string;
|
|
3219
3228
|
store_id?: number;
|
|
3220
|
-
updated_at?:
|
|
3229
|
+
updated_at?: string;
|
|
3221
3230
|
};
|
|
3222
3231
|
/** @returns {DataUpdates} */
|
|
3223
3232
|
declare function DataUpdates(): DataUpdates;
|
|
@@ -3858,6 +3867,7 @@ type OrderDetailsData = {
|
|
|
3858
3867
|
affiliate_id?: string;
|
|
3859
3868
|
cod_charges?: string;
|
|
3860
3869
|
fynd_order_id: string;
|
|
3870
|
+
meta?: OrderMeta;
|
|
3861
3871
|
order_date?: string;
|
|
3862
3872
|
order_value?: string;
|
|
3863
3873
|
ordering_channel?: string;
|
|
@@ -4179,6 +4189,7 @@ type PlatformShipment = {
|
|
|
4179
4189
|
can_update_dimension?: boolean;
|
|
4180
4190
|
company_details?: CompanyDetails;
|
|
4181
4191
|
coupon?: any;
|
|
4192
|
+
credit_note_id?: string;
|
|
4182
4193
|
custom_message?: string;
|
|
4183
4194
|
custom_meta?: any[];
|
|
4184
4195
|
delivery_details?: UserDetailsData;
|
|
@@ -4207,14 +4218,17 @@ type PlatformShipment = {
|
|
|
4207
4218
|
pdf_links?: any;
|
|
4208
4219
|
picked_date?: string;
|
|
4209
4220
|
platform_logo?: string;
|
|
4221
|
+
previous_shipment_id?: string;
|
|
4210
4222
|
prices?: Prices;
|
|
4211
4223
|
priority_text?: string;
|
|
4224
|
+
rto_address?: PlatformDeliveryAddress;
|
|
4212
4225
|
shipment_created_at?: string;
|
|
4213
4226
|
shipment_details?: ShipmentDetails;
|
|
4214
4227
|
shipment_id: string;
|
|
4215
4228
|
shipment_images?: string[];
|
|
4216
4229
|
shipment_quantity?: number;
|
|
4217
4230
|
shipment_status?: string;
|
|
4231
|
+
shipment_update_time?: number;
|
|
4218
4232
|
status?: ShipmentStatusData;
|
|
4219
4233
|
total_bags?: number;
|
|
4220
4234
|
total_items?: number;
|
|
@@ -90,6 +90,7 @@ const Joi = require("joi");
|
|
|
90
90
|
/**
|
|
91
91
|
* @typedef AffiliateConfig
|
|
92
92
|
* @property {AffiliateAppConfig} [app]
|
|
93
|
+
* @property {number} [app_company_id]
|
|
93
94
|
* @property {AffiliateInventoryConfig} [inventory]
|
|
94
95
|
*/
|
|
95
96
|
|
|
@@ -103,6 +104,7 @@ const Joi = require("joi");
|
|
|
103
104
|
* @property {string} affiliate_shipment_id
|
|
104
105
|
* @property {string} affiliate_store_id
|
|
105
106
|
* @property {string} [company_affiliate_tag]
|
|
107
|
+
* @property {AffiliateConfig} [config]
|
|
106
108
|
* @property {PDFLinks} [pdf_links]
|
|
107
109
|
* @property {ShipmentMeta} shipment_meta
|
|
108
110
|
*/
|
|
@@ -772,7 +774,7 @@ const Joi = require("joi");
|
|
|
772
774
|
* @property {string} [state_type]
|
|
773
775
|
* @property {string} [status]
|
|
774
776
|
* @property {number} [store_id]
|
|
775
|
-
* @property {
|
|
777
|
+
* @property {string} [updated_at]
|
|
776
778
|
*/
|
|
777
779
|
|
|
778
780
|
/**
|
|
@@ -1344,6 +1346,7 @@ const Joi = require("joi");
|
|
|
1344
1346
|
* @property {string} [affiliate_id]
|
|
1345
1347
|
* @property {string} [cod_charges]
|
|
1346
1348
|
* @property {string} fynd_order_id
|
|
1349
|
+
* @property {OrderMeta} [meta]
|
|
1347
1350
|
* @property {string} [order_date]
|
|
1348
1351
|
* @property {string} [order_value]
|
|
1349
1352
|
* @property {string} [ordering_channel]
|
|
@@ -1644,6 +1647,7 @@ const Joi = require("joi");
|
|
|
1644
1647
|
* @property {boolean} [can_update_dimension]
|
|
1645
1648
|
* @property {CompanyDetails} [company_details]
|
|
1646
1649
|
* @property {Object} [coupon]
|
|
1650
|
+
* @property {string} [credit_note_id]
|
|
1647
1651
|
* @property {string} [custom_message]
|
|
1648
1652
|
* @property {Object[]} [custom_meta]
|
|
1649
1653
|
* @property {UserDetailsData} [delivery_details]
|
|
@@ -1672,14 +1676,17 @@ const Joi = require("joi");
|
|
|
1672
1676
|
* @property {Object} [pdf_links]
|
|
1673
1677
|
* @property {string} [picked_date]
|
|
1674
1678
|
* @property {string} [platform_logo]
|
|
1679
|
+
* @property {string} [previous_shipment_id]
|
|
1675
1680
|
* @property {Prices} [prices]
|
|
1676
1681
|
* @property {string} [priority_text]
|
|
1682
|
+
* @property {PlatformDeliveryAddress} [rto_address]
|
|
1677
1683
|
* @property {string} [shipment_created_at]
|
|
1678
1684
|
* @property {ShipmentDetails} [shipment_details]
|
|
1679
1685
|
* @property {string} shipment_id
|
|
1680
1686
|
* @property {string[]} [shipment_images]
|
|
1681
1687
|
* @property {number} [shipment_quantity]
|
|
1682
1688
|
* @property {string} [shipment_status]
|
|
1689
|
+
* @property {number} [shipment_update_time]
|
|
1683
1690
|
* @property {ShipmentStatusData} [status]
|
|
1684
1691
|
* @property {number} [total_bags]
|
|
1685
1692
|
* @property {number} [total_items]
|
|
@@ -2702,6 +2709,7 @@ class OrderPlatformModel {
|
|
|
2702
2709
|
static AffiliateConfig() {
|
|
2703
2710
|
return Joi.object({
|
|
2704
2711
|
app: OrderPlatformModel.AffiliateAppConfig(),
|
|
2712
|
+
app_company_id: Joi.number().allow(null),
|
|
2705
2713
|
inventory: OrderPlatformModel.AffiliateInventoryConfig(),
|
|
2706
2714
|
});
|
|
2707
2715
|
}
|
|
@@ -2717,6 +2725,7 @@ class OrderPlatformModel {
|
|
|
2717
2725
|
affiliate_shipment_id: Joi.string().allow("").required(),
|
|
2718
2726
|
affiliate_store_id: Joi.string().allow("").required(),
|
|
2719
2727
|
company_affiliate_tag: Joi.string().allow(""),
|
|
2728
|
+
config: OrderPlatformModel.AffiliateConfig(),
|
|
2720
2729
|
pdf_links: OrderPlatformModel.PDFLinks(),
|
|
2721
2730
|
shipment_meta: OrderPlatformModel.ShipmentMeta().required(),
|
|
2722
2731
|
});
|
|
@@ -3513,7 +3522,7 @@ class OrderPlatformModel {
|
|
|
3513
3522
|
state_type: Joi.string().allow(""),
|
|
3514
3523
|
status: Joi.string().allow(""),
|
|
3515
3524
|
store_id: Joi.number(),
|
|
3516
|
-
updated_at: Joi.
|
|
3525
|
+
updated_at: Joi.string().allow(""),
|
|
3517
3526
|
});
|
|
3518
3527
|
}
|
|
3519
3528
|
|
|
@@ -4215,6 +4224,7 @@ class OrderPlatformModel {
|
|
|
4215
4224
|
affiliate_id: Joi.string().allow(""),
|
|
4216
4225
|
cod_charges: Joi.string().allow(""),
|
|
4217
4226
|
fynd_order_id: Joi.string().allow("").required(),
|
|
4227
|
+
meta: OrderPlatformModel.OrderMeta(),
|
|
4218
4228
|
order_date: Joi.string().allow(""),
|
|
4219
4229
|
order_value: Joi.string().allow(""),
|
|
4220
4230
|
ordering_channel: Joi.string().allow(""),
|
|
@@ -4572,6 +4582,7 @@ class OrderPlatformModel {
|
|
|
4572
4582
|
can_update_dimension: Joi.boolean(),
|
|
4573
4583
|
company_details: OrderPlatformModel.CompanyDetails(),
|
|
4574
4584
|
coupon: Joi.any(),
|
|
4585
|
+
credit_note_id: Joi.string().allow("").allow(null),
|
|
4575
4586
|
custom_message: Joi.string().allow(""),
|
|
4576
4587
|
custom_meta: Joi.array().items(Joi.any()),
|
|
4577
4588
|
delivery_details: OrderPlatformModel.UserDetailsData(),
|
|
@@ -4600,14 +4611,17 @@ class OrderPlatformModel {
|
|
|
4600
4611
|
pdf_links: Joi.any(),
|
|
4601
4612
|
picked_date: Joi.string().allow(""),
|
|
4602
4613
|
platform_logo: Joi.string().allow(""),
|
|
4614
|
+
previous_shipment_id: Joi.string().allow("").allow(null),
|
|
4603
4615
|
prices: OrderPlatformModel.Prices(),
|
|
4604
4616
|
priority_text: Joi.string().allow("").allow(null),
|
|
4617
|
+
rto_address: OrderPlatformModel.PlatformDeliveryAddress(),
|
|
4605
4618
|
shipment_created_at: Joi.string().allow(""),
|
|
4606
4619
|
shipment_details: OrderPlatformModel.ShipmentDetails(),
|
|
4607
4620
|
shipment_id: Joi.string().allow("").required(),
|
|
4608
4621
|
shipment_images: Joi.array().items(Joi.string().allow("")),
|
|
4609
4622
|
shipment_quantity: Joi.number(),
|
|
4610
4623
|
shipment_status: Joi.string().allow(""),
|
|
4624
|
+
shipment_update_time: Joi.number().allow(null),
|
|
4611
4625
|
status: OrderPlatformModel.ShipmentStatusData(),
|
|
4612
4626
|
total_bags: Joi.number(),
|
|
4613
4627
|
total_items: Joi.number(),
|