@gofynd/fdk-client-javascript 1.4.7 → 1.4.8-beta.3

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.
Files changed (123) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
  4. package/sdk/application/Cart/CartApplicationClient.js +118 -13
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
  6. package/sdk/application/Cart/CartApplicationModel.js +98 -26
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
  8. package/sdk/application/Cart/CartApplicationValidator.js +26 -0
  9. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
  10. package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
  12. package/sdk/application/Content/ContentApplicationClient.js +5 -3
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +7 -18
  14. package/sdk/application/Content/ContentApplicationModel.js +6 -20
  15. package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
  16. package/sdk/application/Content/ContentApplicationValidator.js +4 -0
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
  18. package/sdk/application/Lead/LeadApplicationClient.js +0 -167
  19. package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
  20. package/sdk/application/Lead/LeadApplicationModel.js +0 -126
  21. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
  22. package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
  23. package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
  24. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
  26. package/sdk/application/Order/OrderApplicationModel.d.ts +4 -0
  27. package/sdk/application/Order/OrderApplicationModel.js +4 -0
  28. package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
  29. package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
  30. package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
  31. package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
  32. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
  33. package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
  34. package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
  35. package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
  36. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
  37. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
  38. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
  39. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +47 -1
  40. package/sdk/partner/Logistics/LogisticsPartnerModel.js +56 -4
  41. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
  42. package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
  43. package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
  44. package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
  45. package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
  46. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  47. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  48. package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
  49. package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
  50. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
  51. package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
  52. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
  53. package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
  54. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
  55. package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
  56. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
  57. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
  58. package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
  59. package/sdk/platform/Cart/CartPlatformModel.js +164 -24
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  61. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
  62. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
  63. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
  64. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  65. package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
  66. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
  67. package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
  68. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
  69. package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
  70. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
  72. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
  74. package/sdk/platform/Content/ContentPlatformModel.d.ts +8 -4
  75. package/sdk/platform/Content/ContentPlatformModel.js +8 -4
  76. package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
  77. package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
  78. package/sdk/platform/Finance/FinancePlatformModel.d.ts +369 -129
  79. package/sdk/platform/Finance/FinancePlatformModel.js +404 -110
  80. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
  81. package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
  82. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
  83. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
  84. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
  85. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
  86. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
  87. package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
  88. package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
  89. package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
  90. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
  91. package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
  92. package/sdk/platform/Order/OrderPlatformModel.d.ts +126 -15
  93. package/sdk/platform/Order/OrderPlatformModel.js +55 -14
  94. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
  95. package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
  96. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  97. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  98. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +20 -1
  99. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +26 -4
  100. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  101. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  102. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
  103. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
  104. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
  105. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
  106. package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
  107. package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
  108. package/sdk/platform/User/UserPlatformModel.d.ts +0 -2
  109. package/sdk/platform/User/UserPlatformModel.js +0 -2
  110. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
  111. package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
  112. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +94 -146
  113. package/sdk/platform/Webhook/WebhookPlatformModel.js +100 -151
  114. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
  115. package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
  116. package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
  117. package/sdk/public/Billing/BillingPublicClient.js +156 -3
  118. package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
  119. package/sdk/public/Billing/BillingPublicModel.js +317 -18
  120. package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
  121. package/sdk/public/Billing/BillingPublicValidator.js +22 -3
  122. package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
  123. package/sdk/public/Webhook/WebhookPublicModel.js +22 -22
@@ -20,38 +20,6 @@ export = LeadPartnerModel;
20
20
  * @property {TicketHistory[]} [items] - List of ticket history
21
21
  * @property {Page} [page]
22
22
  */
23
- /**
24
- * @typedef CustomFormList
25
- * @property {CustomForm[]} [items] - List of forms
26
- * @property {Page} [page]
27
- */
28
- /**
29
- * @typedef CreateCustomFormPayload
30
- * @property {string} slug - Slug for the form
31
- * @property {string} title - Title for the form
32
- * @property {Object[]} inputs - List of all the form components
33
- * @property {string} [description] - Description of the form
34
- * @property {string} [header_image] - Header image that is to be shown for the form
35
- * @property {PriorityEnum} priority
36
- * @property {boolean} [should_notify] - Indicates if staff should be notified
37
- * when a response is received
38
- * @property {string} [success_message] - Success message that will be shown on submission
39
- * @property {PollForAssignment} [poll_for_assignment]
40
- */
41
- /**
42
- * @typedef EditCustomFormPayload
43
- * @property {string} title - Title for the form
44
- * @property {Object[]} inputs - List of all the form components
45
- * @property {string} [description] - Description of the form
46
- * @property {PriorityEnum} priority
47
- * @property {string} [header_image] - Header image that is to be shown for the form
48
- * @property {boolean} [should_notify] - Indicates if staff should be notified
49
- * when a response is received
50
- * @property {boolean} [login_required] - Denotes if login is required to make a
51
- * form response submission
52
- * @property {string} [success_message] - Success message that will be shown on submission
53
- * @property {PollForAssignment} [poll_for_assignment]
54
- */
55
23
  /**
56
24
  * @typedef EditTicketPayload
57
25
  * @property {TicketContent} [content]
@@ -68,14 +36,6 @@ export = LeadPartnerModel;
68
36
  * @typedef AgentChangePayload
69
37
  * @property {string} agent_id - Agent's unique ID
70
38
  */
71
- /**
72
- * @typedef CreateVideoRoomResponse
73
- * @property {string} unique_name - Video Room's unique name
74
- */
75
- /**
76
- * @typedef CloseVideoRoomResponse
77
- * @property {boolean} success - Denotes if operation was successfully
78
- */
79
39
  /**
80
40
  * @typedef GeneralConfigResponse
81
41
  * @property {SupportCommunicationSchema[]} [support_communication]
@@ -95,16 +55,6 @@ export = LeadPartnerModel;
95
55
  * @typedef GeneralConfigIntegrationSchema
96
56
  * @property {string} [type]
97
57
  */
98
- /**
99
- * @typedef CreateVideoRoomPayload
100
- * @property {string} unique_name - Ticket id
101
- * @property {NotifyUser[]} [notify] - List of people to be notified
102
- */
103
- /**
104
- * @typedef NotifyUser
105
- * @property {string} country_code - Country code
106
- * @property {string} phone_number - Phone number
107
- */
108
58
  /**
109
59
  * @typedef Filter
110
60
  * @property {Priority[]} priorities - List of possible priorities for tickets
@@ -117,58 +67,6 @@ export = LeadPartnerModel;
117
67
  * @property {Object} value - Details of history event
118
68
  * @property {HistoryTypeEnum} type
119
69
  */
120
- /**
121
- * @typedef GetTokenForVideoRoomResponse
122
- * @property {string} access_token - Access token to be used for video room
123
- */
124
- /**
125
- * @typedef GetParticipantsInsideVideoRoomResponse
126
- * @property {Participant[]} participants - List of participants of the video room
127
- */
128
- /**
129
- * @typedef Participant
130
- * @property {UserSchema} [user]
131
- * @property {string} [identity] - Unique identifier of participant
132
- * @property {string} [status] - Status of participant
133
- */
134
- /**
135
- * @typedef UserSchema
136
- * @property {string} [first_name] - First name
137
- * @property {string} [last_name] - Last name
138
- * @property {PhoneNumber[]} [phone_numbers] - List of phone numbers
139
- * @property {Email[]} [emails] - List of email addresses
140
- * @property {string} [gender] - Gender of user
141
- * @property {boolean} [active] - Is account active
142
- * @property {string} [profile_pic_url] - URL for profile pic
143
- * @property {string} [username] - Username of user
144
- * @property {string} [account_type] - Type of account
145
- * @property {string} [uid] - Unique identifier of user
146
- * @property {Debug} [debug]
147
- * @property {boolean} [has_old_password_hash] - Denotes if user has old password hash
148
- * @property {string} [_id] - Unique identifier of user
149
- * @property {string} [created_at] - Time of user creation
150
- * @property {string} [updated_at] - Last time of user details update
151
- */
152
- /**
153
- * @typedef PhoneNumber
154
- * @property {boolean} [active] - Denotes if the phone number is active
155
- * @property {boolean} [primary] - Denotes it's the primary phone number for the account
156
- * @property {boolean} [verified] - Denotes it's a verified phone number
157
- * @property {string} [phone] - Phone number
158
- * @property {number} [country_code] - Country code
159
- */
160
- /**
161
- * @typedef Email
162
- * @property {boolean} [primary] - Denotes it's the primary email for the account
163
- * @property {boolean} [verified] - Denotes it's a verified email
164
- * @property {string} [email] - Email Address
165
- * @property {boolean} [active] - Denotes if the email is active
166
- */
167
- /**
168
- * @typedef Debug
169
- * @property {string} [source] - Source of user
170
- * @property {string} [platform] - Platform of user
171
- */
172
70
  /**
173
71
  * @typedef TicketContext
174
72
  * @property {string} [application_id] - Application ID related to the ticket
@@ -205,54 +103,16 @@ export = LeadPartnerModel;
205
103
  * @property {string} display - Display text for priority
206
104
  * @property {string} color - Color for priority
207
105
  */
106
+ /**
107
+ * @typedef SLA
108
+ * @property {string} resolution_time
109
+ */
208
110
  /**
209
111
  * @typedef Status
210
112
  * @property {string} key - Key for status
211
113
  * @property {string} display - Display text for status
212
114
  * @property {string} color - Color for status
213
115
  */
214
- /**
215
- * @typedef TicketFeedbackList
216
- * @property {TicketFeedback[]} [items] - List of all ticket feedback for the ticket
217
- */
218
- /**
219
- * @typedef TicketFeedbackPayload
220
- * @property {Object} [form_response] - Key-value pairs of all the form fields
221
- * and their response
222
- */
223
- /**
224
- * @typedef SubmitButton
225
- * @property {string} title - Title for submit button
226
- * @property {string} title_color - Title color submit button
227
- * @property {string} background_color - Color for submit button
228
- */
229
- /**
230
- * @typedef PollForAssignment
231
- * @property {number} duration - Duration for polling of staff
232
- * @property {string} message - Message for polling
233
- * @property {string} success_message - Message for successful polling
234
- * @property {string} failure_message - Message if polling failed
235
- */
236
- /**
237
- * @typedef CustomForm
238
- * @property {string} application_id - Application ID for form
239
- * @property {string} slug - Slug for the form, which is to be used for accessing the form
240
- * @property {string} [header_image] - Form header image that will be shown to the user
241
- * @property {string} title - Form title that will be shown to the user
242
- * @property {string} [description] - Form description that will be shown to the user
243
- * @property {Priority} priority
244
- * @property {boolean} login_required - Denotes if login is required to make a
245
- * form response submission
246
- * @property {boolean} should_notify - Denotes if new response submission for
247
- * the form should be notified to the assignees
248
- * @property {string} [success_message] - Message that is to be shown on
249
- * succesfull form response submission
250
- * @property {SubmitButton} [submit_button]
251
- * @property {Object[]} inputs - List of all the form fields
252
- * @property {CreatedOn} [created_on]
253
- * @property {PollForAssignment} [poll_for_assignment]
254
- * @property {string} _id - Unique identifier for the form
255
- */
256
116
  /**
257
117
  * @typedef FeedbackForm
258
118
  * @property {Object} [inputs] - Input details for the feed back form
@@ -267,23 +127,6 @@ export = LeadPartnerModel;
267
127
  * @property {number} [group_id] - Group id of category releted data
268
128
  * @property {FeedbackForm} [feedback_form]
269
129
  */
270
- /**
271
- * @typedef FeedbackResponseItem
272
- * @property {string} display - Question/Title of the form field
273
- * @property {string} key - Key of the form field
274
- * @property {string} value - User response value for the form field
275
- */
276
- /**
277
- * @typedef TicketFeedback
278
- * @property {string} _id - Unique identifier for the feedback
279
- * @property {string} ticket_id - Readable ticket number
280
- * @property {string} partner_id - Partner id for which ticket was raised
281
- * @property {FeedbackResponseItem[]} response
282
- * @property {string} [category] - Category of the ticket
283
- * @property {Object} [user] - User who submitted the feedback
284
- * @property {string} [updated_at] - Time when the feedback was last updated
285
- * @property {string} [created_at] - Time when the feedback was created
286
- */
287
130
  /**
288
131
  * @typedef TicketHistory
289
132
  * @property {string} type - Type of the history event
@@ -307,6 +150,7 @@ export = LeadPartnerModel;
307
150
  * @property {TicketSourceEnum} source
308
151
  * @property {Status} status
309
152
  * @property {Priority} priority
153
+ * @property {SLA} [sla]
310
154
  * @property {Object} [created_by] - User details of ticket creator
311
155
  * @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
312
156
  * @property {string[]} [tags] - Tags relevant to ticket
@@ -335,7 +179,7 @@ export = LeadPartnerModel;
335
179
  declare class LeadPartnerModel {
336
180
  }
337
181
  declare namespace LeadPartnerModel {
338
- export { TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, CreateVideoRoomResponse, CloseVideoRoomResponse, GeneralConfigResponse, SupportCommunicationSchema, GeneralConfigIntegrationSchema, CreateVideoRoomPayload, NotifyUser, Filter, TicketHistoryPayload, GetTokenForVideoRoomResponse, GetParticipantsInsideVideoRoomResponse, Participant, UserSchema, PhoneNumber, Email, Debug, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
182
+ export { TicketList, Page, TicketHistoryList, EditTicketPayload, AgentChangePayload, GeneralConfigResponse, SupportCommunicationSchema, GeneralConfigIntegrationSchema, Filter, TicketHistoryPayload, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, SLA, Status, FeedbackForm, TicketCategory, TicketHistory, Ticket, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
339
183
  }
340
184
  /** @returns {TicketList} */
341
185
  declare function TicketList(): TicketList;
@@ -367,86 +211,6 @@ type TicketHistoryList = {
367
211
  items?: TicketHistory[];
368
212
  page?: Page;
369
213
  };
370
- /** @returns {CustomFormList} */
371
- declare function CustomFormList(): CustomFormList;
372
- type CustomFormList = {
373
- /**
374
- * - List of forms
375
- */
376
- items?: CustomForm[];
377
- page?: Page;
378
- };
379
- /** @returns {CreateCustomFormPayload} */
380
- declare function CreateCustomFormPayload(): CreateCustomFormPayload;
381
- type CreateCustomFormPayload = {
382
- /**
383
- * - Slug for the form
384
- */
385
- slug: string;
386
- /**
387
- * - Title for the form
388
- */
389
- title: string;
390
- /**
391
- * - List of all the form components
392
- */
393
- inputs: any[];
394
- /**
395
- * - Description of the form
396
- */
397
- description?: string;
398
- /**
399
- * - Header image that is to be shown for the form
400
- */
401
- header_image?: string;
402
- priority: PriorityEnum;
403
- /**
404
- * - Indicates if staff should be notified
405
- * when a response is received
406
- */
407
- should_notify?: boolean;
408
- /**
409
- * - Success message that will be shown on submission
410
- */
411
- success_message?: string;
412
- poll_for_assignment?: PollForAssignment;
413
- };
414
- /** @returns {EditCustomFormPayload} */
415
- declare function EditCustomFormPayload(): EditCustomFormPayload;
416
- type EditCustomFormPayload = {
417
- /**
418
- * - Title for the form
419
- */
420
- title: string;
421
- /**
422
- * - List of all the form components
423
- */
424
- inputs: any[];
425
- /**
426
- * - Description of the form
427
- */
428
- description?: string;
429
- priority: PriorityEnum;
430
- /**
431
- * - Header image that is to be shown for the form
432
- */
433
- header_image?: string;
434
- /**
435
- * - Indicates if staff should be notified
436
- * when a response is received
437
- */
438
- should_notify?: boolean;
439
- /**
440
- * - Denotes if login is required to make a
441
- * form response submission
442
- */
443
- login_required?: boolean;
444
- /**
445
- * - Success message that will be shown on submission
446
- */
447
- success_message?: string;
448
- poll_for_assignment?: PollForAssignment;
449
- };
450
214
  /** @returns {EditTicketPayload} */
451
215
  declare function EditTicketPayload(): EditTicketPayload;
452
216
  type EditTicketPayload = {
@@ -483,22 +247,6 @@ type AgentChangePayload = {
483
247
  */
484
248
  agent_id: string;
485
249
  };
486
- /** @returns {CreateVideoRoomResponse} */
487
- declare function CreateVideoRoomResponse(): CreateVideoRoomResponse;
488
- type CreateVideoRoomResponse = {
489
- /**
490
- * - Video Room's unique name
491
- */
492
- unique_name: string;
493
- };
494
- /** @returns {CloseVideoRoomResponse} */
495
- declare function CloseVideoRoomResponse(): CloseVideoRoomResponse;
496
- type CloseVideoRoomResponse = {
497
- /**
498
- * - Denotes if operation was successfully
499
- */
500
- success: boolean;
501
- };
502
250
  /** @returns {GeneralConfigResponse} */
503
251
  declare function GeneralConfigResponse(): GeneralConfigResponse;
504
252
  type GeneralConfigResponse = {
@@ -521,30 +269,6 @@ declare function GeneralConfigIntegrationSchema(): GeneralConfigIntegrationSchem
521
269
  type GeneralConfigIntegrationSchema = {
522
270
  type?: string;
523
271
  };
524
- /** @returns {CreateVideoRoomPayload} */
525
- declare function CreateVideoRoomPayload(): CreateVideoRoomPayload;
526
- type CreateVideoRoomPayload = {
527
- /**
528
- * - Ticket id
529
- */
530
- unique_name: string;
531
- /**
532
- * - List of people to be notified
533
- */
534
- notify?: NotifyUser[];
535
- };
536
- /** @returns {NotifyUser} */
537
- declare function NotifyUser(): NotifyUser;
538
- type NotifyUser = {
539
- /**
540
- * - Country code
541
- */
542
- country_code: string;
543
- /**
544
- * - Phone number
545
- */
546
- phone_number: string;
547
- };
548
272
  /** @returns {Filter} */
549
273
  declare function Filter(): Filter;
550
274
  type Filter = {
@@ -574,152 +298,6 @@ type TicketHistoryPayload = {
574
298
  value: any;
575
299
  type: HistoryTypeEnum;
576
300
  };
577
- /** @returns {GetTokenForVideoRoomResponse} */
578
- declare function GetTokenForVideoRoomResponse(): GetTokenForVideoRoomResponse;
579
- type GetTokenForVideoRoomResponse = {
580
- /**
581
- * - Access token to be used for video room
582
- */
583
- access_token: string;
584
- };
585
- /** @returns {GetParticipantsInsideVideoRoomResponse} */
586
- declare function GetParticipantsInsideVideoRoomResponse(): GetParticipantsInsideVideoRoomResponse;
587
- type GetParticipantsInsideVideoRoomResponse = {
588
- /**
589
- * - List of participants of the video room
590
- */
591
- participants: Participant[];
592
- };
593
- /** @returns {Participant} */
594
- declare function Participant(): Participant;
595
- type Participant = {
596
- user?: UserSchema;
597
- /**
598
- * - Unique identifier of participant
599
- */
600
- identity?: string;
601
- /**
602
- * - Status of participant
603
- */
604
- status?: string;
605
- };
606
- /** @returns {UserSchema} */
607
- declare function UserSchema(): UserSchema;
608
- type UserSchema = {
609
- /**
610
- * - First name
611
- */
612
- first_name?: string;
613
- /**
614
- * - Last name
615
- */
616
- last_name?: string;
617
- /**
618
- * - List of phone numbers
619
- */
620
- phone_numbers?: PhoneNumber[];
621
- /**
622
- * - List of email addresses
623
- */
624
- emails?: Email[];
625
- /**
626
- * - Gender of user
627
- */
628
- gender?: string;
629
- /**
630
- * - Is account active
631
- */
632
- active?: boolean;
633
- /**
634
- * - URL for profile pic
635
- */
636
- profile_pic_url?: string;
637
- /**
638
- * - Username of user
639
- */
640
- username?: string;
641
- /**
642
- * - Type of account
643
- */
644
- account_type?: string;
645
- /**
646
- * - Unique identifier of user
647
- */
648
- uid?: string;
649
- debug?: Debug;
650
- /**
651
- * - Denotes if user has old password hash
652
- */
653
- has_old_password_hash?: boolean;
654
- /**
655
- * - Unique identifier of user
656
- */
657
- _id?: string;
658
- /**
659
- * - Time of user creation
660
- */
661
- created_at?: string;
662
- /**
663
- * - Last time of user details update
664
- */
665
- updated_at?: string;
666
- };
667
- /** @returns {PhoneNumber} */
668
- declare function PhoneNumber(): PhoneNumber;
669
- type PhoneNumber = {
670
- /**
671
- * - Denotes if the phone number is active
672
- */
673
- active?: boolean;
674
- /**
675
- * - Denotes it's the primary phone number for the account
676
- */
677
- primary?: boolean;
678
- /**
679
- * - Denotes it's a verified phone number
680
- */
681
- verified?: boolean;
682
- /**
683
- * - Phone number
684
- */
685
- phone?: string;
686
- /**
687
- * - Country code
688
- */
689
- country_code?: number;
690
- };
691
- /** @returns {Email} */
692
- declare function Email(): Email;
693
- type Email = {
694
- /**
695
- * - Denotes it's the primary email for the account
696
- */
697
- primary?: boolean;
698
- /**
699
- * - Denotes it's a verified email
700
- */
701
- verified?: boolean;
702
- /**
703
- * - Email Address
704
- */
705
- email?: string;
706
- /**
707
- * - Denotes if the email is active
708
- */
709
- active?: boolean;
710
- };
711
- /** @returns {Debug} */
712
- declare function Debug(): Debug;
713
- type Debug = {
714
- /**
715
- * - Source of user
716
- */
717
- source?: string;
718
- /**
719
- * - Platform of user
720
- */
721
- platform?: string;
722
- };
723
301
  /** @returns {TicketContext} */
724
302
  declare function TicketContext(): TicketContext;
725
303
  type TicketContext = {
@@ -804,6 +382,11 @@ type Priority = {
804
382
  */
805
383
  color: string;
806
384
  };
385
+ /** @returns {SLA} */
386
+ declare function SLA(): SLA;
387
+ type SLA = {
388
+ resolution_time: string;
389
+ };
807
390
  /** @returns {Status} */
808
391
  declare function Status(): Status;
809
392
  type Status = {
@@ -820,110 +403,6 @@ type Status = {
820
403
  */
821
404
  color: string;
822
405
  };
823
- /** @returns {TicketFeedbackList} */
824
- declare function TicketFeedbackList(): TicketFeedbackList;
825
- type TicketFeedbackList = {
826
- /**
827
- * - List of all ticket feedback for the ticket
828
- */
829
- items?: TicketFeedback[];
830
- };
831
- /** @returns {TicketFeedbackPayload} */
832
- declare function TicketFeedbackPayload(): TicketFeedbackPayload;
833
- type TicketFeedbackPayload = {
834
- /**
835
- * - Key-value pairs of all the form fields
836
- * and their response
837
- */
838
- form_response?: any;
839
- };
840
- /** @returns {SubmitButton} */
841
- declare function SubmitButton(): SubmitButton;
842
- type SubmitButton = {
843
- /**
844
- * - Title for submit button
845
- */
846
- title: string;
847
- /**
848
- * - Title color submit button
849
- */
850
- title_color: string;
851
- /**
852
- * - Color for submit button
853
- */
854
- background_color: string;
855
- };
856
- /** @returns {PollForAssignment} */
857
- declare function PollForAssignment(): PollForAssignment;
858
- type PollForAssignment = {
859
- /**
860
- * - Duration for polling of staff
861
- */
862
- duration: number;
863
- /**
864
- * - Message for polling
865
- */
866
- message: string;
867
- /**
868
- * - Message for successful polling
869
- */
870
- success_message: string;
871
- /**
872
- * - Message if polling failed
873
- */
874
- failure_message: string;
875
- };
876
- /** @returns {CustomForm} */
877
- declare function CustomForm(): CustomForm;
878
- type CustomForm = {
879
- /**
880
- * - Application ID for form
881
- */
882
- application_id: string;
883
- /**
884
- * - Slug for the form, which is to be used for accessing the form
885
- */
886
- slug: string;
887
- /**
888
- * - Form header image that will be shown to the user
889
- */
890
- header_image?: string;
891
- /**
892
- * - Form title that will be shown to the user
893
- */
894
- title: string;
895
- /**
896
- * - Form description that will be shown to the user
897
- */
898
- description?: string;
899
- priority: Priority;
900
- /**
901
- * - Denotes if login is required to make a
902
- * form response submission
903
- */
904
- login_required: boolean;
905
- /**
906
- * - Denotes if new response submission for
907
- * the form should be notified to the assignees
908
- */
909
- should_notify: boolean;
910
- /**
911
- * - Message that is to be shown on
912
- * succesfull form response submission
913
- */
914
- success_message?: string;
915
- submit_button?: SubmitButton;
916
- /**
917
- * - List of all the form fields
918
- */
919
- inputs: any[];
920
- created_on?: CreatedOn;
921
- poll_for_assignment?: PollForAssignment;
922
- /**
923
- * - Unique identifier for the form
924
- */
925
- _id: string;
926
- };
927
406
  /** @returns {FeedbackForm} */
928
407
  declare function FeedbackForm(): FeedbackForm;
929
408
  type FeedbackForm = {
@@ -958,55 +437,6 @@ type TicketCategory = {
958
437
  group_id?: number;
959
438
  feedback_form?: FeedbackForm;
960
439
  };
961
- /** @returns {FeedbackResponseItem} */
962
- declare function FeedbackResponseItem(): FeedbackResponseItem;
963
- type FeedbackResponseItem = {
964
- /**
965
- * - Question/Title of the form field
966
- */
967
- display: string;
968
- /**
969
- * - Key of the form field
970
- */
971
- key: string;
972
- /**
973
- * - User response value for the form field
974
- */
975
- value: string;
976
- };
977
- /** @returns {TicketFeedback} */
978
- declare function TicketFeedback(): TicketFeedback;
979
- type TicketFeedback = {
980
- /**
981
- * - Unique identifier for the feedback
982
- */
983
- _id: string;
984
- /**
985
- * - Readable ticket number
986
- */
987
- ticket_id: string;
988
- /**
989
- * - Partner id for which ticket was raised
990
- */
991
- partner_id: string;
992
- response: FeedbackResponseItem[];
993
- /**
994
- * - Category of the ticket
995
- */
996
- category?: string;
997
- /**
998
- * - User who submitted the feedback
999
- */
1000
- user?: any;
1001
- /**
1002
- * - Time when the feedback was last updated
1003
- */
1004
- updated_at?: string;
1005
- /**
1006
- * - Time when the feedback was created
1007
- */
1008
- created_at?: string;
1009
- };
1010
440
  /** @returns {TicketHistory} */
1011
441
  declare function TicketHistory(): TicketHistory;
1012
442
  type TicketHistory = {
@@ -1059,6 +489,7 @@ type Ticket = {
1059
489
  source: TicketSourceEnum;
1060
490
  status: Status;
1061
491
  priority: Priority;
492
+ sla?: SLA;
1062
493
  /**
1063
494
  * - User details of ticket creator
1064
495
  */