@gofynd/fdk-client-javascript 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -2
- package/index.d.ts +4 -4
- package/index.js +9 -10
- package/package.json +14 -14
- package/sdk/APIClient.d.ts +11 -0
- package/sdk/APIClient.js +35 -0
- package/sdk/Client.d.ts +6 -0
- package/sdk/Client.js +17 -0
- package/sdk/Config.d.ts +9 -0
- package/sdk/Config.js +17 -0
- package/sdk/application/Cart/CartApplicationClient.js +29 -28
- package/sdk/application/Cart/CartApplicationModel.js +3 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
- package/sdk/application/Catalog/CatalogApplicationModel.js +1 -1
- package/sdk/application/Common/CommonApplicationClient.js +5 -4
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
- package/sdk/application/Content/ContentApplicationClient.js +26 -25
- package/sdk/application/Content/ContentApplicationModel.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
- package/sdk/application/Lead/LeadApplicationClient.js +10 -9
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
- package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
- package/sdk/application/Order/OrderApplicationClient.js +15 -14
- package/sdk/application/Order/OrderApplicationModel.js +9 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
- package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
- package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
- package/sdk/application/Share/ShareApplicationClient.js +10 -9
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
- package/sdk/application/User/UserApplicationClient.js +38 -37
- package/sdk/common/AxiosHelper.js +17 -6
- package/sdk/constructUrl.d.ts +5 -0
- package/sdk/constructUrl.js +13 -0
- package/sdk/index.d.ts +3 -0
- package/sdk/index.js +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -2
- package/sdk/platform/Billing/BillingPlatformValidator.js +1 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
- package/sdk/platform/Cart/CartPlatformModel.js +7 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
- package/sdk/platform/Catalog/CatalogPlatformModel.js +7 -7
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
- package/sdk/platform/Common/CommonPlatformClient.js +7 -18
- package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +0 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -7
- package/sdk/platform/Content/ContentPlatformModel.js +1 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformClient.js +16 -3
- package/sdk/platform/Order/OrderPlatformModel.js +1 -0
- package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
- package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
- package/sdk/platform/PlatformClient.d.ts +13 -9
- package/sdk/platform/PlatformClient.js +13 -9
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +36 -17
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
- package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
- package/.github/workflows/on_create_release.yml +0 -23
- package/.github/workflows/on_merge_main.yml +0 -38
- package/.github/workflows/on_pull_request.yml +0 -35
- package/.prettierrc +0 -5
- package/documentation/application/CART.md +0 -8771
- package/documentation/application/CATALOG.md +0 -8690
- package/documentation/application/COMMON.md +0 -325
- package/documentation/application/COMMUNICATION.md +0 -387
- package/documentation/application/CONFIGURATION.md +0 -2212
- package/documentation/application/CONTENT.md +0 -2629
- package/documentation/application/FILESTORAGE.md +0 -442
- package/documentation/application/LEAD.md +0 -1549
- package/documentation/application/LOGISTIC.md +0 -689
- package/documentation/application/ORDER.md +0 -2937
- package/documentation/application/PAYMENT.md +0 -4475
- package/documentation/application/POSCART.md +0 -9375
- package/documentation/application/README.md +0 -21
- package/documentation/application/REWARDS.md +0 -554
- package/documentation/application/SHARE.md +0 -635
- package/documentation/application/THEME.md +0 -5517
- package/documentation/application/USER.md +0 -3798
- package/documentation/platform/ANALYTICS.md +0 -1012
- package/documentation/platform/AUDITTRAIL.md +0 -493
- package/documentation/platform/BILLING.md +0 -1889
- package/documentation/platform/CART.md +0 -4711
- package/documentation/platform/CATALOG.md +0 -20522
- package/documentation/platform/COMMON.md +0 -325
- package/documentation/platform/COMMUNICATION.md +0 -4970
- package/documentation/platform/COMPANYPROFILE.md +0 -1646
- package/documentation/platform/CONFIGURATION.md +0 -6316
- package/documentation/platform/CONTENT.md +0 -8364
- package/documentation/platform/DISCOUNT.md +0 -767
- package/documentation/platform/FILESTORAGE.md +0 -945
- package/documentation/platform/INVENTORY.md +0 -1136
- package/documentation/platform/LEAD.md +0 -4394
- package/documentation/platform/ORDER.md +0 -6525
- package/documentation/platform/PARTNER.md +0 -193
- package/documentation/platform/PAYMENT.md +0 -3138
- package/documentation/platform/README.md +0 -27
- package/documentation/platform/REWARDS.md +0 -919
- package/documentation/platform/SHARE.md +0 -513
- package/documentation/platform/THEME.md +0 -35446
- package/documentation/platform/USER.md +0 -2174
- package/documentation/platform/WEBHOOK.md +0 -485
- package/documentation/public/CONFIGURATION.md +0 -325
- package/documentation/public/INVENTORY.md +0 -508
- package/documentation/public/WEBHOOK.md +0 -246
- package/jest.config.d.ts +0 -4
- package/jest.config.js +0 -6
- package/tests/application/catalog.spec.js +0 -54
- package/tests/common/action-url.spec.js +0 -35
- package/tests/common/schema/action-url.json +0 -178
- package/tests/common/schema/url-action.json +0 -683
- package/tests/common/url-action.spec.js +0 -48
- package/tests/helpers/cookie.helper.js +0 -31
- package/tests/helpers/oauth.helper.js +0 -43
- package/tests/platform/catalog.spec.js +0 -49
- package/tests/public/location.spec.js +0 -39
|
@@ -1,1549 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
##### [Back to Application docs](./README.md)
|
|
7
|
-
|
|
8
|
-
## Lead Methods
|
|
9
|
-
Handles communication between Staff and Users
|
|
10
|
-
|
|
11
|
-
* [createHistory](#createhistory)
|
|
12
|
-
* [createTicket](#createticket)
|
|
13
|
-
* [getCustomForm](#getcustomform)
|
|
14
|
-
* [getParticipantsInsideVideoRoom](#getparticipantsinsidevideoroom)
|
|
15
|
-
* [getTicket](#getticket)
|
|
16
|
-
* [getTokenForVideoRoom](#gettokenforvideoroom)
|
|
17
|
-
* [submitCustomForm](#submitcustomform)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## Methods with example and description
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### createHistory
|
|
27
|
-
Create history for specific Ticket
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
```javascript
|
|
32
|
-
// Promise
|
|
33
|
-
const promise = lead.createHistory({ id : value,
|
|
34
|
-
body : value });
|
|
35
|
-
|
|
36
|
-
// Async/Await
|
|
37
|
-
const data = await lead.createHistory({ id : value,
|
|
38
|
-
body : value });
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
| Argument | Type | Required | Description |
|
|
46
|
-
| --------- | ----- | -------- | ----------- |
|
|
47
|
-
| id | string | yes | Ticket ID for which history is created |
|
|
48
|
-
| body | [TicketHistoryPayload](#TicketHistoryPayload) | yes | Request body |
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Create history for specific Ticket, this history is seen on ticket detail page, this can be comment, log or rating.
|
|
52
|
-
|
|
53
|
-
*Returned Response:*
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[TicketHistory](#TicketHistory)
|
|
59
|
-
|
|
60
|
-
Success
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<details>
|
|
66
|
-
<summary><i> Examples:</i></summary>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<details>
|
|
70
|
-
<summary><i> Default</i></summary>
|
|
71
|
-
|
|
72
|
-
```json
|
|
73
|
-
{
|
|
74
|
-
"value": {
|
|
75
|
-
"_id": "601a9d52c26687d086c499ef",
|
|
76
|
-
"ticket_id": "41",
|
|
77
|
-
"type": "comment",
|
|
78
|
-
"value": {
|
|
79
|
-
"text": "d",
|
|
80
|
-
"media": []
|
|
81
|
-
},
|
|
82
|
-
"created_on": {
|
|
83
|
-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36",
|
|
84
|
-
"platform": "web",
|
|
85
|
-
"meta": {
|
|
86
|
-
"browser": {
|
|
87
|
-
"name": "Chrome",
|
|
88
|
-
"version": "88.0.4324.96"
|
|
89
|
-
},
|
|
90
|
-
"os": {
|
|
91
|
-
"name": "macOS",
|
|
92
|
-
"version": "10.15.7",
|
|
93
|
-
"versionName": "Catalina"
|
|
94
|
-
},
|
|
95
|
-
"platform": {
|
|
96
|
-
"type": "desktop",
|
|
97
|
-
"vendor": "Apple"
|
|
98
|
-
},
|
|
99
|
-
"engine": {
|
|
100
|
-
"name": "Blink"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"created_by": "5d1363adf599d850df93175e",
|
|
105
|
-
"createdAt": "2021-02-03T12:55:46.808Z",
|
|
106
|
-
"updatedAt": "2021-02-03T12:55:46.808Z",
|
|
107
|
-
"__v": 0
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
</details>
|
|
112
|
-
|
|
113
|
-
</details>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### createTicket
|
|
127
|
-
Create Ticket
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
```javascript
|
|
132
|
-
// Promise
|
|
133
|
-
const promise = lead.createTicket({ body : value });
|
|
134
|
-
|
|
135
|
-
// Async/Await
|
|
136
|
-
const data = await lead.createTicket({ body : value });
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
| Argument | Type | Required | Description |
|
|
144
|
-
| --------- | ----- | -------- | ----------- |
|
|
145
|
-
| body | [AddTicketPayload](#AddTicketPayload) | yes | Request body |
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
This is used to Create Ticket.
|
|
149
|
-
|
|
150
|
-
*Returned Response:*
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
[Ticket](#Ticket)
|
|
156
|
-
|
|
157
|
-
Success
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
<details>
|
|
163
|
-
<summary><i> Examples:</i></summary>
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
<details>
|
|
167
|
-
<summary><i> Default</i></summary>
|
|
168
|
-
|
|
169
|
-
```json
|
|
170
|
-
{
|
|
171
|
-
"value": {
|
|
172
|
-
"context": {
|
|
173
|
-
"application_id": "000000000000000000000003",
|
|
174
|
-
"company_id": "884"
|
|
175
|
-
},
|
|
176
|
-
"content": {
|
|
177
|
-
"title": "SOme title Response",
|
|
178
|
-
"description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
|
|
179
|
-
"attachments": []
|
|
180
|
-
},
|
|
181
|
-
"status": {
|
|
182
|
-
"display": "In Progress",
|
|
183
|
-
"color": "#ffa951",
|
|
184
|
-
"key": "in_progress"
|
|
185
|
-
},
|
|
186
|
-
"priority": {
|
|
187
|
-
"display": "Medium",
|
|
188
|
-
"color": "#f37736",
|
|
189
|
-
"key": "medium"
|
|
190
|
-
},
|
|
191
|
-
"assigned_to": {
|
|
192
|
-
"agent_id": "5d1363adf599d850df93175e",
|
|
193
|
-
"gender": "male",
|
|
194
|
-
"accountType": "user",
|
|
195
|
-
"active": true,
|
|
196
|
-
"profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
|
|
197
|
-
"hasOldPasswordHash": false,
|
|
198
|
-
"_id": "5d1363adf599d850df93175e",
|
|
199
|
-
"phoneNumbers": [
|
|
200
|
-
{
|
|
201
|
-
"active": true,
|
|
202
|
-
"primary": true,
|
|
203
|
-
"verified": true,
|
|
204
|
-
"countryCode": 91,
|
|
205
|
-
"phone": "9999999999"
|
|
206
|
-
}
|
|
207
|
-
],
|
|
208
|
-
"firstName": "Nikhil",
|
|
209
|
-
"lastName": "Manapure",
|
|
210
|
-
"emails": [
|
|
211
|
-
{
|
|
212
|
-
"active": true,
|
|
213
|
-
"primary": true,
|
|
214
|
-
"verified": true,
|
|
215
|
-
"email": "niktest@xyz.com"
|
|
216
|
-
}
|
|
217
|
-
],
|
|
218
|
-
"username": "niktest_xyz_com_38425_20500281",
|
|
219
|
-
"createdAt": "2019-01-01T17:22:38.528Z",
|
|
220
|
-
"updatedAt": "2021-01-22T10:02:42.258Z",
|
|
221
|
-
"uid": "20500281",
|
|
222
|
-
"__v": 56
|
|
223
|
-
},
|
|
224
|
-
"tags": [
|
|
225
|
-
"some-title"
|
|
226
|
-
],
|
|
227
|
-
"_id": "6012f38557751ee8fc162cf7",
|
|
228
|
-
"created_on": {
|
|
229
|
-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36",
|
|
230
|
-
"platform": "web",
|
|
231
|
-
"meta": {
|
|
232
|
-
"browser": {
|
|
233
|
-
"name": "Chrome",
|
|
234
|
-
"version": "88.0.4324.96"
|
|
235
|
-
},
|
|
236
|
-
"os": {
|
|
237
|
-
"name": "macOS",
|
|
238
|
-
"version": "10.15.7",
|
|
239
|
-
"versionName": "Catalina"
|
|
240
|
-
},
|
|
241
|
-
"platform": {
|
|
242
|
-
"type": "desktop",
|
|
243
|
-
"vendor": "Apple"
|
|
244
|
-
},
|
|
245
|
-
"engine": {
|
|
246
|
-
"name": "Blink"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
"source": "sales_channel",
|
|
251
|
-
"created_by": {
|
|
252
|
-
"id": "5d1363adf599d850df93175e",
|
|
253
|
-
"user": {
|
|
254
|
-
"gender": "male",
|
|
255
|
-
"accountType": "user",
|
|
256
|
-
"active": true,
|
|
257
|
-
"profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
|
|
258
|
-
"hasOldPasswordHash": false,
|
|
259
|
-
"_id": "5d1363adf599d850df93175e",
|
|
260
|
-
"phoneNumbers": [
|
|
261
|
-
{
|
|
262
|
-
"active": true,
|
|
263
|
-
"primary": true,
|
|
264
|
-
"verified": true,
|
|
265
|
-
"countryCode": 91,
|
|
266
|
-
"phone": "9999999999"
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"firstName": "Nikhil",
|
|
270
|
-
"lastName": "Manapure",
|
|
271
|
-
"emails": [
|
|
272
|
-
{
|
|
273
|
-
"active": true,
|
|
274
|
-
"primary": true,
|
|
275
|
-
"verified": true,
|
|
276
|
-
"email": "niktest@xyz.com"
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
"username": "niktest_xyz_com_38425_20500281",
|
|
280
|
-
"createdAt": "2019-01-01T17:22:38.528Z",
|
|
281
|
-
"updatedAt": "2021-01-22T10:02:42.258Z",
|
|
282
|
-
"uid": "20500281",
|
|
283
|
-
"__v": 56
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
"response_id": "6012f38457751e0fb8162cf6",
|
|
287
|
-
"category": {
|
|
288
|
-
"form": {
|
|
289
|
-
"login_required": false,
|
|
290
|
-
"should_notify": false,
|
|
291
|
-
"inputs": [
|
|
292
|
-
{
|
|
293
|
-
"required": false,
|
|
294
|
-
"type": "text",
|
|
295
|
-
"enum": [],
|
|
296
|
-
"display": "Single lineeee",
|
|
297
|
-
"key": "single-lineeee",
|
|
298
|
-
"showRegexInput": false
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"required": false,
|
|
302
|
-
"type": "email",
|
|
303
|
-
"enum": [],
|
|
304
|
-
"display": "Email",
|
|
305
|
-
"regex": "\\S+@\\S+\\.\\S+",
|
|
306
|
-
"key": "email",
|
|
307
|
-
"showRegexInput": true
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"required": false,
|
|
311
|
-
"type": "text",
|
|
312
|
-
"enum": [],
|
|
313
|
-
"display": "dfsdf",
|
|
314
|
-
"key": "dfsdf",
|
|
315
|
-
"showRegexInput": false
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"available_assignees": [
|
|
319
|
-
"5b9b98150df588546aaea6d2",
|
|
320
|
-
"5c45d78395d7504f76c2cb37"
|
|
321
|
-
],
|
|
322
|
-
"_id": "5fd72db3dc250f8decfc61b2",
|
|
323
|
-
"title": "SOme title",
|
|
324
|
-
"description": "SOme big description",
|
|
325
|
-
"slug": "some-title",
|
|
326
|
-
"application_id": "000000000000000000000003",
|
|
327
|
-
"created_on": {
|
|
328
|
-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
|
|
329
|
-
"platform": "web",
|
|
330
|
-
"meta": {
|
|
331
|
-
"browser": {
|
|
332
|
-
"name": "Chrome",
|
|
333
|
-
"version": "87.0.4280.88"
|
|
334
|
-
},
|
|
335
|
-
"os": {
|
|
336
|
-
"name": "macOS",
|
|
337
|
-
"version": "10.15.6",
|
|
338
|
-
"versionName": "Catalina"
|
|
339
|
-
},
|
|
340
|
-
"platform": {
|
|
341
|
-
"type": "desktop",
|
|
342
|
-
"vendor": "Apple"
|
|
343
|
-
},
|
|
344
|
-
"engine": {
|
|
345
|
-
"name": "Blink"
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
"created_by": "5d1363adf599d850df93175e",
|
|
350
|
-
"createdAt": "2020-12-14T09:17:39.953Z",
|
|
351
|
-
"updatedAt": "2021-01-28T18:48:07.717Z",
|
|
352
|
-
"__v": 0
|
|
353
|
-
},
|
|
354
|
-
"key": "some-title",
|
|
355
|
-
"display": "SOme title"
|
|
356
|
-
},
|
|
357
|
-
"ticket_id": "43",
|
|
358
|
-
"createdAt": "2021-01-28T17:25:25.013Z",
|
|
359
|
-
"updatedAt": "2021-01-28T17:25:33.396Z",
|
|
360
|
-
"__v": 0,
|
|
361
|
-
"video_room_id": "6012f38557751ee8fc162cf7"
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
```
|
|
365
|
-
</details>
|
|
366
|
-
|
|
367
|
-
</details>
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
---
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
### getCustomForm
|
|
381
|
-
Get specific Custom Form using it's slug
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
```javascript
|
|
386
|
-
// Promise
|
|
387
|
-
const promise = lead.getCustomForm({ slug : value });
|
|
388
|
-
|
|
389
|
-
// Async/Await
|
|
390
|
-
const data = await lead.getCustomForm({ slug : value });
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
| Argument | Type | Required | Description |
|
|
398
|
-
| --------- | ----- | -------- | ----------- |
|
|
399
|
-
| slug | string | yes | Slug of form whose response is getting submitted |
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
Get specific Custom Form using it's slug, this is used to view the form.
|
|
404
|
-
|
|
405
|
-
*Returned Response:*
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
[CustomForm](#CustomForm)
|
|
411
|
-
|
|
412
|
-
Success
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
<details>
|
|
418
|
-
<summary><i> Examples:</i></summary>
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
<details>
|
|
422
|
-
<summary><i> Default</i></summary>
|
|
423
|
-
|
|
424
|
-
```json
|
|
425
|
-
{
|
|
426
|
-
"value": {
|
|
427
|
-
"login_required": false,
|
|
428
|
-
"should_notify": false,
|
|
429
|
-
"inputs": [
|
|
430
|
-
{
|
|
431
|
-
"required": false,
|
|
432
|
-
"type": "text",
|
|
433
|
-
"display": "Name",
|
|
434
|
-
"placeholder": "Please enter your name",
|
|
435
|
-
"key": "name"
|
|
436
|
-
}
|
|
437
|
-
],
|
|
438
|
-
"available_assignees": [],
|
|
439
|
-
"_id": "5fd258a9088f957f34c288fc",
|
|
440
|
-
"title": "trail form",
|
|
441
|
-
"description": "Trail form description",
|
|
442
|
-
"slug": "trail-form",
|
|
443
|
-
"application_id": "000000000000000000000003",
|
|
444
|
-
"created_on": {
|
|
445
|
-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
|
|
446
|
-
"platform": "web",
|
|
447
|
-
"meta": {
|
|
448
|
-
"browser": {
|
|
449
|
-
"name": "Chrome",
|
|
450
|
-
"version": "87.0.4280.88"
|
|
451
|
-
},
|
|
452
|
-
"os": {
|
|
453
|
-
"name": "macOS",
|
|
454
|
-
"version": "10.15.6",
|
|
455
|
-
"versionName": "Catalina"
|
|
456
|
-
},
|
|
457
|
-
"platform": {
|
|
458
|
-
"type": "desktop",
|
|
459
|
-
"vendor": "Apple"
|
|
460
|
-
},
|
|
461
|
-
"engine": {
|
|
462
|
-
"name": "Blink"
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
"created_by": "5d1363adf599d850df93175e",
|
|
467
|
-
"createdAt": "2020-12-10T17:19:37.515Z",
|
|
468
|
-
"updatedAt": "2020-12-10T17:19:43.214Z",
|
|
469
|
-
"__v": 0
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
```
|
|
473
|
-
</details>
|
|
474
|
-
|
|
475
|
-
</details>
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
---
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
### getParticipantsInsideVideoRoom
|
|
489
|
-
Get participants of a specific Video Room using it's unique name
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
```javascript
|
|
494
|
-
// Promise
|
|
495
|
-
const promise = lead.getParticipantsInsideVideoRoom({ uniqueName : value });
|
|
496
|
-
|
|
497
|
-
// Async/Await
|
|
498
|
-
const data = await lead.getParticipantsInsideVideoRoom({ uniqueName : value });
|
|
499
|
-
```
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
| Argument | Type | Required | Description |
|
|
506
|
-
| --------- | ----- | -------- | ----------- |
|
|
507
|
-
| uniqueName | string | yes | Unique name of Video Room |
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
Get participants of a specific Video Room using it's unique name, this can be used to check if people are already there in the room and also to show their names.
|
|
512
|
-
|
|
513
|
-
*Returned Response:*
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
[GetParticipantsInsideVideoRoomResponse](#GetParticipantsInsideVideoRoomResponse)
|
|
519
|
-
|
|
520
|
-
Success
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
<details>
|
|
526
|
-
<summary><i> Examples:</i></summary>
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
<details>
|
|
530
|
-
<summary><i> Default</i></summary>
|
|
531
|
-
|
|
532
|
-
```json
|
|
533
|
-
{
|
|
534
|
-
"value": {
|
|
535
|
-
"participants": []
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
```
|
|
539
|
-
</details>
|
|
540
|
-
|
|
541
|
-
</details>
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
---
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
### getTicket
|
|
555
|
-
Get Ticket with the specific id
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
```javascript
|
|
560
|
-
// Promise
|
|
561
|
-
const promise = lead.getTicket({ id : value });
|
|
562
|
-
|
|
563
|
-
// Async/Await
|
|
564
|
-
const data = await lead.getTicket({ id : value });
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
| Argument | Type | Required | Description |
|
|
572
|
-
| --------- | ----- | -------- | ----------- |
|
|
573
|
-
| id | string | yes | ID of ticket to be retrieved |
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
Get Ticket with the specific id, this is used to view the ticket details
|
|
578
|
-
|
|
579
|
-
*Returned Response:*
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
[Ticket](#Ticket)
|
|
585
|
-
|
|
586
|
-
Success
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
<details>
|
|
592
|
-
<summary><i> Examples:</i></summary>
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
<details>
|
|
596
|
-
<summary><i> Default</i></summary>
|
|
597
|
-
|
|
598
|
-
```json
|
|
599
|
-
{
|
|
600
|
-
"value": {
|
|
601
|
-
"context": {
|
|
602
|
-
"application_id": "000000000000000000000003",
|
|
603
|
-
"company_id": "884"
|
|
604
|
-
},
|
|
605
|
-
"content": {
|
|
606
|
-
"title": "SOme title Response",
|
|
607
|
-
"description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
|
|
608
|
-
"attachments": []
|
|
609
|
-
},
|
|
610
|
-
"status": {
|
|
611
|
-
"display": "In Progress",
|
|
612
|
-
"color": "#ffa951",
|
|
613
|
-
"key": "in_progress"
|
|
614
|
-
},
|
|
615
|
-
"priority": {
|
|
616
|
-
"display": "Medium",
|
|
617
|
-
"color": "#f37736",
|
|
618
|
-
"key": "medium"
|
|
619
|
-
},
|
|
620
|
-
"assigned_to": {
|
|
621
|
-
"agent_id": "5d1363adf599d850df93175e",
|
|
622
|
-
"gender": "male",
|
|
623
|
-
"accountType": "user",
|
|
624
|
-
"active": true,
|
|
625
|
-
"profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
|
|
626
|
-
"hasOldPasswordHash": false,
|
|
627
|
-
"_id": "5d1363adf599d850df93175e",
|
|
628
|
-
"phoneNumbers": [
|
|
629
|
-
{
|
|
630
|
-
"active": true,
|
|
631
|
-
"primary": true,
|
|
632
|
-
"verified": true,
|
|
633
|
-
"countryCode": 91,
|
|
634
|
-
"phone": "9999999999"
|
|
635
|
-
}
|
|
636
|
-
],
|
|
637
|
-
"firstName": "Nikhil",
|
|
638
|
-
"lastName": "Manapure",
|
|
639
|
-
"emails": [
|
|
640
|
-
{
|
|
641
|
-
"active": true,
|
|
642
|
-
"primary": true,
|
|
643
|
-
"verified": true,
|
|
644
|
-
"email": "niktest@xyz.com"
|
|
645
|
-
}
|
|
646
|
-
],
|
|
647
|
-
"username": "niktest_xyz_com_38425_20500281",
|
|
648
|
-
"createdAt": "2019-01-01T17:22:38.528Z",
|
|
649
|
-
"updatedAt": "2021-01-22T10:02:42.258Z",
|
|
650
|
-
"uid": "20500281",
|
|
651
|
-
"__v": 56
|
|
652
|
-
},
|
|
653
|
-
"tags": [
|
|
654
|
-
"some-title"
|
|
655
|
-
],
|
|
656
|
-
"_id": "6012f38557751ee8fc162cf7",
|
|
657
|
-
"created_on": {
|
|
658
|
-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36",
|
|
659
|
-
"platform": "web",
|
|
660
|
-
"meta": {
|
|
661
|
-
"browser": {
|
|
662
|
-
"name": "Chrome",
|
|
663
|
-
"version": "88.0.4324.96"
|
|
664
|
-
},
|
|
665
|
-
"os": {
|
|
666
|
-
"name": "macOS",
|
|
667
|
-
"version": "10.15.7",
|
|
668
|
-
"versionName": "Catalina"
|
|
669
|
-
},
|
|
670
|
-
"platform": {
|
|
671
|
-
"type": "desktop",
|
|
672
|
-
"vendor": "Apple"
|
|
673
|
-
},
|
|
674
|
-
"engine": {
|
|
675
|
-
"name": "Blink"
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
"source": "sales_channel",
|
|
680
|
-
"created_by": {
|
|
681
|
-
"id": "5d1363adf599d850df93175e",
|
|
682
|
-
"user": {
|
|
683
|
-
"gender": "male",
|
|
684
|
-
"accountType": "user",
|
|
685
|
-
"active": true,
|
|
686
|
-
"profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
|
|
687
|
-
"hasOldPasswordHash": false,
|
|
688
|
-
"_id": "5d1363adf599d850df93175e",
|
|
689
|
-
"phoneNumbers": [
|
|
690
|
-
{
|
|
691
|
-
"active": true,
|
|
692
|
-
"primary": true,
|
|
693
|
-
"verified": true,
|
|
694
|
-
"countryCode": 91,
|
|
695
|
-
"phone": "9999999999"
|
|
696
|
-
}
|
|
697
|
-
],
|
|
698
|
-
"firstName": "Nikhil",
|
|
699
|
-
"lastName": "Manapure",
|
|
700
|
-
"emails": [
|
|
701
|
-
{
|
|
702
|
-
"active": true,
|
|
703
|
-
"primary": true,
|
|
704
|
-
"verified": true,
|
|
705
|
-
"email": "niktest@xyz.com"
|
|
706
|
-
}
|
|
707
|
-
],
|
|
708
|
-
"username": "niktest_xyz_com_38425_20500281",
|
|
709
|
-
"createdAt": "2019-01-01T17:22:38.528Z",
|
|
710
|
-
"updatedAt": "2021-01-22T10:02:42.258Z",
|
|
711
|
-
"uid": "20500281",
|
|
712
|
-
"__v": 56
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
"response_id": "6012f38457751e0fb8162cf6",
|
|
716
|
-
"category": {
|
|
717
|
-
"form": {
|
|
718
|
-
"login_required": false,
|
|
719
|
-
"should_notify": false,
|
|
720
|
-
"inputs": [
|
|
721
|
-
{
|
|
722
|
-
"required": false,
|
|
723
|
-
"type": "text",
|
|
724
|
-
"enum": [],
|
|
725
|
-
"display": "Single lineeee",
|
|
726
|
-
"key": "single-lineeee",
|
|
727
|
-
"showRegexInput": false
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
"required": false,
|
|
731
|
-
"type": "email",
|
|
732
|
-
"enum": [],
|
|
733
|
-
"display": "Email",
|
|
734
|
-
"regex": "\\S+@\\S+\\.\\S+",
|
|
735
|
-
"key": "email",
|
|
736
|
-
"showRegexInput": true
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"required": false,
|
|
740
|
-
"type": "text",
|
|
741
|
-
"enum": [],
|
|
742
|
-
"display": "dfsdf",
|
|
743
|
-
"key": "dfsdf",
|
|
744
|
-
"showRegexInput": false
|
|
745
|
-
}
|
|
746
|
-
],
|
|
747
|
-
"available_assignees": [
|
|
748
|
-
"5b9b98150df588546aaea6d2",
|
|
749
|
-
"5c45d78395d7504f76c2cb37"
|
|
750
|
-
],
|
|
751
|
-
"_id": "5fd72db3dc250f8decfc61b2",
|
|
752
|
-
"title": "SOme title",
|
|
753
|
-
"description": "SOme big description",
|
|
754
|
-
"slug": "some-title",
|
|
755
|
-
"application_id": "000000000000000000000003",
|
|
756
|
-
"created_on": {
|
|
757
|
-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
|
|
758
|
-
"platform": "web",
|
|
759
|
-
"meta": {
|
|
760
|
-
"browser": {
|
|
761
|
-
"name": "Chrome",
|
|
762
|
-
"version": "87.0.4280.88"
|
|
763
|
-
},
|
|
764
|
-
"os": {
|
|
765
|
-
"name": "macOS",
|
|
766
|
-
"version": "10.15.6",
|
|
767
|
-
"versionName": "Catalina"
|
|
768
|
-
},
|
|
769
|
-
"platform": {
|
|
770
|
-
"type": "desktop",
|
|
771
|
-
"vendor": "Apple"
|
|
772
|
-
},
|
|
773
|
-
"engine": {
|
|
774
|
-
"name": "Blink"
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
"created_by": "5d1363adf599d850df93175e",
|
|
779
|
-
"createdAt": "2020-12-14T09:17:39.953Z",
|
|
780
|
-
"updatedAt": "2021-01-28T18:48:07.717Z",
|
|
781
|
-
"__v": 0
|
|
782
|
-
},
|
|
783
|
-
"key": "some-title",
|
|
784
|
-
"display": "SOme title"
|
|
785
|
-
},
|
|
786
|
-
"ticket_id": "43",
|
|
787
|
-
"createdAt": "2021-01-28T17:25:25.013Z",
|
|
788
|
-
"updatedAt": "2021-01-28T17:25:33.396Z",
|
|
789
|
-
"__v": 0,
|
|
790
|
-
"video_room_id": "6012f38557751ee8fc162cf7"
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
```
|
|
794
|
-
</details>
|
|
795
|
-
|
|
796
|
-
</details>
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
---
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
### getTokenForVideoRoom
|
|
810
|
-
Get Token to join a specific Video Room using it's unqiue name
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
```javascript
|
|
815
|
-
// Promise
|
|
816
|
-
const promise = lead.getTokenForVideoRoom({ uniqueName : value });
|
|
817
|
-
|
|
818
|
-
// Async/Await
|
|
819
|
-
const data = await lead.getTokenForVideoRoom({ uniqueName : value });
|
|
820
|
-
```
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
| Argument | Type | Required | Description |
|
|
827
|
-
| --------- | ----- | -------- | ----------- |
|
|
828
|
-
| uniqueName | string | yes | Unique name of Video Room |
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
Get Token to join a specific Video Room using it's unqiue name, this Token is your ticket to Room and also creates your identity there.
|
|
833
|
-
|
|
834
|
-
*Returned Response:*
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
[GetTokenForVideoRoomResponse](#GetTokenForVideoRoomResponse)
|
|
840
|
-
|
|
841
|
-
Success
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
<details>
|
|
847
|
-
<summary><i> Examples:</i></summary>
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
<details>
|
|
851
|
-
<summary><i> Default</i></summary>
|
|
852
|
-
|
|
853
|
-
```json
|
|
854
|
-
{
|
|
855
|
-
"value": {
|
|
856
|
-
"access_token": "your_token_to_the_room"
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
```
|
|
860
|
-
</details>
|
|
861
|
-
|
|
862
|
-
</details>
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
---
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
### submitCustomForm
|
|
876
|
-
Submit Response for a specific Custom Form using it's slug
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
```javascript
|
|
881
|
-
// Promise
|
|
882
|
-
const promise = lead.submitCustomForm({ slug : value,
|
|
883
|
-
body : value });
|
|
884
|
-
|
|
885
|
-
// Async/Await
|
|
886
|
-
const data = await lead.submitCustomForm({ slug : value,
|
|
887
|
-
body : value });
|
|
888
|
-
```
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
| Argument | Type | Required | Description |
|
|
895
|
-
| --------- | ----- | -------- | ----------- |
|
|
896
|
-
| slug | string | yes | Slug of form whose response is getting submitted |
|
|
897
|
-
| body | [CustomFormSubmissionPayload](#CustomFormSubmissionPayload) | yes | Request body |
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
Submit Response for a specific Custom Form using it's slug, this response is then used to create a ticket on behalf of the user.
|
|
901
|
-
|
|
902
|
-
*Returned Response:*
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
[SubmitCustomFormResponse](#SubmitCustomFormResponse)
|
|
908
|
-
|
|
909
|
-
Success
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
<details>
|
|
915
|
-
<summary><i> Examples:</i></summary>
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
<details>
|
|
919
|
-
<summary><i> Default</i></summary>
|
|
920
|
-
|
|
921
|
-
```json
|
|
922
|
-
{
|
|
923
|
-
"value": {
|
|
924
|
-
"ticket": {
|
|
925
|
-
"context": {
|
|
926
|
-
"application_id": "000000000000000000000003",
|
|
927
|
-
"company_id": "884"
|
|
928
|
-
},
|
|
929
|
-
"content": {
|
|
930
|
-
"title": "SOme title Response",
|
|
931
|
-
"description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
|
|
932
|
-
"attachments": []
|
|
933
|
-
},
|
|
934
|
-
"status": {
|
|
935
|
-
"display": "In Progress",
|
|
936
|
-
"color": "#ffa951",
|
|
937
|
-
"key": "in_progress"
|
|
938
|
-
},
|
|
939
|
-
"priority": {
|
|
940
|
-
"display": "Medium",
|
|
941
|
-
"color": "#f37736",
|
|
942
|
-
"key": "medium"
|
|
943
|
-
},
|
|
944
|
-
"assigned_to": {
|
|
945
|
-
"agent_id": "5d1363adf599d850df93175e",
|
|
946
|
-
"gender": "male",
|
|
947
|
-
"accountType": "user",
|
|
948
|
-
"active": true,
|
|
949
|
-
"profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
|
|
950
|
-
"hasOldPasswordHash": false,
|
|
951
|
-
"_id": "5d1363adf599d850df93175e",
|
|
952
|
-
"phoneNumbers": [
|
|
953
|
-
{
|
|
954
|
-
"active": true,
|
|
955
|
-
"primary": true,
|
|
956
|
-
"verified": true,
|
|
957
|
-
"countryCode": 91,
|
|
958
|
-
"phone": "9999999999"
|
|
959
|
-
}
|
|
960
|
-
],
|
|
961
|
-
"firstName": "Nikhil",
|
|
962
|
-
"lastName": "Manapure",
|
|
963
|
-
"emails": [
|
|
964
|
-
{
|
|
965
|
-
"active": true,
|
|
966
|
-
"primary": true,
|
|
967
|
-
"verified": true,
|
|
968
|
-
"email": "niktest@xyz.com"
|
|
969
|
-
}
|
|
970
|
-
],
|
|
971
|
-
"username": "niktest_xyz_com_38425_20500281",
|
|
972
|
-
"createdAt": "2019-01-01T17:22:38.528Z",
|
|
973
|
-
"updatedAt": "2021-01-22T10:02:42.258Z",
|
|
974
|
-
"uid": "20500281",
|
|
975
|
-
"__v": 56
|
|
976
|
-
},
|
|
977
|
-
"tags": [
|
|
978
|
-
"some-title"
|
|
979
|
-
],
|
|
980
|
-
"_id": "6012f38557751ee8fc162cf7",
|
|
981
|
-
"created_on": {
|
|
982
|
-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36",
|
|
983
|
-
"platform": "web",
|
|
984
|
-
"meta": {
|
|
985
|
-
"browser": {
|
|
986
|
-
"name": "Chrome",
|
|
987
|
-
"version": "88.0.4324.96"
|
|
988
|
-
},
|
|
989
|
-
"os": {
|
|
990
|
-
"name": "macOS",
|
|
991
|
-
"version": "10.15.7",
|
|
992
|
-
"versionName": "Catalina"
|
|
993
|
-
},
|
|
994
|
-
"platform": {
|
|
995
|
-
"type": "desktop",
|
|
996
|
-
"vendor": "Apple"
|
|
997
|
-
},
|
|
998
|
-
"engine": {
|
|
999
|
-
"name": "Blink"
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
},
|
|
1003
|
-
"source": "sales_channel",
|
|
1004
|
-
"created_by": {
|
|
1005
|
-
"id": "5d1363adf599d850df93175e",
|
|
1006
|
-
"user": {
|
|
1007
|
-
"gender": "male",
|
|
1008
|
-
"accountType": "user",
|
|
1009
|
-
"active": true,
|
|
1010
|
-
"profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
|
|
1011
|
-
"hasOldPasswordHash": false,
|
|
1012
|
-
"_id": "5d1363adf599d850df93175e",
|
|
1013
|
-
"phoneNumbers": [
|
|
1014
|
-
{
|
|
1015
|
-
"active": true,
|
|
1016
|
-
"primary": true,
|
|
1017
|
-
"verified": true,
|
|
1018
|
-
"countryCode": 91,
|
|
1019
|
-
"phone": "9999999999"
|
|
1020
|
-
}
|
|
1021
|
-
],
|
|
1022
|
-
"firstName": "Nikhil",
|
|
1023
|
-
"lastName": "Manapure",
|
|
1024
|
-
"emails": [
|
|
1025
|
-
{
|
|
1026
|
-
"active": true,
|
|
1027
|
-
"primary": true,
|
|
1028
|
-
"verified": true,
|
|
1029
|
-
"email": "niktest@xyz.com"
|
|
1030
|
-
}
|
|
1031
|
-
],
|
|
1032
|
-
"username": "niktest_xyz_com_38425_20500281",
|
|
1033
|
-
"createdAt": "2019-01-01T17:22:38.528Z",
|
|
1034
|
-
"updatedAt": "2021-01-22T10:02:42.258Z",
|
|
1035
|
-
"uid": "20500281",
|
|
1036
|
-
"__v": 56
|
|
1037
|
-
}
|
|
1038
|
-
},
|
|
1039
|
-
"response_id": "6012f38457751e0fb8162cf6",
|
|
1040
|
-
"category": {
|
|
1041
|
-
"form": {
|
|
1042
|
-
"login_required": false,
|
|
1043
|
-
"should_notify": false,
|
|
1044
|
-
"inputs": [
|
|
1045
|
-
{
|
|
1046
|
-
"required": false,
|
|
1047
|
-
"type": "text",
|
|
1048
|
-
"enum": [],
|
|
1049
|
-
"display": "Single lineeee",
|
|
1050
|
-
"key": "single-lineeee",
|
|
1051
|
-
"showRegexInput": false
|
|
1052
|
-
},
|
|
1053
|
-
{
|
|
1054
|
-
"required": false,
|
|
1055
|
-
"type": "email",
|
|
1056
|
-
"enum": [],
|
|
1057
|
-
"display": "Email",
|
|
1058
|
-
"regex": "\\S+@\\S+\\.\\S+",
|
|
1059
|
-
"key": "email",
|
|
1060
|
-
"showRegexInput": true
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"required": false,
|
|
1064
|
-
"type": "text",
|
|
1065
|
-
"enum": [],
|
|
1066
|
-
"display": "dfsdf",
|
|
1067
|
-
"key": "dfsdf",
|
|
1068
|
-
"showRegexInput": false
|
|
1069
|
-
}
|
|
1070
|
-
],
|
|
1071
|
-
"available_assignees": [
|
|
1072
|
-
"5b9b98150df588546aaea6d2",
|
|
1073
|
-
"5c45d78395d7504f76c2cb37"
|
|
1074
|
-
],
|
|
1075
|
-
"_id": "5fd72db3dc250f8decfc61b2",
|
|
1076
|
-
"title": "SOme title",
|
|
1077
|
-
"description": "SOme big description",
|
|
1078
|
-
"slug": "some-title",
|
|
1079
|
-
"application_id": "000000000000000000000003",
|
|
1080
|
-
"created_on": {
|
|
1081
|
-
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
|
|
1082
|
-
"platform": "web",
|
|
1083
|
-
"meta": {
|
|
1084
|
-
"browser": {
|
|
1085
|
-
"name": "Chrome",
|
|
1086
|
-
"version": "87.0.4280.88"
|
|
1087
|
-
},
|
|
1088
|
-
"os": {
|
|
1089
|
-
"name": "macOS",
|
|
1090
|
-
"version": "10.15.6",
|
|
1091
|
-
"versionName": "Catalina"
|
|
1092
|
-
},
|
|
1093
|
-
"platform": {
|
|
1094
|
-
"type": "desktop",
|
|
1095
|
-
"vendor": "Apple"
|
|
1096
|
-
},
|
|
1097
|
-
"engine": {
|
|
1098
|
-
"name": "Blink"
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
},
|
|
1102
|
-
"created_by": "5d1363adf599d850df93175e",
|
|
1103
|
-
"createdAt": "2020-12-14T09:17:39.953Z",
|
|
1104
|
-
"updatedAt": "2021-01-28T18:48:07.717Z",
|
|
1105
|
-
"__v": 0
|
|
1106
|
-
},
|
|
1107
|
-
"key": "some-title",
|
|
1108
|
-
"display": "SOme title"
|
|
1109
|
-
},
|
|
1110
|
-
"ticket_id": "43",
|
|
1111
|
-
"createdAt": "2021-01-28T17:25:25.013Z",
|
|
1112
|
-
"updatedAt": "2021-01-28T17:25:33.396Z",
|
|
1113
|
-
"__v": 0,
|
|
1114
|
-
"video_room_id": "6012f38557751ee8fc162cf7"
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
```
|
|
1119
|
-
</details>
|
|
1120
|
-
|
|
1121
|
-
</details>
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
---
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
### Schemas
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
#### [AddTicketPayload](#AddTicketPayload)
|
|
1139
|
-
|
|
1140
|
-
| Properties | Type | Nullable | Description |
|
|
1141
|
-
| ---------- | ---- | -------- | ----------- || _custom_json | string | no | || category | string | yes | || content | [TicketContent](#TicketContent) | yes | || created_by | string | no | || priority | [PriorityEnum](#PriorityEnum) | no | || status | string | no | |
|
|
1142
|
-
|
|
1143
|
-
---
|
|
1144
|
-
|
|
1145
|
-
#### [AgentChangePayload](#AgentChangePayload)
|
|
1146
|
-
|
|
1147
|
-
| Properties | Type | Nullable | Description |
|
|
1148
|
-
| ---------- | ---- | -------- | ----------- || agent_id | string | yes | |
|
|
1149
|
-
|
|
1150
|
-
---
|
|
1151
|
-
|
|
1152
|
-
#### [CategoryData](#CategoryData)
|
|
1153
|
-
|
|
1154
|
-
| Properties | Type | Nullable | Description |
|
|
1155
|
-
| ---------- | ---- | -------- | ----------- || list | [TicketCategory](#TicketCategory) | no | |
|
|
1156
|
-
|
|
1157
|
-
---
|
|
1158
|
-
|
|
1159
|
-
#### [CloseVideoRoomResponse](#CloseVideoRoomResponse)
|
|
1160
|
-
|
|
1161
|
-
| Properties | Type | Nullable | Description |
|
|
1162
|
-
| ---------- | ---- | -------- | ----------- || success | boolean | yes | |
|
|
1163
|
-
|
|
1164
|
-
---
|
|
1165
|
-
|
|
1166
|
-
#### [CommunicationDetails](#CommunicationDetails)
|
|
1167
|
-
|
|
1168
|
-
| Properties | Type | Nullable | Description |
|
|
1169
|
-
| ---------- | ---- | -------- | ----------- || description | string | no | || enabled | boolean | no | || title | string | no | || type | string | no | || value | string | no | |
|
|
1170
|
-
|
|
1171
|
-
---
|
|
1172
|
-
|
|
1173
|
-
#### [CreateCustomFormPayload](#CreateCustomFormPayload)
|
|
1174
|
-
|
|
1175
|
-
| Properties | Type | Nullable | Description |
|
|
1176
|
-
| ---------- | ---- | -------- | ----------- || description | string | no | || header_image | string | no | || inputs | [string] | yes | || poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | || priority | [PriorityEnum](#PriorityEnum) | yes | || should_notify | boolean | no | || slug | string | yes | || success_message | string | no | || title | string | yes | |
|
|
1177
|
-
|
|
1178
|
-
---
|
|
1179
|
-
|
|
1180
|
-
#### [CreatedOn](#CreatedOn)
|
|
1181
|
-
|
|
1182
|
-
| Properties | Type | Nullable | Description |
|
|
1183
|
-
| ---------- | ---- | -------- | ----------- || user_agent | string | yes | |
|
|
1184
|
-
|
|
1185
|
-
---
|
|
1186
|
-
|
|
1187
|
-
#### [CreateVideoRoomPayload](#CreateVideoRoomPayload)
|
|
1188
|
-
|
|
1189
|
-
| Properties | Type | Nullable | Description |
|
|
1190
|
-
| ---------- | ---- | -------- | ----------- || notify | [[NotifyUser](#NotifyUser)] | no | || unique_name | string | yes | |
|
|
1191
|
-
|
|
1192
|
-
---
|
|
1193
|
-
|
|
1194
|
-
#### [CreateVideoRoomResponse](#CreateVideoRoomResponse)
|
|
1195
|
-
|
|
1196
|
-
| Properties | Type | Nullable | Description |
|
|
1197
|
-
| ---------- | ---- | -------- | ----------- || unique_name | string | yes | |
|
|
1198
|
-
|
|
1199
|
-
---
|
|
1200
|
-
|
|
1201
|
-
#### [CustomForm](#CustomForm)
|
|
1202
|
-
|
|
1203
|
-
| Properties | Type | Nullable | Description |
|
|
1204
|
-
| ---------- | ---- | -------- | ----------- || _id | string | yes | || application_id | string | yes | || created_on | [CreatedOn](#CreatedOn) | no | || description | string | no | || header_image | string | no | || inputs | [string] | yes | || login_required | boolean | yes | || poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | || priority | [Priority](#Priority) | yes | || should_notify | boolean | yes | || slug | string | yes | || submit_button | [SubmitButton](#SubmitButton) | no | || success_message | string | no | || title | string | yes | |
|
|
1205
|
-
|
|
1206
|
-
---
|
|
1207
|
-
|
|
1208
|
-
#### [CustomFormList](#CustomFormList)
|
|
1209
|
-
|
|
1210
|
-
| Properties | Type | Nullable | Description |
|
|
1211
|
-
| ---------- | ---- | -------- | ----------- || items | [[CustomForm](#CustomForm)] | no | || page | [Page](#Page) | no | |
|
|
1212
|
-
|
|
1213
|
-
---
|
|
1214
|
-
|
|
1215
|
-
#### [CustomFormSubmissionPayload](#CustomFormSubmissionPayload)
|
|
1216
|
-
|
|
1217
|
-
| Properties | Type | Nullable | Description |
|
|
1218
|
-
| ---------- | ---- | -------- | ----------- || attachments | [[TicketAsset](#TicketAsset)] | no | || response | [string] | yes | |
|
|
1219
|
-
|
|
1220
|
-
---
|
|
1221
|
-
|
|
1222
|
-
#### [Debug](#Debug)
|
|
1223
|
-
|
|
1224
|
-
| Properties | Type | Nullable | Description |
|
|
1225
|
-
| ---------- | ---- | -------- | ----------- || platform | string | no | || source | string | no | |
|
|
1226
|
-
|
|
1227
|
-
---
|
|
1228
|
-
|
|
1229
|
-
#### [EditCustomFormPayload](#EditCustomFormPayload)
|
|
1230
|
-
|
|
1231
|
-
| Properties | Type | Nullable | Description |
|
|
1232
|
-
| ---------- | ---- | -------- | ----------- || description | string | no | || header_image | string | no | || inputs | [string] | yes | || login_required | boolean | no | || poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | || priority | [PriorityEnum](#PriorityEnum) | yes | || should_notify | boolean | no | || success_message | string | no | || title | string | yes | |
|
|
1233
|
-
|
|
1234
|
-
---
|
|
1235
|
-
|
|
1236
|
-
#### [EditTicketPayload](#EditTicketPayload)
|
|
1237
|
-
|
|
1238
|
-
| Properties | Type | Nullable | Description |
|
|
1239
|
-
| ---------- | ---- | -------- | ----------- || assigned_to | [AgentChangePayload](#AgentChangePayload) | no | || category | string | no | || content | [TicketContent](#TicketContent) | no | || priority | [PriorityEnum](#PriorityEnum) | no | || source | string | no | || status | string | no | || sub_category | string | no | || tags | [string] | no | |
|
|
1240
|
-
|
|
1241
|
-
---
|
|
1242
|
-
|
|
1243
|
-
#### [Email](#Email)
|
|
1244
|
-
|
|
1245
|
-
| Properties | Type | Nullable | Description |
|
|
1246
|
-
| ---------- | ---- | -------- | ----------- || active | boolean | no | || email | string | no | || primary | boolean | no | || verified | boolean | no | |
|
|
1247
|
-
|
|
1248
|
-
---
|
|
1249
|
-
|
|
1250
|
-
#### [FeedbackForm](#FeedbackForm)
|
|
1251
|
-
|
|
1252
|
-
| Properties | Type | Nullable | Description |
|
|
1253
|
-
| ---------- | ---- | -------- | ----------- || inputs | string | no | || timestamps | string | no | || title | string | no | |
|
|
1254
|
-
|
|
1255
|
-
---
|
|
1256
|
-
|
|
1257
|
-
#### [FeedbackResponseItem](#FeedbackResponseItem)
|
|
1258
|
-
|
|
1259
|
-
| Properties | Type | Nullable | Description |
|
|
1260
|
-
| ---------- | ---- | -------- | ----------- || display | string | yes | || key | string | yes | || value | string | yes | |
|
|
1261
|
-
|
|
1262
|
-
---
|
|
1263
|
-
|
|
1264
|
-
#### [Filter](#Filter)
|
|
1265
|
-
|
|
1266
|
-
| Properties | Type | Nullable | Description |
|
|
1267
|
-
| ---------- | ---- | -------- | ----------- || assignees | [string] | yes | || categories | [[TicketCategory](#TicketCategory)] | no | || priorities | [[Priority](#Priority)] | yes | || statuses | [[Status](#Status)] | yes | |
|
|
1268
|
-
|
|
1269
|
-
---
|
|
1270
|
-
|
|
1271
|
-
#### [GetParticipantsInsideVideoRoomResponse](#GetParticipantsInsideVideoRoomResponse)
|
|
1272
|
-
|
|
1273
|
-
| Properties | Type | Nullable | Description |
|
|
1274
|
-
| ---------- | ---- | -------- | ----------- || participants | [[Participant](#Participant)] | yes | |
|
|
1275
|
-
|
|
1276
|
-
---
|
|
1277
|
-
|
|
1278
|
-
#### [GetTokenForVideoRoomResponse](#GetTokenForVideoRoomResponse)
|
|
1279
|
-
|
|
1280
|
-
| Properties | Type | Nullable | Description |
|
|
1281
|
-
| ---------- | ---- | -------- | ----------- || access_token | string | yes | |
|
|
1282
|
-
|
|
1283
|
-
---
|
|
1284
|
-
|
|
1285
|
-
#### [IntegrationConfig](#IntegrationConfig)
|
|
1286
|
-
|
|
1287
|
-
| Properties | Type | Nullable | Description |
|
|
1288
|
-
| ---------- | ---- | -------- | ----------- || _id | string | no | || allow_ticket_creation | boolean | yes | || base_url | string | no | || category_data | [CategoryData](#CategoryData) | no | || category_sync_apikey | string | no | || config_completed | boolean | no | || create_ticket_apikey | string | no | || integration_type | string | yes | || show_listing | boolean | yes | || update_ticket_apikey | string | no | || webhook_apikey | string | no | |
|
|
1289
|
-
|
|
1290
|
-
---
|
|
1291
|
-
|
|
1292
|
-
#### [NotifyUser](#NotifyUser)
|
|
1293
|
-
|
|
1294
|
-
| Properties | Type | Nullable | Description |
|
|
1295
|
-
| ---------- | ---- | -------- | ----------- || country_code | string | yes | || phone_number | string | yes | |
|
|
1296
|
-
|
|
1297
|
-
---
|
|
1298
|
-
|
|
1299
|
-
#### [Page](#Page)
|
|
1300
|
-
|
|
1301
|
-
| Properties | Type | Nullable | Description |
|
|
1302
|
-
| ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || has_previous | boolean | no | || item_total | number | no | || next_id | string | no | || size | number | no | || type | string | yes | |
|
|
1303
|
-
|
|
1304
|
-
---
|
|
1305
|
-
|
|
1306
|
-
#### [Participant](#Participant)
|
|
1307
|
-
|
|
1308
|
-
| Properties | Type | Nullable | Description |
|
|
1309
|
-
| ---------- | ---- | -------- | ----------- || identity | string | no | || status | string | no | || user | [UserSchema](#UserSchema) | no | |
|
|
1310
|
-
|
|
1311
|
-
---
|
|
1312
|
-
|
|
1313
|
-
#### [PhoneNumber](#PhoneNumber)
|
|
1314
|
-
|
|
1315
|
-
| Properties | Type | Nullable | Description |
|
|
1316
|
-
| ---------- | ---- | -------- | ----------- || active | boolean | no | || country_code | number | no | || phone | string | no | || primary | boolean | no | || verified | boolean | no | |
|
|
1317
|
-
|
|
1318
|
-
---
|
|
1319
|
-
|
|
1320
|
-
#### [PollForAssignment](#PollForAssignment)
|
|
1321
|
-
|
|
1322
|
-
| Properties | Type | Nullable | Description |
|
|
1323
|
-
| ---------- | ---- | -------- | ----------- || duration | number | yes | || failure_message | string | yes | || message | string | yes | || success_message | string | yes | |
|
|
1324
|
-
|
|
1325
|
-
---
|
|
1326
|
-
|
|
1327
|
-
#### [Priority](#Priority)
|
|
1328
|
-
|
|
1329
|
-
| Properties | Type | Nullable | Description |
|
|
1330
|
-
| ---------- | ---- | -------- | ----------- || color | string | yes | || display | string | yes | || key | [PriorityEnum](#PriorityEnum) | yes | |
|
|
1331
|
-
|
|
1332
|
-
---
|
|
1333
|
-
|
|
1334
|
-
#### [Status](#Status)
|
|
1335
|
-
|
|
1336
|
-
| Properties | Type | Nullable | Description |
|
|
1337
|
-
| ---------- | ---- | -------- | ----------- || color | string | yes | || display | string | yes | || key | string | yes | |
|
|
1338
|
-
|
|
1339
|
-
---
|
|
1340
|
-
|
|
1341
|
-
#### [SubmitButton](#SubmitButton)
|
|
1342
|
-
|
|
1343
|
-
| Properties | Type | Nullable | Description |
|
|
1344
|
-
| ---------- | ---- | -------- | ----------- || background_color | string | yes | || title | string | yes | || title_color | string | yes | |
|
|
1345
|
-
|
|
1346
|
-
---
|
|
1347
|
-
|
|
1348
|
-
#### [SubmitCustomFormResponse](#SubmitCustomFormResponse)
|
|
1349
|
-
|
|
1350
|
-
| Properties | Type | Nullable | Description |
|
|
1351
|
-
| ---------- | ---- | -------- | ----------- || message | string | yes | || ticket | [Ticket](#Ticket) | no | |
|
|
1352
|
-
|
|
1353
|
-
---
|
|
1354
|
-
|
|
1355
|
-
#### [SupportGeneralConfig](#SupportGeneralConfig)
|
|
1356
|
-
|
|
1357
|
-
| Properties | Type | Nullable | Description |
|
|
1358
|
-
| ---------- | ---- | -------- | ----------- || _id | string | no | || integration | string | no | || show_communication_info | boolean | no | || show_support_dris | boolean | no | || support_communication | [CommunicationDetails](#CommunicationDetails) | no | || support_email | [CommunicationDetails](#CommunicationDetails) | no | || support_faq | [CommunicationDetails](#CommunicationDetails) | no | || support_phone | [CommunicationDetails](#CommunicationDetails) | no | |
|
|
1359
|
-
|
|
1360
|
-
---
|
|
1361
|
-
|
|
1362
|
-
#### [Ticket](#Ticket)
|
|
1363
|
-
|
|
1364
|
-
| Properties | Type | Nullable | Description |
|
|
1365
|
-
| ---------- | ---- | -------- | ----------- || _custom_json | string | no | || _id | string | yes | || assigned_to | string | no | || category | [TicketCategory](#TicketCategory) | yes | || content | [TicketContent](#TicketContent) | no | || context | [TicketContext](#TicketContext) | no | || created_at | string | no | || created_by | string | no | || created_on | [CreatedOn](#CreatedOn) | no | || integration | string | no | || is_feedback_pending | boolean | no | || priority | [Priority](#Priority) | yes | || response_id | string | no | || source | [TicketSourceEnum](#TicketSourceEnum) | yes | || status | [Status](#Status) | yes | || sub_category | string | no | || tags | [string] | no | || updated_at | string | no | |
|
|
1366
|
-
|
|
1367
|
-
---
|
|
1368
|
-
|
|
1369
|
-
#### [TicketAsset](#TicketAsset)
|
|
1370
|
-
|
|
1371
|
-
| Properties | Type | Nullable | Description |
|
|
1372
|
-
| ---------- | ---- | -------- | ----------- || display | string | no | || type | [TicketAssetTypeEnum](#TicketAssetTypeEnum) | yes | || value | string | yes | |
|
|
1373
|
-
|
|
1374
|
-
---
|
|
1375
|
-
|
|
1376
|
-
#### [TicketCategory](#TicketCategory)
|
|
1377
|
-
|
|
1378
|
-
| Properties | Type | Nullable | Description |
|
|
1379
|
-
| ---------- | ---- | -------- | ----------- || display | string | yes | || feedback_form | [FeedbackForm](#FeedbackForm) | no | || group_id | number | no | || key | string | yes | || sub_categories | [TicketCategory](#TicketCategory) | no | |
|
|
1380
|
-
|
|
1381
|
-
---
|
|
1382
|
-
|
|
1383
|
-
#### [TicketContent](#TicketContent)
|
|
1384
|
-
|
|
1385
|
-
| Properties | Type | Nullable | Description |
|
|
1386
|
-
| ---------- | ---- | -------- | ----------- || attachments | [[TicketAsset](#TicketAsset)] | no | || description | string | no | || title | string | yes | |
|
|
1387
|
-
|
|
1388
|
-
---
|
|
1389
|
-
|
|
1390
|
-
#### [TicketContext](#TicketContext)
|
|
1391
|
-
|
|
1392
|
-
| Properties | Type | Nullable | Description |
|
|
1393
|
-
| ---------- | ---- | -------- | ----------- || application_id | string | no | || company_id | string | yes | |
|
|
1394
|
-
|
|
1395
|
-
---
|
|
1396
|
-
|
|
1397
|
-
#### [TicketFeedback](#TicketFeedback)
|
|
1398
|
-
|
|
1399
|
-
| Properties | Type | Nullable | Description |
|
|
1400
|
-
| ---------- | ---- | -------- | ----------- || _id | string | yes | || category | string | no | || company_id | string | yes | || created_at | string | no | || response | [[FeedbackResponseItem](#FeedbackResponseItem)] | yes | || ticket_id | string | yes | || updated_at | string | no | || user | string | no | |
|
|
1401
|
-
|
|
1402
|
-
---
|
|
1403
|
-
|
|
1404
|
-
#### [TicketFeedbackForm](#TicketFeedbackForm)
|
|
1405
|
-
|
|
1406
|
-
| Properties | Type | Nullable | Description |
|
|
1407
|
-
| ---------- | ---- | -------- | ----------- || display | [string] | no | || title | string | yes | |
|
|
1408
|
-
|
|
1409
|
-
---
|
|
1410
|
-
|
|
1411
|
-
#### [TicketFeedbackList](#TicketFeedbackList)
|
|
1412
|
-
|
|
1413
|
-
| Properties | Type | Nullable | Description |
|
|
1414
|
-
| ---------- | ---- | -------- | ----------- || items | [[TicketFeedback](#TicketFeedback)] | no | |
|
|
1415
|
-
|
|
1416
|
-
---
|
|
1417
|
-
|
|
1418
|
-
#### [TicketFeedbackPayload](#TicketFeedbackPayload)
|
|
1419
|
-
|
|
1420
|
-
| Properties | Type | Nullable | Description |
|
|
1421
|
-
| ---------- | ---- | -------- | ----------- || form_response | string | no | |
|
|
1422
|
-
|
|
1423
|
-
---
|
|
1424
|
-
|
|
1425
|
-
#### [TicketHistory](#TicketHistory)
|
|
1426
|
-
|
|
1427
|
-
| Properties | Type | Nullable | Description |
|
|
1428
|
-
| ---------- | ---- | -------- | ----------- || _id | string | yes | || created_at | string | no | || created_by | string | no | || created_on | [CreatedOn](#CreatedOn) | no | || ticket_id | string | yes | || type | string | yes | || updated_at | string | no | || value | string | yes | |
|
|
1429
|
-
|
|
1430
|
-
---
|
|
1431
|
-
|
|
1432
|
-
#### [TicketHistoryList](#TicketHistoryList)
|
|
1433
|
-
|
|
1434
|
-
| Properties | Type | Nullable | Description |
|
|
1435
|
-
| ---------- | ---- | -------- | ----------- || items | [[TicketHistory](#TicketHistory)] | no | || page | [Page](#Page) | no | |
|
|
1436
|
-
|
|
1437
|
-
---
|
|
1438
|
-
|
|
1439
|
-
#### [TicketHistoryPayload](#TicketHistoryPayload)
|
|
1440
|
-
|
|
1441
|
-
| Properties | Type | Nullable | Description |
|
|
1442
|
-
| ---------- | ---- | -------- | ----------- || type | [HistoryTypeEnum](#HistoryTypeEnum) | yes | || value | string | yes | |
|
|
1443
|
-
|
|
1444
|
-
---
|
|
1445
|
-
|
|
1446
|
-
#### [TicketList](#TicketList)
|
|
1447
|
-
|
|
1448
|
-
| Properties | Type | Nullable | Description |
|
|
1449
|
-
| ---------- | ---- | -------- | ----------- || filters | [Filter](#Filter) | no | || items | [[Ticket](#Ticket)] | no | || page | [Page](#Page) | no | |
|
|
1450
|
-
|
|
1451
|
-
---
|
|
1452
|
-
|
|
1453
|
-
#### [TicketSubCategory](#TicketSubCategory)
|
|
1454
|
-
|
|
1455
|
-
| Properties | Type | Nullable | Description |
|
|
1456
|
-
| ---------- | ---- | -------- | ----------- || display | string | yes | || key | string | yes | || sub_categories | [TicketSubCategory](#TicketSubCategory) | no | |
|
|
1457
|
-
|
|
1458
|
-
---
|
|
1459
|
-
|
|
1460
|
-
#### [UserSchema](#UserSchema)
|
|
1461
|
-
|
|
1462
|
-
| Properties | Type | Nullable | Description |
|
|
1463
|
-
| ---------- | ---- | -------- | ----------- || _id | string | no | || account_type | string | no | || active | boolean | no | || created_at | string | no | || debug | [Debug](#Debug) | no | || emails | [[Email](#Email)] | no | || first_name | string | no | || gender | string | no | || has_old_password_hash | boolean | no | || last_name | string | no | || phone_numbers | [[PhoneNumber](#PhoneNumber)] | no | || profile_pic_url | string | no | || uid | string | no | || updated_at | string | no | || username | string | no | |
|
|
1464
|
-
|
|
1465
|
-
---
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
### Enums
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
#### [PriorityEnum](#PriorityEnum)
|
|
1477
|
-
Type : string
|
|
1478
|
-
|
|
1479
|
-
| Name | Value | Description |
|
|
1480
|
-
| ---- | ----- | ----------- |
|
|
1481
|
-
| low | low | This means ticket is low priority |
|
|
1482
|
-
| medium | medium | This means ticket is medium priority |
|
|
1483
|
-
| high | high | This means ticket is high priority |
|
|
1484
|
-
| urgent | urgent | This means ticket is of urgent priority |
|
|
1485
|
-
|
|
1486
|
-
---
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
#### [HistoryTypeEnum](#HistoryTypeEnum)
|
|
1491
|
-
Type : string
|
|
1492
|
-
|
|
1493
|
-
| Name | Value | Description |
|
|
1494
|
-
| ---- | ----- | ----------- |
|
|
1495
|
-
| rating | rating | This means history event is a rating |
|
|
1496
|
-
| log | log | This means history event is a changelog |
|
|
1497
|
-
| comment | comment | This means history event is a comment |
|
|
1498
|
-
|
|
1499
|
-
---
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
#### [TicketAssetTypeEnum](#TicketAssetTypeEnum)
|
|
1504
|
-
Type : string
|
|
1505
|
-
|
|
1506
|
-
| Name | Value | Description |
|
|
1507
|
-
| ---- | ----- | ----------- |
|
|
1508
|
-
| image | image | Denotes asset is of image type |
|
|
1509
|
-
| video | video | Denotes asset is of video type |
|
|
1510
|
-
| file | file | Denotes asset is of file type |
|
|
1511
|
-
| youtube | youtube | Denotes asset is an youtube link |
|
|
1512
|
-
| product | product | Denotes asset is of product type |
|
|
1513
|
-
| collection | collection | Denotes asset is of collection type |
|
|
1514
|
-
| brand | brand | Denotes asset is of brand type |
|
|
1515
|
-
| shipment | shipment | Denotes asset is of shipment type |
|
|
1516
|
-
| order | order | Denotes asset is of order type |
|
|
1517
|
-
|
|
1518
|
-
---
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
#### [TicketSourceEnum](#TicketSourceEnum)
|
|
1523
|
-
Type : string
|
|
1524
|
-
|
|
1525
|
-
| Name | Value | Description |
|
|
1526
|
-
| ---- | ----- | ----------- |
|
|
1527
|
-
| platformPanel | platform_panel | This means it is company level ticket |
|
|
1528
|
-
| salesChannel | sales_channel | This means it is a application/sales channel level ticket |
|
|
1529
|
-
|
|
1530
|
-
---
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
#### [TicketIntegrationDetails](#TicketIntegrationDetails)
|
|
1535
|
-
Type : string
|
|
1536
|
-
|
|
1537
|
-
| Name | Value | Description |
|
|
1538
|
-
| ---- | ----- | ----------- |
|
|
1539
|
-
| defaultCase | default | This means it is default level ticket integration |
|
|
1540
|
-
| freshdesk | freshdesk | This means it is default level freshdesk integration |
|
|
1541
|
-
| kapture | kapture | This means it is default level kapture integration |
|
|
1542
|
-
|
|
1543
|
-
---
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|