@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
|
@@ -24,41 +24,6 @@ const Joi = require("joi");
|
|
|
24
24
|
* @property {Page} [page]
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
* @typedef CustomFormList
|
|
29
|
-
* @property {CustomForm[]} [items] - List of forms
|
|
30
|
-
* @property {Page} [page]
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @typedef CreateCustomFormPayload
|
|
35
|
-
* @property {string} slug - Slug for the form
|
|
36
|
-
* @property {string} title - Title for the form
|
|
37
|
-
* @property {Object[]} inputs - List of all the form components
|
|
38
|
-
* @property {string} [description] - Description of the form
|
|
39
|
-
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
40
|
-
* @property {PriorityEnum} priority
|
|
41
|
-
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
42
|
-
* when a response is received
|
|
43
|
-
* @property {string} [success_message] - Success message that will be shown on submission
|
|
44
|
-
* @property {PollForAssignment} [poll_for_assignment]
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @typedef EditCustomFormPayload
|
|
49
|
-
* @property {string} title - Title for the form
|
|
50
|
-
* @property {Object[]} inputs - List of all the form components
|
|
51
|
-
* @property {string} [description] - Description of the form
|
|
52
|
-
* @property {PriorityEnum} priority
|
|
53
|
-
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
54
|
-
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
55
|
-
* when a response is received
|
|
56
|
-
* @property {boolean} [login_required] - Denotes if login is required to make a
|
|
57
|
-
* form response submission
|
|
58
|
-
* @property {string} [success_message] - Success message that will be shown on submission
|
|
59
|
-
* @property {PollForAssignment} [poll_for_assignment]
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
27
|
/**
|
|
63
28
|
* @typedef EditTicketPayload
|
|
64
29
|
* @property {TicketContent} [content]
|
|
@@ -77,16 +42,6 @@ const Joi = require("joi");
|
|
|
77
42
|
* @property {string} agent_id - Agent's unique ID
|
|
78
43
|
*/
|
|
79
44
|
|
|
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
45
|
/**
|
|
91
46
|
* @typedef GeneralConfigResponse
|
|
92
47
|
* @property {SupportCommunicationSchema[]} [support_communication]
|
|
@@ -109,18 +64,6 @@ const Joi = require("joi");
|
|
|
109
64
|
* @property {string} [type]
|
|
110
65
|
*/
|
|
111
66
|
|
|
112
|
-
/**
|
|
113
|
-
* @typedef CreateVideoRoomPayload
|
|
114
|
-
* @property {string} unique_name - Ticket id
|
|
115
|
-
* @property {NotifyUser[]} [notify] - List of people to be notified
|
|
116
|
-
*/
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @typedef NotifyUser
|
|
120
|
-
* @property {string} country_code - Country code
|
|
121
|
-
* @property {string} phone_number - Phone number
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
67
|
/**
|
|
125
68
|
* @typedef Filter
|
|
126
69
|
* @property {Priority[]} priorities - List of possible priorities for tickets
|
|
@@ -135,65 +78,6 @@ const Joi = require("joi");
|
|
|
135
78
|
* @property {HistoryTypeEnum} type
|
|
136
79
|
*/
|
|
137
80
|
|
|
138
|
-
/**
|
|
139
|
-
* @typedef GetTokenForVideoRoomResponse
|
|
140
|
-
* @property {string} access_token - Access token to be used for video room
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @typedef GetParticipantsInsideVideoRoomResponse
|
|
145
|
-
* @property {Participant[]} participants - List of participants of the video room
|
|
146
|
-
*/
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @typedef Participant
|
|
150
|
-
* @property {UserSchema} [user]
|
|
151
|
-
* @property {string} [identity] - Unique identifier of participant
|
|
152
|
-
* @property {string} [status] - Status of participant
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* @typedef UserSchema
|
|
157
|
-
* @property {string} [first_name] - First name
|
|
158
|
-
* @property {string} [last_name] - Last name
|
|
159
|
-
* @property {PhoneNumber[]} [phone_numbers] - List of phone numbers
|
|
160
|
-
* @property {Email[]} [emails] - List of email addresses
|
|
161
|
-
* @property {string} [gender] - Gender of user
|
|
162
|
-
* @property {boolean} [active] - Is account active
|
|
163
|
-
* @property {string} [profile_pic_url] - URL for profile pic
|
|
164
|
-
* @property {string} [username] - Username of user
|
|
165
|
-
* @property {string} [account_type] - Type of account
|
|
166
|
-
* @property {string} [uid] - Unique identifier of user
|
|
167
|
-
* @property {Debug} [debug]
|
|
168
|
-
* @property {boolean} [has_old_password_hash] - Denotes if user has old password hash
|
|
169
|
-
* @property {string} [_id] - Unique identifier of user
|
|
170
|
-
* @property {string} [created_at] - Time of user creation
|
|
171
|
-
* @property {string} [updated_at] - Last time of user details update
|
|
172
|
-
*/
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @typedef PhoneNumber
|
|
176
|
-
* @property {boolean} [active] - Denotes if the phone number is active
|
|
177
|
-
* @property {boolean} [primary] - Denotes it's the primary phone number for the account
|
|
178
|
-
* @property {boolean} [verified] - Denotes it's a verified phone number
|
|
179
|
-
* @property {string} [phone] - Phone number
|
|
180
|
-
* @property {number} [country_code] - Country code
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @typedef Email
|
|
185
|
-
* @property {boolean} [primary] - Denotes it's the primary email for the account
|
|
186
|
-
* @property {boolean} [verified] - Denotes it's a verified email
|
|
187
|
-
* @property {string} [email] - Email Address
|
|
188
|
-
* @property {boolean} [active] - Denotes if the email is active
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* @typedef Debug
|
|
193
|
-
* @property {string} [source] - Source of user
|
|
194
|
-
* @property {string} [platform] - Platform of user
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
81
|
/**
|
|
198
82
|
* @typedef TicketContext
|
|
199
83
|
* @property {string} [application_id] - Application ID related to the ticket
|
|
@@ -236,6 +120,11 @@ const Joi = require("joi");
|
|
|
236
120
|
* @property {string} color - Color for priority
|
|
237
121
|
*/
|
|
238
122
|
|
|
123
|
+
/**
|
|
124
|
+
* @typedef SLA
|
|
125
|
+
* @property {string} resolution_time
|
|
126
|
+
*/
|
|
127
|
+
|
|
239
128
|
/**
|
|
240
129
|
* @typedef Status
|
|
241
130
|
* @property {string} key - Key for status
|
|
@@ -243,53 +132,6 @@ const Joi = require("joi");
|
|
|
243
132
|
* @property {string} color - Color for status
|
|
244
133
|
*/
|
|
245
134
|
|
|
246
|
-
/**
|
|
247
|
-
* @typedef TicketFeedbackList
|
|
248
|
-
* @property {TicketFeedback[]} [items] - List of all ticket feedback for the ticket
|
|
249
|
-
*/
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* @typedef TicketFeedbackPayload
|
|
253
|
-
* @property {Object} [form_response] - Key-value pairs of all the form fields
|
|
254
|
-
* and their response
|
|
255
|
-
*/
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* @typedef SubmitButton
|
|
259
|
-
* @property {string} title - Title for submit button
|
|
260
|
-
* @property {string} title_color - Title color submit button
|
|
261
|
-
* @property {string} background_color - Color for submit button
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* @typedef PollForAssignment
|
|
266
|
-
* @property {number} duration - Duration for polling of staff
|
|
267
|
-
* @property {string} message - Message for polling
|
|
268
|
-
* @property {string} success_message - Message for successful polling
|
|
269
|
-
* @property {string} failure_message - Message if polling failed
|
|
270
|
-
*/
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @typedef CustomForm
|
|
274
|
-
* @property {string} application_id - Application ID for form
|
|
275
|
-
* @property {string} slug - Slug for the form, which is to be used for accessing the form
|
|
276
|
-
* @property {string} [header_image] - Form header image that will be shown to the user
|
|
277
|
-
* @property {string} title - Form title that will be shown to the user
|
|
278
|
-
* @property {string} [description] - Form description that will be shown to the user
|
|
279
|
-
* @property {Priority} priority
|
|
280
|
-
* @property {boolean} login_required - Denotes if login is required to make a
|
|
281
|
-
* form response submission
|
|
282
|
-
* @property {boolean} should_notify - Denotes if new response submission for
|
|
283
|
-
* the form should be notified to the assignees
|
|
284
|
-
* @property {string} [success_message] - Message that is to be shown on
|
|
285
|
-
* succesfull form response submission
|
|
286
|
-
* @property {SubmitButton} [submit_button]
|
|
287
|
-
* @property {Object[]} inputs - List of all the form fields
|
|
288
|
-
* @property {CreatedOn} [created_on]
|
|
289
|
-
* @property {PollForAssignment} [poll_for_assignment]
|
|
290
|
-
* @property {string} _id - Unique identifier for the form
|
|
291
|
-
*/
|
|
292
|
-
|
|
293
135
|
/**
|
|
294
136
|
* @typedef FeedbackForm
|
|
295
137
|
* @property {Object} [inputs] - Input details for the feed back form
|
|
@@ -306,25 +148,6 @@ const Joi = require("joi");
|
|
|
306
148
|
* @property {FeedbackForm} [feedback_form]
|
|
307
149
|
*/
|
|
308
150
|
|
|
309
|
-
/**
|
|
310
|
-
* @typedef FeedbackResponseItem
|
|
311
|
-
* @property {string} display - Question/Title of the form field
|
|
312
|
-
* @property {string} key - Key of the form field
|
|
313
|
-
* @property {string} value - User response value for the form field
|
|
314
|
-
*/
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @typedef TicketFeedback
|
|
318
|
-
* @property {string} _id - Unique identifier for the feedback
|
|
319
|
-
* @property {string} ticket_id - Readable ticket number
|
|
320
|
-
* @property {string} partner_id - Partner id for which ticket was raised
|
|
321
|
-
* @property {FeedbackResponseItem[]} response
|
|
322
|
-
* @property {string} [category] - Category of the ticket
|
|
323
|
-
* @property {Object} [user] - User who submitted the feedback
|
|
324
|
-
* @property {string} [updated_at] - Time when the feedback was last updated
|
|
325
|
-
* @property {string} [created_at] - Time when the feedback was created
|
|
326
|
-
*/
|
|
327
|
-
|
|
328
151
|
/**
|
|
329
152
|
* @typedef TicketHistory
|
|
330
153
|
* @property {string} type - Type of the history event
|
|
@@ -349,6 +172,7 @@ const Joi = require("joi");
|
|
|
349
172
|
* @property {TicketSourceEnum} source
|
|
350
173
|
* @property {Status} status
|
|
351
174
|
* @property {Priority} priority
|
|
175
|
+
* @property {SLA} [sla]
|
|
352
176
|
* @property {Object} [created_by] - User details of ticket creator
|
|
353
177
|
* @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
|
|
354
178
|
* @property {string[]} [tags] - Tags relevant to ticket
|
|
@@ -410,44 +234,6 @@ class LeadPartnerModel {
|
|
|
410
234
|
});
|
|
411
235
|
}
|
|
412
236
|
|
|
413
|
-
/** @returns {CustomFormList} */
|
|
414
|
-
static CustomFormList() {
|
|
415
|
-
return Joi.object({
|
|
416
|
-
items: Joi.array().items(LeadPartnerModel.CustomForm()),
|
|
417
|
-
page: LeadPartnerModel.Page(),
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
/** @returns {CreateCustomFormPayload} */
|
|
422
|
-
static CreateCustomFormPayload() {
|
|
423
|
-
return Joi.object({
|
|
424
|
-
slug: Joi.string().allow("").required(),
|
|
425
|
-
title: Joi.string().allow("").required(),
|
|
426
|
-
inputs: Joi.array().items(Joi.any()).required(),
|
|
427
|
-
description: Joi.string().allow(""),
|
|
428
|
-
header_image: Joi.string().allow(""),
|
|
429
|
-
priority: LeadPartnerModel.PriorityEnum().required(),
|
|
430
|
-
should_notify: Joi.boolean(),
|
|
431
|
-
success_message: Joi.string().allow(""),
|
|
432
|
-
poll_for_assignment: LeadPartnerModel.PollForAssignment(),
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/** @returns {EditCustomFormPayload} */
|
|
437
|
-
static EditCustomFormPayload() {
|
|
438
|
-
return Joi.object({
|
|
439
|
-
title: Joi.string().allow("").required(),
|
|
440
|
-
inputs: Joi.array().items(Joi.any()).required(),
|
|
441
|
-
description: Joi.string().allow(""),
|
|
442
|
-
priority: LeadPartnerModel.PriorityEnum().required(),
|
|
443
|
-
header_image: Joi.string().allow(""),
|
|
444
|
-
should_notify: Joi.boolean(),
|
|
445
|
-
login_required: Joi.boolean(),
|
|
446
|
-
success_message: Joi.string().allow(""),
|
|
447
|
-
poll_for_assignment: LeadPartnerModel.PollForAssignment(),
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
|
|
451
237
|
/** @returns {EditTicketPayload} */
|
|
452
238
|
static EditTicketPayload() {
|
|
453
239
|
return Joi.object({
|
|
@@ -469,20 +255,6 @@ class LeadPartnerModel {
|
|
|
469
255
|
});
|
|
470
256
|
}
|
|
471
257
|
|
|
472
|
-
/** @returns {CreateVideoRoomResponse} */
|
|
473
|
-
static CreateVideoRoomResponse() {
|
|
474
|
-
return Joi.object({
|
|
475
|
-
unique_name: Joi.string().allow("").required(),
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/** @returns {CloseVideoRoomResponse} */
|
|
480
|
-
static CloseVideoRoomResponse() {
|
|
481
|
-
return Joi.object({
|
|
482
|
-
success: Joi.boolean().required(),
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
|
|
486
258
|
/** @returns {GeneralConfigResponse} */
|
|
487
259
|
static GeneralConfigResponse() {
|
|
488
260
|
return Joi.object({
|
|
@@ -513,22 +285,6 @@ class LeadPartnerModel {
|
|
|
513
285
|
});
|
|
514
286
|
}
|
|
515
287
|
|
|
516
|
-
/** @returns {CreateVideoRoomPayload} */
|
|
517
|
-
static CreateVideoRoomPayload() {
|
|
518
|
-
return Joi.object({
|
|
519
|
-
unique_name: Joi.string().allow("").required(),
|
|
520
|
-
notify: Joi.array().items(LeadPartnerModel.NotifyUser()),
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
/** @returns {NotifyUser} */
|
|
525
|
-
static NotifyUser() {
|
|
526
|
-
return Joi.object({
|
|
527
|
-
country_code: Joi.string().allow("").required(),
|
|
528
|
-
phone_number: Joi.string().allow("").required(),
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
|
|
532
288
|
/** @returns {Filter} */
|
|
533
289
|
static Filter() {
|
|
534
290
|
return Joi.object({
|
|
@@ -547,81 +303,6 @@ class LeadPartnerModel {
|
|
|
547
303
|
});
|
|
548
304
|
}
|
|
549
305
|
|
|
550
|
-
/** @returns {GetTokenForVideoRoomResponse} */
|
|
551
|
-
static GetTokenForVideoRoomResponse() {
|
|
552
|
-
return Joi.object({
|
|
553
|
-
access_token: Joi.string().allow("").required(),
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
/** @returns {GetParticipantsInsideVideoRoomResponse} */
|
|
558
|
-
static GetParticipantsInsideVideoRoomResponse() {
|
|
559
|
-
return Joi.object({
|
|
560
|
-
participants: Joi.array()
|
|
561
|
-
.items(LeadPartnerModel.Participant())
|
|
562
|
-
.required(),
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/** @returns {Participant} */
|
|
567
|
-
static Participant() {
|
|
568
|
-
return Joi.object({
|
|
569
|
-
user: LeadPartnerModel.UserSchema(),
|
|
570
|
-
identity: Joi.string().allow(""),
|
|
571
|
-
status: Joi.string().allow(""),
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
/** @returns {UserSchema} */
|
|
576
|
-
static UserSchema() {
|
|
577
|
-
return Joi.object({
|
|
578
|
-
first_name: Joi.string().allow(""),
|
|
579
|
-
last_name: Joi.string().allow(""),
|
|
580
|
-
phone_numbers: Joi.array().items(LeadPartnerModel.PhoneNumber()),
|
|
581
|
-
emails: Joi.array().items(LeadPartnerModel.Email()),
|
|
582
|
-
gender: Joi.string().allow(""),
|
|
583
|
-
active: Joi.boolean(),
|
|
584
|
-
profile_pic_url: Joi.string().allow(""),
|
|
585
|
-
username: Joi.string().allow(""),
|
|
586
|
-
account_type: Joi.string().allow(""),
|
|
587
|
-
uid: Joi.string().allow(""),
|
|
588
|
-
debug: LeadPartnerModel.Debug(),
|
|
589
|
-
has_old_password_hash: Joi.boolean(),
|
|
590
|
-
_id: Joi.string().allow(""),
|
|
591
|
-
created_at: Joi.string().allow(""),
|
|
592
|
-
updated_at: Joi.string().allow(""),
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/** @returns {PhoneNumber} */
|
|
597
|
-
static PhoneNumber() {
|
|
598
|
-
return Joi.object({
|
|
599
|
-
active: Joi.boolean(),
|
|
600
|
-
primary: Joi.boolean(),
|
|
601
|
-
verified: Joi.boolean(),
|
|
602
|
-
phone: Joi.string().allow(""),
|
|
603
|
-
country_code: Joi.number(),
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
/** @returns {Email} */
|
|
608
|
-
static Email() {
|
|
609
|
-
return Joi.object({
|
|
610
|
-
primary: Joi.boolean(),
|
|
611
|
-
verified: Joi.boolean(),
|
|
612
|
-
email: Joi.string().allow(""),
|
|
613
|
-
active: Joi.boolean(),
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
/** @returns {Debug} */
|
|
618
|
-
static Debug() {
|
|
619
|
-
return Joi.object({
|
|
620
|
-
source: Joi.string().allow(""),
|
|
621
|
-
platform: Joi.string().allow(""),
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
|
|
625
306
|
/** @returns {TicketContext} */
|
|
626
307
|
static TicketContext() {
|
|
627
308
|
return Joi.object({
|
|
@@ -676,6 +357,13 @@ class LeadPartnerModel {
|
|
|
676
357
|
});
|
|
677
358
|
}
|
|
678
359
|
|
|
360
|
+
/** @returns {SLA} */
|
|
361
|
+
static SLA() {
|
|
362
|
+
return Joi.object({
|
|
363
|
+
resolution_time: Joi.string().allow("").required(),
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
|
|
679
367
|
/** @returns {Status} */
|
|
680
368
|
static Status() {
|
|
681
369
|
return Joi.object({
|
|
@@ -685,59 +373,6 @@ class LeadPartnerModel {
|
|
|
685
373
|
});
|
|
686
374
|
}
|
|
687
375
|
|
|
688
|
-
/** @returns {TicketFeedbackList} */
|
|
689
|
-
static TicketFeedbackList() {
|
|
690
|
-
return Joi.object({
|
|
691
|
-
items: Joi.array().items(LeadPartnerModel.TicketFeedback()),
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/** @returns {TicketFeedbackPayload} */
|
|
696
|
-
static TicketFeedbackPayload() {
|
|
697
|
-
return Joi.object({
|
|
698
|
-
form_response: Joi.any(),
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
/** @returns {SubmitButton} */
|
|
703
|
-
static SubmitButton() {
|
|
704
|
-
return Joi.object({
|
|
705
|
-
title: Joi.string().allow("").required(),
|
|
706
|
-
title_color: Joi.string().allow("").required(),
|
|
707
|
-
background_color: Joi.string().allow("").required(),
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
/** @returns {PollForAssignment} */
|
|
712
|
-
static PollForAssignment() {
|
|
713
|
-
return Joi.object({
|
|
714
|
-
duration: Joi.number().required(),
|
|
715
|
-
message: Joi.string().allow("").required(),
|
|
716
|
-
success_message: Joi.string().allow("").required(),
|
|
717
|
-
failure_message: Joi.string().allow("").required(),
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
/** @returns {CustomForm} */
|
|
722
|
-
static CustomForm() {
|
|
723
|
-
return Joi.object({
|
|
724
|
-
application_id: Joi.string().allow("").required(),
|
|
725
|
-
slug: Joi.string().allow("").required(),
|
|
726
|
-
header_image: Joi.string().allow(""),
|
|
727
|
-
title: Joi.string().allow("").required(),
|
|
728
|
-
description: Joi.string().allow(""),
|
|
729
|
-
priority: LeadPartnerModel.Priority().required(),
|
|
730
|
-
login_required: Joi.boolean().required(),
|
|
731
|
-
should_notify: Joi.boolean().required(),
|
|
732
|
-
success_message: Joi.string().allow(""),
|
|
733
|
-
submit_button: LeadPartnerModel.SubmitButton(),
|
|
734
|
-
inputs: Joi.array().items(Joi.any()).required(),
|
|
735
|
-
created_on: LeadPartnerModel.CreatedOn(),
|
|
736
|
-
poll_for_assignment: LeadPartnerModel.PollForAssignment(),
|
|
737
|
-
_id: Joi.string().allow("").required(),
|
|
738
|
-
});
|
|
739
|
-
}
|
|
740
|
-
|
|
741
376
|
/** @returns {FeedbackForm} */
|
|
742
377
|
static FeedbackForm() {
|
|
743
378
|
return Joi.object({
|
|
@@ -758,31 +393,6 @@ class LeadPartnerModel {
|
|
|
758
393
|
}).id("TicketCategory");
|
|
759
394
|
}
|
|
760
395
|
|
|
761
|
-
/** @returns {FeedbackResponseItem} */
|
|
762
|
-
static FeedbackResponseItem() {
|
|
763
|
-
return Joi.object({
|
|
764
|
-
display: Joi.string().allow("").required(),
|
|
765
|
-
key: Joi.string().allow("").required(),
|
|
766
|
-
value: Joi.string().allow("").required(),
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
/** @returns {TicketFeedback} */
|
|
771
|
-
static TicketFeedback() {
|
|
772
|
-
return Joi.object({
|
|
773
|
-
_id: Joi.string().allow("").required(),
|
|
774
|
-
ticket_id: Joi.string().allow("").required(),
|
|
775
|
-
partner_id: Joi.string().allow("").required(),
|
|
776
|
-
response: Joi.array()
|
|
777
|
-
.items(LeadPartnerModel.FeedbackResponseItem())
|
|
778
|
-
.required(),
|
|
779
|
-
category: Joi.string().allow(""),
|
|
780
|
-
user: Joi.any(),
|
|
781
|
-
updated_at: Joi.string().allow(""),
|
|
782
|
-
created_at: Joi.string().allow(""),
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
|
|
786
396
|
/** @returns {TicketHistory} */
|
|
787
397
|
static TicketHistory() {
|
|
788
398
|
return Joi.object({
|
|
@@ -809,6 +419,7 @@ class LeadPartnerModel {
|
|
|
809
419
|
source: LeadPartnerModel.TicketSourceEnum().required(),
|
|
810
420
|
status: LeadPartnerModel.Status().required(),
|
|
811
421
|
priority: LeadPartnerModel.Priority().required(),
|
|
422
|
+
sla: LeadPartnerModel.SLA(),
|
|
812
423
|
created_by: Joi.any(),
|
|
813
424
|
assigned_to: Joi.any(),
|
|
814
425
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
@@ -47,18 +47,6 @@ class LeadValidator {
|
|
|
47
47
|
}).required();
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
static getTokenForVideoRoom() {
|
|
51
|
-
return Joi.object({
|
|
52
|
-
uniqueName: Joi.string().allow("").required(),
|
|
53
|
-
}).required();
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
static getVideoParticipants() {
|
|
57
|
-
return Joi.object({
|
|
58
|
-
uniqueName: Joi.string().allow("").required(),
|
|
59
|
-
}).required();
|
|
60
|
-
}
|
|
61
|
-
|
|
62
50
|
static getGeneralConfig() {
|
|
63
51
|
return Joi.object({}).required();
|
|
64
52
|
}
|
|
@@ -1159,7 +1159,7 @@ class Logistics {
|
|
|
1159
1159
|
const response = await PartnerAPIClient.execute(
|
|
1160
1160
|
this.config,
|
|
1161
1161
|
"get",
|
|
1162
|
-
`/service/partner/logistics/
|
|
1162
|
+
`/service/partner/logistics/v2.0/organization/${this.config.organizationId}/countries`,
|
|
1163
1163
|
query_params,
|
|
1164
1164
|
undefined,
|
|
1165
1165
|
requestHeaders,
|
|
@@ -382,10 +382,10 @@ class LogisticsPartnerModel {
|
|
|
382
382
|
/** @returns {ArithmeticOperations} */
|
|
383
383
|
static ArithmeticOperations() {
|
|
384
384
|
return Joi.object({
|
|
385
|
-
lt: Joi.number(),
|
|
386
|
-
gt: Joi.number(),
|
|
387
|
-
lte: Joi.number(),
|
|
388
|
-
gte: Joi.number(),
|
|
385
|
+
lt: Joi.number().allow(null),
|
|
386
|
+
gt: Joi.number().allow(null),
|
|
387
|
+
lte: Joi.number().allow(null),
|
|
388
|
+
gte: Joi.number().allow(null),
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
|
|
@@ -172,6 +172,28 @@ declare class Theme {
|
|
|
172
172
|
* @description: Add a new theme to partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createNewThemeInOrganization/).
|
|
173
173
|
*/
|
|
174
174
|
createNewThemeInOrganization({ body, slug, requestHeaders }?: ThemePartnerValidator.CreateNewThemeInOrganizationParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme>;
|
|
175
|
+
/**
|
|
176
|
+
* @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
|
|
177
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
178
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
179
|
+
* @returns {Promise<ThemePartnerModel.DraftExtensionSectionResponse>} -
|
|
180
|
+
* Success response
|
|
181
|
+
* @name createExtensionSectionDraft
|
|
182
|
+
* @summary: Draft extension section
|
|
183
|
+
* @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createExtensionSectionDraft/).
|
|
184
|
+
*/
|
|
185
|
+
createExtensionSectionDraft({ extensionId, body, requestHeaders }?: ThemePartnerValidator.CreateExtensionSectionDraftParam, { responseHeaders }?: object): Promise<ThemePartnerModel.DraftExtensionSectionResponse>;
|
|
186
|
+
/**
|
|
187
|
+
* @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
|
|
188
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
189
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
190
|
+
* @returns {Promise<ThemePartnerModel.PublishExtensionSectionResponse>} -
|
|
191
|
+
* Success response
|
|
192
|
+
* @name publishExtensionSections
|
|
193
|
+
* @summary: Publish an extension section
|
|
194
|
+
* @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/publishExtensionSections/).
|
|
195
|
+
*/
|
|
196
|
+
publishExtensionSections({ extensionId, body, requestHeaders }?: ThemePartnerValidator.PublishExtensionSectionsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.PublishExtensionSectionResponse>;
|
|
175
197
|
/**
|
|
176
198
|
* @param {ThemePartnerValidator.GetThemeRejectionReasonsParam} arg - Arg object.
|
|
177
199
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|