@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.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 +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -7,6 +7,22 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
7
7
|
* @property {OrderPlatformModel.AttachOrderUser} body
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @typedef BulkListingParam
|
|
12
|
+
* @property {number} pageSize - Page size
|
|
13
|
+
* @property {number} pageNo - Page number
|
|
14
|
+
* @property {string} startDate - UTC start date in ISO format
|
|
15
|
+
* @property {string} endDate - UTC end date in ISO format
|
|
16
|
+
* @property {string} [status] - Status for which to fetch the jobs.
|
|
17
|
+
* @property {string} [bulkActionType] - Job type.
|
|
18
|
+
* @property {string} [searchKey] - Search_key.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @typedef BulkStateTransistionParam
|
|
23
|
+
* @property {OrderPlatformModel.BulkStateTransistionRequest} body
|
|
24
|
+
*/
|
|
25
|
+
|
|
10
26
|
/**
|
|
11
27
|
* @typedef CheckOrderStatusParam
|
|
12
28
|
* @property {OrderPlatformModel.OrderStatus} body
|
|
@@ -32,7 +48,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
32
48
|
*/
|
|
33
49
|
|
|
34
50
|
/**
|
|
35
|
-
* @typedef
|
|
51
|
+
* @typedef DispatchManifestsParam
|
|
52
|
+
* @property {string} manifestId
|
|
36
53
|
* @property {OrderPlatformModel.DispatchManifest} body
|
|
37
54
|
*/
|
|
38
55
|
|
|
@@ -51,6 +68,11 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
51
68
|
* @property {OrderPlatformModel.EInvoiceRetry} body
|
|
52
69
|
*/
|
|
53
70
|
|
|
71
|
+
/**
|
|
72
|
+
* @typedef FailedOrderLogDetailsParam
|
|
73
|
+
* @property {string} logId - Log Error ID
|
|
74
|
+
*/
|
|
75
|
+
|
|
54
76
|
/**
|
|
55
77
|
* @typedef FetchCreditBalanceDetailParam
|
|
56
78
|
* @property {OrderPlatformModel.FetchCreditBalanceRequestPayload} body
|
|
@@ -61,12 +83,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
61
83
|
* @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
|
|
62
84
|
*/
|
|
63
85
|
|
|
64
|
-
/**
|
|
65
|
-
* @typedef GenerateInvoiceIDParam
|
|
66
|
-
* @property {string} invoiceType - Mention the type of invoice id to generate
|
|
67
|
-
* @property {OrderPlatformModel.GenerateInvoiceIDRequest} body
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
86
|
/**
|
|
71
87
|
* @typedef GeneratePOSReceiptByOrderIdParam
|
|
72
88
|
* @property {string} orderId
|
|
@@ -80,6 +96,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
80
96
|
* @property {string} status - Current status of a shipment
|
|
81
97
|
*/
|
|
82
98
|
|
|
99
|
+
/** @typedef GetAllowedTemplatesForBulkParam */
|
|
100
|
+
|
|
83
101
|
/**
|
|
84
102
|
* @typedef GetAnnouncementsParam
|
|
85
103
|
* @property {string} [date] - Date On which the announcement is Active (Date
|
|
@@ -112,8 +130,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
112
130
|
* @typedef GetBulkShipmentExcelFileParam
|
|
113
131
|
* @property {string} [salesChannels] - Comma separated values of sales channel ids
|
|
114
132
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
115
|
-
* @property {string} [
|
|
116
|
-
* @property {string} [
|
|
133
|
+
* @property {string} [startDate] - UTC start date in ISO format
|
|
134
|
+
* @property {string} [endDate] - UTC end date in ISO format
|
|
117
135
|
* @property {string} [stores] - Comma separated values of store ids
|
|
118
136
|
* @property {string} [tags] - Comma separated values of tags
|
|
119
137
|
* @property {string} [bagStatus] - Comma separated values of bag statuses
|
|
@@ -126,12 +144,22 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
126
144
|
|
|
127
145
|
/** @typedef GetChannelConfigParam */
|
|
128
146
|
|
|
147
|
+
/**
|
|
148
|
+
* @typedef GetFileByStatusParam
|
|
149
|
+
* @property {string} batchId
|
|
150
|
+
* @property {string} status
|
|
151
|
+
* @property {string} fileType
|
|
152
|
+
* @property {string} [reportType]
|
|
153
|
+
*/
|
|
154
|
+
|
|
129
155
|
/**
|
|
130
156
|
* @typedef GetLaneConfigParam
|
|
131
157
|
* @property {string} [superLane] - Name of lane for which data is to be fetched
|
|
132
158
|
* @property {string} [groupEntity] - Name of group entity
|
|
133
159
|
* @property {string} [fromDate] - Start Date in DD-MM-YYYY format
|
|
134
160
|
* @property {string} [toDate] - End Date in DD-MM-YYYY format
|
|
161
|
+
* @property {string} [startDate] - UTC Start Date in ISO format
|
|
162
|
+
* @property {string} [endDate] - UTC End Date in ISO format
|
|
135
163
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
136
164
|
* @property {string} [stores] - Comma separated values of store ids
|
|
137
165
|
* @property {string} [salesChannels]
|
|
@@ -148,10 +176,49 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
148
176
|
* @property {string} [orderType]
|
|
149
177
|
*/
|
|
150
178
|
|
|
179
|
+
/**
|
|
180
|
+
* @typedef GetManifestDetailsParam
|
|
181
|
+
* @property {string} manifestId
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @typedef GetManifestShipmentsParam
|
|
186
|
+
* @property {number} dpIds
|
|
187
|
+
* @property {string} stores
|
|
188
|
+
* @property {string} toDate
|
|
189
|
+
* @property {string} fromDate
|
|
190
|
+
* @property {string} [dpName]
|
|
191
|
+
* @property {string} [salesChannels]
|
|
192
|
+
* @property {string} [searchType]
|
|
193
|
+
* @property {string} [searchValue]
|
|
194
|
+
* @property {string} [pageNo]
|
|
195
|
+
* @property {string} [pageSize]
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @typedef GetManifestfiltersParam
|
|
200
|
+
* @property {string} view - Name of View
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @typedef GetManifestsParam
|
|
205
|
+
* @property {string} [status] - Possible Status [ active, closed ]
|
|
206
|
+
* @property {string} [startDate] - UTC Start Date in ISO format
|
|
207
|
+
* @property {string} [endDate] - UTC End Date in ISO format
|
|
208
|
+
* @property {string} [searchType] - Search type options [ fynd_order_id,
|
|
209
|
+
* shipment_id, manifest_id, dp_name, awb_no ]
|
|
210
|
+
* @property {number} [storeId] - Fetch manifests for a Store.
|
|
211
|
+
* @property {string} [searchValue] - Search value for selected search type
|
|
212
|
+
* @property {string} [dpIds] - DP Ids separated by ',' (comma)
|
|
213
|
+
* @property {number} [pageNo]
|
|
214
|
+
* @property {number} [pageSize]
|
|
215
|
+
*/
|
|
216
|
+
|
|
151
217
|
/**
|
|
152
218
|
* @typedef GetOrderByIdParam
|
|
153
219
|
* @property {string} orderId
|
|
154
220
|
* @property {boolean} [myOrders]
|
|
221
|
+
* @property {boolean} [allowInactive] - Flag to allow inactive shipments
|
|
155
222
|
*/
|
|
156
223
|
|
|
157
224
|
/**
|
|
@@ -170,6 +237,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
170
237
|
* specified by the search_type
|
|
171
238
|
* @property {string} [fromDate]
|
|
172
239
|
* @property {string} [toDate]
|
|
240
|
+
* @property {string} [startDate]
|
|
241
|
+
* @property {string} [endDate]
|
|
173
242
|
* @property {string} [dpIds] - Delivery Partner IDs to which shipments are assigned.
|
|
174
243
|
* @property {string} [stores]
|
|
175
244
|
* @property {string} [salesChannels]
|
|
@@ -219,6 +288,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
219
288
|
* @property {string} [searchValue] - Search type value
|
|
220
289
|
* @property {string} [fromDate] - Start Date in DD-MM-YYYY format
|
|
221
290
|
* @property {string} [toDate] - End Date in DD-MM-YYYY format
|
|
291
|
+
* @property {string} [startDate] - UTC Start Date in ISO format
|
|
292
|
+
* @property {string} [endDate] - UTC End Date in ISO format
|
|
222
293
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
223
294
|
* @property {string} [stores] - Comma separated values of store ids
|
|
224
295
|
* @property {string} [salesChannels] - Comma separated values of sales channel ids
|
|
@@ -243,8 +314,47 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
243
314
|
* @property {string} [orderType]
|
|
244
315
|
*/
|
|
245
316
|
|
|
317
|
+
/**
|
|
318
|
+
* @typedef GetStateManagerTaskByIdParam
|
|
319
|
+
* @property {number} taskId
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @typedef GetStateManagerTasksParam
|
|
324
|
+
* @property {number} [pageNo]
|
|
325
|
+
* @property {number} [pageSize]
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @typedef GetStateTransitionFiltersParam
|
|
330
|
+
* @property {number} [pageNo]
|
|
331
|
+
* @property {number} [pageSize]
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @typedef GetStateTransitionFiltersByIdParam
|
|
336
|
+
* @property {number} filterId
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @typedef GetStateTransitionFlagsParam
|
|
341
|
+
* @property {number} [pageNo] - The page number for pagination.
|
|
342
|
+
* @property {number} [pageSize] - The number of items to be returned per page
|
|
343
|
+
* for pagination.
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @typedef GetStateTransitionFlagsByIdParam
|
|
348
|
+
* @property {number} flagId
|
|
349
|
+
*/
|
|
350
|
+
|
|
246
351
|
/** @typedef GetStateTransitionMapParam */
|
|
247
352
|
|
|
353
|
+
/**
|
|
354
|
+
* @typedef GetTemplateParam
|
|
355
|
+
* @property {string} templateName
|
|
356
|
+
*/
|
|
357
|
+
|
|
248
358
|
/**
|
|
249
359
|
* @typedef GetfiltersParam
|
|
250
360
|
* @property {string} view - Name of view
|
|
@@ -256,6 +366,11 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
256
366
|
* @property {OrderPlatformModel.InvalidateShipmentCachePayload} body
|
|
257
367
|
*/
|
|
258
368
|
|
|
369
|
+
/**
|
|
370
|
+
* @typedef JobDetailsParam
|
|
371
|
+
* @property {string} batchId
|
|
372
|
+
*/
|
|
373
|
+
|
|
259
374
|
/**
|
|
260
375
|
* @typedef OrderUpdateParam
|
|
261
376
|
* @property {OrderPlatformModel.PlatformOrderUpdate} body
|
|
@@ -267,8 +382,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
267
382
|
*/
|
|
268
383
|
|
|
269
384
|
/**
|
|
270
|
-
* @typedef
|
|
271
|
-
* @property {OrderPlatformModel.
|
|
385
|
+
* @typedef ProcessManifestsParam
|
|
386
|
+
* @property {OrderPlatformModel.ProcessManifest} body
|
|
272
387
|
*/
|
|
273
388
|
|
|
274
389
|
/**
|
|
@@ -331,7 +446,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
331
446
|
*/
|
|
332
447
|
|
|
333
448
|
/**
|
|
334
|
-
* @typedef
|
|
449
|
+
* @typedef UploadConsentsParam
|
|
450
|
+
* @property {string} manifestId
|
|
335
451
|
* @property {OrderPlatformModel.UploadConsent} body
|
|
336
452
|
*/
|
|
337
453
|
|
|
@@ -348,6 +464,26 @@ class OrderPlatformValidator {
|
|
|
348
464
|
}).required();
|
|
349
465
|
}
|
|
350
466
|
|
|
467
|
+
/** @returns {BulkListingParam} */
|
|
468
|
+
static bulkListing() {
|
|
469
|
+
return Joi.object({
|
|
470
|
+
pageSize: Joi.number().required(),
|
|
471
|
+
pageNo: Joi.number().required(),
|
|
472
|
+
startDate: Joi.string().allow("").required(),
|
|
473
|
+
endDate: Joi.string().allow("").required(),
|
|
474
|
+
status: Joi.string().allow(""),
|
|
475
|
+
bulkActionType: Joi.string().allow(""),
|
|
476
|
+
searchKey: Joi.string().allow(""),
|
|
477
|
+
}).required();
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/** @returns {BulkStateTransistionParam} */
|
|
481
|
+
static bulkStateTransistion() {
|
|
482
|
+
return Joi.object({
|
|
483
|
+
body: OrderPlatformModel.BulkStateTransistionRequest().required(),
|
|
484
|
+
}).required();
|
|
485
|
+
}
|
|
486
|
+
|
|
351
487
|
/** @returns {CheckOrderStatusParam} */
|
|
352
488
|
static checkOrderStatus() {
|
|
353
489
|
return Joi.object({
|
|
@@ -380,9 +516,10 @@ class OrderPlatformValidator {
|
|
|
380
516
|
}).required();
|
|
381
517
|
}
|
|
382
518
|
|
|
383
|
-
/** @returns {
|
|
384
|
-
static
|
|
519
|
+
/** @returns {DispatchManifestsParam} */
|
|
520
|
+
static dispatchManifests() {
|
|
385
521
|
return Joi.object({
|
|
522
|
+
manifestId: Joi.string().allow("").required(),
|
|
386
523
|
body: OrderPlatformModel.DispatchManifest().required(),
|
|
387
524
|
}).required();
|
|
388
525
|
}
|
|
@@ -408,6 +545,13 @@ class OrderPlatformValidator {
|
|
|
408
545
|
}).required();
|
|
409
546
|
}
|
|
410
547
|
|
|
548
|
+
/** @returns {FailedOrderLogDetailsParam} */
|
|
549
|
+
static failedOrderLogDetails() {
|
|
550
|
+
return Joi.object({
|
|
551
|
+
logId: Joi.string().allow("").required(),
|
|
552
|
+
}).required();
|
|
553
|
+
}
|
|
554
|
+
|
|
411
555
|
/** @returns {FetchCreditBalanceDetailParam} */
|
|
412
556
|
static fetchCreditBalanceDetail() {
|
|
413
557
|
return Joi.object({
|
|
@@ -422,14 +566,6 @@ class OrderPlatformValidator {
|
|
|
422
566
|
}).required();
|
|
423
567
|
}
|
|
424
568
|
|
|
425
|
-
/** @returns {GenerateInvoiceIDParam} */
|
|
426
|
-
static generateInvoiceID() {
|
|
427
|
-
return Joi.object({
|
|
428
|
-
invoiceType: Joi.string().allow("").required(),
|
|
429
|
-
body: OrderPlatformModel.GenerateInvoiceIDRequest().required(),
|
|
430
|
-
}).required();
|
|
431
|
-
}
|
|
432
|
-
|
|
433
569
|
/** @returns {GeneratePOSReceiptByOrderIdParam} */
|
|
434
570
|
static generatePOSReceiptByOrderId() {
|
|
435
571
|
return Joi.object({
|
|
@@ -447,6 +583,11 @@ class OrderPlatformValidator {
|
|
|
447
583
|
}).required();
|
|
448
584
|
}
|
|
449
585
|
|
|
586
|
+
/** @returns {GetAllowedTemplatesForBulkParam} */
|
|
587
|
+
static getAllowedTemplatesForBulk() {
|
|
588
|
+
return Joi.object({}).required();
|
|
589
|
+
}
|
|
590
|
+
|
|
450
591
|
/** @returns {GetAnnouncementsParam} */
|
|
451
592
|
static getAnnouncements() {
|
|
452
593
|
return Joi.object({
|
|
@@ -488,8 +629,8 @@ class OrderPlatformValidator {
|
|
|
488
629
|
return Joi.object({
|
|
489
630
|
salesChannels: Joi.string().allow(""),
|
|
490
631
|
dpIds: Joi.string().allow(""),
|
|
491
|
-
|
|
492
|
-
|
|
632
|
+
startDate: Joi.string().allow(""),
|
|
633
|
+
endDate: Joi.string().allow(""),
|
|
493
634
|
stores: Joi.string().allow(""),
|
|
494
635
|
tags: Joi.string().allow(""),
|
|
495
636
|
bagStatus: Joi.string().allow(""),
|
|
@@ -506,6 +647,16 @@ class OrderPlatformValidator {
|
|
|
506
647
|
return Joi.object({}).required();
|
|
507
648
|
}
|
|
508
649
|
|
|
650
|
+
/** @returns {GetFileByStatusParam} */
|
|
651
|
+
static getFileByStatus() {
|
|
652
|
+
return Joi.object({
|
|
653
|
+
batchId: Joi.string().allow("").required(),
|
|
654
|
+
status: Joi.string().allow("").required(),
|
|
655
|
+
fileType: Joi.string().allow("").required(),
|
|
656
|
+
reportType: Joi.string().allow(""),
|
|
657
|
+
}).required();
|
|
658
|
+
}
|
|
659
|
+
|
|
509
660
|
/** @returns {GetLaneConfigParam} */
|
|
510
661
|
static getLaneConfig() {
|
|
511
662
|
return Joi.object({
|
|
@@ -513,6 +664,8 @@ class OrderPlatformValidator {
|
|
|
513
664
|
groupEntity: Joi.string().allow(""),
|
|
514
665
|
fromDate: Joi.string().allow(""),
|
|
515
666
|
toDate: Joi.string().allow(""),
|
|
667
|
+
startDate: Joi.string().allow(""),
|
|
668
|
+
endDate: Joi.string().allow(""),
|
|
516
669
|
dpIds: Joi.string().allow(""),
|
|
517
670
|
stores: Joi.string().allow(""),
|
|
518
671
|
salesChannels: Joi.string().allow(""),
|
|
@@ -529,11 +682,57 @@ class OrderPlatformValidator {
|
|
|
529
682
|
}).required();
|
|
530
683
|
}
|
|
531
684
|
|
|
685
|
+
/** @returns {GetManifestDetailsParam} */
|
|
686
|
+
static getManifestDetails() {
|
|
687
|
+
return Joi.object({
|
|
688
|
+
manifestId: Joi.string().allow("").required(),
|
|
689
|
+
}).required();
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/** @returns {GetManifestShipmentsParam} */
|
|
693
|
+
static getManifestShipments() {
|
|
694
|
+
return Joi.object({
|
|
695
|
+
dpIds: Joi.number().required(),
|
|
696
|
+
stores: Joi.string().allow("").required(),
|
|
697
|
+
toDate: Joi.string().allow("").required(),
|
|
698
|
+
fromDate: Joi.string().allow("").required(),
|
|
699
|
+
dpName: Joi.string().allow(""),
|
|
700
|
+
salesChannels: Joi.string().allow(""),
|
|
701
|
+
searchType: Joi.string().allow(""),
|
|
702
|
+
searchValue: Joi.string().allow(""),
|
|
703
|
+
pageNo: Joi.string().allow(""),
|
|
704
|
+
pageSize: Joi.string().allow(""),
|
|
705
|
+
}).required();
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/** @returns {GetManifestfiltersParam} */
|
|
709
|
+
static getManifestfilters() {
|
|
710
|
+
return Joi.object({
|
|
711
|
+
view: Joi.string().allow("").required(),
|
|
712
|
+
}).required();
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/** @returns {GetManifestsParam} */
|
|
716
|
+
static getManifests() {
|
|
717
|
+
return Joi.object({
|
|
718
|
+
status: Joi.string().allow(""),
|
|
719
|
+
startDate: Joi.string().allow(""),
|
|
720
|
+
endDate: Joi.string().allow(""),
|
|
721
|
+
searchType: Joi.string().allow(""),
|
|
722
|
+
storeId: Joi.number(),
|
|
723
|
+
searchValue: Joi.string().allow(""),
|
|
724
|
+
dpIds: Joi.string().allow(""),
|
|
725
|
+
pageNo: Joi.number(),
|
|
726
|
+
pageSize: Joi.number(),
|
|
727
|
+
}).required();
|
|
728
|
+
}
|
|
729
|
+
|
|
532
730
|
/** @returns {GetOrderByIdParam} */
|
|
533
731
|
static getOrderById() {
|
|
534
732
|
return Joi.object({
|
|
535
733
|
orderId: Joi.string().allow("").required(),
|
|
536
734
|
myOrders: Joi.boolean(),
|
|
735
|
+
allowInactive: Joi.boolean(),
|
|
537
736
|
}).required();
|
|
538
737
|
}
|
|
539
738
|
|
|
@@ -549,6 +748,8 @@ class OrderPlatformValidator {
|
|
|
549
748
|
searchValue: Joi.string().allow(""),
|
|
550
749
|
fromDate: Joi.string().allow(""),
|
|
551
750
|
toDate: Joi.string().allow(""),
|
|
751
|
+
startDate: Joi.string().allow(""),
|
|
752
|
+
endDate: Joi.string().allow(""),
|
|
552
753
|
dpIds: Joi.string().allow(""),
|
|
553
754
|
stores: Joi.string().allow(""),
|
|
554
755
|
salesChannels: Joi.string().allow(""),
|
|
@@ -604,6 +805,8 @@ class OrderPlatformValidator {
|
|
|
604
805
|
searchValue: Joi.string().allow(""),
|
|
605
806
|
fromDate: Joi.string().allow(""),
|
|
606
807
|
toDate: Joi.string().allow(""),
|
|
808
|
+
startDate: Joi.string().allow(""),
|
|
809
|
+
endDate: Joi.string().allow(""),
|
|
607
810
|
dpIds: Joi.string().allow(""),
|
|
608
811
|
stores: Joi.string().allow(""),
|
|
609
812
|
salesChannels: Joi.string().allow(""),
|
|
@@ -628,11 +831,63 @@ class OrderPlatformValidator {
|
|
|
628
831
|
}).required();
|
|
629
832
|
}
|
|
630
833
|
|
|
834
|
+
/** @returns {GetStateManagerTaskByIdParam} */
|
|
835
|
+
static getStateManagerTaskById() {
|
|
836
|
+
return Joi.object({
|
|
837
|
+
taskId: Joi.number().required(),
|
|
838
|
+
}).required();
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/** @returns {GetStateManagerTasksParam} */
|
|
842
|
+
static getStateManagerTasks() {
|
|
843
|
+
return Joi.object({
|
|
844
|
+
pageNo: Joi.number(),
|
|
845
|
+
pageSize: Joi.number(),
|
|
846
|
+
}).required();
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/** @returns {GetStateTransitionFiltersParam} */
|
|
850
|
+
static getStateTransitionFilters() {
|
|
851
|
+
return Joi.object({
|
|
852
|
+
pageNo: Joi.number(),
|
|
853
|
+
pageSize: Joi.number(),
|
|
854
|
+
}).required();
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/** @returns {GetStateTransitionFiltersByIdParam} */
|
|
858
|
+
static getStateTransitionFiltersById() {
|
|
859
|
+
return Joi.object({
|
|
860
|
+
filterId: Joi.number().required(),
|
|
861
|
+
}).required();
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/** @returns {GetStateTransitionFlagsParam} */
|
|
865
|
+
static getStateTransitionFlags() {
|
|
866
|
+
return Joi.object({
|
|
867
|
+
pageNo: Joi.number(),
|
|
868
|
+
pageSize: Joi.number(),
|
|
869
|
+
}).required();
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/** @returns {GetStateTransitionFlagsByIdParam} */
|
|
873
|
+
static getStateTransitionFlagsById() {
|
|
874
|
+
return Joi.object({
|
|
875
|
+
flagId: Joi.number().required(),
|
|
876
|
+
}).required();
|
|
877
|
+
}
|
|
878
|
+
|
|
631
879
|
/** @returns {GetStateTransitionMapParam} */
|
|
632
880
|
static getStateTransitionMap() {
|
|
633
881
|
return Joi.object({}).required();
|
|
634
882
|
}
|
|
635
883
|
|
|
884
|
+
/** @returns {GetTemplateParam} */
|
|
885
|
+
static getTemplate() {
|
|
886
|
+
return Joi.object({
|
|
887
|
+
templateName: Joi.string().allow("").required(),
|
|
888
|
+
}).required();
|
|
889
|
+
}
|
|
890
|
+
|
|
636
891
|
/** @returns {GetfiltersParam} */
|
|
637
892
|
static getfilters() {
|
|
638
893
|
return Joi.object({
|
|
@@ -648,6 +903,13 @@ class OrderPlatformValidator {
|
|
|
648
903
|
}).required();
|
|
649
904
|
}
|
|
650
905
|
|
|
906
|
+
/** @returns {JobDetailsParam} */
|
|
907
|
+
static jobDetails() {
|
|
908
|
+
return Joi.object({
|
|
909
|
+
batchId: Joi.string().allow("").required(),
|
|
910
|
+
}).required();
|
|
911
|
+
}
|
|
912
|
+
|
|
651
913
|
/** @returns {OrderUpdateParam} */
|
|
652
914
|
static orderUpdate() {
|
|
653
915
|
return Joi.object({
|
|
@@ -662,10 +924,10 @@ class OrderPlatformValidator {
|
|
|
662
924
|
}).required();
|
|
663
925
|
}
|
|
664
926
|
|
|
665
|
-
/** @returns {
|
|
666
|
-
static
|
|
927
|
+
/** @returns {ProcessManifestsParam} */
|
|
928
|
+
static processManifests() {
|
|
667
929
|
return Joi.object({
|
|
668
|
-
body: OrderPlatformModel.
|
|
930
|
+
body: OrderPlatformModel.ProcessManifest().required(),
|
|
669
931
|
}).required();
|
|
670
932
|
}
|
|
671
933
|
|
|
@@ -746,9 +1008,10 @@ class OrderPlatformValidator {
|
|
|
746
1008
|
}).required();
|
|
747
1009
|
}
|
|
748
1010
|
|
|
749
|
-
/** @returns {
|
|
750
|
-
static
|
|
1011
|
+
/** @returns {UploadConsentsParam} */
|
|
1012
|
+
static uploadConsents() {
|
|
751
1013
|
return Joi.object({
|
|
1014
|
+
manifestId: Joi.string().allow("").required(),
|
|
752
1015
|
body: OrderPlatformModel.UploadConsent().required(),
|
|
753
1016
|
}).required();
|
|
754
1017
|
}
|