@gofynd/fdk-client-javascript 1.4.7 → 1.4.8-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
- package/sdk/application/Cart/CartApplicationClient.js +118 -13
- package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
- package/sdk/application/Cart/CartApplicationModel.js +98 -26
- package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
- package/sdk/application/Cart/CartApplicationValidator.js +26 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.js +5 -3
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -18
- package/sdk/application/Content/ContentApplicationModel.js +4 -20
- package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationValidator.js +4 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
- package/sdk/application/Lead/LeadApplicationClient.js +0 -167
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
- package/sdk/application/Lead/LeadApplicationModel.js +0 -126
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
- package/sdk/application/Order/OrderApplicationModel.js +2 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
- package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
- package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
- package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
- package/sdk/platform/Cart/CartPlatformModel.js +164 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +6 -4
- package/sdk/platform/Content/ContentPlatformModel.js +6 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
- package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
- package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
- package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
- package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
- package/sdk/platform/Order/OrderPlatformModel.d.ts +108 -15
- package/sdk/platform/Order/OrderPlatformModel.js +47 -14
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +112 -164
- package/sdk/platform/Webhook/WebhookPlatformModel.js +118 -169
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
- package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
- package/sdk/public/Billing/BillingPublicClient.js +156 -3
- package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
- package/sdk/public/Billing/BillingPublicModel.js +317 -18
- package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
- package/sdk/public/Billing/BillingPublicValidator.js +22 -3
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +22 -22
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @typedef GeneralConfigResponse
|
|
5
|
+
* @property {string} [_id]
|
|
6
|
+
* @property {SupportCommunicationSchema[]} [support_communication]
|
|
7
|
+
* @property {boolean} [show_communication_info]
|
|
8
|
+
* @property {boolean} [show_support_dris]
|
|
9
|
+
* @property {string} [type]
|
|
10
|
+
* @property {GeneralConfigIntegrationSchema} [integration]
|
|
11
|
+
* @property {boolean} [allow_ticket_creation]
|
|
12
|
+
* @property {boolean} [show_listing]
|
|
13
|
+
* @property {string[]} [available_integration]
|
|
14
|
+
* @property {boolean} [enable_dris]
|
|
15
|
+
* @property {SupportSchema} [support_email]
|
|
16
|
+
* @property {SupportSchema} [support_phone]
|
|
17
|
+
* @property {SupportSchema} [support_faq]
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef SupportCommunicationSchema
|
|
22
|
+
* @property {string} [type]
|
|
23
|
+
* @property {string} [title]
|
|
24
|
+
* @property {string} [description]
|
|
25
|
+
* @property {boolean} [enabled]
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @typedef SupportSchema
|
|
30
|
+
* @property {string} [value]
|
|
31
|
+
* @property {string} [description]
|
|
32
|
+
* @property {boolean} [enabled]
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef GeneralConfigIntegrationSchema
|
|
37
|
+
* @property {string} [type]
|
|
38
|
+
*/
|
|
39
|
+
|
|
3
40
|
/**
|
|
4
41
|
* @typedef TicketList
|
|
5
42
|
* @property {Ticket[]} [items] - List of tickets
|
|
@@ -77,28 +114,6 @@ const Joi = require("joi");
|
|
|
77
114
|
* @property {string} agent_id - Agent's unique ID
|
|
78
115
|
*/
|
|
79
116
|
|
|
80
|
-
/**
|
|
81
|
-
* @typedef CreateVideoRoomResponse
|
|
82
|
-
* @property {string} unique_name - Video Room's unique name
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @typedef CloseVideoRoomResponse
|
|
87
|
-
* @property {boolean} success - Denotes if operation was successfully
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @typedef CreateVideoRoomPayload
|
|
92
|
-
* @property {string} unique_name - Ticket id
|
|
93
|
-
* @property {NotifyUser[]} [notify] - List of people to be notified
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @typedef NotifyUser
|
|
98
|
-
* @property {string} country_code - Country code
|
|
99
|
-
* @property {string} phone_number - Phone number
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
117
|
/**
|
|
103
118
|
* @typedef Filter
|
|
104
119
|
* @property {Priority[]} priorities - List of possible priorities for tickets
|
|
@@ -113,45 +128,6 @@ const Joi = require("joi");
|
|
|
113
128
|
* @property {HistoryTypeEnum} type
|
|
114
129
|
*/
|
|
115
130
|
|
|
116
|
-
/**
|
|
117
|
-
* @typedef GetTokenForVideoRoomResponse
|
|
118
|
-
* @property {string} access_token - Access token to be used for video room
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @typedef GetParticipantsInsideVideoRoomResponse
|
|
123
|
-
* @property {Participant[]} participants - List of participants of the video room
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @typedef Participant
|
|
128
|
-
* @property {UserSchema} [user]
|
|
129
|
-
* @property {string} [identity] - Unique identifier of participant
|
|
130
|
-
* @property {string} [status] - Status of participant
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @typedef UserSchema
|
|
135
|
-
* @property {string} [application_id]
|
|
136
|
-
* @property {string} [user_id]
|
|
137
|
-
* @property {string} [first_name]
|
|
138
|
-
* @property {Object} [meta]
|
|
139
|
-
* @property {string} [last_name]
|
|
140
|
-
* @property {PhoneNumber[]} [phone_numbers]
|
|
141
|
-
* @property {Email[]} [emails]
|
|
142
|
-
* @property {string} [gender]
|
|
143
|
-
* @property {string} [dob]
|
|
144
|
-
* @property {boolean} [active]
|
|
145
|
-
* @property {string} [profile_pic_url]
|
|
146
|
-
* @property {string} [username]
|
|
147
|
-
* @property {string} [account_type]
|
|
148
|
-
* @property {string} [_id]
|
|
149
|
-
* @property {string} [created_at]
|
|
150
|
-
* @property {string} [updated_at]
|
|
151
|
-
* @property {string} [external_id]
|
|
152
|
-
* @property {string} [rr_id]
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
131
|
/**
|
|
156
132
|
* @typedef TicketContext
|
|
157
133
|
* @property {string} [application_id] - Application ID related to the ticket
|
|
@@ -194,6 +170,11 @@ const Joi = require("joi");
|
|
|
194
170
|
* @property {string} color - Color for priority
|
|
195
171
|
*/
|
|
196
172
|
|
|
173
|
+
/**
|
|
174
|
+
* @typedef SLA
|
|
175
|
+
* @property {string} resolution_time
|
|
176
|
+
*/
|
|
177
|
+
|
|
197
178
|
/**
|
|
198
179
|
* @typedef Status
|
|
199
180
|
* @property {string} key - Key for status
|
|
@@ -307,6 +288,7 @@ const Joi = require("joi");
|
|
|
307
288
|
* @property {TicketSourceEnum} source
|
|
308
289
|
* @property {Status} status
|
|
309
290
|
* @property {Priority} priority
|
|
291
|
+
* @property {SLA} [sla]
|
|
310
292
|
* @property {Object} [created_by] - User details of ticket creator
|
|
311
293
|
* @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
|
|
312
294
|
* @property {string[]} [tags] - Tags relevant to ticket
|
|
@@ -324,23 +306,6 @@ const Joi = require("joi");
|
|
|
324
306
|
* @property {string} [message]
|
|
325
307
|
*/
|
|
326
308
|
|
|
327
|
-
/**
|
|
328
|
-
* @typedef PhoneNumber
|
|
329
|
-
* @property {string} [phone] - Phone number
|
|
330
|
-
* @property {number} [country_code] - Country code
|
|
331
|
-
* @property {boolean} [active] - Is the phone number active
|
|
332
|
-
* @property {boolean} [primary] - Is it a primary phone number
|
|
333
|
-
* @property {boolean} [verified] - Is the phone number verified
|
|
334
|
-
*/
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* @typedef Email
|
|
338
|
-
* @property {string} [email] - Email address
|
|
339
|
-
* @property {boolean} [active] - Is the email active
|
|
340
|
-
* @property {boolean} [primary] - Is it a primary email
|
|
341
|
-
* @property {boolean} [verified] - Is the email verified
|
|
342
|
-
*/
|
|
343
|
-
|
|
344
309
|
/** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
|
|
345
310
|
|
|
346
311
|
/** @typedef {"rating" | "log" | "comment" | "thread"} HistoryTypeEnum */
|
|
@@ -360,6 +325,53 @@ const Joi = require("joi");
|
|
|
360
325
|
/** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
|
|
361
326
|
|
|
362
327
|
class LeadPlatformModel {
|
|
328
|
+
/** @returns {GeneralConfigResponse} */
|
|
329
|
+
static GeneralConfigResponse() {
|
|
330
|
+
return Joi.object({
|
|
331
|
+
_id: Joi.string().allow(""),
|
|
332
|
+
support_communication: Joi.array().items(
|
|
333
|
+
LeadPlatformModel.SupportCommunicationSchema()
|
|
334
|
+
),
|
|
335
|
+
show_communication_info: Joi.boolean(),
|
|
336
|
+
show_support_dris: Joi.boolean(),
|
|
337
|
+
type: Joi.string().allow(""),
|
|
338
|
+
integration: LeadPlatformModel.GeneralConfigIntegrationSchema(),
|
|
339
|
+
allow_ticket_creation: Joi.boolean(),
|
|
340
|
+
show_listing: Joi.boolean(),
|
|
341
|
+
available_integration: Joi.array().items(Joi.string().allow("")),
|
|
342
|
+
enable_dris: Joi.boolean(),
|
|
343
|
+
support_email: LeadPlatformModel.SupportSchema(),
|
|
344
|
+
support_phone: LeadPlatformModel.SupportSchema(),
|
|
345
|
+
support_faq: LeadPlatformModel.SupportSchema(),
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/** @returns {SupportCommunicationSchema} */
|
|
350
|
+
static SupportCommunicationSchema() {
|
|
351
|
+
return Joi.object({
|
|
352
|
+
type: Joi.string().allow(""),
|
|
353
|
+
title: Joi.string().allow(""),
|
|
354
|
+
description: Joi.string().allow(""),
|
|
355
|
+
enabled: Joi.boolean(),
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/** @returns {SupportSchema} */
|
|
360
|
+
static SupportSchema() {
|
|
361
|
+
return Joi.object({
|
|
362
|
+
value: Joi.string().allow(""),
|
|
363
|
+
description: Joi.string().allow(""),
|
|
364
|
+
enabled: Joi.boolean(),
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/** @returns {GeneralConfigIntegrationSchema} */
|
|
369
|
+
static GeneralConfigIntegrationSchema() {
|
|
370
|
+
return Joi.object({
|
|
371
|
+
type: Joi.string().allow(""),
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
|
|
363
375
|
/** @returns {TicketList} */
|
|
364
376
|
static TicketList() {
|
|
365
377
|
return Joi.object({
|
|
@@ -449,36 +461,6 @@ class LeadPlatformModel {
|
|
|
449
461
|
});
|
|
450
462
|
}
|
|
451
463
|
|
|
452
|
-
/** @returns {CreateVideoRoomResponse} */
|
|
453
|
-
static CreateVideoRoomResponse() {
|
|
454
|
-
return Joi.object({
|
|
455
|
-
unique_name: Joi.string().allow("").required(),
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/** @returns {CloseVideoRoomResponse} */
|
|
460
|
-
static CloseVideoRoomResponse() {
|
|
461
|
-
return Joi.object({
|
|
462
|
-
success: Joi.boolean().required(),
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
/** @returns {CreateVideoRoomPayload} */
|
|
467
|
-
static CreateVideoRoomPayload() {
|
|
468
|
-
return Joi.object({
|
|
469
|
-
unique_name: Joi.string().allow("").required(),
|
|
470
|
-
notify: Joi.array().items(LeadPlatformModel.NotifyUser()),
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/** @returns {NotifyUser} */
|
|
475
|
-
static NotifyUser() {
|
|
476
|
-
return Joi.object({
|
|
477
|
-
country_code: Joi.string().allow("").required(),
|
|
478
|
-
phone_number: Joi.string().allow("").required(),
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
|
|
482
464
|
/** @returns {Filter} */
|
|
483
465
|
static Filter() {
|
|
484
466
|
return Joi.object({
|
|
@@ -497,55 +479,6 @@ class LeadPlatformModel {
|
|
|
497
479
|
});
|
|
498
480
|
}
|
|
499
481
|
|
|
500
|
-
/** @returns {GetTokenForVideoRoomResponse} */
|
|
501
|
-
static GetTokenForVideoRoomResponse() {
|
|
502
|
-
return Joi.object({
|
|
503
|
-
access_token: Joi.string().allow("").required(),
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/** @returns {GetParticipantsInsideVideoRoomResponse} */
|
|
508
|
-
static GetParticipantsInsideVideoRoomResponse() {
|
|
509
|
-
return Joi.object({
|
|
510
|
-
participants: Joi.array()
|
|
511
|
-
.items(LeadPlatformModel.Participant())
|
|
512
|
-
.required(),
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
/** @returns {Participant} */
|
|
517
|
-
static Participant() {
|
|
518
|
-
return Joi.object({
|
|
519
|
-
user: LeadPlatformModel.UserSchema(),
|
|
520
|
-
identity: Joi.string().allow(""),
|
|
521
|
-
status: Joi.string().allow(""),
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
/** @returns {UserSchema} */
|
|
526
|
-
static UserSchema() {
|
|
527
|
-
return Joi.object({
|
|
528
|
-
application_id: Joi.string().allow(""),
|
|
529
|
-
user_id: Joi.string().allow(""),
|
|
530
|
-
first_name: Joi.string().allow(""),
|
|
531
|
-
meta: Joi.any(),
|
|
532
|
-
last_name: Joi.string().allow(""),
|
|
533
|
-
phone_numbers: Joi.array().items(LeadPlatformModel.PhoneNumber()),
|
|
534
|
-
emails: Joi.array().items(LeadPlatformModel.Email()),
|
|
535
|
-
gender: Joi.string().allow(""),
|
|
536
|
-
dob: Joi.string().allow(""),
|
|
537
|
-
active: Joi.boolean(),
|
|
538
|
-
profile_pic_url: Joi.string().allow(""),
|
|
539
|
-
username: Joi.string().allow(""),
|
|
540
|
-
account_type: Joi.string().allow(""),
|
|
541
|
-
_id: Joi.string().allow(""),
|
|
542
|
-
created_at: Joi.string().allow(""),
|
|
543
|
-
updated_at: Joi.string().allow(""),
|
|
544
|
-
external_id: Joi.string().allow(""),
|
|
545
|
-
rr_id: Joi.string().allow(""),
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
|
|
549
482
|
/** @returns {TicketContext} */
|
|
550
483
|
static TicketContext() {
|
|
551
484
|
return Joi.object({
|
|
@@ -600,6 +533,13 @@ class LeadPlatformModel {
|
|
|
600
533
|
});
|
|
601
534
|
}
|
|
602
535
|
|
|
536
|
+
/** @returns {SLA} */
|
|
537
|
+
static SLA() {
|
|
538
|
+
return Joi.object({
|
|
539
|
+
resolution_time: Joi.string().allow("").required(),
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
|
|
603
543
|
/** @returns {Status} */
|
|
604
544
|
static Status() {
|
|
605
545
|
return Joi.object({
|
|
@@ -733,6 +673,7 @@ class LeadPlatformModel {
|
|
|
733
673
|
source: LeadPlatformModel.TicketSourceEnum().required(),
|
|
734
674
|
status: LeadPlatformModel.Status().required(),
|
|
735
675
|
priority: LeadPlatformModel.Priority().required(),
|
|
676
|
+
sla: LeadPlatformModel.SLA(),
|
|
736
677
|
created_by: Joi.any(),
|
|
737
678
|
assigned_to: Joi.any(),
|
|
738
679
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
@@ -752,27 +693,6 @@ class LeadPlatformModel {
|
|
|
752
693
|
});
|
|
753
694
|
}
|
|
754
695
|
|
|
755
|
-
/** @returns {PhoneNumber} */
|
|
756
|
-
static PhoneNumber() {
|
|
757
|
-
return Joi.object({
|
|
758
|
-
phone: Joi.string().allow(""),
|
|
759
|
-
country_code: Joi.number(),
|
|
760
|
-
active: Joi.boolean(),
|
|
761
|
-
primary: Joi.boolean(),
|
|
762
|
-
verified: Joi.boolean(),
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/** @returns {Email} */
|
|
767
|
-
static Email() {
|
|
768
|
-
return Joi.object({
|
|
769
|
-
email: Joi.string().allow(""),
|
|
770
|
-
active: Joi.boolean(),
|
|
771
|
-
primary: Joi.boolean(),
|
|
772
|
-
verified: Joi.boolean(),
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
|
|
776
696
|
/**
|
|
777
697
|
* Enum: PriorityEnum Used By: Lead
|
|
778
698
|
*
|
|
@@ -40,14 +40,6 @@ export = LeadPlatformValidator;
|
|
|
40
40
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
41
41
|
* Default is 12.
|
|
42
42
|
*/
|
|
43
|
-
/**
|
|
44
|
-
* @typedef GetPlatformVideoParticipantsParam
|
|
45
|
-
* @property {string} uniqueName - Unique name of Video Room
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* @typedef GetTokenForPlatformVideoRoomParam
|
|
49
|
-
* @property {string} uniqueName - Unique name of video room
|
|
50
|
-
*/
|
|
51
43
|
/**
|
|
52
44
|
* @typedef SubmitFeedbackParam
|
|
53
45
|
* @property {string} id - Ticket ID for which feedback is to be submitted
|
|
@@ -70,15 +62,11 @@ declare class LeadPlatformValidator {
|
|
|
70
62
|
static getPlatformTicketHistory(): GetPlatformTicketHistoryParam;
|
|
71
63
|
/** @returns {GetPlatformTicketsParam} */
|
|
72
64
|
static getPlatformTickets(): GetPlatformTicketsParam;
|
|
73
|
-
/** @returns {GetPlatformVideoParticipantsParam} */
|
|
74
|
-
static getPlatformVideoParticipants(): GetPlatformVideoParticipantsParam;
|
|
75
|
-
/** @returns {GetTokenForPlatformVideoRoomParam} */
|
|
76
|
-
static getTokenForPlatformVideoRoom(): GetTokenForPlatformVideoRoomParam;
|
|
77
65
|
/** @returns {SubmitFeedbackParam} */
|
|
78
66
|
static submitFeedback(): SubmitFeedbackParam;
|
|
79
67
|
}
|
|
80
68
|
declare namespace LeadPlatformValidator {
|
|
81
|
-
export { CreatePlatformTicketHistoryParam, CreateTicketParam, EditPlatformTicketParam, GetFeedbacksParam, GetGeneralConfigParam, GetPlatformTicketParam, GetPlatformTicketHistoryParam, GetPlatformTicketsParam,
|
|
69
|
+
export { CreatePlatformTicketHistoryParam, CreateTicketParam, EditPlatformTicketParam, GetFeedbacksParam, GetGeneralConfigParam, GetPlatformTicketParam, GetPlatformTicketHistoryParam, GetPlatformTicketsParam, SubmitFeedbackParam };
|
|
82
70
|
}
|
|
83
71
|
type CreatePlatformTicketHistoryParam = {
|
|
84
72
|
/**
|
|
@@ -152,18 +140,6 @@ type GetPlatformTicketsParam = {
|
|
|
152
140
|
*/
|
|
153
141
|
pageSize?: number;
|
|
154
142
|
};
|
|
155
|
-
type GetPlatformVideoParticipantsParam = {
|
|
156
|
-
/**
|
|
157
|
-
* - Unique name of Video Room
|
|
158
|
-
*/
|
|
159
|
-
uniqueName: string;
|
|
160
|
-
};
|
|
161
|
-
type GetTokenForPlatformVideoRoomParam = {
|
|
162
|
-
/**
|
|
163
|
-
* - Unique name of video room
|
|
164
|
-
*/
|
|
165
|
-
uniqueName: string;
|
|
166
|
-
};
|
|
167
143
|
type SubmitFeedbackParam = {
|
|
168
144
|
/**
|
|
169
145
|
* - Ticket ID for which feedback is to be submitted
|
|
@@ -51,16 +51,6 @@ const LeadPlatformModel = require("./LeadPlatformModel");
|
|
|
51
51
|
* Default is 12.
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
|
-
/**
|
|
55
|
-
* @typedef GetPlatformVideoParticipantsParam
|
|
56
|
-
* @property {string} uniqueName - Unique name of Video Room
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @typedef GetTokenForPlatformVideoRoomParam
|
|
61
|
-
* @property {string} uniqueName - Unique name of video room
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
54
|
/**
|
|
65
55
|
* @typedef SubmitFeedbackParam
|
|
66
56
|
* @property {string} id - Ticket ID for which feedback is to be submitted
|
|
@@ -131,20 +121,6 @@ class LeadPlatformValidator {
|
|
|
131
121
|
}).required();
|
|
132
122
|
}
|
|
133
123
|
|
|
134
|
-
/** @returns {GetPlatformVideoParticipantsParam} */
|
|
135
|
-
static getPlatformVideoParticipants() {
|
|
136
|
-
return Joi.object({
|
|
137
|
-
uniqueName: Joi.string().allow("").required(),
|
|
138
|
-
}).required();
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** @returns {GetTokenForPlatformVideoRoomParam} */
|
|
142
|
-
static getTokenForPlatformVideoRoom() {
|
|
143
|
-
return Joi.object({
|
|
144
|
-
uniqueName: Joi.string().allow("").required(),
|
|
145
|
-
}).required();
|
|
146
|
-
}
|
|
147
|
-
|
|
148
124
|
/** @returns {SubmitFeedbackParam} */
|
|
149
125
|
static submitFeedback() {
|
|
150
126
|
return Joi.object({
|
|
@@ -223,6 +223,7 @@ export = OrderPlatformModel;
|
|
|
223
223
|
* @property {boolean} [lock_after_transition] - Lock Shipment After Transition
|
|
224
224
|
* @property {boolean} [unlock_before_transition] - Unlock Shipment After Transition
|
|
225
225
|
* @property {boolean} [task] - To Run Status Update as a background Task
|
|
226
|
+
* @property {boolean} [resume_tasks_after_unlock] - Resume Tasks After Unlock
|
|
226
227
|
*/
|
|
227
228
|
/**
|
|
228
229
|
* @typedef ShipmentsResponse
|
|
@@ -646,20 +647,23 @@ export = OrderPlatformModel;
|
|
|
646
647
|
*/
|
|
647
648
|
/**
|
|
648
649
|
* @typedef Charge
|
|
649
|
-
* @property {string} name
|
|
650
|
-
* @property {Object} amount
|
|
650
|
+
* @property {string} name - The name of the charge.
|
|
651
|
+
* @property {Object} amount - The monetary value of the charge, including value
|
|
652
|
+
* and currency details.
|
|
651
653
|
* @property {Tax} [tax]
|
|
652
|
-
* @property {string} [code]
|
|
653
|
-
*
|
|
654
|
+
* @property {string} [code] - An optional code associated with the charge for
|
|
655
|
+
* internal tracking.
|
|
656
|
+
* @property {string} type - The category or type of the charge.
|
|
654
657
|
*/
|
|
655
658
|
/**
|
|
656
659
|
* @typedef LineItem
|
|
657
660
|
* @property {Charge[]} [charges]
|
|
658
|
-
* @property {Object} [meta]
|
|
659
|
-
* @property {string} [custom_message]
|
|
660
|
-
* @property {number} [quantity]
|
|
661
|
-
* @property {string} seller_identifier
|
|
662
|
-
* @property {string} [external_line_id]
|
|
661
|
+
* @property {Object} [meta] - Meta data of the articles or line items.
|
|
662
|
+
* @property {string} [custom_message] - Meta data of the articles or line items.
|
|
663
|
+
* @property {number} [quantity] - Quantity of the articles or line items.
|
|
664
|
+
* @property {string} seller_identifier - Seller identifier of the articles or line items.
|
|
665
|
+
* @property {string} [external_line_id] - External unique identifier of the
|
|
666
|
+
* articles or line items.
|
|
663
667
|
*/
|
|
664
668
|
/**
|
|
665
669
|
* @typedef ProcessingDates
|
|
@@ -673,12 +677,16 @@ export = OrderPlatformModel;
|
|
|
673
677
|
/**
|
|
674
678
|
* @typedef Shipment
|
|
675
679
|
* @property {LineItem[]} line_items
|
|
676
|
-
* @property {string} [external_shipment_id]
|
|
680
|
+
* @property {string} [external_shipment_id] - External shipment identifier or
|
|
681
|
+
* marketplace's unique shipment identifier.
|
|
677
682
|
* @property {ProcessingDates} [processing_dates]
|
|
678
|
-
* @property {Object} [meta]
|
|
679
|
-
* @property {number} [priority]
|
|
680
|
-
* @property {number} location_id
|
|
681
|
-
*
|
|
683
|
+
* @property {Object} [meta] - Meta data of the shipment.
|
|
684
|
+
* @property {number} [priority] - Integer value indicating high and low priority.
|
|
685
|
+
* @property {number} location_id - Location Identifier or Store/Fulfillment
|
|
686
|
+
* Identifier of the shipment.
|
|
687
|
+
* @property {string} [order_type] - The order type of shipment HomeDelivery -
|
|
688
|
+
* If the customer wants the order home-delivered PickAtStore - If the
|
|
689
|
+
* customer wants the handover of an order at the store itself.
|
|
682
690
|
* @property {string} [parent_type]
|
|
683
691
|
* @property {string} [store_invoice_id]
|
|
684
692
|
* @property {string} [lock_status]
|
|
@@ -707,6 +715,16 @@ export = OrderPlatformModel;
|
|
|
707
715
|
* @property {Prices} [price]
|
|
708
716
|
* @property {ShipmentGstDetails} [gst]
|
|
709
717
|
*/
|
|
718
|
+
/**
|
|
719
|
+
* @typedef ShipmentRequestData
|
|
720
|
+
* @property {LineItem[]} line_items
|
|
721
|
+
* @property {ProcessingDates} [processing_dates]
|
|
722
|
+
* @property {Object} [meta] - Meta data of the shipment.
|
|
723
|
+
* @property {number} [priority] - Integer value indicating high and low priority.
|
|
724
|
+
* @property {string} [order_type] - The order type of shipment HomeDelivery -
|
|
725
|
+
* If the customer wants the order home-delivered PickAtStore - If the
|
|
726
|
+
* customer wants the handover of an order at the store itself.
|
|
727
|
+
*/
|
|
710
728
|
/**
|
|
711
729
|
* @typedef ShippingInfo
|
|
712
730
|
* @property {string} [alternate_mobile_number]
|
|
@@ -801,6 +819,7 @@ export = OrderPlatformModel;
|
|
|
801
819
|
/**
|
|
802
820
|
* @typedef CreateOrderAPI
|
|
803
821
|
* @property {Shipment[]} shipments
|
|
822
|
+
* @property {ShipmentRequestData} [shipment_request_data]
|
|
804
823
|
* @property {ShippingInfo} shipping_info
|
|
805
824
|
* @property {BillingInfo} billing_info
|
|
806
825
|
* @property {Object} [currency_info]
|
|
@@ -2868,7 +2887,7 @@ export = OrderPlatformModel;
|
|
|
2868
2887
|
declare class OrderPlatformModel {
|
|
2869
2888
|
}
|
|
2870
2889
|
declare namespace OrderPlatformModel {
|
|
2871
|
-
export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCacheResponse, ErrorResponse, StoreReassign, StoreReassignResponse, Entities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponse, UpdateShipmentLockResponse, AnnouncementResponse, AnnouncementsResponse, BaseResponse, Click2CallResponse, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, ShipmentsResponse, StatuesResponse, UpdateShipmentStatusResponseBody, OrderUser, OrderPriority, ArticleDetails, LocationDetails, ShipmentDetails, ShipmentConfig, ShipmentData, MarketPlacePdf, AffiliateBag, UserData, OrderInfo, AffiliateAppConfigMeta, AffiliateAppConfig, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateInventoryOrderConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryConfig, AffiliateConfig, Affiliate, AffiliateStoreIdMapping, OrderConfig, CreateOrderPayload, CreateOrderResponse, DispatchManifest, SuccessResponse, ActionInfo, GetActionsResponse, HistoryReason, HistoryMeta, HistoryDict, ShipmentHistoryResponse, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, Tax, Charge, LineItem, ProcessingDates, Shipment, ShippingInfo, BillingInfo, UserInfo, TaxInfo, PaymentMethod, PaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, DpConfiguration, PaymentMethods, CreateChannelPaymentInfo, CreateChannelConfig, CreateChannelConfigData, CreateChannelConifgErrorResponse, CreateChannelConfigResponse, UploadConsent, PlatformOrderUpdate, ResponseDetail, FyndOrderIdList, OrderStatus, BagStateTransitionMap, RoleBaseStateTransitionMapping, FetchCreditBalanceRequestPayload, CreditBalanceInfo, FetchCreditBalanceResponsePayload, RefundModeConfigRequestPayload, RefundOption, RefundModeInfo, RefundModeConfigResponsePayload, AttachUserOtpData, AttachUserInfo, AttachOrderUser, AttachOrderUserResponse, SendUserMobileOTP, PointBlankOtpData, SendUserMobileOtpResponse, VerifyOtpData, VerifyMobileOTP, VerifyOtpResponseData, VerifyOtpResponse, BulkReportsDownloadRequest, BulkReportsDownloadResponse, BulkFailedResponse, BulkStateTransistionRequest, BulkStateTransistionResponse, ShipmentActionInfo, BulkActionListingData, BulkListinPage, BulkListingResponse, JobDetailsData, JobDetailsResponse, JobFailedResponse, ManifestPageInfo, ManifestItemDetails, ManifestShipmentListing, DateRange, Filters, ManifestFile, ManifestMediaUpdate, PDFMeta, TotalShipmentPricesCount, ManifestMeta, Manifest, ManifestList, ManifestDetails, FiltersRequest, ProcessManifest, ProcessManifestResponse, ProcessManifestItemResponse, FilterInfoOption, FiltersInfo, ManifestFiltersResponse, PageDetails, EInvoiceIrnDetails, EInvoiceErrorDetails, EInvoiceDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponse, EInvoiceErrorInfo, EInvoiceErrorResponseData, EInvoiceErrorResponse, EInvoiceErrorResponseDetails, EInvoiceRetryShipmentData, CourierPartnerTrackingDetails, CourierPartnerTrackingResponse, LogsChannelDetails, LogPaymentDetails, FailedOrdersItem, FailedOrderLogs, FailedOrderLogDetails, GenerateInvoiceIDResponseData, GenerateInvoiceIDErrorResponseData, GenerateInvoiceIDRequest, GenerateInvoiceIDResponse, GenerateInvoiceIDErrorResponse, ManifestResponse, ProcessManifestRequest, ManifestItems, ManifestErrorResponse, Page, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentStatus, UserDataInfo, PlatformDeliveryAddress, ShipmentListingChannel, Prices, Identifier, FinancialBreakup, GSTDetailsData, BagStateMapper, BagStatusHistory, Dimensions, ReturnConfig, Weight, Article, ShipmentListingBrand, ReplacementDetails, AffiliateMeta, AffiliateBagDetails, PlatformArticleAttributes, PlatformItem, Dates, BagReturnableCancelableStatus, BagUnit, ShipmentItemFulFillingStore, Currency, OrderingCurrency, ConversionRate, CurrencyInfo, ShipmentItem, ShipmentInternalPlatformViewResponse, TrackingList, InvoiceInfo, OrderDetailsData, UserDetailsData, PhoneDetails, ContactDetails, CompanyDetails, OrderingStoreDetails, DPDetailsData, BuyerDetails, DebugInfo, EinvoiceInfo, Formatted, ShipmentTags, LockData, ShipmentTimeStamp, ShipmentMeta, PDFLinks, AffiliateDetails, BagConfigs, OrderBagArticle, OrderBrandName, AffiliateBagsDetails, BagPaymentMethods, DiscountRules, ItemCriterias, BuyRules, AppliedPromos, CurrentStatus, OrderBags, FulfillingStore, ShipmentPayments, ShipmentStatusData, ShipmentLockDetails, PlatformShipment, ShipmentInfoResponse, TaxDetails, PaymentInfoData, OrderData, OrderDetailsResponse, SubLane, SuperLane, LaneConfigResponse, PlatformBreakupValues, PlatformChannel, PlatformOrderItems, OrderListingResponse, PlatformTrack, PlatformShipmentTrack, AdvanceFilterInfo, FiltersResponse, URL, FileResponse, BulkActionTemplate, BulkActionTemplateResponse, Reason, PlatformShipmentReasonsResponse, ShipmentResponseReasons, ShipmentReasonsResponse, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Attributes, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponse, BagsPage, BagData, GetBagsPlatformResponse, GeneratePosOrderReceiptResponse, Templates, AllowedTemplatesResponse, TemplateDownloadResponse, Error };
|
|
2890
|
+
export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCacheResponse, ErrorResponse, StoreReassign, StoreReassignResponse, Entities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponse, UpdateShipmentLockResponse, AnnouncementResponse, AnnouncementsResponse, BaseResponse, Click2CallResponse, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, ShipmentsResponse, StatuesResponse, UpdateShipmentStatusResponseBody, OrderUser, OrderPriority, ArticleDetails, LocationDetails, ShipmentDetails, ShipmentConfig, ShipmentData, MarketPlacePdf, AffiliateBag, UserData, OrderInfo, AffiliateAppConfigMeta, AffiliateAppConfig, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateInventoryOrderConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryConfig, AffiliateConfig, Affiliate, AffiliateStoreIdMapping, OrderConfig, CreateOrderPayload, CreateOrderResponse, DispatchManifest, SuccessResponse, ActionInfo, GetActionsResponse, HistoryReason, HistoryMeta, HistoryDict, ShipmentHistoryResponse, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, Tax, Charge, LineItem, ProcessingDates, Shipment, ShipmentRequestData, ShippingInfo, BillingInfo, UserInfo, TaxInfo, PaymentMethod, PaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, DpConfiguration, PaymentMethods, CreateChannelPaymentInfo, CreateChannelConfig, CreateChannelConfigData, CreateChannelConifgErrorResponse, CreateChannelConfigResponse, UploadConsent, PlatformOrderUpdate, ResponseDetail, FyndOrderIdList, OrderStatus, BagStateTransitionMap, RoleBaseStateTransitionMapping, FetchCreditBalanceRequestPayload, CreditBalanceInfo, FetchCreditBalanceResponsePayload, RefundModeConfigRequestPayload, RefundOption, RefundModeInfo, RefundModeConfigResponsePayload, AttachUserOtpData, AttachUserInfo, AttachOrderUser, AttachOrderUserResponse, SendUserMobileOTP, PointBlankOtpData, SendUserMobileOtpResponse, VerifyOtpData, VerifyMobileOTP, VerifyOtpResponseData, VerifyOtpResponse, BulkReportsDownloadRequest, BulkReportsDownloadResponse, BulkFailedResponse, BulkStateTransistionRequest, BulkStateTransistionResponse, ShipmentActionInfo, BulkActionListingData, BulkListinPage, BulkListingResponse, JobDetailsData, JobDetailsResponse, JobFailedResponse, ManifestPageInfo, ManifestItemDetails, ManifestShipmentListing, DateRange, Filters, ManifestFile, ManifestMediaUpdate, PDFMeta, TotalShipmentPricesCount, ManifestMeta, Manifest, ManifestList, ManifestDetails, FiltersRequest, ProcessManifest, ProcessManifestResponse, ProcessManifestItemResponse, FilterInfoOption, FiltersInfo, ManifestFiltersResponse, PageDetails, EInvoiceIrnDetails, EInvoiceErrorDetails, EInvoiceDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponse, EInvoiceErrorInfo, EInvoiceErrorResponseData, EInvoiceErrorResponse, EInvoiceErrorResponseDetails, EInvoiceRetryShipmentData, CourierPartnerTrackingDetails, CourierPartnerTrackingResponse, LogsChannelDetails, LogPaymentDetails, FailedOrdersItem, FailedOrderLogs, FailedOrderLogDetails, GenerateInvoiceIDResponseData, GenerateInvoiceIDErrorResponseData, GenerateInvoiceIDRequest, GenerateInvoiceIDResponse, GenerateInvoiceIDErrorResponse, ManifestResponse, ProcessManifestRequest, ManifestItems, ManifestErrorResponse, Page, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentStatus, UserDataInfo, PlatformDeliveryAddress, ShipmentListingChannel, Prices, Identifier, FinancialBreakup, GSTDetailsData, BagStateMapper, BagStatusHistory, Dimensions, ReturnConfig, Weight, Article, ShipmentListingBrand, ReplacementDetails, AffiliateMeta, AffiliateBagDetails, PlatformArticleAttributes, PlatformItem, Dates, BagReturnableCancelableStatus, BagUnit, ShipmentItemFulFillingStore, Currency, OrderingCurrency, ConversionRate, CurrencyInfo, ShipmentItem, ShipmentInternalPlatformViewResponse, TrackingList, InvoiceInfo, OrderDetailsData, UserDetailsData, PhoneDetails, ContactDetails, CompanyDetails, OrderingStoreDetails, DPDetailsData, BuyerDetails, DebugInfo, EinvoiceInfo, Formatted, ShipmentTags, LockData, ShipmentTimeStamp, ShipmentMeta, PDFLinks, AffiliateDetails, BagConfigs, OrderBagArticle, OrderBrandName, AffiliateBagsDetails, BagPaymentMethods, DiscountRules, ItemCriterias, BuyRules, AppliedPromos, CurrentStatus, OrderBags, FulfillingStore, ShipmentPayments, ShipmentStatusData, ShipmentLockDetails, PlatformShipment, ShipmentInfoResponse, TaxDetails, PaymentInfoData, OrderData, OrderDetailsResponse, SubLane, SuperLane, LaneConfigResponse, PlatformBreakupValues, PlatformChannel, PlatformOrderItems, OrderListingResponse, PlatformTrack, PlatformShipmentTrack, AdvanceFilterInfo, FiltersResponse, URL, FileResponse, BulkActionTemplate, BulkActionTemplateResponse, Reason, PlatformShipmentReasonsResponse, ShipmentResponseReasons, ShipmentReasonsResponse, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Attributes, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponse, BagsPage, BagData, GetBagsPlatformResponse, GeneratePosOrderReceiptResponse, Templates, AllowedTemplatesResponse, TemplateDownloadResponse, Error };
|
|
2872
2891
|
}
|
|
2873
2892
|
/** @returns {InvalidateShipmentCachePayload} */
|
|
2874
2893
|
declare function InvalidateShipmentCachePayload(): InvalidateShipmentCachePayload;
|
|
@@ -3267,6 +3286,10 @@ type UpdateShipmentStatusRequest = {
|
|
|
3267
3286
|
* - To Run Status Update as a background Task
|
|
3268
3287
|
*/
|
|
3269
3288
|
task?: boolean;
|
|
3289
|
+
/**
|
|
3290
|
+
* - Resume Tasks After Unlock
|
|
3291
|
+
*/
|
|
3292
|
+
resume_tasks_after_unlock?: boolean;
|
|
3270
3293
|
};
|
|
3271
3294
|
/** @returns {ShipmentsResponse} */
|
|
3272
3295
|
declare function ShipmentsResponse(): ShipmentsResponse;
|
|
@@ -3820,20 +3843,50 @@ type Tax = {
|
|
|
3820
3843
|
/** @returns {Charge} */
|
|
3821
3844
|
declare function Charge(): Charge;
|
|
3822
3845
|
type Charge = {
|
|
3846
|
+
/**
|
|
3847
|
+
* - The name of the charge.
|
|
3848
|
+
*/
|
|
3823
3849
|
name: string;
|
|
3850
|
+
/**
|
|
3851
|
+
* - The monetary value of the charge, including value
|
|
3852
|
+
* and currency details.
|
|
3853
|
+
*/
|
|
3824
3854
|
amount: any;
|
|
3825
3855
|
tax?: Tax;
|
|
3856
|
+
/**
|
|
3857
|
+
* - An optional code associated with the charge for
|
|
3858
|
+
* internal tracking.
|
|
3859
|
+
*/
|
|
3826
3860
|
code?: string;
|
|
3861
|
+
/**
|
|
3862
|
+
* - The category or type of the charge.
|
|
3863
|
+
*/
|
|
3827
3864
|
type: string;
|
|
3828
3865
|
};
|
|
3829
3866
|
/** @returns {LineItem} */
|
|
3830
3867
|
declare function LineItem(): LineItem;
|
|
3831
3868
|
type LineItem = {
|
|
3832
3869
|
charges?: Charge[];
|
|
3870
|
+
/**
|
|
3871
|
+
* - Meta data of the articles or line items.
|
|
3872
|
+
*/
|
|
3833
3873
|
meta?: any;
|
|
3874
|
+
/**
|
|
3875
|
+
* - Meta data of the articles or line items.
|
|
3876
|
+
*/
|
|
3834
3877
|
custom_message?: string;
|
|
3878
|
+
/**
|
|
3879
|
+
* - Quantity of the articles or line items.
|
|
3880
|
+
*/
|
|
3835
3881
|
quantity?: number;
|
|
3882
|
+
/**
|
|
3883
|
+
* - Seller identifier of the articles or line items.
|
|
3884
|
+
*/
|
|
3836
3885
|
seller_identifier: string;
|
|
3886
|
+
/**
|
|
3887
|
+
* - External unique identifier of the
|
|
3888
|
+
* articles or line items.
|
|
3889
|
+
*/
|
|
3837
3890
|
external_line_id?: string;
|
|
3838
3891
|
};
|
|
3839
3892
|
/** @returns {ProcessingDates} */
|
|
@@ -3850,11 +3903,30 @@ type ProcessingDates = {
|
|
|
3850
3903
|
declare function Shipment(): Shipment;
|
|
3851
3904
|
type Shipment = {
|
|
3852
3905
|
line_items: LineItem[];
|
|
3906
|
+
/**
|
|
3907
|
+
* - External shipment identifier or
|
|
3908
|
+
* marketplace's unique shipment identifier.
|
|
3909
|
+
*/
|
|
3853
3910
|
external_shipment_id?: string;
|
|
3854
3911
|
processing_dates?: ProcessingDates;
|
|
3912
|
+
/**
|
|
3913
|
+
* - Meta data of the shipment.
|
|
3914
|
+
*/
|
|
3855
3915
|
meta?: any;
|
|
3916
|
+
/**
|
|
3917
|
+
* - Integer value indicating high and low priority.
|
|
3918
|
+
*/
|
|
3856
3919
|
priority?: number;
|
|
3920
|
+
/**
|
|
3921
|
+
* - Location Identifier or Store/Fulfillment
|
|
3922
|
+
* Identifier of the shipment.
|
|
3923
|
+
*/
|
|
3857
3924
|
location_id: number;
|
|
3925
|
+
/**
|
|
3926
|
+
* - The order type of shipment HomeDelivery -
|
|
3927
|
+
* If the customer wants the order home-delivered PickAtStore - If the
|
|
3928
|
+
* customer wants the handover of an order at the store itself.
|
|
3929
|
+
*/
|
|
3858
3930
|
order_type?: string;
|
|
3859
3931
|
parent_type?: string;
|
|
3860
3932
|
store_invoice_id?: string;
|
|
@@ -3884,6 +3956,26 @@ type Shipment = {
|
|
|
3884
3956
|
price?: Prices;
|
|
3885
3957
|
gst?: ShipmentGstDetails;
|
|
3886
3958
|
};
|
|
3959
|
+
/** @returns {ShipmentRequestData} */
|
|
3960
|
+
declare function ShipmentRequestData(): ShipmentRequestData;
|
|
3961
|
+
type ShipmentRequestData = {
|
|
3962
|
+
line_items: LineItem[];
|
|
3963
|
+
processing_dates?: ProcessingDates;
|
|
3964
|
+
/**
|
|
3965
|
+
* - Meta data of the shipment.
|
|
3966
|
+
*/
|
|
3967
|
+
meta?: any;
|
|
3968
|
+
/**
|
|
3969
|
+
* - Integer value indicating high and low priority.
|
|
3970
|
+
*/
|
|
3971
|
+
priority?: number;
|
|
3972
|
+
/**
|
|
3973
|
+
* - The order type of shipment HomeDelivery -
|
|
3974
|
+
* If the customer wants the order home-delivered PickAtStore - If the
|
|
3975
|
+
* customer wants the handover of an order at the store itself.
|
|
3976
|
+
*/
|
|
3977
|
+
order_type?: string;
|
|
3978
|
+
};
|
|
3887
3979
|
/** @returns {ShippingInfo} */
|
|
3888
3980
|
declare function ShippingInfo(): ShippingInfo;
|
|
3889
3981
|
type ShippingInfo = {
|
|
@@ -3991,6 +4083,7 @@ type PaymentInfo = {
|
|
|
3991
4083
|
declare function CreateOrderAPI(): CreateOrderAPI;
|
|
3992
4084
|
type CreateOrderAPI = {
|
|
3993
4085
|
shipments: Shipment[];
|
|
4086
|
+
shipment_request_data?: ShipmentRequestData;
|
|
3994
4087
|
shipping_info: ShippingInfo;
|
|
3995
4088
|
billing_info: BillingInfo;
|
|
3996
4089
|
currency_info?: any;
|