@giosg/types 6.10.0 → 7.0.1

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 (232) hide show
  1. package/CHANGELOG.md +261 -0
  2. package/lib/GiosgTCApi.d.ts +2 -7
  3. package/lib/GiosgTCApi.d.ts.map +1 -1
  4. package/lib/GiosgTCApi.js +0 -5
  5. package/lib/call.d.ts +0 -8
  6. package/lib/call.d.ts.map +1 -1
  7. package/lib/chat.d.ts +0 -2
  8. package/lib/chat.d.ts.map +1 -1
  9. package/lib/cjs/GiosgTCApi.d.ts +118 -0
  10. package/lib/cjs/GiosgTCApi.d.ts.map +1 -0
  11. package/lib/cjs/GiosgTCApi.js +25 -0
  12. package/lib/cjs/actions.d.ts +72 -0
  13. package/lib/cjs/actions.d.ts.map +1 -0
  14. package/lib/cjs/actions.js +63 -0
  15. package/lib/cjs/apps.d.ts +99 -0
  16. package/lib/cjs/apps.d.ts.map +1 -0
  17. package/lib/cjs/apps.js +2 -0
  18. package/lib/cjs/assets.d.ts +144 -0
  19. package/lib/cjs/assets.d.ts.map +1 -0
  20. package/lib/cjs/assets.js +2 -0
  21. package/lib/cjs/brands.d.ts +41 -0
  22. package/lib/cjs/brands.d.ts.map +1 -0
  23. package/lib/cjs/brands.js +2 -0
  24. package/lib/cjs/call.d.ts +41 -0
  25. package/lib/cjs/call.d.ts.map +1 -0
  26. package/lib/cjs/call.js +2 -0
  27. package/lib/cjs/canned_answers.d.ts +26 -0
  28. package/lib/cjs/canned_answers.d.ts.map +1 -0
  29. package/lib/cjs/canned_answers.js +2 -0
  30. package/lib/cjs/chat.d.ts +1071 -0
  31. package/lib/cjs/chat.d.ts.map +1 -0
  32. package/lib/cjs/chat.js +2 -0
  33. package/lib/cjs/common.d.ts +7 -0
  34. package/lib/cjs/common.d.ts.map +1 -0
  35. package/lib/cjs/common.js +628 -0
  36. package/lib/cjs/conditions.d.ts +98 -0
  37. package/lib/cjs/conditions.d.ts.map +1 -0
  38. package/lib/cjs/conditions.js +80 -0
  39. package/lib/cjs/customer.d.ts +519 -0
  40. package/lib/cjs/customer.d.ts.map +1 -0
  41. package/lib/cjs/customer.js +2 -0
  42. package/lib/cjs/customership.d.ts +79 -0
  43. package/lib/cjs/customership.d.ts.map +1 -0
  44. package/lib/cjs/customership.js +2 -0
  45. package/lib/cjs/email.d.ts +47 -0
  46. package/lib/cjs/email.d.ts.map +1 -0
  47. package/lib/cjs/email.js +2 -0
  48. package/lib/cjs/experiments.d.ts +168 -0
  49. package/lib/cjs/experiments.d.ts.map +1 -0
  50. package/lib/cjs/experiments.js +2 -0
  51. package/lib/cjs/goals.d.ts +126 -0
  52. package/lib/cjs/goals.d.ts.map +1 -0
  53. package/lib/cjs/goals.js +2 -0
  54. package/lib/cjs/index.d.ts +36 -0
  55. package/lib/cjs/index.d.ts.map +1 -0
  56. package/lib/cjs/index.js +32 -0
  57. package/lib/cjs/leadforms.d.ts +30 -0
  58. package/lib/cjs/leadforms.d.ts.map +1 -0
  59. package/lib/cjs/leadforms.js +2 -0
  60. package/lib/cjs/linkpreview.d.ts +16 -0
  61. package/lib/cjs/linkpreview.d.ts.map +1 -0
  62. package/lib/cjs/linkpreview.js +2 -0
  63. package/lib/cjs/oath.d.ts +75 -0
  64. package/lib/cjs/oath.d.ts.map +1 -0
  65. package/lib/cjs/oath.js +25 -0
  66. package/lib/cjs/partnerships.d.ts +54 -0
  67. package/lib/cjs/partnerships.d.ts.map +1 -0
  68. package/lib/cjs/partnerships.js +2 -0
  69. package/lib/cjs/permissions.d.ts +26 -0
  70. package/lib/cjs/permissions.d.ts.map +1 -0
  71. package/lib/cjs/permissions.js +2 -0
  72. package/lib/cjs/public.d.ts +418 -0
  73. package/lib/cjs/public.d.ts.map +1 -0
  74. package/lib/cjs/public.js +12 -0
  75. package/lib/cjs/rooms.d.ts +205 -0
  76. package/lib/cjs/rooms.d.ts.map +1 -0
  77. package/lib/cjs/rooms.js +2 -0
  78. package/lib/cjs/routers.d.ts +76 -0
  79. package/lib/cjs/routers.d.ts.map +1 -0
  80. package/lib/cjs/routers.js +2 -0
  81. package/lib/cjs/rules.d.ts +229 -0
  82. package/lib/cjs/rules.d.ts.map +1 -0
  83. package/lib/cjs/rules.js +2 -0
  84. package/lib/cjs/sharing.d.ts +111 -0
  85. package/lib/cjs/sharing.d.ts.map +1 -0
  86. package/lib/cjs/sharing.js +2 -0
  87. package/lib/cjs/shoppingcarts.d.ts +33 -0
  88. package/lib/cjs/shoppingcarts.d.ts.map +1 -0
  89. package/lib/cjs/shoppingcarts.js +2 -0
  90. package/lib/cjs/system.d.ts +21 -0
  91. package/lib/cjs/system.d.ts.map +1 -0
  92. package/lib/cjs/system.js +2 -0
  93. package/lib/cjs/target.d.ts +105 -0
  94. package/lib/cjs/target.d.ts.map +1 -0
  95. package/lib/cjs/target.js +2 -0
  96. package/lib/cjs/teams.d.ts +78 -0
  97. package/lib/cjs/teams.d.ts.map +1 -0
  98. package/lib/cjs/teams.js +2 -0
  99. package/lib/cjs/types.d.ts +226 -0
  100. package/lib/cjs/types.d.ts.map +1 -0
  101. package/lib/cjs/types.js +29 -0
  102. package/lib/cjs/uploads.d.ts +55 -0
  103. package/lib/cjs/uploads.d.ts.map +1 -0
  104. package/lib/cjs/uploads.js +2 -0
  105. package/lib/cjs/userclients.d.ts +79 -0
  106. package/lib/cjs/userclients.d.ts.map +1 -0
  107. package/lib/cjs/userclients.js +2 -0
  108. package/lib/cjs/variables.d.ts +41 -0
  109. package/lib/cjs/variables.d.ts.map +1 -0
  110. package/lib/cjs/variables.js +2 -0
  111. package/lib/cjs/visitor.d.ts +210 -0
  112. package/lib/cjs/visitor.d.ts.map +1 -0
  113. package/lib/cjs/visitor.js +2 -0
  114. package/lib/cjs/webhooks.d.ts +61 -0
  115. package/lib/cjs/webhooks.d.ts.map +1 -0
  116. package/lib/cjs/webhooks.js +2 -0
  117. package/lib/index.d.ts +3 -3
  118. package/lib/index.d.ts.map +1 -1
  119. package/lib/index.js +1 -1
  120. package/lib/mjs/GiosgTCApi.d.ts +118 -0
  121. package/lib/mjs/GiosgTCApi.d.ts.map +1 -0
  122. package/lib/mjs/GiosgTCApi.js +22 -0
  123. package/lib/mjs/actions.d.ts +72 -0
  124. package/lib/mjs/actions.d.ts.map +1 -0
  125. package/lib/mjs/actions.js +60 -0
  126. package/lib/mjs/apps.d.ts +99 -0
  127. package/lib/mjs/apps.d.ts.map +1 -0
  128. package/lib/mjs/apps.js +0 -0
  129. package/lib/mjs/assets.d.ts +144 -0
  130. package/lib/mjs/assets.d.ts.map +1 -0
  131. package/lib/mjs/assets.js +0 -0
  132. package/lib/mjs/brands.d.ts +41 -0
  133. package/lib/mjs/brands.d.ts.map +1 -0
  134. package/lib/mjs/brands.js +0 -0
  135. package/lib/mjs/call.d.ts +41 -0
  136. package/lib/mjs/call.d.ts.map +1 -0
  137. package/lib/mjs/call.js +0 -0
  138. package/lib/mjs/canned_answers.d.ts +26 -0
  139. package/lib/mjs/canned_answers.d.ts.map +1 -0
  140. package/lib/mjs/canned_answers.js +0 -0
  141. package/lib/mjs/chat.d.ts +1071 -0
  142. package/lib/mjs/chat.d.ts.map +1 -0
  143. package/lib/mjs/chat.js +0 -0
  144. package/lib/mjs/common.d.ts +7 -0
  145. package/lib/mjs/common.d.ts.map +1 -0
  146. package/lib/mjs/common.js +625 -0
  147. package/lib/mjs/conditions.d.ts +98 -0
  148. package/lib/mjs/conditions.d.ts.map +1 -0
  149. package/lib/mjs/conditions.js +77 -0
  150. package/lib/mjs/customer.d.ts +519 -0
  151. package/lib/mjs/customer.d.ts.map +1 -0
  152. package/lib/mjs/customer.js +0 -0
  153. package/lib/mjs/customership.d.ts +79 -0
  154. package/lib/mjs/customership.d.ts.map +1 -0
  155. package/lib/mjs/customership.js +0 -0
  156. package/lib/mjs/email.d.ts +47 -0
  157. package/lib/mjs/email.d.ts.map +1 -0
  158. package/lib/mjs/email.js +0 -0
  159. package/lib/mjs/experiments.d.ts +168 -0
  160. package/lib/mjs/experiments.d.ts.map +1 -0
  161. package/lib/mjs/experiments.js +0 -0
  162. package/lib/mjs/goals.d.ts +126 -0
  163. package/lib/mjs/goals.d.ts.map +1 -0
  164. package/lib/mjs/goals.js +0 -0
  165. package/lib/mjs/index.d.ts +36 -0
  166. package/lib/mjs/index.d.ts.map +1 -0
  167. package/lib/mjs/index.js +7 -0
  168. package/lib/mjs/leadforms.d.ts +30 -0
  169. package/lib/mjs/leadforms.d.ts.map +1 -0
  170. package/lib/mjs/leadforms.js +0 -0
  171. package/lib/mjs/linkpreview.d.ts +16 -0
  172. package/lib/mjs/linkpreview.d.ts.map +1 -0
  173. package/lib/mjs/linkpreview.js +0 -0
  174. package/lib/mjs/oath.d.ts +75 -0
  175. package/lib/mjs/oath.d.ts.map +1 -0
  176. package/lib/mjs/oath.js +22 -0
  177. package/lib/mjs/partnerships.d.ts +54 -0
  178. package/lib/mjs/partnerships.d.ts.map +1 -0
  179. package/lib/mjs/partnerships.js +0 -0
  180. package/lib/mjs/permissions.d.ts +26 -0
  181. package/lib/mjs/permissions.d.ts.map +1 -0
  182. package/lib/mjs/permissions.js +0 -0
  183. package/lib/mjs/public.d.ts +418 -0
  184. package/lib/mjs/public.d.ts.map +1 -0
  185. package/lib/mjs/public.js +9 -0
  186. package/lib/mjs/rooms.d.ts +205 -0
  187. package/lib/mjs/rooms.d.ts.map +1 -0
  188. package/lib/mjs/rooms.js +0 -0
  189. package/lib/mjs/routers.d.ts +76 -0
  190. package/lib/mjs/routers.d.ts.map +1 -0
  191. package/lib/mjs/routers.js +0 -0
  192. package/lib/mjs/rules.d.ts +229 -0
  193. package/lib/mjs/rules.d.ts.map +1 -0
  194. package/lib/mjs/rules.js +0 -0
  195. package/lib/mjs/sharing.d.ts +111 -0
  196. package/lib/mjs/sharing.d.ts.map +1 -0
  197. package/lib/mjs/sharing.js +0 -0
  198. package/lib/mjs/shoppingcarts.d.ts +33 -0
  199. package/lib/mjs/shoppingcarts.d.ts.map +1 -0
  200. package/lib/mjs/shoppingcarts.js +0 -0
  201. package/lib/mjs/system.d.ts +21 -0
  202. package/lib/mjs/system.d.ts.map +1 -0
  203. package/lib/mjs/system.js +0 -0
  204. package/lib/mjs/target.d.ts +105 -0
  205. package/lib/mjs/target.d.ts.map +1 -0
  206. package/lib/mjs/target.js +0 -0
  207. package/lib/mjs/teams.d.ts +78 -0
  208. package/lib/mjs/teams.d.ts.map +1 -0
  209. package/lib/mjs/teams.js +0 -0
  210. package/lib/mjs/types.d.ts +226 -0
  211. package/lib/mjs/types.d.ts.map +1 -0
  212. package/lib/mjs/types.js +26 -0
  213. package/lib/mjs/uploads.d.ts +55 -0
  214. package/lib/mjs/uploads.d.ts.map +1 -0
  215. package/lib/mjs/uploads.js +0 -0
  216. package/lib/mjs/userclients.d.ts +79 -0
  217. package/lib/mjs/userclients.d.ts.map +1 -0
  218. package/lib/mjs/userclients.js +0 -0
  219. package/lib/mjs/variables.d.ts +41 -0
  220. package/lib/mjs/variables.d.ts.map +1 -0
  221. package/lib/mjs/variables.js +0 -0
  222. package/lib/mjs/visitor.d.ts +210 -0
  223. package/lib/mjs/visitor.d.ts.map +1 -0
  224. package/lib/mjs/visitor.js +0 -0
  225. package/lib/mjs/webhooks.d.ts +61 -0
  226. package/lib/mjs/webhooks.d.ts.map +1 -0
  227. package/lib/mjs/webhooks.js +0 -0
  228. package/lib/public.d.ts +0 -10
  229. package/lib/public.d.ts.map +1 -1
  230. package/lib/rooms.d.ts +0 -6
  231. package/lib/rooms.d.ts.map +1 -1
  232. package/package.json +12 -3
@@ -0,0 +1,519 @@
1
+ import { AvatarUid, OrganizationUid, UserUid, BusinessUid, OrganizationLegacyId, OrganizationSettingsUid, UserLegacyId, TokenUid, FeatureName, ChatUserLegacyId } from "./types";
2
+ import { Timezone, Currency } from "./common";
3
+ export interface Feature {
4
+ /** Name and unique identifier of the feature */
5
+ id: FeatureName;
6
+ }
7
+ /**
8
+ * @deprecated
9
+ */
10
+ export interface FeaturePayload {
11
+ /** Name and unique identifier of the feature */
12
+ id: FeatureName;
13
+ }
14
+ export interface Login {
15
+ /** Customer email address */
16
+ email: string;
17
+ /** Customer password */
18
+ password: string;
19
+ }
20
+ /**
21
+ * @deprecated
22
+ */
23
+ export interface LoginPayload {
24
+ /** Customer email address */
25
+ email: string;
26
+ /** Customer password */
27
+ password: string;
28
+ }
29
+ export interface NestedAvatar {
30
+ /** Unique identifier of the avatar */
31
+ id: AvatarUid;
32
+ /** Link to the avatar */
33
+ url: string;
34
+ }
35
+ export interface NestedOrganization {
36
+ /** Unique identifier of the organization */
37
+ id: OrganizationUid;
38
+ /** Name of the organization */
39
+ name: string;
40
+ }
41
+ export interface NestedUser {
42
+ /** Unique identifier of the user */
43
+ id: UserUid;
44
+ /** Name of the user */
45
+ first_name: string;
46
+ /** Surname of the user */
47
+ last_name: string;
48
+ /** Full name of the user */
49
+ full_name: string;
50
+ /** Unique identifier of the organization the user belongs to */
51
+ organization_id: OrganizationUid;
52
+ /** Unique identifier of the users avatar */
53
+ avatar_id: AvatarUid | null;
54
+ /** Avatar of the user */
55
+ avatar: NestedAvatar | null;
56
+ /** Defines whether the user is bot or a real person */
57
+ is_bot: boolean;
58
+ /** Defines whether the user is staff */
59
+ is_staff: boolean;
60
+ }
61
+ /**
62
+ * @deprecated
63
+ */
64
+ export interface OrganizationCreate {
65
+ /** Name of the organization that shall be created */
66
+ name: string;
67
+ /** Domain name of the organization that shall be created */
68
+ domain_name: string;
69
+ }
70
+ export interface OrganizationCreatePayload {
71
+ /** Name of the organization that shall be created */
72
+ name: string;
73
+ /** Domain name of the organization that shall be created */
74
+ domain_name?: string;
75
+ }
76
+ export interface Organization {
77
+ /** Unique identifier of the organization */
78
+ id: OrganizationUid;
79
+ /** Name of the organization */
80
+ name: string;
81
+ /** Contact email address of the organization */
82
+ email: string | null;
83
+ /** Contact phone number of the organization */
84
+ phone: string | null;
85
+ /** Contact street address of the organization */
86
+ street: string | null;
87
+ /** Contact address postal code of the organization */
88
+ postal_code: string | null;
89
+ /** Contact address city of the organization */
90
+ city: string | null;
91
+ /** Country as a two-letter, lowercase ISO 3166-1 code, of the organization */
92
+ country: string | null;
93
+ /** Unique business identifier of the organization */
94
+ business_id: BusinessUid | null;
95
+ /** The script tag for the organization */
96
+ script_tag: string;
97
+ /** Date when the organization account was created */
98
+ created_at: string;
99
+ /** Date when details of the organization were changed for the last time */
100
+ updated_at: string;
101
+ /** Indicates whether there is any user from the organization online. See user clients for more information */
102
+ is_online: boolean;
103
+ /** Indicates whether there is any user from the organization currently present. See user clients for more information */
104
+ is_present: boolean;
105
+ /** Old unique identifier of the organization. Deprecated, use id whenever possible instead */
106
+ legacy_id: OrganizationLegacyId;
107
+ /** Number of rules the organization can create */
108
+ max_rules_count: number | null;
109
+ }
110
+ export interface OrganizationPayload {
111
+ /** Name of the organization */
112
+ name: string;
113
+ /** Contact email address of the organization */
114
+ email?: string | null;
115
+ /** Contact phone number of the organization */
116
+ phone?: string;
117
+ /** Contact street address of the organization */
118
+ street?: string;
119
+ /** Contact address postal code of the organization */
120
+ postal_code?: string;
121
+ /** Country as a two-letter, lowercase ISO 3166-1 code, of the organization */
122
+ city?: string;
123
+ /** Country as a two-letter, lowercase ISO 3166-1 code, of the organization */
124
+ country?: string;
125
+ /** Business ID of the organization */
126
+ business_id?: BusinessUid;
127
+ }
128
+ export interface OrganizationSettings {
129
+ /** Unique identifier of the organization settings */
130
+ id: OrganizationSettingsUid;
131
+ /** Unique identifier of the organization the settings belong to*/
132
+ organization_id: OrganizationUid;
133
+ /** Organization the settings belong to*/
134
+ organization: NestedOrganization;
135
+ /** Defines default language of interface for the organization in ISO 639-1 code*/
136
+ default_ui_language: string;
137
+ /** Defines whether private chat history is enabled */
138
+ is_private_chat_history_enabled: boolean;
139
+ /** Defines whether strict password policy is enabled */
140
+ is_strict_password_policy_enabled: boolean;
141
+ /** Defines whether automatic chat links are enabled */
142
+ is_automatic_chat_links_enabled: boolean;
143
+ /** Defines whether variable signing is required */
144
+ is_variable_signing_required: boolean;
145
+ /** Defines whether login credentials preservation is enabled */
146
+ is_login_credentials_preservation_enabled: boolean;
147
+ /** Defines the duration of login credentials preservation */
148
+ login_credentials_preservation_duration: number;
149
+ /** Date when settings of the organization were created. Available only for settings of your own organization */
150
+ created_at: string;
151
+ /** Date when settings of the organization were changed for the last time. Available only for settings of your own organization */
152
+ updated_at: string;
153
+ /** Defines a timezone of the organization */
154
+ timezone: Timezone;
155
+ /** Defines a ui version of the organization */
156
+ ui_version: string;
157
+ /** Defines a currency of the organization */
158
+ master_currency: Currency;
159
+ /** Defines a currency symbol of the organization */
160
+ master_currency_symbol: string;
161
+ /** Defines in how many days passwords will expire. By default passwords would not expire */
162
+ password_expiration_days: number | null;
163
+ }
164
+ export interface OrganizationSettingsPayload {
165
+ /** Defines default language of interface for the organization in ISO 639-1 code*/
166
+ default_ui_language: string;
167
+ /** Defines whether private chat history is enabled */
168
+ is_private_chat_history_enabled: boolean;
169
+ /** Defines whether strict password policy is enabled */
170
+ is_strict_password_policy_enabled: boolean;
171
+ /** Defines whether automatic chat links are enabled */
172
+ is_automatic_chat_links_enabled: boolean;
173
+ /** Defines whether variable signing is required */
174
+ is_variable_signing_required: boolean;
175
+ /** Defines whether login credentials preservation is enabled */
176
+ is_login_credentials_preservation_enabled: boolean;
177
+ /** Defines the duration of login credentials preservation */
178
+ login_credentials_preservation_duration?: number;
179
+ /** Defines a timezone of the organization */
180
+ timezone: Timezone;
181
+ /**Defines a currency of the organization */
182
+ master_currency?: Currency;
183
+ /** Defines in how many days passwords will expire. By default passwords would not expire */
184
+ password_expiration_days?: number | null;
185
+ }
186
+ export interface RoomUser {
187
+ /** Unique identifier of the user */
188
+ id: UserUid;
189
+ /** Email address of the user */
190
+ email: string | null;
191
+ /** Id of the organization the user belongs to */
192
+ organization_id: OrganizationUid;
193
+ /** Organization the user belongs to */
194
+ organization: NestedOrganization;
195
+ /** Name of the user */
196
+ first_name: string;
197
+ /** Surname of the user */
198
+ last_name: string;
199
+ /** Full name of the user */
200
+ full_name: string;
201
+ /** Indicates whether the user is a manager */
202
+ is_manager: boolean | null;
203
+ /** Indicates whether the user is a giosg.com staff member */
204
+ is_staff: boolean;
205
+ /** Display name of the user, used in chat. May be null but not a blank string */
206
+ alias: string | null;
207
+ /** Gender of the user */
208
+ gender: "male" | "female" | null;
209
+ /** A birth date of the user in format YYYY-MM-DD */
210
+ birthday: string | null;
211
+ /** Phone number of the user */
212
+ phone: string | null;
213
+ /** Title of the user. May be null but not a blank string */
214
+ title: string | null;
215
+ /** Date when the user was created */
216
+ created_at: string;
217
+ /** Date when the user was changed for the last time */
218
+ updated_at: string;
219
+ /** Date when the user was deleted */
220
+ deleted_at: string | null;
221
+ /** Defines whether the user wants to serve online as an operator. This determines if the "is_online" can be true */
222
+ is_online_enabled: boolean;
223
+ /**
224
+ * Defines whether the user is currently in online status as an operator, based on the most recent information
225
+ * about the user. This can only be true if "is_online_enabled" is true and the user is considered signed in.
226
+ * Otherwise this is false
227
+ */
228
+ is_online: boolean;
229
+ /** Unique identifier of the users avatar */
230
+ avatar_id: AvatarUid | null;
231
+ /** Avatar of the user */
232
+ avatar: NestedAvatar | null;
233
+ /** Defines whether the user is currently present, based on the most recent information about the user*/
234
+ is_present: boolean;
235
+ /** Number of chats the user has, based on the most recent information about the user */
236
+ current_chat_count: number;
237
+ /**
238
+ * Defines whether the user exists no more. If true, the resource exists only for historical purposes
239
+ * and cannot be used in any other context
240
+ */
241
+ is_deleted: boolean;
242
+ /** Defines whether the user is bot or a real person */
243
+ is_bot: boolean;
244
+ /** Defines whether the user was created by single sign-on app */
245
+ is_created_by_sso: boolean;
246
+ /** Old unique identifier of the user in the chat. Deprecated, use id whenever possible instead */
247
+ legacy_id: ChatUserLegacyId;
248
+ /** Old unique identifier of the user. Deprecated, use id whenever possible instead */
249
+ legacy_integer_id: UserLegacyId;
250
+ /** Old unique identifier of the organization. Deprecated, use id whenever possible instead */
251
+ organization_legacy_id: OrganizationLegacyId;
252
+ }
253
+ export interface TargetPermissionToken {
254
+ service_url: string;
255
+ permission_token: string;
256
+ /** Number of seconds before the token will expire */
257
+ expires_in: number;
258
+ /** Date when the token will expire */
259
+ expires_at: string;
260
+ }
261
+ export interface UserApiTokenCreate {
262
+ /** Unique identifier of the token */
263
+ id: TokenUid;
264
+ /** Date when the token was created */
265
+ created_at: string;
266
+ /** Date when the token was deleted */
267
+ deleted_at: string | null;
268
+ /** Token string */
269
+ key: string;
270
+ /** Unique identifier of the organization the authenticated user belongs to */
271
+ organization_id: OrganizationUid;
272
+ /** Defines whether the token was auto generated */
273
+ is_auto_generated: boolean;
274
+ /** Unique identifier of the authenticated user */
275
+ user_id: UserUid;
276
+ /** Description of the token */
277
+ description: string;
278
+ /** Browser of the authenticated user */
279
+ browser: string;
280
+ /** Operating system of the authenticated user */
281
+ operating_system: string;
282
+ /** Type of a device of the authenticated user */
283
+ device_type: "tablet" | "mobile" | "desktop";
284
+ /** IP address of the authenticated user */
285
+ ip_address: string;
286
+ /** Country code of the authenticated user */
287
+ country_code: string | null;
288
+ }
289
+ /**
290
+ * @deprecated
291
+ */
292
+ export interface UserApiTokenCreatePayload {
293
+ /** Description of the token */
294
+ description: string;
295
+ }
296
+ export interface UserApiTokenPayload {
297
+ /** Unique identifier of the token */
298
+ id: TokenUid;
299
+ /** Date when the token was created */
300
+ created_at: string;
301
+ /** Date when the token was deleted */
302
+ deleted_at: string | null;
303
+ /** Unique identifier of the organization the authenticated user belongs to */
304
+ organization_id: OrganizationUid;
305
+ /** Defines whether the token was auto generated */
306
+ is_auto_generated: boolean;
307
+ /** Unique identifier of the authenticated user */
308
+ user_id: UserUid;
309
+ /** Description of the token */
310
+ description: string;
311
+ /** Browser of the authenticated user */
312
+ browser: string;
313
+ /** Operating system of the authenticated user */
314
+ operating_system: string;
315
+ /** Type of a device of the authenticated user */
316
+ device_type: "tablet" | "mobile" | "desktop";
317
+ /** IP address of the authenticated user */
318
+ ip_address: string;
319
+ /** Country code of the authenticated user */
320
+ country_code: string | null;
321
+ }
322
+ export interface UserAvatar {
323
+ /** Unique identifier of the avatar */
324
+ id: AvatarUid;
325
+ /** Link to the avatar */
326
+ url: string;
327
+ /** Date when the avatar was created */
328
+ created_at: string;
329
+ /** Date when the avatar was changed for the last time */
330
+ updated_at: string;
331
+ }
332
+ export interface UserAvatarPayload {
333
+ /** Binary file of the Avatar */
334
+ url: File;
335
+ }
336
+ export interface UserPasswordUpdate {
337
+ /** Current password of the user */
338
+ old_password: string;
339
+ /** New password of the user */
340
+ new_password: string;
341
+ /** Conformation of the new password of the user */
342
+ confirm_password: string;
343
+ }
344
+ /**
345
+ * @deprecated
346
+ */
347
+ export interface UserPasswordUpdatePayload {
348
+ /** Current password of the user */
349
+ old_password: string;
350
+ /** New password of the user */
351
+ new_password: string;
352
+ /** Conformation of the new password of the user */
353
+ confirm_password: string;
354
+ }
355
+ export interface UserPreferences {
356
+ /** An estimate about the maximum number of people the user is willing to chat with simultaneously */
357
+ chat_capacity: number;
358
+ /** Identifier for the sound that shall be played on a desktop when a new message received */
359
+ desktop_message_sound: string | null;
360
+ /** Identifier for the sound that shall be played on a desktop when a new visitor becomes present */
361
+ desktop_visitor_added_sound: string | null;
362
+ /**
363
+ * Defines volume of notification sounds played on a desktop. The value can be between zero and hundred [0 - 100],
364
+ * meaning zero is silent while hundred is the maximum
365
+ */
366
+ desktop_volume: number;
367
+ /** Defines whether the new message sound should continue until the user will interact with the interface */
368
+ is_desktop_message_sound_continuous: boolean;
369
+ /** Defines whether notifications are enabled on a desktop */
370
+ is_desktop_notification_enabled: boolean;
371
+ /** Defines whether the new visitor sound should continue until the user will interact with the interface */
372
+ is_desktop_visitor_added_sound_continuous: boolean;
373
+ /** Defines whether the sound shall be disabled while the user is offline. */
374
+ is_muted_offline: boolean;
375
+ /** Defines whether the spellchecking when composing messages is enabled */
376
+ is_spellcheck_enabled: boolean;
377
+ /** Defined whether statistic emails shall be sent to the user. */
378
+ is_statistics_email_enabled: boolean;
379
+ /** Defines whether the swim line is shown in the console */
380
+ is_swimlane_visible: boolean;
381
+ /** Defines a language for the interface for the user in ISO 639-1 code */
382
+ ui_language_code: string;
383
+ /** Unique identifier of the user */
384
+ user_id: UserUid;
385
+ }
386
+ export interface UserPreferencesPayload {
387
+ /** An estimate about the maximum number of people the user is willing to chat with simultaneously */
388
+ chat_capacity: number;
389
+ /** Identifier for the sound that shall be played on a desktop when a new message received */
390
+ desktop_message_sound: string | null;
391
+ /** Identifier for the sound that shall be played on a desktop when a new visitor becomes present */
392
+ desktop_visitor_added_sound: string | null;
393
+ /**
394
+ * Defines volume of notification sounds played on a desktop. The value can be between zero and hundred [0 - 100],
395
+ * meaning zero is silent while hundred is the maximum
396
+ */
397
+ desktop_volume: number;
398
+ /** Defines whether the new message sound should continue until the user will interact with the interface */
399
+ is_desktop_message_sound_continuous: boolean;
400
+ /** Defines whether notifications are enabled on a desktop */
401
+ is_desktop_notification_enabled: boolean;
402
+ /** Defines whether the new visitor sound should continue until the user will interact with the interface */
403
+ is_desktop_visitor_added_sound_continuous: boolean;
404
+ /** Defines whether the sound shall be disabled while the user is offline. */
405
+ is_muted_offline: boolean;
406
+ /** Defines whether the spellchecking when composing messages is enabled */
407
+ is_spellcheck_enabled: boolean;
408
+ /** Defined whether statistic emails shall be sent to the user. */
409
+ is_statistics_email_enabled: boolean;
410
+ /** Defines whether the swim line is shown in the console */
411
+ is_swimlane_visible?: boolean;
412
+ /** Defines a language for the interface for the user in ISO 639-1 code */
413
+ ui_language_code: string;
414
+ }
415
+ export interface User {
416
+ /** Unique identifier of the user */
417
+ id: UserUid;
418
+ /** Email address of the user */
419
+ email: string | null;
420
+ /** Unique identifier of the organization the user belongs to */
421
+ organization_id: OrganizationUid;
422
+ /** Organization the user belongs to */
423
+ organization: NestedOrganization;
424
+ /** Name of the user */
425
+ first_name: string;
426
+ /** Surname of the user */
427
+ last_name: string;
428
+ /** Full name of the user */
429
+ full_name: string;
430
+ /** Indicates whether the user is a manager */
431
+ is_manager: boolean | null;
432
+ /** Indicates whether the user is a giosg.com staff member */
433
+ is_staff: boolean;
434
+ /** Display name of the user, used in chat. May be null but not a blank string */
435
+ alias: string | null;
436
+ /** Gender of the user */
437
+ gender: "male" | "female" | null;
438
+ /** A birth date of the user in format YYYY-MM-DD */
439
+ birthday: string | null;
440
+ /** Phone number of the user */
441
+ phone: string | null;
442
+ /** Title of the user. May be null but not a blank string */
443
+ title: string | null;
444
+ /** Date when the user was created */
445
+ created_at: string;
446
+ /** Date when the user was changed for the last time */
447
+ updated_at: string;
448
+ /** Date when the user was deleted */
449
+ deleted_at: string | null;
450
+ /** Defines whether the user wants to serve online as an operator. This determines if the "is_online" can be true */
451
+ is_online_enabled: boolean;
452
+ /**
453
+ * Defines whether the user is currently in online status as an operator, based on the most recent information
454
+ * about the user. This can only be true if "is_online_enabled" is true and the user is considered signed in.
455
+ * Otherwise this is false. See user clients for more information
456
+ */
457
+ is_online: boolean;
458
+ /** Unique identifier of the users avatar */
459
+ avatar_id: AvatarUid | null;
460
+ /** Avatar of the user */
461
+ avatar: NestedAvatar | null;
462
+ /**
463
+ * Defines whether the user is currently present, based on the most recent information about the user.
464
+ * See user clients for more information
465
+ */
466
+ is_present: boolean;
467
+ /** Number of chats the user has, based on the most recent information about the user */
468
+ current_chat_count: number;
469
+ /**
470
+ * Defines whether the user exists no more. If true, the resource exists only for historical purposes
471
+ * and cannot be used in any other context
472
+ */
473
+ is_deleted: boolean;
474
+ /** Defines whether the user is bot or a real person */
475
+ is_bot: boolean;
476
+ /** Defines whether the user was created by single sign-on app */
477
+ is_created_by_sso: boolean;
478
+ /** Defines whether the user confirmed their account activation */
479
+ is_email_confirmed: boolean;
480
+ /** Old unique identifier of the user in the chat. Deprecated, use id whenever possible instead */
481
+ legacy_id: ChatUserLegacyId;
482
+ /** Old unique identifier of the user. Deprecated, use id whenever possible instead */
483
+ legacy_integer_id: UserLegacyId;
484
+ /** Old unique identifier of the organization. Deprecated, use id whenever possible instead */
485
+ organization_legacy_id: OrganizationLegacyId;
486
+ }
487
+ export interface UserPayload {
488
+ /** Email address of the user */
489
+ email: string | null;
490
+ /** Name of the user */
491
+ first_name: string;
492
+ /** Surname of the user */
493
+ last_name: string;
494
+ /** Indicates whether the user is a manager */
495
+ is_manager?: boolean;
496
+ /** Display name of the user, used in chat. May be null but not a blank string */
497
+ alias?: string | null;
498
+ /** Gender of the user */
499
+ gender?: "male" | "female" | null;
500
+ /** A birth date of the user in format YYYY-MM-DD */
501
+ birthday?: string | null;
502
+ /** Phone number of the user */
503
+ phone?: string | null;
504
+ /** Title of the user. May be null but not a blank string */
505
+ title?: string | null;
506
+ /** Defines whether the user wants to serve online as an operator. This determines if the "is_online" can be true */
507
+ is_online_enabled: boolean;
508
+ /** Defines whether the user is a bot user or not. Defaults to false */
509
+ is_bot?: boolean;
510
+ }
511
+ export interface Quota {
512
+ /** Total free space for new assets, in bytes */
513
+ free_space: number;
514
+ /** Sum of all your organization asset sizes, in bytes */
515
+ usage: number;
516
+ /** The maximum allowed sum of your organization asset sizes, in bytes */
517
+ limit: number;
518
+ }
519
+ //# sourceMappingURL=customer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,eAAe,EACf,OAAO,EACP,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,gBAAgB,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,WAAW,OAAO;IACtB,gDAAgD;IAChD,EAAE,EAAE,WAAW,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,EAAE,EAAE,WAAW,CAAC;CACjB;AAED,MAAM,WAAW,KAAK;IACpB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IAEd,wBAAwB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3B,uEAAuE;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,KAAK;IACpB,gDAAgD;IAChD,UAAU,EAAE,MAAM,CAAC;IAEnB,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;IAEd,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,79 @@
1
+ import { NestedOrganization } from "./customer";
2
+ import { OrganizationUid } from "./types";
3
+ export interface Customership {
4
+ /** Unique identifier of the organization */
5
+ organization_id: OrganizationUid;
6
+ /** Organization object */
7
+ organization: NestedOrganization;
8
+ /** Defines whether the organization has a trial subscription */
9
+ is_trial: boolean;
10
+ /** Number of users the organization can have */
11
+ max_users_count: number;
12
+ /** Number of users can the organization have chatting */
13
+ max_online_users_count: number | null;
14
+ /** Number of created rules the organization can have */
15
+ max_rules_count: number | null;
16
+ /** Number of scheduled reports organization can have */
17
+ max_scheduled_email_reports_count: number;
18
+ /** Date when the organization’s customership was changed for the last time */
19
+ updated_at: string;
20
+ }
21
+ export interface StaffCustomership {
22
+ /** Unique identifier of the organization */
23
+ organization_id: OrganizationUid;
24
+ /** Organization object */
25
+ organization: NestedOrganization;
26
+ /** Date when the account of the organization expires */
27
+ expires_on: string;
28
+ /** Defines whether the organization has a trial subscription */
29
+ is_trial: boolean;
30
+ /** Number of users the organization can have */
31
+ max_users_count: number;
32
+ /** Number of chatting users the organization can have */
33
+ max_online_users_count: number | null;
34
+ /** Number of created rules the organization can have */
35
+ max_rules_count: number | null;
36
+ /** Number of scheduled reports the organization can have */
37
+ max_scheduled_email_reports_count: number;
38
+ /** Date when the invoice was sent to the customer for the last time */
39
+ latest_invoice_sent_on: string | null;
40
+ /** Number of months set as an invoicing interval of the organization */
41
+ invoicing_interval: number | null;
42
+ /** Defines whether the organization is excluded from the invoicing */
43
+ is_excluded_from_invoicing: boolean;
44
+ /** Defines whether an automated invoicing was created for the organization */
45
+ is_invoiced_automatically: boolean;
46
+ /** Notes about the organization for the internal use */
47
+ invoicing_notes: string;
48
+ /** Date when the organization’s customership was changed for the last time */
49
+ updated_at: string;
50
+ /** The service-level agreement (SLA) level */
51
+ sla: number;
52
+ }
53
+ export interface StaffCustomershipPayload {
54
+ /** Date when the account of the organization expires */
55
+ expires_on: string;
56
+ /** Defines whether the organization has a trial subscription */
57
+ is_trial: boolean;
58
+ /** Number of users the organization can have */
59
+ max_users_count: number;
60
+ /** Number of chatting users the organization can have */
61
+ max_online_users_count: number | null;
62
+ /** Number of created rules the organization can have */
63
+ max_rules_count: number | null;
64
+ /** Number of scheduled reports the organization can have */
65
+ max_scheduled_email_reports_count: number;
66
+ /** Date when the invoice was sent to the customer for the last time */
67
+ latest_invoice_sent_on: string | null;
68
+ /** Number of months set as an invoicing interval of the organization */
69
+ invoicing_interval: number | null;
70
+ /** Defines whether the organization is excluded from the invoicing */
71
+ is_excluded_from_invoicing: boolean;
72
+ /** Defines whether an automated invoicing was created for the organization */
73
+ is_invoiced_automatically: boolean;
74
+ /** Notes about the organization for the internal use */
75
+ invoicing_notes?: string;
76
+ /** The service-level agreement (SLA) level */
77
+ sla?: number;
78
+ }
79
+ //# sourceMappingURL=customership.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customership.d.ts","sourceRoot":"","sources":["../../src/customership.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,YAAY;IAC3B,4CAA4C;IAC5C,eAAe,EAAE,eAAe,CAAC;IAEjC,0BAA0B;IAC1B,YAAY,EAAE,kBAAkB,CAAC;IAEjC,gEAAgE;IAChE,QAAQ,EAAE,OAAO,CAAC;IAElB,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;IAExB,yDAAyD;IACzD,sBAAsB,E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