@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.3.11-beta.8
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/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 +3630 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +310 -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 +16 -5
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
- 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
|
@@ -13,11 +13,16 @@ const LeadPlatformModel = require("./LeadPlatformModel");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @typedef
|
|
16
|
+
* @typedef CreateNewHistoryParam
|
|
17
17
|
* @property {string} id - Ticket ID for which history is created
|
|
18
18
|
* @property {LeadPlatformModel.TicketHistoryPayload} body
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* @typedef DeleteCustomFormParam
|
|
23
|
+
* @property {string} slug - Slug of form whose response is getting submitted
|
|
24
|
+
*/
|
|
25
|
+
|
|
21
26
|
/**
|
|
22
27
|
* @typedef EditCustomFormParam
|
|
23
28
|
* @property {string} slug - Slug of form whose response is getting submitted
|
|
@@ -25,7 +30,7 @@ const LeadPlatformModel = require("./LeadPlatformModel");
|
|
|
25
30
|
*/
|
|
26
31
|
|
|
27
32
|
/**
|
|
28
|
-
* @typedef
|
|
33
|
+
* @typedef EditNewTicketParam
|
|
29
34
|
* @property {string} id - Ticket ID of ticket to be edited
|
|
30
35
|
* @property {LeadPlatformModel.EditTicketPayload} body
|
|
31
36
|
*/
|
|
@@ -38,17 +43,17 @@ const LeadPlatformModel = require("./LeadPlatformModel");
|
|
|
38
43
|
/** @typedef GetCustomFormsParam */
|
|
39
44
|
|
|
40
45
|
/**
|
|
41
|
-
* @typedef
|
|
46
|
+
* @typedef GetNewTicketParam
|
|
42
47
|
* @property {string} id - Tiket ID of the ticket to be fetched
|
|
43
48
|
*/
|
|
44
49
|
|
|
45
50
|
/**
|
|
46
|
-
* @typedef
|
|
51
|
+
* @typedef GetNewTicketHistoryParam
|
|
47
52
|
* @property {string} id - Ticket ID for which history is to be fetched
|
|
48
53
|
*/
|
|
49
54
|
|
|
50
55
|
/**
|
|
51
|
-
* @typedef
|
|
56
|
+
* @typedef GetNewTicketsParam
|
|
52
57
|
* @property {boolean} [items] - Decides that the reponse will contain the list of tickets
|
|
53
58
|
* @property {boolean} [filters] - Decides that the reponse will contain the
|
|
54
59
|
* ticket filters
|
|
@@ -59,12 +64,12 @@ const LeadPlatformModel = require("./LeadPlatformModel");
|
|
|
59
64
|
*/
|
|
60
65
|
|
|
61
66
|
/**
|
|
62
|
-
* @typedef
|
|
67
|
+
* @typedef GetNewTokenForVideoRoomParam
|
|
63
68
|
* @property {string} uniqueName - Unique name of video room
|
|
64
69
|
*/
|
|
65
70
|
|
|
66
71
|
/**
|
|
67
|
-
* @typedef
|
|
72
|
+
* @typedef GetNewVideoParticipantsParam
|
|
68
73
|
* @property {string} uniqueName - Unique name of Video Room
|
|
69
74
|
*/
|
|
70
75
|
|
|
@@ -88,14 +93,21 @@ class LeadPlatformApplicationValidator {
|
|
|
88
93
|
}).required();
|
|
89
94
|
}
|
|
90
95
|
|
|
91
|
-
/** @returns {
|
|
92
|
-
static
|
|
96
|
+
/** @returns {CreateNewHistoryParam} */
|
|
97
|
+
static createNewHistory() {
|
|
93
98
|
return Joi.object({
|
|
94
99
|
id: Joi.string().allow("").required(),
|
|
95
100
|
body: LeadPlatformModel.TicketHistoryPayload().required(),
|
|
96
101
|
}).required();
|
|
97
102
|
}
|
|
98
103
|
|
|
104
|
+
/** @returns {DeleteCustomFormParam} */
|
|
105
|
+
static deleteCustomForm() {
|
|
106
|
+
return Joi.object({
|
|
107
|
+
slug: Joi.string().allow("").required(),
|
|
108
|
+
}).required();
|
|
109
|
+
}
|
|
110
|
+
|
|
99
111
|
/** @returns {EditCustomFormParam} */
|
|
100
112
|
static editCustomForm() {
|
|
101
113
|
return Joi.object({
|
|
@@ -104,8 +116,8 @@ class LeadPlatformApplicationValidator {
|
|
|
104
116
|
}).required();
|
|
105
117
|
}
|
|
106
118
|
|
|
107
|
-
/** @returns {
|
|
108
|
-
static
|
|
119
|
+
/** @returns {EditNewTicketParam} */
|
|
120
|
+
static editNewTicket() {
|
|
109
121
|
return Joi.object({
|
|
110
122
|
id: Joi.string().allow("").required(),
|
|
111
123
|
body: LeadPlatformModel.EditTicketPayload().required(),
|
|
@@ -124,22 +136,22 @@ class LeadPlatformApplicationValidator {
|
|
|
124
136
|
return Joi.object({}).required();
|
|
125
137
|
}
|
|
126
138
|
|
|
127
|
-
/** @returns {
|
|
128
|
-
static
|
|
139
|
+
/** @returns {GetNewTicketParam} */
|
|
140
|
+
static getNewTicket() {
|
|
129
141
|
return Joi.object({
|
|
130
142
|
id: Joi.string().allow("").required(),
|
|
131
143
|
}).required();
|
|
132
144
|
}
|
|
133
145
|
|
|
134
|
-
/** @returns {
|
|
135
|
-
static
|
|
146
|
+
/** @returns {GetNewTicketHistoryParam} */
|
|
147
|
+
static getNewTicketHistory() {
|
|
136
148
|
return Joi.object({
|
|
137
149
|
id: Joi.string().allow("").required(),
|
|
138
150
|
}).required();
|
|
139
151
|
}
|
|
140
152
|
|
|
141
|
-
/** @returns {
|
|
142
|
-
static
|
|
153
|
+
/** @returns {GetNewTicketsParam} */
|
|
154
|
+
static getNewTickets() {
|
|
143
155
|
return Joi.object({
|
|
144
156
|
items: Joi.boolean(),
|
|
145
157
|
filters: Joi.boolean(),
|
|
@@ -150,15 +162,15 @@ class LeadPlatformApplicationValidator {
|
|
|
150
162
|
}).required();
|
|
151
163
|
}
|
|
152
164
|
|
|
153
|
-
/** @returns {
|
|
154
|
-
static
|
|
165
|
+
/** @returns {GetNewTokenForVideoRoomParam} */
|
|
166
|
+
static getNewTokenForVideoRoom() {
|
|
155
167
|
return Joi.object({
|
|
156
168
|
uniqueName: Joi.string().allow("").required(),
|
|
157
169
|
}).required();
|
|
158
170
|
}
|
|
159
171
|
|
|
160
|
-
/** @returns {
|
|
161
|
-
static
|
|
172
|
+
/** @returns {GetNewVideoParticipantsParam} */
|
|
173
|
+
static getNewVideoParticipants() {
|
|
162
174
|
return Joi.object({
|
|
163
175
|
uniqueName: Joi.string().allow("").required(),
|
|
164
176
|
}).required();
|
|
@@ -105,6 +105,10 @@ export = LeadPlatformModel;
|
|
|
105
105
|
* @property {boolean} [primary] - Denotes it's the primary email for the account
|
|
106
106
|
* @property {boolean} [verified] - Denotes it's a verified email
|
|
107
107
|
*/
|
|
108
|
+
/**
|
|
109
|
+
* @typedef ErrorMessage
|
|
110
|
+
* @property {string} [message]
|
|
111
|
+
*/
|
|
108
112
|
/**
|
|
109
113
|
* @typedef FeedbackForm
|
|
110
114
|
* @property {Object} [inputs] - Input details for the feed back form
|
|
@@ -301,7 +305,7 @@ export = LeadPlatformModel;
|
|
|
301
305
|
* @property {string} [user_id]
|
|
302
306
|
* @property {string} [username]
|
|
303
307
|
*/
|
|
304
|
-
/** @typedef {"rating" | "log" | "comment"} HistoryTypeEnum */
|
|
308
|
+
/** @typedef {"rating" | "log" | "comment" | "thread"} HistoryTypeEnum */
|
|
305
309
|
/** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
|
|
306
310
|
/**
|
|
307
311
|
* @typedef {| "image"
|
|
@@ -318,7 +322,7 @@ export = LeadPlatformModel;
|
|
|
318
322
|
declare class LeadPlatformModel {
|
|
319
323
|
}
|
|
320
324
|
declare namespace LeadPlatformModel {
|
|
321
|
-
export { AddTicketPayload, AgentChangePayload, CloseVideoRoomResponse, CreateCustomFormPayload, CreatedOn, CreateVideoRoomPayload, CreateVideoRoomResponse, CustomForm, CustomFormList, Debug, EditCustomFormPayload, EditTicketPayload, Email, FeedbackForm, FeedbackResponseItem, Filter, GetParticipantsInsideVideoRoomResponse, GetTokenForVideoRoomResponse, NotifyUser, Page, Participant, PhoneNumber, PollForAssignment, Priority, Status, SubmitButton, Ticket, TicketAsset, TicketCategory, TicketContent, TicketContext, TicketFeedback, TicketFeedbackList, TicketFeedbackPayload, TicketHistory, TicketHistoryList, TicketHistoryPayload, TicketList, UserSchema, HistoryTypeEnum, PriorityEnum, TicketAssetTypeEnum, TicketSourceEnum };
|
|
325
|
+
export { AddTicketPayload, AgentChangePayload, CloseVideoRoomResponse, CreateCustomFormPayload, CreatedOn, CreateVideoRoomPayload, CreateVideoRoomResponse, CustomForm, CustomFormList, Debug, EditCustomFormPayload, EditTicketPayload, Email, ErrorMessage, FeedbackForm, FeedbackResponseItem, Filter, GetParticipantsInsideVideoRoomResponse, GetTokenForVideoRoomResponse, NotifyUser, Page, Participant, PhoneNumber, PollForAssignment, Priority, Status, SubmitButton, Ticket, TicketAsset, TicketCategory, TicketContent, TicketContext, TicketFeedback, TicketFeedbackList, TicketFeedbackPayload, TicketHistory, TicketHistoryList, TicketHistoryPayload, TicketList, UserSchema, HistoryTypeEnum, PriorityEnum, TicketAssetTypeEnum, TicketSourceEnum };
|
|
322
326
|
}
|
|
323
327
|
/** @returns {AddTicketPayload} */
|
|
324
328
|
declare function AddTicketPayload(): AddTicketPayload;
|
|
@@ -577,6 +581,11 @@ type Email = {
|
|
|
577
581
|
*/
|
|
578
582
|
verified?: boolean;
|
|
579
583
|
};
|
|
584
|
+
/** @returns {ErrorMessage} */
|
|
585
|
+
declare function ErrorMessage(): ErrorMessage;
|
|
586
|
+
type ErrorMessage = {
|
|
587
|
+
message?: string;
|
|
588
|
+
};
|
|
580
589
|
/** @returns {FeedbackForm} */
|
|
581
590
|
declare function FeedbackForm(): FeedbackForm;
|
|
582
591
|
type FeedbackForm = {
|
|
@@ -1024,7 +1033,7 @@ type UserSchema = {
|
|
|
1024
1033
|
* @returns {HistoryTypeEnum}
|
|
1025
1034
|
*/
|
|
1026
1035
|
declare function HistoryTypeEnum(): HistoryTypeEnum;
|
|
1027
|
-
type HistoryTypeEnum = "rating" | "log" | "comment";
|
|
1036
|
+
type HistoryTypeEnum = "rating" | "log" | "comment" | "thread";
|
|
1028
1037
|
/**
|
|
1029
1038
|
* Enum: PriorityEnum Used By: Lead
|
|
1030
1039
|
*
|
|
@@ -119,6 +119,11 @@ const Joi = require("joi");
|
|
|
119
119
|
* @property {boolean} [verified] - Denotes it's a verified email
|
|
120
120
|
*/
|
|
121
121
|
|
|
122
|
+
/**
|
|
123
|
+
* @typedef ErrorMessage
|
|
124
|
+
* @property {string} [message]
|
|
125
|
+
*/
|
|
126
|
+
|
|
122
127
|
/**
|
|
123
128
|
* @typedef FeedbackForm
|
|
124
129
|
* @property {Object} [inputs] - Input details for the feed back form
|
|
@@ -341,7 +346,7 @@ const Joi = require("joi");
|
|
|
341
346
|
* @property {string} [username]
|
|
342
347
|
*/
|
|
343
348
|
|
|
344
|
-
/** @typedef {"rating" | "log" | "comment"} HistoryTypeEnum */
|
|
349
|
+
/** @typedef {"rating" | "log" | "comment" | "thread"} HistoryTypeEnum */
|
|
345
350
|
|
|
346
351
|
/** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
|
|
347
352
|
|
|
@@ -498,6 +503,13 @@ class LeadPlatformModel {
|
|
|
498
503
|
});
|
|
499
504
|
}
|
|
500
505
|
|
|
506
|
+
/** @returns {ErrorMessage} */
|
|
507
|
+
static ErrorMessage() {
|
|
508
|
+
return Joi.object({
|
|
509
|
+
message: Joi.string().allow(""),
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
|
|
501
513
|
/** @returns {FeedbackForm} */
|
|
502
514
|
static FeedbackForm() {
|
|
503
515
|
return Joi.object({
|
|
@@ -784,7 +796,9 @@ class LeadPlatformModel {
|
|
|
784
796
|
|
|
785
797
|
"log",
|
|
786
798
|
|
|
787
|
-
"comment"
|
|
799
|
+
"comment",
|
|
800
|
+
|
|
801
|
+
"thread"
|
|
788
802
|
);
|
|
789
803
|
}
|
|
790
804
|
|
|
@@ -3,6 +3,16 @@ declare class Order {
|
|
|
3
3
|
constructor(config: any, applicationId: any);
|
|
4
4
|
config: any;
|
|
5
5
|
applicationId: any;
|
|
6
|
+
/**
|
|
7
|
+
* @param {OrderPlatformApplicationValidator.FailedOrderLogsParam} arg - Arg object
|
|
8
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
9
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
10
|
+
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
11
|
+
* @name failedOrderLogs
|
|
12
|
+
* @summary: Get failed order logs according to the filter provided
|
|
13
|
+
* @description: This endpoint allows users to get failed order logs listing for filters based on order id, user contact number, user email id and sales channel id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogs/).
|
|
14
|
+
*/
|
|
15
|
+
failedOrderLogs({ pageNo, pageSize, searchType, searchValue, requestHeaders }?: OrderPlatformApplicationValidator.FailedOrderLogsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.FailedOrderLogs>;
|
|
6
16
|
/**
|
|
7
17
|
* @param {OrderPlatformApplicationValidator.GetApplicationShipmentsParam} arg
|
|
8
18
|
* - Arg object
|
|
@@ -14,7 +24,7 @@ declare class Order {
|
|
|
14
24
|
*
|
|
15
25
|
* @name getApplicationShipments
|
|
16
26
|
* @summary:
|
|
17
|
-
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getApplicationShipments/).
|
|
27
|
+
* @description: Get cross selling platform shipments - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getApplicationShipments/).
|
|
18
28
|
*/
|
|
19
29
|
getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>;
|
|
20
30
|
/**
|
|
@@ -41,6 +51,18 @@ declare class Order {
|
|
|
41
51
|
* @description: Use this API to retrieve the issues that led to the cancellation of bags within a shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
|
|
42
52
|
*/
|
|
43
53
|
getShipmentBagReasons({ shipmentId, lineNumber, requestHeaders }?: OrderPlatformApplicationValidator.GetShipmentBagReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentBagReasons>;
|
|
54
|
+
/**
|
|
55
|
+
* @param {OrderPlatformApplicationValidator.GetStateManagerStatesParam} arg
|
|
56
|
+
* - Arg object
|
|
57
|
+
*
|
|
58
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
59
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
60
|
+
* @returns {Promise<OrderPlatformModel.PaginatedStates>} - Success response
|
|
61
|
+
* @name getStateManagerStates
|
|
62
|
+
* @summary: Get all states for a company and channel
|
|
63
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getStateManagerStates/).
|
|
64
|
+
*/
|
|
65
|
+
getStateManagerStates({ pageNo, pageSize, requestHeaders }?: OrderPlatformApplicationValidator.GetStateManagerStatesParam, { responseHeaders }?: object): Promise<OrderPlatformModel.PaginatedStates>;
|
|
44
66
|
/**
|
|
45
67
|
* @param {OrderPlatformApplicationValidator.TrackShipmentPlatformParam} arg
|
|
46
68
|
* - Arg object
|
|
@@ -12,6 +12,98 @@ class Order {
|
|
|
12
12
|
this.applicationId = applicationId;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @param {OrderPlatformApplicationValidator.FailedOrderLogsParam} arg - Arg object
|
|
17
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
18
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
19
|
+
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
20
|
+
* @name failedOrderLogs
|
|
21
|
+
* @summary: Get failed order logs according to the filter provided
|
|
22
|
+
* @description: This endpoint allows users to get failed order logs listing for filters based on order id, user contact number, user email id and sales channel id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogs/).
|
|
23
|
+
*/
|
|
24
|
+
async failedOrderLogs(
|
|
25
|
+
{ pageNo, pageSize, searchType, searchValue, requestHeaders } = {
|
|
26
|
+
requestHeaders: {},
|
|
27
|
+
},
|
|
28
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
29
|
+
) {
|
|
30
|
+
const {
|
|
31
|
+
error,
|
|
32
|
+
} = OrderPlatformApplicationValidator.failedOrderLogs().validate(
|
|
33
|
+
{
|
|
34
|
+
pageNo,
|
|
35
|
+
pageSize,
|
|
36
|
+
searchType,
|
|
37
|
+
searchValue,
|
|
38
|
+
},
|
|
39
|
+
{ abortEarly: false, allowUnknown: true }
|
|
40
|
+
);
|
|
41
|
+
if (error) {
|
|
42
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Showing warrnings if extra unknown parameters are found
|
|
46
|
+
const {
|
|
47
|
+
error: warrning,
|
|
48
|
+
} = OrderPlatformApplicationValidator.failedOrderLogs().validate(
|
|
49
|
+
{
|
|
50
|
+
pageNo,
|
|
51
|
+
pageSize,
|
|
52
|
+
searchType,
|
|
53
|
+
searchValue,
|
|
54
|
+
},
|
|
55
|
+
{ abortEarly: false, allowUnknown: false }
|
|
56
|
+
);
|
|
57
|
+
if (warrning) {
|
|
58
|
+
Logger({
|
|
59
|
+
level: "WARN",
|
|
60
|
+
message: `Parameter Validation warrnings for platform > Order > failedOrderLogs \n ${warrning}`,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const query_params = {};
|
|
65
|
+
query_params["application_id"] = applicationId;
|
|
66
|
+
query_params["page_no"] = pageNo;
|
|
67
|
+
query_params["page_size"] = pageSize;
|
|
68
|
+
query_params["search_type"] = searchType;
|
|
69
|
+
query_params["search_value"] = searchValue;
|
|
70
|
+
|
|
71
|
+
const response = await PlatformAPIClient.execute(
|
|
72
|
+
this.config,
|
|
73
|
+
"get",
|
|
74
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/orders/failed`,
|
|
75
|
+
query_params,
|
|
76
|
+
undefined,
|
|
77
|
+
requestHeaders,
|
|
78
|
+
{ responseHeaders }
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
let responseData = response;
|
|
82
|
+
if (responseHeaders) {
|
|
83
|
+
responseData = response[0];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const {
|
|
87
|
+
error: res_error,
|
|
88
|
+
} = OrderPlatformModel.FailedOrderLogs().validate(responseData, {
|
|
89
|
+
abortEarly: false,
|
|
90
|
+
allowUnknown: true,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
if (res_error) {
|
|
94
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
95
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
96
|
+
} else {
|
|
97
|
+
Logger({
|
|
98
|
+
level: "WARN",
|
|
99
|
+
message: `Response Validation Warnings for platform > Order > failedOrderLogs \n ${res_error}`,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return response;
|
|
105
|
+
}
|
|
106
|
+
|
|
15
107
|
/**
|
|
16
108
|
* @param {OrderPlatformApplicationValidator.GetApplicationShipmentsParam} arg
|
|
17
109
|
* - Arg object
|
|
@@ -23,7 +115,7 @@ class Order {
|
|
|
23
115
|
*
|
|
24
116
|
* @name getApplicationShipments
|
|
25
117
|
* @summary:
|
|
26
|
-
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getApplicationShipments/).
|
|
118
|
+
* @description: Get cross selling platform shipments - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getApplicationShipments/).
|
|
27
119
|
*/
|
|
28
120
|
async getApplicationShipments(
|
|
29
121
|
{
|
|
@@ -319,6 +411,91 @@ class Order {
|
|
|
319
411
|
return response;
|
|
320
412
|
}
|
|
321
413
|
|
|
414
|
+
/**
|
|
415
|
+
* @param {OrderPlatformApplicationValidator.GetStateManagerStatesParam} arg
|
|
416
|
+
* - Arg object
|
|
417
|
+
*
|
|
418
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
419
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
420
|
+
* @returns {Promise<OrderPlatformModel.PaginatedStates>} - Success response
|
|
421
|
+
* @name getStateManagerStates
|
|
422
|
+
* @summary: Get all states for a company and channel
|
|
423
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getStateManagerStates/).
|
|
424
|
+
*/
|
|
425
|
+
async getStateManagerStates(
|
|
426
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
427
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
428
|
+
) {
|
|
429
|
+
const {
|
|
430
|
+
error,
|
|
431
|
+
} = OrderPlatformApplicationValidator.getStateManagerStates().validate(
|
|
432
|
+
{
|
|
433
|
+
pageNo,
|
|
434
|
+
pageSize,
|
|
435
|
+
},
|
|
436
|
+
{ abortEarly: false, allowUnknown: true }
|
|
437
|
+
);
|
|
438
|
+
if (error) {
|
|
439
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// Showing warrnings if extra unknown parameters are found
|
|
443
|
+
const {
|
|
444
|
+
error: warrning,
|
|
445
|
+
} = OrderPlatformApplicationValidator.getStateManagerStates().validate(
|
|
446
|
+
{
|
|
447
|
+
pageNo,
|
|
448
|
+
pageSize,
|
|
449
|
+
},
|
|
450
|
+
{ abortEarly: false, allowUnknown: false }
|
|
451
|
+
);
|
|
452
|
+
if (warrning) {
|
|
453
|
+
Logger({
|
|
454
|
+
level: "WARN",
|
|
455
|
+
message: `Parameter Validation warrnings for platform > Order > getStateManagerStates \n ${warrning}`,
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
const query_params = {};
|
|
460
|
+
query_params["page_no"] = pageNo;
|
|
461
|
+
query_params["page_size"] = pageSize;
|
|
462
|
+
|
|
463
|
+
const response = await PlatformAPIClient.execute(
|
|
464
|
+
this.config,
|
|
465
|
+
"get",
|
|
466
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/states`,
|
|
467
|
+
query_params,
|
|
468
|
+
undefined,
|
|
469
|
+
requestHeaders,
|
|
470
|
+
{ responseHeaders }
|
|
471
|
+
);
|
|
472
|
+
|
|
473
|
+
let responseData = response;
|
|
474
|
+
if (responseHeaders) {
|
|
475
|
+
responseData = response[0];
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
const {
|
|
479
|
+
error: res_error,
|
|
480
|
+
} = OrderPlatformModel.PaginatedStates().validate(responseData, {
|
|
481
|
+
abortEarly: false,
|
|
482
|
+
allowUnknown: true,
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
if (res_error) {
|
|
486
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
487
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
488
|
+
} else {
|
|
489
|
+
Logger({
|
|
490
|
+
level: "WARN",
|
|
491
|
+
message: `Response Validation Warnings for platform > Order > getStateManagerStates \n ${res_error}`,
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
return response;
|
|
497
|
+
}
|
|
498
|
+
|
|
322
499
|
/**
|
|
323
500
|
* @param {OrderPlatformApplicationValidator.TrackShipmentPlatformParam} arg
|
|
324
501
|
* - Arg object
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export = OrderPlatformApplicationValidator;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef FailedOrderLogsParam
|
|
4
|
+
* @property {number} [pageNo] - Page Number
|
|
5
|
+
* @property {number} [pageSize] - Page Size
|
|
6
|
+
* @property {string} [searchType] - Search type for filter
|
|
7
|
+
* @property {string} [searchValue] - Search value for filter
|
|
8
|
+
*/
|
|
2
9
|
/**
|
|
3
10
|
* @typedef GetApplicationShipmentsParam
|
|
4
11
|
* @property {string} [lane]
|
|
@@ -27,23 +34,50 @@ export = OrderPlatformApplicationValidator;
|
|
|
27
34
|
* items and may get divided into one or more shipment, each having its own ID.
|
|
28
35
|
* @property {number} lineNumber - Line number of bag.
|
|
29
36
|
*/
|
|
37
|
+
/**
|
|
38
|
+
* @typedef GetStateManagerStatesParam
|
|
39
|
+
* @property {number} [pageNo]
|
|
40
|
+
* @property {number} [pageSize]
|
|
41
|
+
*/
|
|
30
42
|
/**
|
|
31
43
|
* @typedef TrackShipmentPlatformParam
|
|
32
44
|
* @property {string} shipmentId - Shipment Id
|
|
33
45
|
*/
|
|
34
46
|
declare class OrderPlatformApplicationValidator {
|
|
47
|
+
/** @returns {FailedOrderLogsParam} */
|
|
48
|
+
static failedOrderLogs(): FailedOrderLogsParam;
|
|
35
49
|
/** @returns {GetApplicationShipmentsParam} */
|
|
36
50
|
static getApplicationShipments(): GetApplicationShipmentsParam;
|
|
37
51
|
/** @returns {GetPlatformShipmentReasonsParam} */
|
|
38
52
|
static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam;
|
|
39
53
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
40
54
|
static getShipmentBagReasons(): GetShipmentBagReasonsParam;
|
|
55
|
+
/** @returns {GetStateManagerStatesParam} */
|
|
56
|
+
static getStateManagerStates(): GetStateManagerStatesParam;
|
|
41
57
|
/** @returns {TrackShipmentPlatformParam} */
|
|
42
58
|
static trackShipmentPlatform(): TrackShipmentPlatformParam;
|
|
43
59
|
}
|
|
44
60
|
declare namespace OrderPlatformApplicationValidator {
|
|
45
|
-
export { GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
61
|
+
export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, GetStateManagerStatesParam, TrackShipmentPlatformParam };
|
|
46
62
|
}
|
|
63
|
+
type FailedOrderLogsParam = {
|
|
64
|
+
/**
|
|
65
|
+
* - Page Number
|
|
66
|
+
*/
|
|
67
|
+
pageNo?: number;
|
|
68
|
+
/**
|
|
69
|
+
* - Page Size
|
|
70
|
+
*/
|
|
71
|
+
pageSize?: number;
|
|
72
|
+
/**
|
|
73
|
+
* - Search type for filter
|
|
74
|
+
*/
|
|
75
|
+
searchType?: string;
|
|
76
|
+
/**
|
|
77
|
+
* - Search value for filter
|
|
78
|
+
*/
|
|
79
|
+
searchValue?: string;
|
|
80
|
+
};
|
|
47
81
|
type GetApplicationShipmentsParam = {
|
|
48
82
|
lane?: string;
|
|
49
83
|
searchType?: string;
|
|
@@ -75,6 +109,10 @@ type GetShipmentBagReasonsParam = {
|
|
|
75
109
|
*/
|
|
76
110
|
lineNumber: number;
|
|
77
111
|
};
|
|
112
|
+
type GetStateManagerStatesParam = {
|
|
113
|
+
pageNo?: number;
|
|
114
|
+
pageSize?: number;
|
|
115
|
+
};
|
|
78
116
|
type TrackShipmentPlatformParam = {
|
|
79
117
|
/**
|
|
80
118
|
* - Shipment Id
|
|
@@ -2,6 +2,14 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const OrderPlatformModel = require("./OrderPlatformModel");
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @typedef FailedOrderLogsParam
|
|
7
|
+
* @property {number} [pageNo] - Page Number
|
|
8
|
+
* @property {number} [pageSize] - Page Size
|
|
9
|
+
* @property {string} [searchType] - Search type for filter
|
|
10
|
+
* @property {string} [searchValue] - Search value for filter
|
|
11
|
+
*/
|
|
12
|
+
|
|
5
13
|
/**
|
|
6
14
|
* @typedef GetApplicationShipmentsParam
|
|
7
15
|
* @property {string} [lane]
|
|
@@ -33,12 +41,28 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
33
41
|
* @property {number} lineNumber - Line number of bag.
|
|
34
42
|
*/
|
|
35
43
|
|
|
44
|
+
/**
|
|
45
|
+
* @typedef GetStateManagerStatesParam
|
|
46
|
+
* @property {number} [pageNo]
|
|
47
|
+
* @property {number} [pageSize]
|
|
48
|
+
*/
|
|
49
|
+
|
|
36
50
|
/**
|
|
37
51
|
* @typedef TrackShipmentPlatformParam
|
|
38
52
|
* @property {string} shipmentId - Shipment Id
|
|
39
53
|
*/
|
|
40
54
|
|
|
41
55
|
class OrderPlatformApplicationValidator {
|
|
56
|
+
/** @returns {FailedOrderLogsParam} */
|
|
57
|
+
static failedOrderLogs() {
|
|
58
|
+
return Joi.object({
|
|
59
|
+
pageNo: Joi.number(),
|
|
60
|
+
pageSize: Joi.number(),
|
|
61
|
+
searchType: Joi.string().allow(""),
|
|
62
|
+
searchValue: Joi.string().allow(""),
|
|
63
|
+
}).required();
|
|
64
|
+
}
|
|
65
|
+
|
|
42
66
|
/** @returns {GetApplicationShipmentsParam} */
|
|
43
67
|
static getApplicationShipments() {
|
|
44
68
|
return Joi.object({
|
|
@@ -75,6 +99,14 @@ class OrderPlatformApplicationValidator {
|
|
|
75
99
|
}).required();
|
|
76
100
|
}
|
|
77
101
|
|
|
102
|
+
/** @returns {GetStateManagerStatesParam} */
|
|
103
|
+
static getStateManagerStates() {
|
|
104
|
+
return Joi.object({
|
|
105
|
+
pageNo: Joi.number(),
|
|
106
|
+
pageSize: Joi.number(),
|
|
107
|
+
}).required();
|
|
108
|
+
}
|
|
109
|
+
|
|
78
110
|
/** @returns {TrackShipmentPlatformParam} */
|
|
79
111
|
static trackShipmentPlatform() {
|
|
80
112
|
return Joi.object({
|