@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
@@ -336,7 +336,7 @@ class Lead {
336
336
  * @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object
337
337
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
338
338
  * @param {import("../PlatformAPIClient").Options} - Options
339
- * @returns {Promise<LeadPlatformModel.CloseVideoRoomResponse>} - Success response
339
+ * @returns {Promise<LeadPlatformModel.GeneralConfigResponse>} - Success response
340
340
  * @name getGeneralConfig
341
341
  * @summary: Get general configuration
342
342
  * @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getGeneralConfig/).
@@ -388,7 +388,7 @@ class Lead {
388
388
 
389
389
  const {
390
390
  error: res_error,
391
- } = LeadPlatformModel.CloseVideoRoomResponse().validate(responseData, {
391
+ } = LeadPlatformModel.GeneralConfigResponse().validate(responseData, {
392
392
  abortEarly: false,
393
393
  allowUnknown: true,
394
394
  });
@@ -676,171 +676,6 @@ class Lead {
676
676
  return response;
677
677
  }
678
678
 
679
- /**
680
- * @param {LeadPlatformValidator.GetPlatformVideoParticipantsParam} arg - Arg object
681
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
682
- * @param {import("../PlatformAPIClient").Options} - Options
683
- * @returns {Promise<LeadPlatformModel.GetParticipantsInsideVideoRoomResponse>}
684
- * - Success response
685
- *
686
- * @name getPlatformVideoParticipants
687
- * @summary: List video Room Participants
688
- * @description: Get a list of participants in a platform video room - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getPlatformVideoParticipants/).
689
- */
690
- async getPlatformVideoParticipants(
691
- { uniqueName, requestHeaders } = { requestHeaders: {} },
692
- { responseHeaders } = { responseHeaders: false }
693
- ) {
694
- const {
695
- error,
696
- } = LeadPlatformValidator.getPlatformVideoParticipants().validate(
697
- {
698
- uniqueName,
699
- },
700
- { abortEarly: false, allowUnknown: true }
701
- );
702
- if (error) {
703
- return Promise.reject(new FDKClientValidationError(error));
704
- }
705
-
706
- // Showing warrnings if extra unknown parameters are found
707
- const {
708
- error: warrning,
709
- } = LeadPlatformValidator.getPlatformVideoParticipants().validate(
710
- {
711
- uniqueName,
712
- },
713
- { abortEarly: false, allowUnknown: false }
714
- );
715
- if (warrning) {
716
- Logger({
717
- level: "WARN",
718
- message: `Parameter Validation warrnings for platform > Lead > getPlatformVideoParticipants \n ${warrning}`,
719
- });
720
- }
721
-
722
- const query_params = {};
723
-
724
- const xHeaders = {};
725
-
726
- const response = await PlatformAPIClient.execute(
727
- this.config,
728
- "get",
729
- `/service/platform/lead/v1.0/company/${this.config.companyId}/video/room/${uniqueName}/participants`,
730
- query_params,
731
- undefined,
732
- { ...xHeaders, ...requestHeaders },
733
- { responseHeaders }
734
- );
735
-
736
- let responseData = response;
737
- if (responseHeaders) {
738
- responseData = response[0];
739
- }
740
-
741
- const {
742
- error: res_error,
743
- } = LeadPlatformModel.GetParticipantsInsideVideoRoomResponse().validate(
744
- responseData,
745
- { abortEarly: false, allowUnknown: true }
746
- );
747
-
748
- if (res_error) {
749
- if (this.config.options.strictResponseCheck === true) {
750
- return Promise.reject(new FDKResponseValidationError(res_error));
751
- } else {
752
- Logger({
753
- level: "WARN",
754
- message: `Response Validation Warnings for platform > Lead > getPlatformVideoParticipants \n ${res_error}`,
755
- });
756
- }
757
- }
758
-
759
- return response;
760
- }
761
-
762
- /**
763
- * @param {LeadPlatformValidator.GetTokenForPlatformVideoRoomParam} arg - Arg object
764
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
765
- * @param {import("../PlatformAPIClient").Options} - Options
766
- * @returns {Promise<LeadPlatformModel.GetTokenForVideoRoomResponse>} -
767
- * Success response
768
- * @name getTokenForPlatformVideoRoom
769
- * @summary: Get video Room Token
770
- * @description: Get an access token for a platform video room. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTokenForPlatformVideoRoom/).
771
- */
772
- async getTokenForPlatformVideoRoom(
773
- { uniqueName, requestHeaders } = { requestHeaders: {} },
774
- { responseHeaders } = { responseHeaders: false }
775
- ) {
776
- const {
777
- error,
778
- } = LeadPlatformValidator.getTokenForPlatformVideoRoom().validate(
779
- {
780
- uniqueName,
781
- },
782
- { abortEarly: false, allowUnknown: true }
783
- );
784
- if (error) {
785
- return Promise.reject(new FDKClientValidationError(error));
786
- }
787
-
788
- // Showing warrnings if extra unknown parameters are found
789
- const {
790
- error: warrning,
791
- } = LeadPlatformValidator.getTokenForPlatformVideoRoom().validate(
792
- {
793
- uniqueName,
794
- },
795
- { abortEarly: false, allowUnknown: false }
796
- );
797
- if (warrning) {
798
- Logger({
799
- level: "WARN",
800
- message: `Parameter Validation warrnings for platform > Lead > getTokenForPlatformVideoRoom \n ${warrning}`,
801
- });
802
- }
803
-
804
- const query_params = {};
805
-
806
- const xHeaders = {};
807
-
808
- const response = await PlatformAPIClient.execute(
809
- this.config,
810
- "get",
811
- `/service/platform/lead/v1.0/company/${this.config.companyId}/video/room/${uniqueName}/token`,
812
- query_params,
813
- undefined,
814
- { ...xHeaders, ...requestHeaders },
815
- { responseHeaders }
816
- );
817
-
818
- let responseData = response;
819
- if (responseHeaders) {
820
- responseData = response[0];
821
- }
822
-
823
- const {
824
- error: res_error,
825
- } = LeadPlatformModel.GetTokenForVideoRoomResponse().validate(
826
- responseData,
827
- { abortEarly: false, allowUnknown: true }
828
- );
829
-
830
- if (res_error) {
831
- if (this.config.options.strictResponseCheck === true) {
832
- return Promise.reject(new FDKResponseValidationError(res_error));
833
- } else {
834
- Logger({
835
- level: "WARN",
836
- message: `Response Validation Warnings for platform > Lead > getTokenForPlatformVideoRoom \n ${res_error}`,
837
- });
838
- }
839
- }
840
-
841
- return response;
842
- }
843
-
844
679
  /**
845
680
  * @param {LeadPlatformValidator.SubmitFeedbackParam} arg - Arg object
846
681
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1,4 +1,37 @@
1
1
  export = LeadPlatformModel;
2
+ /**
3
+ * @typedef GeneralConfigResponse
4
+ * @property {string} [_id]
5
+ * @property {SupportCommunicationSchema[]} [support_communication]
6
+ * @property {boolean} [show_communication_info]
7
+ * @property {boolean} [show_support_dris]
8
+ * @property {string} [type]
9
+ * @property {GeneralConfigIntegrationSchema} [integration]
10
+ * @property {boolean} [allow_ticket_creation]
11
+ * @property {boolean} [show_listing]
12
+ * @property {string[]} [available_integration]
13
+ * @property {boolean} [enable_dris]
14
+ * @property {SupportSchema} [support_email]
15
+ * @property {SupportSchema} [support_phone]
16
+ * @property {SupportSchema} [support_faq]
17
+ */
18
+ /**
19
+ * @typedef SupportCommunicationSchema
20
+ * @property {string} [type]
21
+ * @property {string} [title]
22
+ * @property {string} [description]
23
+ * @property {boolean} [enabled]
24
+ */
25
+ /**
26
+ * @typedef SupportSchema
27
+ * @property {string} [value]
28
+ * @property {string} [description]
29
+ * @property {boolean} [enabled]
30
+ */
31
+ /**
32
+ * @typedef GeneralConfigIntegrationSchema
33
+ * @property {string} [type]
34
+ */
2
35
  /**
3
36
  * @typedef TicketList
4
37
  * @property {Ticket[]} [items] - List of tickets
@@ -68,24 +101,6 @@ export = LeadPlatformModel;
68
101
  * @typedef AgentChangePayload
69
102
  * @property {string} agent_id - Agent's unique ID
70
103
  */
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
- /**
80
- * @typedef CreateVideoRoomPayload
81
- * @property {string} unique_name - Ticket id
82
- * @property {NotifyUser[]} [notify] - List of people to be notified
83
- */
84
- /**
85
- * @typedef NotifyUser
86
- * @property {string} country_code - Country code
87
- * @property {string} phone_number - Phone number
88
- */
89
104
  /**
90
105
  * @typedef Filter
91
106
  * @property {Priority[]} priorities - List of possible priorities for tickets
@@ -98,41 +113,6 @@ export = LeadPlatformModel;
98
113
  * @property {Object} value - Details of history event
99
114
  * @property {HistoryTypeEnum} type
100
115
  */
101
- /**
102
- * @typedef GetTokenForVideoRoomResponse
103
- * @property {string} access_token - Access token to be used for video room
104
- */
105
- /**
106
- * @typedef GetParticipantsInsideVideoRoomResponse
107
- * @property {Participant[]} participants - List of participants of the video room
108
- */
109
- /**
110
- * @typedef Participant
111
- * @property {UserSchema} [user]
112
- * @property {string} [identity] - Unique identifier of participant
113
- * @property {string} [status] - Status of participant
114
- */
115
- /**
116
- * @typedef UserSchema
117
- * @property {string} [application_id]
118
- * @property {string} [user_id]
119
- * @property {string} [first_name]
120
- * @property {Object} [meta]
121
- * @property {string} [last_name]
122
- * @property {PhoneNumber[]} [phone_numbers]
123
- * @property {Email[]} [emails]
124
- * @property {string} [gender]
125
- * @property {string} [dob]
126
- * @property {boolean} [active]
127
- * @property {string} [profile_pic_url]
128
- * @property {string} [username]
129
- * @property {string} [account_type]
130
- * @property {string} [_id]
131
- * @property {string} [created_at]
132
- * @property {string} [updated_at]
133
- * @property {string} [external_id]
134
- * @property {string} [rr_id]
135
- */
136
116
  /**
137
117
  * @typedef TicketContext
138
118
  * @property {string} [application_id] - Application ID related to the ticket
@@ -169,6 +149,10 @@ export = LeadPlatformModel;
169
149
  * @property {string} display - Display text for priority
170
150
  * @property {string} color - Color for priority
171
151
  */
152
+ /**
153
+ * @typedef SLA
154
+ * @property {string} resolution_time
155
+ */
172
156
  /**
173
157
  * @typedef Status
174
158
  * @property {string} key - Key for status
@@ -271,6 +255,7 @@ export = LeadPlatformModel;
271
255
  * @property {TicketSourceEnum} source
272
256
  * @property {Status} status
273
257
  * @property {Priority} priority
258
+ * @property {SLA} [sla]
274
259
  * @property {Object} [created_by] - User details of ticket creator
275
260
  * @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
276
261
  * @property {string[]} [tags] - Tags relevant to ticket
@@ -286,21 +271,6 @@ export = LeadPlatformModel;
286
271
  * @typedef ErrorMessage
287
272
  * @property {string} [message]
288
273
  */
289
- /**
290
- * @typedef PhoneNumber
291
- * @property {string} [phone] - Phone number
292
- * @property {number} [country_code] - Country code
293
- * @property {boolean} [active] - Is the phone number active
294
- * @property {boolean} [primary] - Is it a primary phone number
295
- * @property {boolean} [verified] - Is the phone number verified
296
- */
297
- /**
298
- * @typedef Email
299
- * @property {string} [email] - Email address
300
- * @property {boolean} [active] - Is the email active
301
- * @property {boolean} [primary] - Is it a primary email
302
- * @property {boolean} [verified] - Is the email verified
303
- */
304
274
  /** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
305
275
  /** @typedef {"rating" | "log" | "comment" | "thread"} HistoryTypeEnum */
306
276
  /**
@@ -318,8 +288,45 @@ export = LeadPlatformModel;
318
288
  declare class LeadPlatformModel {
319
289
  }
320
290
  declare namespace LeadPlatformModel {
321
- export { TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, CreateVideoRoomResponse, CloseVideoRoomResponse, CreateVideoRoomPayload, NotifyUser, Filter, TicketHistoryPayload, GetTokenForVideoRoomResponse, GetParticipantsInsideVideoRoomResponse, Participant, UserSchema, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, ErrorMessage, PhoneNumber, Email, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
291
+ export { GeneralConfigResponse, SupportCommunicationSchema, SupportSchema, GeneralConfigIntegrationSchema, TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, Filter, TicketHistoryPayload, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, SLA, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, ErrorMessage, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
322
292
  }
293
+ /** @returns {GeneralConfigResponse} */
294
+ declare function GeneralConfigResponse(): GeneralConfigResponse;
295
+ type GeneralConfigResponse = {
296
+ _id?: string;
297
+ support_communication?: SupportCommunicationSchema[];
298
+ show_communication_info?: boolean;
299
+ show_support_dris?: boolean;
300
+ type?: string;
301
+ integration?: GeneralConfigIntegrationSchema;
302
+ allow_ticket_creation?: boolean;
303
+ show_listing?: boolean;
304
+ available_integration?: string[];
305
+ enable_dris?: boolean;
306
+ support_email?: SupportSchema;
307
+ support_phone?: SupportSchema;
308
+ support_faq?: SupportSchema;
309
+ };
310
+ /** @returns {SupportCommunicationSchema} */
311
+ declare function SupportCommunicationSchema(): SupportCommunicationSchema;
312
+ type SupportCommunicationSchema = {
313
+ type?: string;
314
+ title?: string;
315
+ description?: string;
316
+ enabled?: boolean;
317
+ };
318
+ /** @returns {SupportSchema} */
319
+ declare function SupportSchema(): SupportSchema;
320
+ type SupportSchema = {
321
+ value?: string;
322
+ description?: string;
323
+ enabled?: boolean;
324
+ };
325
+ /** @returns {GeneralConfigIntegrationSchema} */
326
+ declare function GeneralConfigIntegrationSchema(): GeneralConfigIntegrationSchema;
327
+ type GeneralConfigIntegrationSchema = {
328
+ type?: string;
329
+ };
323
330
  /** @returns {TicketList} */
324
331
  declare function TicketList(): TicketList;
325
332
  type TicketList = {
@@ -466,46 +473,6 @@ type AgentChangePayload = {
466
473
  */
467
474
  agent_id: string;
468
475
  };
469
- /** @returns {CreateVideoRoomResponse} */
470
- declare function CreateVideoRoomResponse(): CreateVideoRoomResponse;
471
- type CreateVideoRoomResponse = {
472
- /**
473
- * - Video Room's unique name
474
- */
475
- unique_name: string;
476
- };
477
- /** @returns {CloseVideoRoomResponse} */
478
- declare function CloseVideoRoomResponse(): CloseVideoRoomResponse;
479
- type CloseVideoRoomResponse = {
480
- /**
481
- * - Denotes if operation was successfully
482
- */
483
- success: boolean;
484
- };
485
- /** @returns {CreateVideoRoomPayload} */
486
- declare function CreateVideoRoomPayload(): CreateVideoRoomPayload;
487
- type CreateVideoRoomPayload = {
488
- /**
489
- * - Ticket id
490
- */
491
- unique_name: string;
492
- /**
493
- * - List of people to be notified
494
- */
495
- notify?: NotifyUser[];
496
- };
497
- /** @returns {NotifyUser} */
498
- declare function NotifyUser(): NotifyUser;
499
- type NotifyUser = {
500
- /**
501
- * - Country code
502
- */
503
- country_code: string;
504
- /**
505
- * - Phone number
506
- */
507
- phone_number: string;
508
- };
509
476
  /** @returns {Filter} */
510
477
  declare function Filter(): Filter;
511
478
  type Filter = {
@@ -535,57 +502,6 @@ type TicketHistoryPayload = {
535
502
  value: any;
536
503
  type: HistoryTypeEnum;
537
504
  };
538
- /** @returns {GetTokenForVideoRoomResponse} */
539
- declare function GetTokenForVideoRoomResponse(): GetTokenForVideoRoomResponse;
540
- type GetTokenForVideoRoomResponse = {
541
- /**
542
- * - Access token to be used for video room
543
- */
544
- access_token: string;
545
- };
546
- /** @returns {GetParticipantsInsideVideoRoomResponse} */
547
- declare function GetParticipantsInsideVideoRoomResponse(): GetParticipantsInsideVideoRoomResponse;
548
- type GetParticipantsInsideVideoRoomResponse = {
549
- /**
550
- * - List of participants of the video room
551
- */
552
- participants: Participant[];
553
- };
554
- /** @returns {Participant} */
555
- declare function Participant(): Participant;
556
- type Participant = {
557
- user?: UserSchema;
558
- /**
559
- * - Unique identifier of participant
560
- */
561
- identity?: string;
562
- /**
563
- * - Status of participant
564
- */
565
- status?: string;
566
- };
567
- /** @returns {UserSchema} */
568
- declare function UserSchema(): UserSchema;
569
- type UserSchema = {
570
- application_id?: string;
571
- user_id?: string;
572
- first_name?: string;
573
- meta?: any;
574
- last_name?: string;
575
- phone_numbers?: PhoneNumber[];
576
- emails?: Email[];
577
- gender?: string;
578
- dob?: string;
579
- active?: boolean;
580
- profile_pic_url?: string;
581
- username?: string;
582
- account_type?: string;
583
- _id?: string;
584
- created_at?: string;
585
- updated_at?: string;
586
- external_id?: string;
587
- rr_id?: string;
588
- };
589
505
  /** @returns {TicketContext} */
590
506
  declare function TicketContext(): TicketContext;
591
507
  type TicketContext = {
@@ -670,6 +586,11 @@ type Priority = {
670
586
  */
671
587
  color: string;
672
588
  };
589
+ /** @returns {SLA} */
590
+ declare function SLA(): SLA;
591
+ type SLA = {
592
+ resolution_time: string;
593
+ };
673
594
  /** @returns {Status} */
674
595
  declare function Status(): Status;
675
596
  type Status = {
@@ -925,6 +846,7 @@ type Ticket = {
925
846
  source: TicketSourceEnum;
926
847
  status: Status;
927
848
  priority: Priority;
849
+ sla?: SLA;
928
850
  /**
929
851
  * - User details of ticket creator
930
852
  */
@@ -968,50 +890,6 @@ declare function ErrorMessage(): ErrorMessage;
968
890
  type ErrorMessage = {
969
891
  message?: string;
970
892
  };
971
- /** @returns {PhoneNumber} */
972
- declare function PhoneNumber(): PhoneNumber;
973
- type PhoneNumber = {
974
- /**
975
- * - Phone number
976
- */
977
- phone?: string;
978
- /**
979
- * - Country code
980
- */
981
- country_code?: number;
982
- /**
983
- * - Is the phone number active
984
- */
985
- active?: boolean;
986
- /**
987
- * - Is it a primary phone number
988
- */
989
- primary?: boolean;
990
- /**
991
- * - Is the phone number verified
992
- */
993
- verified?: boolean;
994
- };
995
- /** @returns {Email} */
996
- declare function Email(): Email;
997
- type Email = {
998
- /**
999
- * - Email address
1000
- */
1001
- email?: string;
1002
- /**
1003
- * - Is the email active
1004
- */
1005
- active?: boolean;
1006
- /**
1007
- * - Is it a primary email
1008
- */
1009
- primary?: boolean;
1010
- /**
1011
- * - Is the email verified
1012
- */
1013
- verified?: boolean;
1014
- };
1015
893
  /**
1016
894
  * Enum: PriorityEnum Used By: Lead
1017
895
  *