@gofynd/fdk-client-javascript 1.6.3 → 2.0.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 +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -268
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
- package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
- package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
- package/sdk/application/Content/ContentApplicationClient.js +222 -191
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
- package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +68 -153
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
- package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +64 -1
- package/sdk/partner/Webhook/WebhookPartnerModel.js +36 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
- package/sdk/platform/Cart/CartPlatformModel.js +38 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
- package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
- package/sdk/platform/Content/ContentPlatformModel.js +717 -34
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
- package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
- package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
- package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
- package/sdk/platform/Order/OrderPlatformClient.js +397 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +66 -10
- package/sdk/platform/Order/OrderPlatformModel.js +39 -7
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
- package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +73 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +543 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +129 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +97 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +269 -6
- package/sdk/platform/User/UserPlatformModel.js +187 -5
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +64 -1
- package/sdk/platform/Webhook/WebhookPlatformModel.js +36 -0
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
- package/sdk/public/Content/ContentPublicClient.js +261 -104
- package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
- package/sdk/public/Content/ContentPublicModel.js +102 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
- package/sdk/public/Content/ContentPublicValidator.js +26 -0
- 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/Webhook/WebhookPublicClient.js +1 -40
|
@@ -307,6 +307,12 @@ const Joi = require("joi");
|
|
|
307
307
|
* @property {OrderDataUpdates[]} [order]
|
|
308
308
|
*/
|
|
309
309
|
|
|
310
|
+
/**
|
|
311
|
+
* @typedef TransitionComments
|
|
312
|
+
* @property {string} title - Title for the transition message.
|
|
313
|
+
* @property {string} message - Message for the transition.
|
|
314
|
+
*/
|
|
315
|
+
|
|
310
316
|
/**
|
|
311
317
|
* @typedef ShipmentsRequestSchema
|
|
312
318
|
* @property {string} identifier - Unique identifier for the shipment.
|
|
@@ -314,6 +320,8 @@ const Joi = require("joi");
|
|
|
314
320
|
* @property {Products[]} [products] - A list of products or bags that need to
|
|
315
321
|
* be updated as part of the shipment status change.
|
|
316
322
|
* @property {DataUpdates} [data_updates]
|
|
323
|
+
* @property {TransitionComments[]} [transition_comments] - Comments or notes
|
|
324
|
+
* associated with the transition of shipment status.
|
|
317
325
|
*/
|
|
318
326
|
|
|
319
327
|
/**
|
|
@@ -726,8 +734,8 @@ const Joi = require("joi");
|
|
|
726
734
|
* @property {string} [text] - A reason for the activity or change.
|
|
727
735
|
* @property {string} [category] - Category of the reason for the status change.
|
|
728
736
|
* @property {string} [state] - Current state related to the reason.
|
|
729
|
-
* @property {string} [
|
|
730
|
-
* understanding.
|
|
737
|
+
* @property {string} [display_name] - Display name of the reason for better
|
|
738
|
+
* user understanding.
|
|
731
739
|
* @property {number} [code] - Unique code identifying the reason.
|
|
732
740
|
* @property {number} [quantity] - Quantity related to the reason, if applicable.
|
|
733
741
|
*/
|
|
@@ -2624,9 +2632,9 @@ const Joi = require("joi");
|
|
|
2624
2632
|
* met and optimizing logistics.
|
|
2625
2633
|
* @property {QuestionSet[]} question_set - An array of question sets linked to
|
|
2626
2634
|
* the reason, defining the questions to be answered.
|
|
2627
|
-
* @property {Object} meta - Meta object of the reason. This contains any
|
|
2635
|
+
* @property {Object} [meta] - Meta object of the reason. This contains any
|
|
2628
2636
|
* additional metadata that might be relevant to the reason.
|
|
2629
|
-
* @property {boolean} is_active - Indicates whether the reason is currently
|
|
2637
|
+
* @property {boolean} [is_active] - Indicates whether the reason is currently
|
|
2630
2638
|
* active. Active reasons are those that are currently in use within the system.
|
|
2631
2639
|
*/
|
|
2632
2640
|
|
|
@@ -2783,6 +2791,7 @@ const Joi = require("joi");
|
|
|
2783
2791
|
* @property {number} [current] - The current page number.
|
|
2784
2792
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
2785
2793
|
* @property {number} [size] - The number of items per page.
|
|
2794
|
+
* @property {number} [page_size] - The number of items per page.
|
|
2786
2795
|
*/
|
|
2787
2796
|
|
|
2788
2797
|
/**
|
|
@@ -2941,6 +2950,7 @@ const Joi = require("joi");
|
|
|
2941
2950
|
* @property {string} [uid] - A unique identifier for the user associated with
|
|
2942
2951
|
* the address.
|
|
2943
2952
|
* @property {string} [user_id] - The unique identifier of the user in the system.
|
|
2953
|
+
* @property {string} [code] - A unique identifier associated with store.
|
|
2944
2954
|
*/
|
|
2945
2955
|
|
|
2946
2956
|
/**
|
|
@@ -3850,6 +3860,8 @@ const Joi = require("joi");
|
|
|
3850
3860
|
* at the ordering store.
|
|
3851
3861
|
* @property {string} [state] - The state or region where the ordering store is situated.
|
|
3852
3862
|
* @property {string} [city] - The city in which the ordering store is located.
|
|
3863
|
+
* @property {string} [name] - The name of the ordering store.
|
|
3864
|
+
* @property {string} [store_email] - The email address of the ordering store.
|
|
3853
3865
|
*/
|
|
3854
3866
|
|
|
3855
3867
|
/**
|
|
@@ -4095,6 +4107,8 @@ const Joi = require("joi");
|
|
|
4095
4107
|
* @property {string} [size] - The size of the article, which may be relevant
|
|
4096
4108
|
* for clothing.
|
|
4097
4109
|
* @property {string[]} [tags] - An array of tags associated with the article.
|
|
4110
|
+
* @property {Object} [_custom_json] - A custom JSON object containing
|
|
4111
|
+
* additional details or configurations specific to the article.
|
|
4098
4112
|
*/
|
|
4099
4113
|
|
|
4100
4114
|
/**
|
|
@@ -4324,6 +4338,7 @@ const Joi = require("joi");
|
|
|
4324
4338
|
* with a fulfilling store.
|
|
4325
4339
|
* @property {string} state - The state or region where the fulfilling store is located.
|
|
4326
4340
|
* @property {string} city - The city in which the fulfilling store is situated.
|
|
4341
|
+
* @property {string} [store_email] - The email address of the fulfilling store.
|
|
4327
4342
|
*/
|
|
4328
4343
|
|
|
4329
4344
|
/**
|
|
@@ -5574,6 +5589,14 @@ class OrderPlatformModel {
|
|
|
5574
5589
|
});
|
|
5575
5590
|
}
|
|
5576
5591
|
|
|
5592
|
+
/** @returns {TransitionComments} */
|
|
5593
|
+
static TransitionComments() {
|
|
5594
|
+
return Joi.object({
|
|
5595
|
+
title: Joi.string().allow("").required(),
|
|
5596
|
+
message: Joi.string().allow("").required(),
|
|
5597
|
+
});
|
|
5598
|
+
}
|
|
5599
|
+
|
|
5577
5600
|
/** @returns {ShipmentsRequestSchema} */
|
|
5578
5601
|
static ShipmentsRequestSchema() {
|
|
5579
5602
|
return Joi.object({
|
|
@@ -5581,6 +5604,9 @@ class OrderPlatformModel {
|
|
|
5581
5604
|
reasons: OrderPlatformModel.ReasonsData(),
|
|
5582
5605
|
products: Joi.array().items(OrderPlatformModel.Products()),
|
|
5583
5606
|
data_updates: OrderPlatformModel.DataUpdates(),
|
|
5607
|
+
transition_comments: Joi.array().items(
|
|
5608
|
+
OrderPlatformModel.TransitionComments()
|
|
5609
|
+
),
|
|
5584
5610
|
});
|
|
5585
5611
|
}
|
|
5586
5612
|
|
|
@@ -6013,7 +6039,7 @@ class OrderPlatformModel {
|
|
|
6013
6039
|
text: Joi.string().allow("").allow(null),
|
|
6014
6040
|
category: Joi.string().allow("").allow(null),
|
|
6015
6041
|
state: Joi.string().allow("").allow(null),
|
|
6016
|
-
|
|
6042
|
+
display_name: Joi.string().allow("").allow(null),
|
|
6017
6043
|
code: Joi.number().allow(null),
|
|
6018
6044
|
quantity: Joi.number().allow(null),
|
|
6019
6045
|
});
|
|
@@ -7708,8 +7734,8 @@ class OrderPlatformModel {
|
|
|
7708
7734
|
question_set: Joi.array()
|
|
7709
7735
|
.items(OrderPlatformModel.QuestionSet())
|
|
7710
7736
|
.required(),
|
|
7711
|
-
meta: Joi.object().pattern(/\S/, Joi.any())
|
|
7712
|
-
is_active: Joi.boolean()
|
|
7737
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
7738
|
+
is_active: Joi.boolean(),
|
|
7713
7739
|
}).id("Reason");
|
|
7714
7740
|
}
|
|
7715
7741
|
|
|
@@ -7856,6 +7882,7 @@ class OrderPlatformModel {
|
|
|
7856
7882
|
current: Joi.number(),
|
|
7857
7883
|
type: Joi.string().allow("").required(),
|
|
7858
7884
|
size: Joi.number(),
|
|
7885
|
+
page_size: Joi.number(),
|
|
7859
7886
|
});
|
|
7860
7887
|
}
|
|
7861
7888
|
|
|
@@ -7966,6 +7993,7 @@ class OrderPlatformModel {
|
|
|
7966
7993
|
state_code: Joi.string().allow(""),
|
|
7967
7994
|
uid: Joi.string().allow(""),
|
|
7968
7995
|
user_id: Joi.string().allow(""),
|
|
7996
|
+
code: Joi.string().allow("").allow(null),
|
|
7969
7997
|
}).allow(null);
|
|
7970
7998
|
}
|
|
7971
7999
|
|
|
@@ -8601,6 +8629,8 @@ class OrderPlatformModel {
|
|
|
8601
8629
|
contact_person: Joi.string().allow("").allow(null),
|
|
8602
8630
|
state: Joi.string().allow("").allow(null),
|
|
8603
8631
|
city: Joi.string().allow("").allow(null),
|
|
8632
|
+
name: Joi.string().allow("").allow(null),
|
|
8633
|
+
store_email: Joi.string().allow("").allow(null),
|
|
8604
8634
|
});
|
|
8605
8635
|
}
|
|
8606
8636
|
|
|
@@ -8788,6 +8818,7 @@ class OrderPlatformModel {
|
|
|
8788
8818
|
uid: Joi.string().allow("").allow(null),
|
|
8789
8819
|
size: Joi.string().allow("").allow(null),
|
|
8790
8820
|
tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
8821
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
8791
8822
|
});
|
|
8792
8823
|
}
|
|
8793
8824
|
|
|
@@ -8973,6 +9004,7 @@ class OrderPlatformModel {
|
|
|
8973
9004
|
contact_person: Joi.string().allow("").required(),
|
|
8974
9005
|
state: Joi.string().allow("").required(),
|
|
8975
9006
|
city: Joi.string().allow("").required(),
|
|
9007
|
+
store_email: Joi.string().allow("").allow(null),
|
|
8976
9008
|
});
|
|
8977
9009
|
}
|
|
8978
9010
|
|
|
@@ -55,6 +55,14 @@ export = OrderPlatformValidator;
|
|
|
55
55
|
* @typedef FailedOrderLogDetailsParam
|
|
56
56
|
* @property {string} logId - Log Error ID
|
|
57
57
|
*/
|
|
58
|
+
/**
|
|
59
|
+
* @typedef FailedOrderLogsParam
|
|
60
|
+
* @property {string} [applicationId] - Application ID
|
|
61
|
+
* @property {number} [pageNo] - Page Number
|
|
62
|
+
* @property {number} [pageSize] - Page Size
|
|
63
|
+
* @property {string} [searchType] - Search type for filter
|
|
64
|
+
* @property {string} [searchValue] - Search value for filter
|
|
65
|
+
*/
|
|
58
66
|
/**
|
|
59
67
|
* @typedef FetchRefundModeConfigParam
|
|
60
68
|
* @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
|
|
@@ -476,6 +484,8 @@ declare class OrderPlatformValidator {
|
|
|
476
484
|
static eInvoiceRetry(): EInvoiceRetryParam;
|
|
477
485
|
/** @returns {FailedOrderLogDetailsParam} */
|
|
478
486
|
static failedOrderLogDetails(): FailedOrderLogDetailsParam;
|
|
487
|
+
/** @returns {FailedOrderLogsParam} */
|
|
488
|
+
static failedOrderLogs(): FailedOrderLogsParam;
|
|
479
489
|
/** @returns {FetchRefundModeConfigParam} */
|
|
480
490
|
static fetchRefundModeConfig(): FetchRefundModeConfigParam;
|
|
481
491
|
/** @returns {GenerateInvoiceIDParam} */
|
|
@@ -568,7 +578,7 @@ declare class OrderPlatformValidator {
|
|
|
568
578
|
static verifyMobileOTP(): VerifyMobileOTPParam;
|
|
569
579
|
}
|
|
570
580
|
declare namespace OrderPlatformValidator {
|
|
571
|
-
export { AddStateManagerConfigParam, AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, CreateChannelConfigParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GenerateProcessManifestParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateManagerConfigParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdatePaymentInfoParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam };
|
|
581
|
+
export { AddStateManagerConfigParam, AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, CreateChannelConfigParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FailedOrderLogsParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GenerateProcessManifestParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateManagerConfigParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdatePaymentInfoParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam };
|
|
572
582
|
}
|
|
573
583
|
type AddStateManagerConfigParam = {
|
|
574
584
|
body: OrderPlatformModel.TransitionConfigPayload;
|
|
@@ -641,6 +651,28 @@ type FailedOrderLogDetailsParam = {
|
|
|
641
651
|
*/
|
|
642
652
|
logId: string;
|
|
643
653
|
};
|
|
654
|
+
type FailedOrderLogsParam = {
|
|
655
|
+
/**
|
|
656
|
+
* - Application ID
|
|
657
|
+
*/
|
|
658
|
+
applicationId?: string;
|
|
659
|
+
/**
|
|
660
|
+
* - Page Number
|
|
661
|
+
*/
|
|
662
|
+
pageNo?: number;
|
|
663
|
+
/**
|
|
664
|
+
* - Page Size
|
|
665
|
+
*/
|
|
666
|
+
pageSize?: number;
|
|
667
|
+
/**
|
|
668
|
+
* - Search type for filter
|
|
669
|
+
*/
|
|
670
|
+
searchType?: string;
|
|
671
|
+
/**
|
|
672
|
+
* - Search value for filter
|
|
673
|
+
*/
|
|
674
|
+
searchValue?: string;
|
|
675
|
+
};
|
|
644
676
|
type FetchRefundModeConfigParam = {
|
|
645
677
|
body: OrderPlatformModel.RefundModeConfigRequestPayload;
|
|
646
678
|
};
|
|
@@ -70,6 +70,15 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
70
70
|
* @property {string} logId - Log Error ID
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* @typedef FailedOrderLogsParam
|
|
75
|
+
* @property {string} [applicationId] - Application ID
|
|
76
|
+
* @property {number} [pageNo] - Page Number
|
|
77
|
+
* @property {number} [pageSize] - Page Size
|
|
78
|
+
* @property {string} [searchType] - Search type for filter
|
|
79
|
+
* @property {string} [searchValue] - Search value for filter
|
|
80
|
+
*/
|
|
81
|
+
|
|
73
82
|
/**
|
|
74
83
|
* @typedef FetchRefundModeConfigParam
|
|
75
84
|
* @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
|
|
@@ -602,6 +611,17 @@ class OrderPlatformValidator {
|
|
|
602
611
|
}).required();
|
|
603
612
|
}
|
|
604
613
|
|
|
614
|
+
/** @returns {FailedOrderLogsParam} */
|
|
615
|
+
static failedOrderLogs() {
|
|
616
|
+
return Joi.object({
|
|
617
|
+
applicationId: Joi.string().allow(""),
|
|
618
|
+
pageNo: Joi.number(),
|
|
619
|
+
pageSize: Joi.number(),
|
|
620
|
+
searchType: Joi.string().allow(""),
|
|
621
|
+
searchValue: Joi.string().allow(""),
|
|
622
|
+
}).required();
|
|
623
|
+
}
|
|
624
|
+
|
|
605
625
|
/** @returns {FetchRefundModeConfigParam} */
|
|
606
626
|
static fetchRefundModeConfig() {
|
|
607
627
|
return Joi.object({
|
|
@@ -7,19 +7,28 @@ export = PartnerPlatformModel;
|
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* @typedef ExtensionProxyPathCreation
|
|
10
|
-
* @property {string} [_id]
|
|
11
|
-
* @property {string} [attached_path]
|
|
12
|
-
*
|
|
13
|
-
* @property {string} [
|
|
14
|
-
*
|
|
15
|
-
* @property {string} [
|
|
16
|
-
*
|
|
17
|
-
* @property {string} [
|
|
10
|
+
* @property {string} [_id] - Unique identifier for the proxy URL entry in the database.
|
|
11
|
+
* @property {string} [attached_path] - The slug path appended to the base URL
|
|
12
|
+
* for creating the proxy endpoint.
|
|
13
|
+
* @property {string} [proxy_url] - The external URL that the proxy endpoint
|
|
14
|
+
* will forward requests to.
|
|
15
|
+
* @property {string} [company_id] - Unique identifier of the company that owns
|
|
16
|
+
* the proxy URL.
|
|
17
|
+
* @property {string} [application_id] - Unique identifier of the application
|
|
18
|
+
* associated with the proxy URL.
|
|
19
|
+
* @property {string} [extension_id] - Unique identifier of the extension where
|
|
20
|
+
* the proxy URL is configured.
|
|
21
|
+
* @property {string} [created_at] - The timestamp indicating when the proxy URL
|
|
22
|
+
* configuration was created.
|
|
23
|
+
* @property {string} [modified_at] - The timestamp indicating the last update
|
|
24
|
+
* made to the proxy URL configuration.
|
|
18
25
|
*/
|
|
19
26
|
/**
|
|
20
27
|
* @typedef ExtensionProxyPathDelete
|
|
21
|
-
* @property {string} [message]
|
|
22
|
-
*
|
|
28
|
+
* @property {string} [message] - Descriptive message indicating the status or
|
|
29
|
+
* result of the deletion operation.
|
|
30
|
+
* @property {Object} [data] - Additional information or metadata about the
|
|
31
|
+
* deleted proxy configuration.
|
|
23
32
|
*/
|
|
24
33
|
/**
|
|
25
34
|
* @typedef APIError
|
|
@@ -50,19 +59,58 @@ type AddProxyReq = {
|
|
|
50
59
|
/** @returns {ExtensionProxyPathCreation} */
|
|
51
60
|
declare function ExtensionProxyPathCreation(): ExtensionProxyPathCreation;
|
|
52
61
|
type ExtensionProxyPathCreation = {
|
|
62
|
+
/**
|
|
63
|
+
* - Unique identifier for the proxy URL entry in the database.
|
|
64
|
+
*/
|
|
53
65
|
_id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* - The slug path appended to the base URL
|
|
68
|
+
* for creating the proxy endpoint.
|
|
69
|
+
*/
|
|
54
70
|
attached_path?: string;
|
|
71
|
+
/**
|
|
72
|
+
* - The external URL that the proxy endpoint
|
|
73
|
+
* will forward requests to.
|
|
74
|
+
*/
|
|
55
75
|
proxy_url?: string;
|
|
76
|
+
/**
|
|
77
|
+
* - Unique identifier of the company that owns
|
|
78
|
+
* the proxy URL.
|
|
79
|
+
*/
|
|
56
80
|
company_id?: string;
|
|
81
|
+
/**
|
|
82
|
+
* - Unique identifier of the application
|
|
83
|
+
* associated with the proxy URL.
|
|
84
|
+
*/
|
|
57
85
|
application_id?: string;
|
|
86
|
+
/**
|
|
87
|
+
* - Unique identifier of the extension where
|
|
88
|
+
* the proxy URL is configured.
|
|
89
|
+
*/
|
|
58
90
|
extension_id?: string;
|
|
91
|
+
/**
|
|
92
|
+
* - The timestamp indicating when the proxy URL
|
|
93
|
+
* configuration was created.
|
|
94
|
+
*/
|
|
59
95
|
created_at?: string;
|
|
96
|
+
/**
|
|
97
|
+
* - The timestamp indicating the last update
|
|
98
|
+
* made to the proxy URL configuration.
|
|
99
|
+
*/
|
|
60
100
|
modified_at?: string;
|
|
61
101
|
};
|
|
62
102
|
/** @returns {ExtensionProxyPathDelete} */
|
|
63
103
|
declare function ExtensionProxyPathDelete(): ExtensionProxyPathDelete;
|
|
64
104
|
type ExtensionProxyPathDelete = {
|
|
105
|
+
/**
|
|
106
|
+
* - Descriptive message indicating the status or
|
|
107
|
+
* result of the deletion operation.
|
|
108
|
+
*/
|
|
65
109
|
message?: string;
|
|
110
|
+
/**
|
|
111
|
+
* - Additional information or metadata about the
|
|
112
|
+
* deleted proxy configuration.
|
|
113
|
+
*/
|
|
66
114
|
data?: any;
|
|
67
115
|
};
|
|
68
116
|
/** @returns {APIError} */
|
|
@@ -9,20 +9,29 @@ const Joi = require("joi");
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef ExtensionProxyPathCreation
|
|
12
|
-
* @property {string} [_id]
|
|
13
|
-
* @property {string} [attached_path]
|
|
14
|
-
*
|
|
15
|
-
* @property {string} [
|
|
16
|
-
*
|
|
17
|
-
* @property {string} [
|
|
18
|
-
*
|
|
19
|
-
* @property {string} [
|
|
12
|
+
* @property {string} [_id] - Unique identifier for the proxy URL entry in the database.
|
|
13
|
+
* @property {string} [attached_path] - The slug path appended to the base URL
|
|
14
|
+
* for creating the proxy endpoint.
|
|
15
|
+
* @property {string} [proxy_url] - The external URL that the proxy endpoint
|
|
16
|
+
* will forward requests to.
|
|
17
|
+
* @property {string} [company_id] - Unique identifier of the company that owns
|
|
18
|
+
* the proxy URL.
|
|
19
|
+
* @property {string} [application_id] - Unique identifier of the application
|
|
20
|
+
* associated with the proxy URL.
|
|
21
|
+
* @property {string} [extension_id] - Unique identifier of the extension where
|
|
22
|
+
* the proxy URL is configured.
|
|
23
|
+
* @property {string} [created_at] - The timestamp indicating when the proxy URL
|
|
24
|
+
* configuration was created.
|
|
25
|
+
* @property {string} [modified_at] - The timestamp indicating the last update
|
|
26
|
+
* made to the proxy URL configuration.
|
|
20
27
|
*/
|
|
21
28
|
|
|
22
29
|
/**
|
|
23
30
|
* @typedef ExtensionProxyPathDelete
|
|
24
|
-
* @property {string} [message]
|
|
25
|
-
*
|
|
31
|
+
* @property {string} [message] - Descriptive message indicating the status or
|
|
32
|
+
* result of the deletion operation.
|
|
33
|
+
* @property {Object} [data] - Additional information or metadata about the
|
|
34
|
+
* deleted proxy configuration.
|
|
26
35
|
*/
|
|
27
36
|
|
|
28
37
|
/**
|
|
@@ -542,6 +542,7 @@ export = PaymentPlatformModel;
|
|
|
542
542
|
* @property {number} [current] - The current page number.
|
|
543
543
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
544
544
|
* @property {number} [size] - The number of items per page.
|
|
545
|
+
* @property {number} [page_size] - The number of items per page.
|
|
545
546
|
*/
|
|
546
547
|
/**
|
|
547
548
|
* @typedef EdcDeviceListDetails
|
|
@@ -1230,6 +1231,7 @@ export = PaymentPlatformModel;
|
|
|
1230
1231
|
* @property {string} aggregator - Aggregator name of the payment gateway.
|
|
1231
1232
|
* @property {number} transaction_amount - Payable amount
|
|
1232
1233
|
* @property {string} [cart_id] - Unique identifier for the shopping cart.
|
|
1234
|
+
* @property {string} [user_id] - The unique identifier of the user.
|
|
1233
1235
|
*/
|
|
1234
1236
|
/**
|
|
1235
1237
|
* @typedef UserCreditSchema
|
|
@@ -1246,7 +1248,7 @@ export = PaymentPlatformModel;
|
|
|
1246
1248
|
* it is ACTIVE, INACTIVE, or UNREGISTERED.
|
|
1247
1249
|
* @property {UserCreditSchema} [redeemable_balance]
|
|
1248
1250
|
* @property {UserCreditSchema} [available_balance]
|
|
1249
|
-
* @property {UserCreditSchema} [amount_on_hold]
|
|
1251
|
+
* @property {UserCreditSchema[]} [amount_on_hold]
|
|
1250
1252
|
*/
|
|
1251
1253
|
/**
|
|
1252
1254
|
* @typedef ValidateCustomerCreditSchema
|
|
@@ -2699,6 +2701,10 @@ type Page = {
|
|
|
2699
2701
|
* - The number of items per page.
|
|
2700
2702
|
*/
|
|
2701
2703
|
size?: number;
|
|
2704
|
+
/**
|
|
2705
|
+
* - The number of items per page.
|
|
2706
|
+
*/
|
|
2707
|
+
page_size?: number;
|
|
2702
2708
|
};
|
|
2703
2709
|
/** @returns {EdcDeviceListDetails} */
|
|
2704
2710
|
declare function EdcDeviceListDetails(): EdcDeviceListDetails;
|
|
@@ -4518,6 +4524,10 @@ type CustomerValidationSchema = {
|
|
|
4518
4524
|
* - Unique identifier for the shopping cart.
|
|
4519
4525
|
*/
|
|
4520
4526
|
cart_id?: string;
|
|
4527
|
+
/**
|
|
4528
|
+
* - The unique identifier of the user.
|
|
4529
|
+
*/
|
|
4530
|
+
user_id?: string;
|
|
4521
4531
|
};
|
|
4522
4532
|
/** @returns {UserCreditSchema} */
|
|
4523
4533
|
declare function UserCreditSchema(): UserCreditSchema;
|
|
@@ -4551,7 +4561,7 @@ type CreditAccountSummary = {
|
|
|
4551
4561
|
status: string;
|
|
4552
4562
|
redeemable_balance?: UserCreditSchema;
|
|
4553
4563
|
available_balance?: UserCreditSchema;
|
|
4554
|
-
amount_on_hold?: UserCreditSchema;
|
|
4564
|
+
amount_on_hold?: UserCreditSchema[];
|
|
4555
4565
|
};
|
|
4556
4566
|
/** @returns {ValidateCustomerCreditSchema} */
|
|
4557
4567
|
declare function ValidateCustomerCreditSchema(): ValidateCustomerCreditSchema;
|
|
@@ -611,6 +611,7 @@ const Joi = require("joi");
|
|
|
611
611
|
* @property {number} [current] - The current page number.
|
|
612
612
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
613
613
|
* @property {number} [size] - The number of items per page.
|
|
614
|
+
* @property {number} [page_size] - The number of items per page.
|
|
614
615
|
*/
|
|
615
616
|
|
|
616
617
|
/**
|
|
@@ -1374,6 +1375,7 @@ const Joi = require("joi");
|
|
|
1374
1375
|
* @property {string} aggregator - Aggregator name of the payment gateway.
|
|
1375
1376
|
* @property {number} transaction_amount - Payable amount
|
|
1376
1377
|
* @property {string} [cart_id] - Unique identifier for the shopping cart.
|
|
1378
|
+
* @property {string} [user_id] - The unique identifier of the user.
|
|
1377
1379
|
*/
|
|
1378
1380
|
|
|
1379
1381
|
/**
|
|
@@ -1392,7 +1394,7 @@ const Joi = require("joi");
|
|
|
1392
1394
|
* it is ACTIVE, INACTIVE, or UNREGISTERED.
|
|
1393
1395
|
* @property {UserCreditSchema} [redeemable_balance]
|
|
1394
1396
|
* @property {UserCreditSchema} [available_balance]
|
|
1395
|
-
* @property {UserCreditSchema} [amount_on_hold]
|
|
1397
|
+
* @property {UserCreditSchema[]} [amount_on_hold]
|
|
1396
1398
|
*/
|
|
1397
1399
|
|
|
1398
1400
|
/**
|
|
@@ -2164,6 +2166,7 @@ class PaymentPlatformModel {
|
|
|
2164
2166
|
current: Joi.number(),
|
|
2165
2167
|
type: Joi.string().allow("").required(),
|
|
2166
2168
|
size: Joi.number(),
|
|
2169
|
+
page_size: Joi.number(),
|
|
2167
2170
|
});
|
|
2168
2171
|
}
|
|
2169
2172
|
|
|
@@ -3050,6 +3053,7 @@ class PaymentPlatformModel {
|
|
|
3050
3053
|
aggregator: Joi.string().allow("").required(),
|
|
3051
3054
|
transaction_amount: Joi.number().required(),
|
|
3052
3055
|
cart_id: Joi.string().allow(""),
|
|
3056
|
+
user_id: Joi.string().allow(""),
|
|
3053
3057
|
});
|
|
3054
3058
|
}
|
|
3055
3059
|
|
|
@@ -3069,7 +3073,9 @@ class PaymentPlatformModel {
|
|
|
3069
3073
|
status: Joi.string().allow("").required(),
|
|
3070
3074
|
redeemable_balance: PaymentPlatformModel.UserCreditSchema(),
|
|
3071
3075
|
available_balance: PaymentPlatformModel.UserCreditSchema(),
|
|
3072
|
-
amount_on_hold:
|
|
3076
|
+
amount_on_hold: Joi.array().items(
|
|
3077
|
+
PaymentPlatformModel.UserCreditSchema()
|
|
3078
|
+
),
|
|
3073
3079
|
});
|
|
3074
3080
|
}
|
|
3075
3081
|
|
|
@@ -57,6 +57,7 @@ export = RewardsPlatformModel;
|
|
|
57
57
|
* @property {number} [current] - The current page number.
|
|
58
58
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
59
59
|
* @property {number} [size] - The number of items per page.
|
|
60
|
+
* @property {number} [page_size] - The number of items per page.
|
|
60
61
|
*/
|
|
61
62
|
/**
|
|
62
63
|
* @typedef Offer
|
|
@@ -254,6 +255,10 @@ type Page = {
|
|
|
254
255
|
* - The number of items per page.
|
|
255
256
|
*/
|
|
256
257
|
size?: number;
|
|
258
|
+
/**
|
|
259
|
+
* - The number of items per page.
|
|
260
|
+
*/
|
|
261
|
+
page_size?: number;
|
|
257
262
|
};
|
|
258
263
|
/** @returns {Offer} */
|
|
259
264
|
declare function Offer(): Offer;
|
|
@@ -65,6 +65,7 @@ const Joi = require("joi");
|
|
|
65
65
|
* @property {number} [current] - The current page number.
|
|
66
66
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
67
67
|
* @property {number} [size] - The number of items per page.
|
|
68
|
+
* @property {number} [page_size] - The number of items per page.
|
|
68
69
|
*/
|
|
69
70
|
|
|
70
71
|
/**
|
|
@@ -264,6 +265,7 @@ class RewardsPlatformModel {
|
|
|
264
265
|
current: Joi.number(),
|
|
265
266
|
type: Joi.string().allow("").required(),
|
|
266
267
|
size: Joi.number(),
|
|
268
|
+
page_size: Joi.number(),
|
|
267
269
|
});
|
|
268
270
|
}
|
|
269
271
|
|