@gofynd/fdk-client-javascript 1.0.3 → 1.1.0

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 (185) hide show
  1. package/README.md +51 -2
  2. package/index.d.ts +7 -4
  3. package/index.js +22 -7
  4. package/package.json +23 -14
  5. package/partner.d.ts +4 -0
  6. package/partner.js +7 -0
  7. package/sdk/application/ApplicationAPIClient.js +2 -4
  8. package/sdk/application/Cart/CartApplicationClient.js +29 -28
  9. package/sdk/application/Cart/CartApplicationModel.js +3 -1
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
  11. package/sdk/application/Catalog/CatalogApplicationModel.js +5 -3
  12. package/sdk/application/Common/CommonApplicationClient.js +5 -4
  13. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
  15. package/sdk/application/Content/ContentApplicationClient.js +26 -25
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
  17. package/sdk/application/Lead/LeadApplicationClient.js +10 -9
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
  20. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
  21. package/sdk/application/Order/OrderApplicationClient.js +15 -14
  22. package/sdk/application/Order/OrderApplicationModel.js +9 -0
  23. package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
  24. package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
  25. package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
  27. package/sdk/application/Share/ShareApplicationClient.js +10 -9
  28. package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
  29. package/sdk/application/User/UserApplicationClient.js +38 -37
  30. package/sdk/common/AxiosHelper.js +17 -6
  31. package/sdk/common/BaseOAuthClient.d.ts +17 -0
  32. package/sdk/common/BaseOAuthClient.js +67 -0
  33. package/sdk/common/RequestSigner.js +0 -5
  34. package/sdk/partner/OAuthClient.d.ts +14 -0
  35. package/sdk/partner/OAuthClient.js +112 -0
  36. package/sdk/partner/PartnerAPIClient.d.ts +12 -0
  37. package/sdk/partner/PartnerAPIClient.js +42 -0
  38. package/sdk/partner/PartnerClient.d.ts +6 -0
  39. package/sdk/partner/PartnerClient.js +17 -0
  40. package/sdk/partner/PartnerConfig.d.ts +30 -0
  41. package/sdk/partner/PartnerConfig.js +39 -0
  42. package/sdk/partner/index.d.ts +3 -0
  43. package/sdk/partner/index.js +5 -0
  44. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
  45. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  46. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  47. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  48. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
  49. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
  50. package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -0
  51. package/sdk/platform/Billing/BillingPlatformClient.js +137 -2
  52. package/sdk/platform/Billing/BillingPlatformModel.d.ts +4 -0
  53. package/sdk/platform/Billing/BillingPlatformModel.js +44 -0
  54. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +2 -0
  55. package/sdk/platform/Billing/BillingPlatformValidator.js +15 -0
  56. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
  57. package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
  58. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
  59. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
  60. package/sdk/platform/Cart/CartPlatformModel.js +7 -3
  61. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
  62. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
  63. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  64. package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
  65. package/sdk/platform/Catalog/CatalogPlatformModel.js +9 -9
  66. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
  67. package/sdk/platform/Common/CommonPlatformClient.js +7 -18
  68. package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
  69. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
  70. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
  71. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  72. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  73. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
  74. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
  75. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
  76. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
  77. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
  78. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
  79. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -1
  80. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -1
  81. package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
  82. package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
  83. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
  84. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
  85. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
  86. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
  87. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
  88. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
  89. package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
  90. package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
  91. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
  92. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
  93. package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
  94. package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
  95. package/sdk/platform/OAuthClient.js +3 -9
  96. package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
  97. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
  98. package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
  99. package/sdk/platform/Order/OrderPlatformClient.js +16 -3
  100. package/sdk/platform/Order/OrderPlatformModel.js +1 -0
  101. package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
  102. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  103. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  104. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
  105. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
  106. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
  107. package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
  108. package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
  109. package/sdk/platform/PlatformApplicationClient.d.ts +5 -1
  110. package/sdk/platform/PlatformApplicationClient.js +4 -0
  111. package/sdk/platform/PlatformClient.d.ts +51 -12
  112. package/sdk/platform/PlatformClient.js +54 -11
  113. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +17 -19
  114. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +88 -83
  115. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
  116. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +8 -9
  117. package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
  118. package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
  119. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
  120. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
  121. package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
  122. package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
  123. package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
  124. package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
  125. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
  126. package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
  127. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  128. package/.github/workflows/on_create_release.yml +0 -23
  129. package/.github/workflows/on_merge_main.yml +0 -38
  130. package/.github/workflows/on_pull_request.yml +0 -35
  131. package/.prettierrc +0 -5
  132. package/documentation/application/CART.md +0 -8771
  133. package/documentation/application/CATALOG.md +0 -8690
  134. package/documentation/application/COMMON.md +0 -325
  135. package/documentation/application/COMMUNICATION.md +0 -387
  136. package/documentation/application/CONFIGURATION.md +0 -2212
  137. package/documentation/application/CONTENT.md +0 -2629
  138. package/documentation/application/FILESTORAGE.md +0 -442
  139. package/documentation/application/LEAD.md +0 -1549
  140. package/documentation/application/LOGISTIC.md +0 -689
  141. package/documentation/application/ORDER.md +0 -2937
  142. package/documentation/application/PAYMENT.md +0 -4475
  143. package/documentation/application/POSCART.md +0 -9375
  144. package/documentation/application/README.md +0 -21
  145. package/documentation/application/REWARDS.md +0 -554
  146. package/documentation/application/SHARE.md +0 -635
  147. package/documentation/application/THEME.md +0 -5517
  148. package/documentation/application/USER.md +0 -3798
  149. package/documentation/platform/ANALYTICS.md +0 -1012
  150. package/documentation/platform/AUDITTRAIL.md +0 -493
  151. package/documentation/platform/BILLING.md +0 -1889
  152. package/documentation/platform/CART.md +0 -4711
  153. package/documentation/platform/CATALOG.md +0 -20522
  154. package/documentation/platform/COMMON.md +0 -325
  155. package/documentation/platform/COMMUNICATION.md +0 -4970
  156. package/documentation/platform/COMPANYPROFILE.md +0 -1646
  157. package/documentation/platform/CONFIGURATION.md +0 -6316
  158. package/documentation/platform/CONTENT.md +0 -8364
  159. package/documentation/platform/DISCOUNT.md +0 -767
  160. package/documentation/platform/FILESTORAGE.md +0 -945
  161. package/documentation/platform/INVENTORY.md +0 -1136
  162. package/documentation/platform/LEAD.md +0 -4394
  163. package/documentation/platform/ORDER.md +0 -6525
  164. package/documentation/platform/PARTNER.md +0 -193
  165. package/documentation/platform/PAYMENT.md +0 -3138
  166. package/documentation/platform/README.md +0 -27
  167. package/documentation/platform/REWARDS.md +0 -919
  168. package/documentation/platform/SHARE.md +0 -513
  169. package/documentation/platform/THEME.md +0 -35446
  170. package/documentation/platform/USER.md +0 -2174
  171. package/documentation/platform/WEBHOOK.md +0 -485
  172. package/documentation/public/CONFIGURATION.md +0 -325
  173. package/documentation/public/INVENTORY.md +0 -508
  174. package/documentation/public/WEBHOOK.md +0 -246
  175. package/jest.config.d.ts +0 -4
  176. package/jest.config.js +0 -6
  177. package/tests/application/catalog.spec.js +0 -54
  178. package/tests/common/action-url.spec.js +0 -35
  179. package/tests/common/schema/action-url.json +0 -178
  180. package/tests/common/schema/url-action.json +0 -683
  181. package/tests/common/url-action.spec.js +0 -48
  182. package/tests/helpers/cookie.helper.js +0 -31
  183. package/tests/helpers/oauth.helper.js +0 -43
  184. package/tests/platform/catalog.spec.js +0 -49
  185. package/tests/public/location.spec.js +0 -39
@@ -1,4970 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Platform docs](./README.md)
7
-
8
- ## Communication Methods
9
- Manages email, sms, push notifications sent to users
10
-
11
- * [createAudience](#createaudience)
12
- * [createCampaign](#createcampaign)
13
- * [createEmailProvider](#createemailprovider)
14
- * [createEmailTemplate](#createemailtemplate)
15
- * [createSmsProvider](#createsmsprovider)
16
- * [createSmsTemplate](#createsmstemplate)
17
- * [deleteEmailTemplateById](#deleteemailtemplatebyid)
18
- * [deleteSmsTemplateById](#deletesmstemplatebyid)
19
- * [getAudienceById](#getaudiencebyid)
20
- * [getAudiences](#getaudiences)
21
- * [getBigqueryHeaders](#getbigqueryheaders)
22
- * [getCampaignById](#getcampaignbyid)
23
- * [getCampaigns](#getcampaigns)
24
- * [getCommunicationLogs](#getcommunicationlogs)
25
- * [getEmailProviderById](#getemailproviderbyid)
26
- * [getEmailProviders](#getemailproviders)
27
- * [getEmailTemplateById](#getemailtemplatebyid)
28
- * [getEmailTemplates](#getemailtemplates)
29
- * [getEventSubscriptions](#geteventsubscriptions)
30
- * [getJobLogs](#getjoblogs)
31
- * [getJobs](#getjobs)
32
- * [getNSampleRecordsFromCsv](#getnsamplerecordsfromcsv)
33
- * [getSmsProviderById](#getsmsproviderbyid)
34
- * [getSmsProviders](#getsmsproviders)
35
- * [getSmsTemplateById](#getsmstemplatebyid)
36
- * [getSmsTemplates](#getsmstemplates)
37
- * [getStatsOfCampaignById](#getstatsofcampaignbyid)
38
- * [getSystemEmailTemplates](#getsystememailtemplates)
39
- * [getSystemNotifications](#getsystemnotifications)
40
- * [getSystemSystemTemplates](#getsystemsystemtemplates)
41
- * [sendCommunicationAsynchronously](#sendcommunicationasynchronously)
42
- * [sendCommunicationSynchronously](#sendcommunicationsynchronously)
43
- * [sendOtp](#sendotp)
44
- * [triggerCampaignJob](#triggercampaignjob)
45
- * [updateAudienceById](#updateaudiencebyid)
46
- * [updateCampaignById](#updatecampaignbyid)
47
- * [updateEmailProviderById](#updateemailproviderbyid)
48
- * [updateEmailTemplateById](#updateemailtemplatebyid)
49
- * [updateSmsProviderById](#updatesmsproviderbyid)
50
- * [updateSmsTemplateById](#updatesmstemplatebyid)
51
- * [verfiyOtp](#verfiyotp)
52
-
53
-
54
-
55
- ## Methods with example and description
56
-
57
-
58
-
59
-
60
- ### createAudience
61
- Create audience
62
-
63
-
64
-
65
- ```javascript
66
- // Promise
67
- const promise = client.application("<APPLICATION_ID>").communication.createAudience({ body : value });
68
-
69
- // Async/Await
70
- const data = await client.application("<APPLICATION_ID>").communication.createAudience({ body : value });
71
- ```
72
-
73
-
74
-
75
-
76
-
77
- | Argument | Type | Required | Description |
78
- | --------- | ----- | -------- | ----------- |
79
- | body | [AudienceReq](#AudienceReq) | yes | Request body |
80
-
81
-
82
- Create audience
83
-
84
- *Returned Response:*
85
-
86
-
87
-
88
-
89
- [Audience](#Audience)
90
-
91
- Success
92
-
93
-
94
-
95
-
96
- <details>
97
- <summary><i>&nbsp; Examples:</i></summary>
98
-
99
-
100
- <details>
101
- <summary><i>&nbsp; default</i></summary>
102
-
103
- ```json
104
- {
105
- "value": {
106
- "description": "test description",
107
- "tags": [
108
- "csv"
109
- ],
110
- "headers": [
111
- "phone_number",
112
- "email",
113
- "firstname",
114
- "lastname",
115
- "orderid"
116
- ],
117
- "is_active": true,
118
- "_id": "5fb6675c09fd901023917a5f",
119
- "name": "Test csv",
120
- "file_url": "https://hdn-1.addsale.com/x0/application/000000000000000000000004/datasources/2_r_D1jt6-test-1-entries.csv",
121
- "type": "raw_csv",
122
- "records_count": 3,
123
- "application": "000000000000000000000004",
124
- "created_at": "2020-11-19T12:38:52.580Z",
125
- "updated_at": "2020-11-19T12:38:52.580Z",
126
- "slug": "Test-csv",
127
- "__v": 0
128
- }
129
- }
130
- ```
131
- </details>
132
-
133
- </details>
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
- ---
144
-
145
-
146
- ### createCampaign
147
- Create campaign
148
-
149
-
150
-
151
- ```javascript
152
- // Promise
153
- const promise = client.application("<APPLICATION_ID>").communication.createCampaign({ body : value });
154
-
155
- // Async/Await
156
- const data = await client.application("<APPLICATION_ID>").communication.createCampaign({ body : value });
157
- ```
158
-
159
-
160
-
161
-
162
-
163
- | Argument | Type | Required | Description |
164
- | --------- | ----- | -------- | ----------- |
165
- | body | [CampaignReq](#CampaignReq) | yes | Request body |
166
-
167
-
168
- Create campaign
169
-
170
- *Returned Response:*
171
-
172
-
173
-
174
-
175
- [Campaign](#Campaign)
176
-
177
- Success
178
-
179
-
180
-
181
-
182
- <details>
183
- <summary><i>&nbsp; Examples:</i></summary>
184
-
185
-
186
- <details>
187
- <summary><i>&nbsp; default</i></summary>
188
-
189
- ```json
190
- {
191
- "value": {
192
- "recipient_headers": {
193
- "email": "email"
194
- },
195
- "email": {
196
- "template": {
197
- "key": "_id",
198
- "value": "5fb6757a09fd90ca91917a60"
199
- },
200
- "provider": {
201
- "_id": "5e560652b5eb4b1f13b4d601",
202
- "from_name": "Fynd",
203
- "from_email": "hey@gofynd.com"
204
- }
205
- },
206
- "description": "",
207
- "tags": [],
208
- "is_active": true,
209
- "_id": "6009a1ea1f6a61d88e80a867",
210
- "datasource": "6009a1be1f6a61a13180a866",
211
- "type": "email",
212
- "name": "testing bq email",
213
- "application": "000000000000000000000004",
214
- "created_at": "2021-01-21T15:46:50.357Z",
215
- "updated_at": "2021-01-21T15:46:50.357Z",
216
- "slug": "testing-bq-email-vPyAd1YB1",
217
- "__v": 0
218
- }
219
- }
220
- ```
221
- </details>
222
-
223
- </details>
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
- ---
234
-
235
-
236
- ### createEmailProvider
237
- Create email provider
238
-
239
-
240
-
241
- ```javascript
242
- // Promise
243
- const promise = client.application("<APPLICATION_ID>").communication.createEmailProvider({ body : value });
244
-
245
- // Async/Await
246
- const data = await client.application("<APPLICATION_ID>").communication.createEmailProvider({ body : value });
247
- ```
248
-
249
-
250
-
251
-
252
-
253
- | Argument | Type | Required | Description |
254
- | --------- | ----- | -------- | ----------- |
255
- | body | [EmailProviderReq](#EmailProviderReq) | yes | Request body |
256
-
257
-
258
- Create email provider
259
-
260
- *Returned Response:*
261
-
262
-
263
-
264
-
265
- [EmailProvider](#EmailProvider)
266
-
267
- Success
268
-
269
-
270
-
271
-
272
- <details>
273
- <summary><i>&nbsp; Examples:</i></summary>
274
-
275
-
276
- <details>
277
- <summary><i>&nbsp; default</i></summary>
278
-
279
- ```json
280
- {
281
- "value": {
282
- "type": "application",
283
- "provider": "falconide",
284
- "from_address": [
285
- {
286
- "is_default": true,
287
- "name": "abc",
288
- "email": "abc@test.com"
289
- }
290
- ],
291
- "_id": "5fd9fd44c474a7e3d5d376d6",
292
- "name": "test falconide",
293
- "description": "test",
294
- "api_key": "testtttt",
295
- "application": "000000000000000000000004",
296
- "created_at": "2020-12-16T12:27:48.051Z",
297
- "updated_at": "2020-12-16T12:27:48.051Z",
298
- "slug": "test-falconide-application-falconide-ZTD-D7wbB",
299
- "__v": 0
300
- }
301
- }
302
- ```
303
- </details>
304
-
305
- </details>
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
- ---
316
-
317
-
318
- ### createEmailTemplate
319
- Create email template
320
-
321
-
322
-
323
- ```javascript
324
- // Promise
325
- const promise = client.application("<APPLICATION_ID>").communication.createEmailTemplate({ body : value });
326
-
327
- // Async/Await
328
- const data = await client.application("<APPLICATION_ID>").communication.createEmailTemplate({ body : value });
329
- ```
330
-
331
-
332
-
333
-
334
-
335
- | Argument | Type | Required | Description |
336
- | --------- | ----- | -------- | ----------- |
337
- | body | [EmailTemplateReq](#EmailTemplateReq) | yes | Request body |
338
-
339
-
340
- Create email template
341
-
342
- *Returned Response:*
343
-
344
-
345
-
346
-
347
- [EmailTemplateRes](#EmailTemplateRes)
348
-
349
- Success
350
-
351
-
352
-
353
-
354
- <details>
355
- <summary><i>&nbsp; Examples:</i></summary>
356
-
357
-
358
- <details>
359
- <summary><i>&nbsp; default</i></summary>
360
-
361
- ```json
362
- {
363
- "value": {
364
- "is_system": false,
365
- "is_internal": false,
366
- "description": "test template",
367
- "static_to": [
368
- "abc@gofynd.com"
369
- ],
370
- "static_cc": [
371
- "abc@gofynd.com"
372
- ],
373
- "static_bcc": [
374
- "abc@gofynd.com"
375
- ],
376
- "tags": [],
377
- "priority": "low",
378
- "published": false,
379
- "_id": "5ef42a49c8b67d279c27a980",
380
- "name": "test",
381
- "keys": {
382
- "bcc": "abc@gofynd.com"
383
- },
384
- "reply_to": "abc@gofynd.com",
385
- "headers": [
386
- {
387
- "key": "x-test-header",
388
- "value": "test123"
389
- }
390
- ],
391
- "subject": {
392
- "template_type": "static",
393
- "template": "This is test email"
394
- },
395
- "html": {
396
- "template_type": "static",
397
- "template": "This is test email"
398
- },
399
- "text": {
400
- "template_type": "static",
401
- "template": "This is test email"
402
- },
403
- "attachments": [],
404
- "created_at": "2021-02-08T03:33:42.103Z",
405
- "updated_at": "2021-02-08T03:33:42.103Z",
406
- "slug": "test-fZfGq0lSQ",
407
- "__v": 0
408
- }
409
- }
410
- ```
411
- </details>
412
-
413
- </details>
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
- ---
424
-
425
-
426
- ### createSmsProvider
427
- Create sms provider
428
-
429
-
430
-
431
- ```javascript
432
- // Promise
433
- const promise = client.application("<APPLICATION_ID>").communication.createSmsProvider({ body : value });
434
-
435
- // Async/Await
436
- const data = await client.application("<APPLICATION_ID>").communication.createSmsProvider({ body : value });
437
- ```
438
-
439
-
440
-
441
-
442
-
443
- | Argument | Type | Required | Description |
444
- | --------- | ----- | -------- | ----------- |
445
- | body | [SmsProviderReq](#SmsProviderReq) | yes | Request body |
446
-
447
-
448
- Create sms provider
449
-
450
- *Returned Response:*
451
-
452
-
453
-
454
-
455
- [SmsProvider](#SmsProvider)
456
-
457
- Success
458
-
459
-
460
-
461
-
462
- <details>
463
- <summary><i>&nbsp; Examples:</i></summary>
464
-
465
-
466
- <details>
467
- <summary><i>&nbsp; default</i></summary>
468
-
469
- ```json
470
- {
471
- "value": {
472
- "rpt": 1,
473
- "type": "application",
474
- "provider": "telspiel",
475
- "_id": "5fd9fd07c474a7710dd376d5",
476
- "name": "test telspiel",
477
- "description": "test",
478
- "sender": "test",
479
- "username": "test",
480
- "authkey": "test",
481
- "application": "000000000000000000000004",
482
- "created_at": "2020-12-16T12:26:47.794Z",
483
- "updated_at": "2020-12-16T12:26:47.794Z",
484
- "slug": "test-telspiel-application-telspiel-p9UY1r7nG",
485
- "__v": 0
486
- }
487
- }
488
- ```
489
- </details>
490
-
491
- </details>
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
- ---
502
-
503
-
504
- ### createSmsTemplate
505
- Create sms template
506
-
507
-
508
-
509
- ```javascript
510
- // Promise
511
- const promise = client.application("<APPLICATION_ID>").communication.createSmsTemplate({ body : value });
512
-
513
- // Async/Await
514
- const data = await client.application("<APPLICATION_ID>").communication.createSmsTemplate({ body : value });
515
- ```
516
-
517
-
518
-
519
-
520
-
521
- | Argument | Type | Required | Description |
522
- | --------- | ----- | -------- | ----------- |
523
- | body | [SmsTemplateReq](#SmsTemplateReq) | yes | Request body |
524
-
525
-
526
- Create sms template
527
-
528
- *Returned Response:*
529
-
530
-
531
-
532
-
533
- [SmsTemplateRes](#SmsTemplateRes)
534
-
535
- Success
536
-
537
-
538
-
539
-
540
- <details>
541
- <summary><i>&nbsp; Examples:</i></summary>
542
-
543
-
544
- <details>
545
- <summary><i>&nbsp; default</i></summary>
546
-
547
- ```json
548
- {
549
- "value": {
550
- "is_system": false,
551
- "is_internal": true,
552
- "description": "This is a test sms template",
553
- "priority": "high",
554
- "tags": [],
555
- "published": true,
556
- "_id": "5fd447728394dbf0d21329b3",
557
- "slug": "test-sms",
558
- "name": "Test sms",
559
- "message": {
560
- "template_type": "nunjucks",
561
- "template": "This is a test sms for order - {{ orderId }}"
562
- },
563
- "template_variables": {
564
- "orderId": "12345"
565
- },
566
- "created_at": "2020-12-12T04:30:42.456Z",
567
- "updated_at": "2020-12-24T15:13:20.558Z",
568
- "__v": 0
569
- }
570
- }
571
- ```
572
- </details>
573
-
574
- </details>
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
- ---
585
-
586
-
587
- ### deleteEmailTemplateById
588
- Delete email template by id
589
-
590
-
591
-
592
- ```javascript
593
- // Promise
594
- const promise = client.application("<APPLICATION_ID>").communication.deleteEmailTemplateById({ id : value });
595
-
596
- // Async/Await
597
- const data = await client.application("<APPLICATION_ID>").communication.deleteEmailTemplateById({ id : value });
598
- ```
599
-
600
-
601
-
602
-
603
-
604
- | Argument | Type | Required | Description |
605
- | --------- | ----- | -------- | ----------- |
606
- | id | string | yes | Email template id |
607
-
608
-
609
-
610
- Delete email template by id
611
-
612
- *Returned Response:*
613
-
614
-
615
-
616
-
617
- [EmailTemplateDeleteSuccessRes](#EmailTemplateDeleteSuccessRes)
618
-
619
- Success
620
-
621
-
622
-
623
-
624
- <details>
625
- <summary><i>&nbsp; Examples:</i></summary>
626
-
627
-
628
- <details>
629
- <summary><i>&nbsp; default</i></summary>
630
-
631
- ```json
632
- {
633
- "value": {
634
- "success": true,
635
- "message": "Deleted successfully"
636
- }
637
- }
638
- ```
639
- </details>
640
-
641
- </details>
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
- ---
652
-
653
-
654
- ### deleteSmsTemplateById
655
- Delete sms template by id
656
-
657
-
658
-
659
- ```javascript
660
- // Promise
661
- const promise = client.application("<APPLICATION_ID>").communication.deleteSmsTemplateById({ id : value });
662
-
663
- // Async/Await
664
- const data = await client.application("<APPLICATION_ID>").communication.deleteSmsTemplateById({ id : value });
665
- ```
666
-
667
-
668
-
669
-
670
-
671
- | Argument | Type | Required | Description |
672
- | --------- | ----- | -------- | ----------- |
673
- | id | string | yes | Sms template id |
674
-
675
-
676
-
677
- Delete sms template by id
678
-
679
- *Returned Response:*
680
-
681
-
682
-
683
-
684
- [SmsTemplateDeleteSuccessRes](#SmsTemplateDeleteSuccessRes)
685
-
686
- Success
687
-
688
-
689
-
690
-
691
- <details>
692
- <summary><i>&nbsp; Examples:</i></summary>
693
-
694
-
695
- <details>
696
- <summary><i>&nbsp; default</i></summary>
697
-
698
- ```json
699
- {
700
- "value": {
701
- "success": true,
702
- "message": "Deleted successfully"
703
- }
704
- }
705
- ```
706
- </details>
707
-
708
- </details>
709
-
710
-
711
-
712
-
713
-
714
-
715
-
716
-
717
-
718
- ---
719
-
720
-
721
- ### getAudienceById
722
- Get audience by id
723
-
724
-
725
-
726
- ```javascript
727
- // Promise
728
- const promise = client.application("<APPLICATION_ID>").communication.getAudienceById({ id : value });
729
-
730
- // Async/Await
731
- const data = await client.application("<APPLICATION_ID>").communication.getAudienceById({ id : value });
732
- ```
733
-
734
-
735
-
736
-
737
-
738
- | Argument | Type | Required | Description |
739
- | --------- | ----- | -------- | ----------- |
740
- | id | string | yes | Audience id |
741
-
742
-
743
-
744
- Get audience by id
745
-
746
- *Returned Response:*
747
-
748
-
749
-
750
-
751
- [Audience](#Audience)
752
-
753
- Success
754
-
755
-
756
-
757
-
758
- <details>
759
- <summary><i>&nbsp; Examples:</i></summary>
760
-
761
-
762
- <details>
763
- <summary><i>&nbsp; default</i></summary>
764
-
765
- ```json
766
- {
767
- "value": {
768
- "description": "test description",
769
- "tags": [
770
- "csv"
771
- ],
772
- "headers": [
773
- "phone_number",
774
- "email",
775
- "firstname",
776
- "lastname",
777
- "orderid"
778
- ],
779
- "is_active": true,
780
- "_id": "5fb6675c09fd901023917a5f",
781
- "name": "Test csv",
782
- "file_url": "https://hdn-1.addsale.com/x0/application/000000000000000000000004/datasources/2_r_D1jt6-test-1-entries.csv",
783
- "type": "raw_csv",
784
- "records_count": 3,
785
- "application": "000000000000000000000004",
786
- "created_at": "2020-11-19T12:38:52.580Z",
787
- "updated_at": "2020-11-19T12:38:52.580Z",
788
- "slug": "Test-csv",
789
- "__v": 0
790
- }
791
- }
792
- ```
793
- </details>
794
-
795
- </details>
796
-
797
-
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
- ---
806
-
807
-
808
- ### getAudiences
809
- Get audiences
810
-
811
-
812
-
813
- ```javascript
814
- // Promise
815
- const promise = client.application("<APPLICATION_ID>").communication.getAudiences({ pageNo : value,
816
- pageSize : value,
817
- sort : value });
818
-
819
- // Async/Await
820
- const data = await client.application("<APPLICATION_ID>").communication.getAudiences({ pageNo : value,
821
- pageSize : value,
822
- sort : value });
823
- ```
824
-
825
-
826
-
827
-
828
-
829
- | Argument | Type | Required | Description |
830
- | --------- | ----- | -------- | ----------- |
831
- | pageNo | number | no | Current page no |
832
- | pageSize | number | no | Current request items count |
833
- | sort | Object | no | To sort based on created_at |
834
-
835
-
836
-
837
- Get audiences
838
-
839
- *Returned Response:*
840
-
841
-
842
-
843
-
844
- [Audiences](#Audiences)
845
-
846
- Success
847
-
848
-
849
-
850
-
851
- <details>
852
- <summary><i>&nbsp; Examples:</i></summary>
853
-
854
-
855
- <details>
856
- <summary><i>&nbsp; default</i></summary>
857
-
858
- ```json
859
- {
860
- "value": {
861
- "items": [
862
- {
863
- "description": "test description",
864
- "tags": [
865
- "csv"
866
- ],
867
- "headers": [
868
- "phone_number",
869
- "email",
870
- "firstname",
871
- "lastname",
872
- "orderid"
873
- ],
874
- "is_active": true,
875
- "_id": "5fb6675c09fd901023917a5f",
876
- "name": "Test csv",
877
- "file_url": "https://hdn-1.addsale.com/x0/application/000000000000000000000004/datasources/2_r_D1jt6-test-1-entries.csv",
878
- "type": "raw_csv",
879
- "records_count": 3,
880
- "application": "000000000000000000000004",
881
- "created_at": "2020-11-19T12:38:52.580Z",
882
- "updated_at": "2020-11-19T12:38:52.580Z",
883
- "slug": "Test-csv",
884
- "__v": 0
885
- }
886
- ],
887
- "page": {
888
- "type": "number",
889
- "current": 1,
890
- "size": 1,
891
- "item_total": 1,
892
- "has_next": false
893
- }
894
- }
895
- }
896
- ```
897
- </details>
898
-
899
- </details>
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
- ---
910
-
911
-
912
- ### getBigqueryHeaders
913
- Get bigquery headers
914
-
915
-
916
-
917
- ```javascript
918
- // Promise
919
- const promise = client.application("<APPLICATION_ID>").communication.getBigqueryHeaders({ body : value });
920
-
921
- // Async/Await
922
- const data = await client.application("<APPLICATION_ID>").communication.getBigqueryHeaders({ body : value });
923
- ```
924
-
925
-
926
-
927
-
928
-
929
- | Argument | Type | Required | Description |
930
- | --------- | ----- | -------- | ----------- |
931
- | body | [BigqueryHeadersReq](#BigqueryHeadersReq) | yes | Request body |
932
-
933
-
934
- Get bigquery headers
935
-
936
- *Returned Response:*
937
-
938
-
939
-
940
-
941
- [BigqueryHeadersRes](#BigqueryHeadersRes)
942
-
943
- Success
944
-
945
-
946
-
947
-
948
- <details>
949
- <summary><i>&nbsp; Examples:</i></summary>
950
-
951
-
952
- <details>
953
- <summary><i>&nbsp; default</i></summary>
954
-
955
- ```json
956
- {
957
- "value": {
958
- "headers": [
959
- {
960
- "name": "firstname",
961
- "type": "STRING"
962
- },
963
- {
964
- "name": "lastname",
965
- "type": "STRING"
966
- },
967
- {
968
- "name": "email",
969
- "type": "STRING"
970
- },
971
- {
972
- "name": "phone",
973
- "type": "STRING"
974
- },
975
- {
976
- "name": "countryCode",
977
- "type": "STRING"
978
- },
979
- {
980
- "name": "application",
981
- "type": "STRING"
982
- }
983
- ]
984
- }
985
- }
986
- ```
987
- </details>
988
-
989
- </details>
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
-
999
- ---
1000
-
1001
-
1002
- ### getCampaignById
1003
- Get campaign by id
1004
-
1005
-
1006
-
1007
- ```javascript
1008
- // Promise
1009
- const promise = client.application("<APPLICATION_ID>").communication.getCampaignById({ id : value });
1010
-
1011
- // Async/Await
1012
- const data = await client.application("<APPLICATION_ID>").communication.getCampaignById({ id : value });
1013
- ```
1014
-
1015
-
1016
-
1017
-
1018
-
1019
- | Argument | Type | Required | Description |
1020
- | --------- | ----- | -------- | ----------- |
1021
- | id | string | yes | Campaign id |
1022
-
1023
-
1024
-
1025
- Get campaign by id
1026
-
1027
- *Returned Response:*
1028
-
1029
-
1030
-
1031
-
1032
- [Campaign](#Campaign)
1033
-
1034
- Success
1035
-
1036
-
1037
-
1038
-
1039
- <details>
1040
- <summary><i>&nbsp; Examples:</i></summary>
1041
-
1042
-
1043
- <details>
1044
- <summary><i>&nbsp; default</i></summary>
1045
-
1046
- ```json
1047
- {
1048
- "value": {
1049
- "recipient_headers": {
1050
- "email": "email"
1051
- },
1052
- "email": {
1053
- "template": {
1054
- "key": "_id",
1055
- "value": "5fb6757a09fd90ca91917a60"
1056
- },
1057
- "provider": {
1058
- "_id": "5e560652b5eb4b1f13b4d601",
1059
- "from_name": "Fynd",
1060
- "from_email": "hey@gofynd.com"
1061
- }
1062
- },
1063
- "description": "",
1064
- "tags": [],
1065
- "is_active": true,
1066
- "_id": "6009a1ea1f6a61d88e80a867",
1067
- "datasource": "6009a1be1f6a61a13180a866",
1068
- "type": "email",
1069
- "name": "testing bq email",
1070
- "application": "000000000000000000000004",
1071
- "created_at": "2021-01-21T15:46:50.357Z",
1072
- "updated_at": "2021-01-21T15:46:50.357Z",
1073
- "slug": "testing-bq-email-vPyAd1YB1",
1074
- "__v": 0
1075
- }
1076
- }
1077
- ```
1078
- </details>
1079
-
1080
- </details>
1081
-
1082
-
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
- ---
1091
-
1092
-
1093
- ### getCampaigns
1094
- Get campaigns
1095
-
1096
-
1097
-
1098
- ```javascript
1099
- // Promise
1100
- const promise = client.application("<APPLICATION_ID>").communication.getCampaigns({ pageNo : value,
1101
- pageSize : value,
1102
- sort : value });
1103
-
1104
- // Async/Await
1105
- const data = await client.application("<APPLICATION_ID>").communication.getCampaigns({ pageNo : value,
1106
- pageSize : value,
1107
- sort : value });
1108
- ```
1109
-
1110
-
1111
-
1112
-
1113
-
1114
- | Argument | Type | Required | Description |
1115
- | --------- | ----- | -------- | ----------- |
1116
- | pageNo | number | no | Current page no |
1117
- | pageSize | number | no | Current request items count |
1118
- | sort | Object | no | To sort based on created_at |
1119
-
1120
-
1121
-
1122
- Get campaigns
1123
-
1124
- *Returned Response:*
1125
-
1126
-
1127
-
1128
-
1129
- [Campaigns](#Campaigns)
1130
-
1131
- Success
1132
-
1133
-
1134
-
1135
-
1136
- <details>
1137
- <summary><i>&nbsp; Examples:</i></summary>
1138
-
1139
-
1140
- <details>
1141
- <summary><i>&nbsp; default</i></summary>
1142
-
1143
- ```json
1144
- {
1145
- "value": {
1146
- "items": [
1147
- {
1148
- "recipient_headers": {
1149
- "email": "email"
1150
- },
1151
- "email": {
1152
- "template": {
1153
- "key": "_id",
1154
- "value": "5fb6757a09fd90ca91917a60"
1155
- },
1156
- "provider": {
1157
- "_id": "5e560652b5eb4b1f13b4d601",
1158
- "from_name": "Fynd",
1159
- "from_email": "hey@gofynd.com"
1160
- }
1161
- },
1162
- "description": "",
1163
- "tags": [],
1164
- "is_active": true,
1165
- "_id": "6009a1ea1f6a61d88e80a867",
1166
- "datasource": "6009a1be1f6a61a13180a866",
1167
- "type": "email",
1168
- "name": "testing bq email",
1169
- "application": "000000000000000000000004",
1170
- "created_at": "2021-01-21T15:46:50.357Z",
1171
- "updated_at": "2021-01-21T15:46:50.357Z",
1172
- "slug": "testing-bq-email-vPyAd1YB1",
1173
- "__v": 0
1174
- },
1175
- {
1176
- "recipient_headers": {
1177
- "sms": "phone_number"
1178
- },
1179
- "sms": {
1180
- "template": {
1181
- "key": "_id",
1182
- "value": "5fb675d009fd903196917a61"
1183
- },
1184
- "provider": {
1185
- "_id": "5e560652b5eb4b06f3b4d5ff"
1186
- }
1187
- },
1188
- "description": "",
1189
- "tags": [],
1190
- "is_active": true,
1191
- "_id": "600981561f6a612c6080a85e",
1192
- "datasource": "600981461f6a614b2c80a85d",
1193
- "type": "sms",
1194
- "name": "test",
1195
- "application": "000000000000000000000004",
1196
- "created_at": "2021-01-21T13:27:50.848Z",
1197
- "updated_at": "2021-01-21T13:27:50.848Z",
1198
- "slug": "test-ipLO3c8Jh",
1199
- "__v": 0
1200
- }
1201
- ],
1202
- "page": {
1203
- "type": "number",
1204
- "current": 1,
1205
- "size": 2,
1206
- "item_total": 2,
1207
- "has_next": false
1208
- }
1209
- }
1210
- }
1211
- ```
1212
- </details>
1213
-
1214
- </details>
1215
-
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
-
1223
-
1224
- ---
1225
-
1226
-
1227
- ### getCommunicationLogs
1228
- Get communication logs
1229
-
1230
-
1231
-
1232
- ```javascript
1233
- // Promise
1234
- const promise = client.application("<APPLICATION_ID>").communication.getCommunicationLogs({ pageId : value,
1235
- pageSize : value,
1236
- sort : value,
1237
- query : value });
1238
-
1239
- // Async/Await
1240
- const data = await client.application("<APPLICATION_ID>").communication.getCommunicationLogs({ pageId : value,
1241
- pageSize : value,
1242
- sort : value,
1243
- query : value });
1244
- ```
1245
-
1246
-
1247
-
1248
-
1249
-
1250
- | Argument | Type | Required | Description |
1251
- | --------- | ----- | -------- | ----------- |
1252
- | pageId | string | no | Current page no |
1253
- | pageSize | number | no | Current request items count |
1254
- | sort | Object | no | To sort based on _id |
1255
- | query | Object | no | |
1256
-
1257
-
1258
-
1259
- Get communication logs
1260
-
1261
- *Returned Response:*
1262
-
1263
-
1264
-
1265
-
1266
- [Logs](#Logs)
1267
-
1268
- Success
1269
-
1270
-
1271
-
1272
-
1273
- <details>
1274
- <summary><i>&nbsp; Examples:</i></summary>
1275
-
1276
-
1277
- <details>
1278
- <summary><i>&nbsp; default</i></summary>
1279
-
1280
- ```json
1281
- {
1282
- "value": {
1283
- "items": [
1284
- {
1285
- "sms": {
1286
- "phone_number": "1234567890",
1287
- "country_code": "+91",
1288
- "template": "603e00649014219f87943213",
1289
- "provider": "5f8ee2234d70f7c5624f0413"
1290
- },
1291
- "pushnotification": {
1292
- "pushtokens": []
1293
- },
1294
- "meta": {
1295
- "type": "job",
1296
- "job": "603e021f171b19ee5a4324f4",
1297
- "campaign": "603e0217171b19556e4324f3",
1298
- "identifier": "pointblank.00395d65-c0a9-f9dc-0c46-5d65c0aa0c46"
1299
- },
1300
- "_id": "603e02300b9f817e1592fcbd",
1301
- "application": "000000000000000000000004",
1302
- "service": "sms-consumer",
1303
- "step": "MSG_SENT",
1304
- "status": "success",
1305
- "pod": "fynd-core-pointblank-smslow-cnsmr-dply-d6dbf9d7f-b6h2f",
1306
- "expire_at": "2021-04-01T09:15:28.526Z",
1307
- "created_at": "2021-03-02T09:15:28.527Z"
1308
- }
1309
- ],
1310
- "page": {
1311
- "type": "cursor",
1312
- "next_id": null,
1313
- "has_previous": false,
1314
- "has_next": false
1315
- }
1316
- }
1317
- }
1318
- ```
1319
- </details>
1320
-
1321
- </details>
1322
-
1323
-
1324
-
1325
-
1326
-
1327
-
1328
-
1329
-
1330
-
1331
- ---
1332
-
1333
-
1334
- ### getEmailProviderById
1335
- Get email provider by id
1336
-
1337
-
1338
-
1339
- ```javascript
1340
- // Promise
1341
- const promise = client.application("<APPLICATION_ID>").communication.getEmailProviderById({ id : value });
1342
-
1343
- // Async/Await
1344
- const data = await client.application("<APPLICATION_ID>").communication.getEmailProviderById({ id : value });
1345
- ```
1346
-
1347
-
1348
-
1349
-
1350
-
1351
- | Argument | Type | Required | Description |
1352
- | --------- | ----- | -------- | ----------- |
1353
- | id | string | yes | Email provider id |
1354
-
1355
-
1356
-
1357
- Get email provider by id
1358
-
1359
- *Returned Response:*
1360
-
1361
-
1362
-
1363
-
1364
- [EmailProvider](#EmailProvider)
1365
-
1366
- Success
1367
-
1368
-
1369
-
1370
-
1371
- <details>
1372
- <summary><i>&nbsp; Examples:</i></summary>
1373
-
1374
-
1375
- <details>
1376
- <summary><i>&nbsp; default</i></summary>
1377
-
1378
- ```json
1379
- {
1380
- "value": {
1381
- "type": "application",
1382
- "provider": "falconide",
1383
- "from_address": [
1384
- {
1385
- "is_default": true,
1386
- "name": "abc",
1387
- "email": "abc@test.com"
1388
- }
1389
- ],
1390
- "_id": "5fd9fd44c474a7e3d5d376d6",
1391
- "name": "test falconide",
1392
- "description": "test",
1393
- "api_key": "testtttt",
1394
- "application": "000000000000000000000004",
1395
- "created_at": "2020-12-16T12:27:48.051Z",
1396
- "updated_at": "2020-12-16T12:27:48.051Z",
1397
- "slug": "test-falconide-application-falconide-ZTD-D7wbB",
1398
- "__v": 0
1399
- }
1400
- }
1401
- ```
1402
- </details>
1403
-
1404
- </details>
1405
-
1406
-
1407
-
1408
-
1409
-
1410
-
1411
-
1412
-
1413
-
1414
- ---
1415
-
1416
-
1417
- ### getEmailProviders
1418
- Get email providers
1419
-
1420
-
1421
-
1422
- ```javascript
1423
- // Promise
1424
- const promise = client.application("<APPLICATION_ID>").communication.getEmailProviders({ pageNo : value,
1425
- pageSize : value,
1426
- sort : value });
1427
-
1428
- // Async/Await
1429
- const data = await client.application("<APPLICATION_ID>").communication.getEmailProviders({ pageNo : value,
1430
- pageSize : value,
1431
- sort : value });
1432
- ```
1433
-
1434
-
1435
-
1436
-
1437
-
1438
- | Argument | Type | Required | Description |
1439
- | --------- | ----- | -------- | ----------- |
1440
- | pageNo | number | no | Current page no |
1441
- | pageSize | number | no | Current request items count |
1442
- | sort | Object | no | To sort based on created_at |
1443
-
1444
-
1445
-
1446
- Get email providers
1447
-
1448
- *Returned Response:*
1449
-
1450
-
1451
-
1452
-
1453
- [EmailProviders](#EmailProviders)
1454
-
1455
- Success
1456
-
1457
-
1458
-
1459
-
1460
- <details>
1461
- <summary><i>&nbsp; Examples:</i></summary>
1462
-
1463
-
1464
- <details>
1465
- <summary><i>&nbsp; default</i></summary>
1466
-
1467
- ```json
1468
- {
1469
- "value": {
1470
- "items": [
1471
- {
1472
- "type": "application",
1473
- "provider": "falconide",
1474
- "from_address": [
1475
- {
1476
- "is_default": true,
1477
- "name": "abc",
1478
- "email": "abc@test.com"
1479
- }
1480
- ],
1481
- "_id": "5fd9fd44c474a7e3d5d376d6",
1482
- "name": "test falconide",
1483
- "description": "test",
1484
- "api_key": "testtttt",
1485
- "application": "000000000000000000000004",
1486
- "created_at": "2020-12-16T12:27:48.051Z",
1487
- "updated_at": "2020-12-16T12:27:48.051Z",
1488
- "slug": "test-falconide-application-falconide-ZTD-D7wbB",
1489
- "__v": 0
1490
- }
1491
- ],
1492
- "page": {
1493
- "type": "number",
1494
- "current": 1,
1495
- "size": 10,
1496
- "item_total": 1,
1497
- "has_next": false
1498
- }
1499
- }
1500
- }
1501
- ```
1502
- </details>
1503
-
1504
- </details>
1505
-
1506
-
1507
-
1508
-
1509
-
1510
-
1511
-
1512
-
1513
-
1514
- ---
1515
-
1516
-
1517
- ### getEmailTemplateById
1518
- Get email template by id
1519
-
1520
-
1521
-
1522
- ```javascript
1523
- // Promise
1524
- const promise = client.application("<APPLICATION_ID>").communication.getEmailTemplateById({ id : value });
1525
-
1526
- // Async/Await
1527
- const data = await client.application("<APPLICATION_ID>").communication.getEmailTemplateById({ id : value });
1528
- ```
1529
-
1530
-
1531
-
1532
-
1533
-
1534
- | Argument | Type | Required | Description |
1535
- | --------- | ----- | -------- | ----------- |
1536
- | id | string | yes | Email template id |
1537
-
1538
-
1539
-
1540
- Get email template by id
1541
-
1542
- *Returned Response:*
1543
-
1544
-
1545
-
1546
-
1547
- [EmailTemplate](#EmailTemplate)
1548
-
1549
- Success
1550
-
1551
-
1552
-
1553
-
1554
- <details>
1555
- <summary><i>&nbsp; Examples:</i></summary>
1556
-
1557
-
1558
- <details>
1559
- <summary><i>&nbsp; default</i></summary>
1560
-
1561
- ```json
1562
- {
1563
- "value": {
1564
- "is_system": false,
1565
- "is_internal": true,
1566
- "description": "Application creation",
1567
- "static_to": [],
1568
- "static_cc": [],
1569
- "static_bcc": [],
1570
- "tags": [],
1571
- "priority": "high",
1572
- "published": true,
1573
- "_id": "5ef42a49c8b67d279c27a980",
1574
- "slug": "application-creation",
1575
- "name": "Application creation",
1576
- "from_name": "Fynd",
1577
- "subject": {
1578
- "template_type": "nunjucks",
1579
- "template": "This is a test email subject"
1580
- },
1581
- "html": {
1582
- "template_type": "nunjucks",
1583
- "template": "This is a test email body"
1584
- },
1585
- "text": {
1586
- "template_type": "nunjucks",
1587
- "template": "This is a test email body"
1588
- },
1589
- "headers": [],
1590
- "attachments": [],
1591
- "created_at": "2020-06-25T04:38:34.003Z",
1592
- "updated_at": "2020-08-10T12:27:43.583Z",
1593
- "__v": 0
1594
- }
1595
- }
1596
- ```
1597
- </details>
1598
-
1599
- </details>
1600
-
1601
-
1602
-
1603
-
1604
-
1605
-
1606
-
1607
-
1608
-
1609
- ---
1610
-
1611
-
1612
- ### getEmailTemplates
1613
- Get email templates
1614
-
1615
-
1616
-
1617
- ```javascript
1618
- // Promise
1619
- const promise = client.application("<APPLICATION_ID>").communication.getEmailTemplates({ pageNo : value,
1620
- pageSize : value,
1621
- sort : value });
1622
-
1623
- // Async/Await
1624
- const data = await client.application("<APPLICATION_ID>").communication.getEmailTemplates({ pageNo : value,
1625
- pageSize : value,
1626
- sort : value });
1627
- ```
1628
-
1629
-
1630
-
1631
-
1632
-
1633
- | Argument | Type | Required | Description |
1634
- | --------- | ----- | -------- | ----------- |
1635
- | pageNo | number | no | Current page no |
1636
- | pageSize | number | no | Current request items count |
1637
- | sort | Object | no | To sort based on created_at |
1638
-
1639
-
1640
-
1641
- Get email templates
1642
-
1643
- *Returned Response:*
1644
-
1645
-
1646
-
1647
-
1648
- [EmailTemplates](#EmailTemplates)
1649
-
1650
- Success
1651
-
1652
-
1653
-
1654
-
1655
- <details>
1656
- <summary><i>&nbsp; Examples:</i></summary>
1657
-
1658
-
1659
- <details>
1660
- <summary><i>&nbsp; default</i></summary>
1661
-
1662
- ```json
1663
- {
1664
- "value": {
1665
- "items": [
1666
- {
1667
- "is_system": false,
1668
- "is_internal": true,
1669
- "description": "Application creation",
1670
- "static_to": [],
1671
- "static_cc": [],
1672
- "static_bcc": [],
1673
- "tags": [],
1674
- "priority": "high",
1675
- "published": true,
1676
- "_id": "5ef42a49c8b67d279c27a980",
1677
- "slug": "application-creation",
1678
- "name": "Application creation",
1679
- "from_name": "Fynd",
1680
- "subject": {
1681
- "template_type": "nunjucks",
1682
- "template": "This is a test email subject"
1683
- },
1684
- "html": {
1685
- "template_type": "nunjucks",
1686
- "template": "This is a test email body"
1687
- },
1688
- "text": {
1689
- "template_type": "nunjucks",
1690
- "template": "This is a test email body"
1691
- },
1692
- "headers": [],
1693
- "attachments": [],
1694
- "created_at": "2020-06-25T04:38:34.003Z",
1695
- "updated_at": "2020-08-10T12:27:43.583Z",
1696
- "__v": 0
1697
- }
1698
- ],
1699
- "page": {
1700
- "type": "number",
1701
- "current": 1,
1702
- "size": 1,
1703
- "item_total": 66,
1704
- "has_next": true
1705
- }
1706
- }
1707
- }
1708
- ```
1709
- </details>
1710
-
1711
- </details>
1712
-
1713
-
1714
-
1715
-
1716
-
1717
-
1718
-
1719
-
1720
-
1721
- ---
1722
-
1723
-
1724
- ### getEventSubscriptions
1725
- Get event subscriptions
1726
-
1727
-
1728
-
1729
- ```javascript
1730
- // Promise
1731
- const promise = client.application("<APPLICATION_ID>").communication.getEventSubscriptions({ pageNo : value,
1732
- pageSize : value,
1733
- populate : value });
1734
-
1735
- // Async/Await
1736
- const data = await client.application("<APPLICATION_ID>").communication.getEventSubscriptions({ pageNo : value,
1737
- pageSize : value,
1738
- populate : value });
1739
- ```
1740
-
1741
-
1742
-
1743
-
1744
-
1745
- | Argument | Type | Required | Description |
1746
- | --------- | ----- | -------- | ----------- |
1747
- | pageNo | number | no | Current page no |
1748
- | pageSize | number | no | Current request items count |
1749
- | populate | string | no | populate fields |
1750
-
1751
-
1752
-
1753
- Get event subscriptions
1754
-
1755
- *Returned Response:*
1756
-
1757
-
1758
-
1759
-
1760
- [EventSubscriptions](#EventSubscriptions)
1761
-
1762
- Success
1763
-
1764
-
1765
-
1766
-
1767
- <details>
1768
- <summary><i>&nbsp; Examples:</i></summary>
1769
-
1770
-
1771
- <details>
1772
- <summary><i>&nbsp; default</i></summary>
1773
-
1774
- ```json
1775
- {
1776
- "value": {
1777
- "items": [
1778
- {
1779
- "template": {
1780
- "sms": {
1781
- "subscribed": true,
1782
- "template": null
1783
- },
1784
- "email": {
1785
- "subscribed": true,
1786
- "template": "5e5653c1d503e0038407fc16"
1787
- }
1788
- },
1789
- "is_default": true,
1790
- "_id": "5e56598f2bfda9050ccaa8e8",
1791
- "application": "000000000000000000000004",
1792
- "event": "5e5653c1d503e0038407fc10",
1793
- "slug": "reset-password-event",
1794
- "created_at": "2020-02-26T11:42:08.164Z",
1795
- "updated_at": "2021-03-03T09:00:47.871Z",
1796
- "__v": 0
1797
- },
1798
- {
1799
- "template": {
1800
- "sms": {
1801
- "subscribed": true,
1802
- "template": null
1803
- },
1804
- "email": {
1805
- "subscribed": true,
1806
- "template": "5e5653c1d503e0038407fc17"
1807
- }
1808
- },
1809
- "is_default": true,
1810
- "_id": "5e56598f2bfda9050ccaa911",
1811
- "application": "000000000000000000000004",
1812
- "event": "5e5653c1d503e0038407fc11",
1813
- "slug": "invite-email-event",
1814
- "created_at": "2020-02-26T11:42:08.174Z",
1815
- "updated_at": "2021-03-03T09:00:47.871Z",
1816
- "__v": 0
1817
- },
1818
- {
1819
- "template": {
1820
- "sms": {
1821
- "subscribed": true,
1822
- "template": null
1823
- },
1824
- "email": {
1825
- "subscribed": true,
1826
- "template": "5e5653c1d503e0038407fc14"
1827
- }
1828
- },
1829
- "is_default": true,
1830
- "_id": "5e56598f2bfda9050ccaa8f2",
1831
- "application": "000000000000000000000004",
1832
- "event": "5e5653c1d503e0038407fc12",
1833
- "slug": "verify-email-event",
1834
- "created_at": "2020-02-26T11:42:08.172Z",
1835
- "updated_at": "2021-03-03T09:00:47.953Z",
1836
- "__v": 0
1837
- },
1838
- {
1839
- "template": {
1840
- "sms": {
1841
- "subscribed": true,
1842
- "template": null
1843
- },
1844
- "email": {
1845
- "subscribed": true,
1846
- "template": "5e5653c1d503e0038407fc15"
1847
- }
1848
- },
1849
- "is_default": true,
1850
- "_id": "5e56598f2bfda9050ccaa8fd",
1851
- "application": "000000000000000000000004",
1852
- "event": "5e5653c1d503e0038407fc13",
1853
- "slug": "verify-otp-event",
1854
- "created_at": "2020-02-26T11:42:08.172Z",
1855
- "updated_at": "2021-03-03T09:00:47.953Z",
1856
- "__v": 0
1857
- },
1858
- {
1859
- "template": {
1860
- "sms": {
1861
- "subscribed": true,
1862
- "template": "5e565a10343582051d211d1c"
1863
- },
1864
- "email": {
1865
- "subscribed": true,
1866
- "template": "5e565a10343582051d211d1b"
1867
- }
1868
- },
1869
- "is_default": true,
1870
- "_id": "5e565a16343582051d211d68",
1871
- "application": "000000000000000000000004",
1872
- "event": "5e565a10343582051d211d1d",
1873
- "slug": "cancelled_customer-event",
1874
- "created_at": "2020-02-26T11:44:22.246Z",
1875
- "updated_at": "2021-03-03T09:00:47.953Z",
1876
- "__v": 0
1877
- },
1878
- {
1879
- "template": {
1880
- "sms": {
1881
- "subscribed": true,
1882
- "template": "5e565a10343582051d211d1f"
1883
- },
1884
- "email": {
1885
- "subscribed": true,
1886
- "template": "5e565a10343582051d211d1e"
1887
- }
1888
- },
1889
- "is_default": true,
1890
- "_id": "5e565a16343582051d211d6c",
1891
- "application": "000000000000000000000004",
1892
- "event": "5e565a11343582051d211d20",
1893
- "slug": "cancelled_fynd-event",
1894
- "created_at": "2020-02-26T11:44:22.314Z",
1895
- "updated_at": "2021-03-03T09:00:47.953Z",
1896
- "__v": 0
1897
- },
1898
- {
1899
- "template": {
1900
- "sms": {
1901
- "subscribed": true,
1902
- "template": "5e565a11343582051d211d22"
1903
- },
1904
- "email": {
1905
- "subscribed": true,
1906
- "template": "5e565a11343582051d211d21"
1907
- }
1908
- },
1909
- "is_default": true,
1910
- "_id": "5e565a16343582051d211d65",
1911
- "application": "000000000000000000000004",
1912
- "event": "5e565a11343582051d211d23",
1913
- "slug": "delivery_done-event",
1914
- "created_at": "2020-02-26T11:44:22.246Z",
1915
- "updated_at": "2021-03-03T09:00:47.972Z",
1916
- "__v": 0
1917
- },
1918
- {
1919
- "template": {
1920
- "sms": {
1921
- "subscribed": true,
1922
- "template": "5e565a11343582051d211d25"
1923
- },
1924
- "email": {
1925
- "subscribed": true,
1926
- "template": "5e565a11343582051d211d24"
1927
- }
1928
- },
1929
- "is_default": true,
1930
- "_id": "5e565a16343582051d211d61",
1931
- "application": "000000000000000000000004",
1932
- "event": "5e565a11343582051d211d26",
1933
- "slug": "out_for_delivery-event",
1934
- "created_at": "2020-02-26T11:44:22.171Z",
1935
- "updated_at": "2021-03-03T09:00:47.972Z",
1936
- "__v": 0
1937
- },
1938
- {
1939
- "template": {
1940
- "sms": {
1941
- "subscribed": true,
1942
- "template": "5e565a12343582051d211d28"
1943
- },
1944
- "email": {
1945
- "subscribed": true,
1946
- "template": "5e565a11343582051d211d27"
1947
- }
1948
- },
1949
- "is_default": true,
1950
- "_id": "5e565a16343582051d211d62",
1951
- "application": "000000000000000000000004",
1952
- "event": "5e565a12343582051d211d29",
1953
- "slug": "out_for_pickup-event",
1954
- "created_at": "2020-02-26T11:44:22.171Z",
1955
- "updated_at": "2021-03-03T09:00:47.972Z",
1956
- "__v": 0
1957
- },
1958
- {
1959
- "template": {
1960
- "sms": {
1961
- "subscribed": true,
1962
- "template": "5e565a12343582051d211d2b"
1963
- },
1964
- "email": {
1965
- "subscribed": true,
1966
- "template": "5e565a12343582051d211d2a"
1967
- }
1968
- },
1969
- "is_default": true,
1970
- "_id": "5e565a16343582051d211d69",
1971
- "application": "000000000000000000000004",
1972
- "event": "5e565a12343582051d211d2c",
1973
- "slug": "placed-event",
1974
- "created_at": "2020-02-26T11:44:22.246Z",
1975
- "updated_at": "2021-03-03T09:00:47.953Z",
1976
- "__v": 0
1977
- },
1978
- {
1979
- "template": {
1980
- "sms": {
1981
- "subscribed": true,
1982
- "template": "5e565a12343582051d211d2e"
1983
- },
1984
- "email": {
1985
- "subscribed": true,
1986
- "template": "5e565a12343582051d211d2d"
1987
- }
1988
- },
1989
- "is_default": true,
1990
- "_id": "5e565a16343582051d211d66",
1991
- "application": "000000000000000000000004",
1992
- "event": "5e565a12343582051d211d2f",
1993
- "slug": "refund_completed-event",
1994
- "created_at": "2020-02-26T11:44:22.246Z",
1995
- "updated_at": "2021-03-03T09:00:48.052Z",
1996
- "__v": 0
1997
- },
1998
- {
1999
- "template": {
2000
- "sms": {
2001
- "subscribed": true,
2002
- "template": "5e565a13343582051d211d31"
2003
- },
2004
- "email": {
2005
- "subscribed": true,
2006
- "template": "5e565a12343582051d211d30"
2007
- }
2008
- },
2009
- "is_default": true,
2010
- "_id": "5e565a16343582051d211d64",
2011
- "application": "000000000000000000000004",
2012
- "event": "5e565a13343582051d211d32",
2013
- "slug": "refund_initiated-event",
2014
- "created_at": "2020-02-26T11:44:22.246Z",
2015
- "updated_at": "2021-03-03T09:00:47.972Z",
2016
- "__v": 0
2017
- },
2018
- {
2019
- "template": {
2020
- "sms": {
2021
- "subscribed": true,
2022
- "template": "5e565a13343582051d211d34"
2023
- },
2024
- "email": {
2025
- "subscribed": true,
2026
- "template": "5e565a13343582051d211d33"
2027
- }
2028
- },
2029
- "is_default": true,
2030
- "_id": "5e565a16343582051d211d6d",
2031
- "application": "000000000000000000000004",
2032
- "event": "5e565a13343582051d211d35",
2033
- "slug": "rejected_by_customer-event",
2034
- "created_at": "2020-02-26T11:44:22.314Z",
2035
- "updated_at": "2021-03-03T09:00:47.972Z",
2036
- "__v": 0
2037
- },
2038
- {
2039
- "template": {
2040
- "sms": {
2041
- "subscribed": true,
2042
- "template": "5e565a13343582051d211d37"
2043
- },
2044
- "email": {
2045
- "subscribed": true,
2046
- "template": "5e565a13343582051d211d36"
2047
- }
2048
- },
2049
- "is_default": true,
2050
- "_id": "5e565a16343582051d211d63",
2051
- "application": "000000000000000000000004",
2052
- "event": "5e565a13343582051d211d38",
2053
- "slug": "return_accepted-event",
2054
- "created_at": "2020-02-26T11:44:22.178Z",
2055
- "updated_at": "2021-03-03T09:00:48.052Z",
2056
- "__v": 0
2057
- },
2058
- {
2059
- "template": {
2060
- "sms": {
2061
- "subscribed": true,
2062
- "template": "5e565a14343582051d211d3a"
2063
- },
2064
- "email": {
2065
- "subscribed": true,
2066
- "template": "5e565a13343582051d211d39"
2067
- }
2068
- },
2069
- "is_default": true,
2070
- "_id": "5e565a16343582051d211d6a",
2071
- "application": "000000000000000000000004",
2072
- "event": "5e565a14343582051d211d3b",
2073
- "slug": "return_bag_picked_by_dp-event",
2074
- "created_at": "2020-02-26T11:44:22.246Z",
2075
- "updated_at": "2021-03-03T09:00:48.052Z",
2076
- "__v": 0
2077
- },
2078
- {
2079
- "template": {
2080
- "sms": {
2081
- "subscribed": true,
2082
- "template": "5e565a14343582051d211d3d"
2083
- },
2084
- "email": {
2085
- "subscribed": true,
2086
- "template": "5e565a14343582051d211d3c"
2087
- }
2088
- },
2089
- "is_default": true,
2090
- "_id": "5e565a16343582051d211d67",
2091
- "application": "000000000000000000000004",
2092
- "event": "5e565a14343582051d211d3e",
2093
- "slug": "return_initiated-event",
2094
- "created_at": "2020-02-26T11:44:22.246Z",
2095
- "updated_at": "2021-03-03T09:00:48.052Z",
2096
- "__v": 0
2097
- },
2098
- {
2099
- "template": {
2100
- "sms": {
2101
- "subscribed": true,
2102
- "template": "5e565a14343582051d211d40"
2103
- },
2104
- "email": {
2105
- "subscribed": true,
2106
- "template": "5e565a14343582051d211d3f"
2107
- }
2108
- },
2109
- "is_default": true,
2110
- "_id": "5e565a16343582051d211d6b",
2111
- "application": "000000000000000000000004",
2112
- "event": "5e565a14343582051d211d41",
2113
- "slug": "return_not_accepted-event",
2114
- "created_at": "2020-02-26T11:44:22.314Z",
2115
- "updated_at": "2021-03-03T09:00:48.052Z",
2116
- "__v": 0
2117
- },
2118
- {
2119
- "template": {
2120
- "sms": {
2121
- "subscribed": true,
2122
- "template": "5e565a15343582051d211d43"
2123
- },
2124
- "email": {
2125
- "subscribed": true,
2126
- "template": "5e565a15343582051d211d42"
2127
- }
2128
- },
2129
- "is_default": true,
2130
- "_id": "5e565a16343582051d211d6e",
2131
- "application": "000000000000000000000004",
2132
- "event": "5e565a15343582051d211d44",
2133
- "slug": "return_request_cancelled-event",
2134
- "created_at": "2020-02-26T11:44:22.314Z",
2135
- "updated_at": "2021-03-03T09:00:48.052Z",
2136
- "__v": 0
2137
- },
2138
- {
2139
- "template": {
2140
- "sms": {
2141
- "subscribed": true,
2142
- "template": "5e6a4b6d610dbf44166e74ba"
2143
- },
2144
- "email": {
2145
- "subscribed": true,
2146
- "template": null
2147
- }
2148
- },
2149
- "is_default": true,
2150
- "_id": "5e6a4b6e610dbf6b2a6e74c4",
2151
- "application": "000000000000000000000004",
2152
- "event": "5e6a4b6d610dbf3b146e74bb",
2153
- "slug": "handed_over_to_customer-event",
2154
- "created_at": "2020-03-12T14:47:10.453Z",
2155
- "updated_at": "2021-03-03T09:00:48.141Z",
2156
- "__v": 0
2157
- },
2158
- {
2159
- "template": {
2160
- "sms": {
2161
- "subscribed": true,
2162
- "template": "5e6a4b6d610dbf01326e74b6"
2163
- },
2164
- "email": {
2165
- "subscribed": true,
2166
- "template": null
2167
- }
2168
- },
2169
- "is_default": true,
2170
- "_id": "5e6a4b6e610dbf907e6e74c2",
2171
- "application": "000000000000000000000004",
2172
- "event": "5e6a4b6d610dbf454e6e74b7",
2173
- "slug": "arrived_at_store-event",
2174
- "created_at": "2020-03-12T14:47:10.453Z",
2175
- "updated_at": "2021-03-03T09:00:48.052Z",
2176
- "__v": 0
2177
- },
2178
- {
2179
- "template": {
2180
- "sms": {
2181
- "subscribed": true,
2182
- "template": "5e6a4b6d610dbf69b16e74b8"
2183
- },
2184
- "email": {
2185
- "subscribed": true,
2186
- "template": null
2187
- }
2188
- },
2189
- "is_default": true,
2190
- "_id": "5e6a4b6e610dbf28086e74c3",
2191
- "application": "000000000000000000000004",
2192
- "event": "5e6a4b6d610dbf91c76e74b9",
2193
- "slug": "bag_packed-event",
2194
- "created_at": "2020-03-12T14:47:10.453Z",
2195
- "updated_at": "2021-03-03T09:00:48.052Z",
2196
- "__v": 0
2197
- },
2198
- {
2199
- "template": {
2200
- "sms": {
2201
- "subscribed": true,
2202
- "template": null
2203
- },
2204
- "email": {
2205
- "subscribed": true,
2206
- "template": "5ed72116ccc0c408fbb5a404"
2207
- }
2208
- },
2209
- "is_default": true,
2210
- "_id": "5ed72117ccc0c48f29b5a408",
2211
- "application": "000000000000000000000004",
2212
- "event": "5ed72116ccc0c4e240b5a405",
2213
- "slug": "order-review-reminder-event",
2214
- "created_at": "2020-06-03T04:03:35.394Z",
2215
- "updated_at": "2021-03-03T09:00:48.052Z",
2216
- "__v": 0
2217
- },
2218
- {
2219
- "template": {
2220
- "sms": {
2221
- "subscribed": true,
2222
- "template": "5f633b15b490eaf13f494bf4"
2223
- },
2224
- "email": {
2225
- "subscribed": true,
2226
- "template": null
2227
- }
2228
- },
2229
- "is_default": true,
2230
- "_id": "5f633b16b490ea31eb494bfd",
2231
- "application": "000000000000000000000004",
2232
- "event": "5f633b15b490ea3c9b494bf5",
2233
- "slug": "referral-code-applied-to-referrer",
2234
- "created_at": "2020-09-17T10:31:50.204Z",
2235
- "updated_at": "2021-03-03T09:00:48.141Z",
2236
- "__v": 0
2237
- },
2238
- {
2239
- "template": {
2240
- "sms": {
2241
- "subscribed": true,
2242
- "template": "5f633b15b490ea465b494bf2"
2243
- },
2244
- "email": {
2245
- "subscribed": true,
2246
- "template": null
2247
- }
2248
- },
2249
- "is_default": true,
2250
- "_id": "5f633b16b490eada59494bfc",
2251
- "application": "000000000000000000000004",
2252
- "event": "5f633b15b490ea40dd494bf3",
2253
- "slug": "referral-code-applied-to-referred-friend",
2254
- "created_at": "2020-09-17T10:31:50.204Z",
2255
- "updated_at": "2021-03-03T09:00:48.141Z",
2256
- "__v": 0
2257
- },
2258
- {
2259
- "template": {
2260
- "sms": {
2261
- "subscribed": true,
2262
- "template": "5fe2e7da09c5fc047172e830"
2263
- },
2264
- "email": {
2265
- "subscribed": true,
2266
- "template": null
2267
- }
2268
- },
2269
- "is_default": true,
2270
- "_id": "5fe2e7dc09c5fc657372e841",
2271
- "application": "000000000000000000000004",
2272
- "event": "5fe2e7da09c5fc3da372e831",
2273
- "slug": "return_dp_out_for_pickup-event",
2274
- "created_at": "2020-12-23T06:46:52.214Z",
2275
- "updated_at": "2021-03-03T09:00:48.141Z",
2276
- "__v": 0
2277
- },
2278
- {
2279
- "template": {
2280
- "sms": {
2281
- "subscribed": true,
2282
- "template": "5fe2e7da09c5fcef0a72e82b"
2283
- },
2284
- "email": {
2285
- "subscribed": true,
2286
- "template": "5ff841fd864df30915c416e9"
2287
- }
2288
- },
2289
- "is_default": true,
2290
- "_id": "600951fb0e9745637d2e5081",
2291
- "application": "000000000000000000000004",
2292
- "event": "5fe2e7da09c5fc524f72e82c",
2293
- "slug": "delivery_attempt_failed-event",
2294
- "created_at": "2021-01-21T10:05:47.315Z",
2295
- "updated_at": "2021-03-03T09:00:48.141Z",
2296
- "__v": 0
2297
- },
2298
- {
2299
- "template": {
2300
- "sms": {
2301
- "subscribed": true,
2302
- "template": "5fe2e7da09c5fc6c5272e82e"
2303
- },
2304
- "email": {
2305
- "subscribed": true,
2306
- "template": "5fe2e7da09c5fc7fee72e82d"
2307
- }
2308
- },
2309
- "is_default": true,
2310
- "_id": "5fe2e7dc09c5fc10fe72e840",
2311
- "application": "000000000000000000000004",
2312
- "event": "5fe2e7da09c5fc611c72e82f",
2313
- "slug": "return_bag_picked-event",
2314
- "created_at": "2020-12-23T06:46:52.214Z",
2315
- "updated_at": "2021-03-03T09:00:48.141Z",
2316
- "__v": 0
2317
- },
2318
- {
2319
- "template": {
2320
- "sms": {
2321
- "subscribed": true,
2322
- "template": "5fe2e7da09c5fc4cde72e829"
2323
- },
2324
- "email": {
2325
- "subscribed": true,
2326
- "template": null
2327
- }
2328
- },
2329
- "is_default": true,
2330
- "_id": "5fe2e7dc09c5fcf4fc72e83e",
2331
- "application": "000000000000000000000004",
2332
- "event": "5fe2e7da09c5fc72d272e82a",
2333
- "slug": "bag_picked-event",
2334
- "created_at": "2020-12-23T06:46:52.214Z",
2335
- "updated_at": "2021-03-03T09:00:48.141Z",
2336
- "__v": 0
2337
- }
2338
- ],
2339
- "page": {
2340
- "type": "number",
2341
- "current": 1,
2342
- "size": 200,
2343
- "item_total": 28,
2344
- "has_next": false
2345
- }
2346
- }
2347
- }
2348
- ```
2349
- </details>
2350
-
2351
- </details>
2352
-
2353
-
2354
-
2355
-
2356
-
2357
-
2358
-
2359
-
2360
-
2361
- ---
2362
-
2363
-
2364
- ### getJobLogs
2365
- Get job logs
2366
-
2367
-
2368
-
2369
- ```javascript
2370
- // Promise
2371
- const promise = client.application("<APPLICATION_ID>").communication.getJobLogs({ pageNo : value,
2372
- pageSize : value,
2373
- sort : value });
2374
-
2375
- // Async/Await
2376
- const data = await client.application("<APPLICATION_ID>").communication.getJobLogs({ pageNo : value,
2377
- pageSize : value,
2378
- sort : value });
2379
- ```
2380
-
2381
-
2382
-
2383
-
2384
-
2385
- | Argument | Type | Required | Description |
2386
- | --------- | ----- | -------- | ----------- |
2387
- | pageNo | number | no | Current page no |
2388
- | pageSize | number | no | Current request items count |
2389
- | sort | Object | no | To sort based on created_at |
2390
-
2391
-
2392
-
2393
- Get job logs
2394
-
2395
- *Returned Response:*
2396
-
2397
-
2398
-
2399
-
2400
- [JobLogs](#JobLogs)
2401
-
2402
- Success
2403
-
2404
-
2405
-
2406
-
2407
- <details>
2408
- <summary><i>&nbsp; Examples:</i></summary>
2409
-
2410
-
2411
- <details>
2412
- <summary><i>&nbsp; default</i></summary>
2413
-
2414
- ```json
2415
- {
2416
- "value": {
2417
- "items": [
2418
- {
2419
- "imported": {
2420
- "count": 61135
2421
- },
2422
- "processed": {
2423
- "email": {
2424
- "success": 0,
2425
- "failed": 0,
2426
- "suppressed": 0
2427
- },
2428
- "sms": {
2429
- "success": 61313,
2430
- "failed": 85,
2431
- "suppressed": 87
2432
- }
2433
- },
2434
- "_id": "6044be30bc5f4b79aae7b29f",
2435
- "job": "6044be260c92a7be0624f1cf",
2436
- "campaign": "6044be1e0c92a7026924f1ce",
2437
- "created_at": "2021-03-07T11:51:12.778Z",
2438
- "updated_at": "2021-03-07T12:14:11.475Z",
2439
- "__v": 0
2440
- }
2441
- ],
2442
- "page": {
2443
- "type": "number",
2444
- "current": 1,
2445
- "size": 50,
2446
- "item_total": 1,
2447
- "has_next": false
2448
- }
2449
- }
2450
- }
2451
- ```
2452
- </details>
2453
-
2454
- </details>
2455
-
2456
-
2457
-
2458
-
2459
-
2460
-
2461
-
2462
-
2463
-
2464
- ---
2465
-
2466
-
2467
- ### getJobs
2468
- Get jobs
2469
-
2470
-
2471
-
2472
- ```javascript
2473
- // Promise
2474
- const promise = client.application("<APPLICATION_ID>").communication.getJobs({ pageNo : value,
2475
- pageSize : value,
2476
- sort : value });
2477
-
2478
- // Async/Await
2479
- const data = await client.application("<APPLICATION_ID>").communication.getJobs({ pageNo : value,
2480
- pageSize : value,
2481
- sort : value });
2482
- ```
2483
-
2484
-
2485
-
2486
-
2487
-
2488
- | Argument | Type | Required | Description |
2489
- | --------- | ----- | -------- | ----------- |
2490
- | pageNo | number | no | Current page no |
2491
- | pageSize | number | no | Current request items count |
2492
- | sort | Object | no | To sort based on created_at |
2493
-
2494
-
2495
-
2496
- Get jobs
2497
-
2498
- *Returned Response:*
2499
-
2500
-
2501
-
2502
-
2503
- [Jobs](#Jobs)
2504
-
2505
- Success
2506
-
2507
-
2508
-
2509
-
2510
- <details>
2511
- <summary><i>&nbsp; Examples:</i></summary>
2512
-
2513
-
2514
- <details>
2515
- <summary><i>&nbsp; default</i></summary>
2516
-
2517
- ```json
2518
- {
2519
- "value": {
2520
- "items": [
2521
- {
2522
- "completed": true,
2523
- "is_active": false,
2524
- "_id": "6044be260c92a7be0624f1cf",
2525
- "campaign": "6044be1e0c92a7026924f1ce",
2526
- "application": "000000000000000000000001",
2527
- "created_at": "2021-03-07T11:51:02.234Z",
2528
- "updated_at": "2021-03-07T12:12:36.587Z",
2529
- "__v": 0
2530
- }
2531
- ],
2532
- "page": {
2533
- "type": "number",
2534
- "current": 1,
2535
- "size": 50,
2536
- "item_total": 1,
2537
- "has_next": false
2538
- }
2539
- }
2540
- }
2541
- ```
2542
- </details>
2543
-
2544
- </details>
2545
-
2546
-
2547
-
2548
-
2549
-
2550
-
2551
-
2552
-
2553
-
2554
- ---
2555
-
2556
-
2557
- ### getNSampleRecordsFromCsv
2558
- Get n sample records from csv
2559
-
2560
-
2561
-
2562
- ```javascript
2563
- // Promise
2564
- const promise = client.application("<APPLICATION_ID>").communication.getNSampleRecordsFromCsv({ body : value });
2565
-
2566
- // Async/Await
2567
- const data = await client.application("<APPLICATION_ID>").communication.getNSampleRecordsFromCsv({ body : value });
2568
- ```
2569
-
2570
-
2571
-
2572
-
2573
-
2574
- | Argument | Type | Required | Description |
2575
- | --------- | ----- | -------- | ----------- |
2576
- | body | [GetNRecordsCsvReq](#GetNRecordsCsvReq) | yes | Request body |
2577
-
2578
-
2579
- Get n sample records from csv
2580
-
2581
- *Returned Response:*
2582
-
2583
-
2584
-
2585
-
2586
- [GetNRecordsCsvRes](#GetNRecordsCsvRes)
2587
-
2588
- Success
2589
-
2590
-
2591
-
2592
-
2593
- <details>
2594
- <summary><i>&nbsp; Examples:</i></summary>
2595
-
2596
-
2597
- <details>
2598
- <summary><i>&nbsp; default</i></summary>
2599
-
2600
- ```json
2601
- {
2602
- "value": [
2603
- {
2604
- "phone_number": "1234567890",
2605
- "email": "abcxyz@gofynd.com",
2606
- "firstname": "Abc",
2607
- "lastname": "Xyz",
2608
- "orderid": "1"
2609
- }
2610
- ]
2611
- }
2612
- ```
2613
- </details>
2614
-
2615
- </details>
2616
-
2617
-
2618
-
2619
-
2620
-
2621
-
2622
-
2623
-
2624
-
2625
- ---
2626
-
2627
-
2628
- ### getSmsProviderById
2629
- Get sms provider by id
2630
-
2631
-
2632
-
2633
- ```javascript
2634
- // Promise
2635
- const promise = client.application("<APPLICATION_ID>").communication.getSmsProviderById({ id : value });
2636
-
2637
- // Async/Await
2638
- const data = await client.application("<APPLICATION_ID>").communication.getSmsProviderById({ id : value });
2639
- ```
2640
-
2641
-
2642
-
2643
-
2644
-
2645
- | Argument | Type | Required | Description |
2646
- | --------- | ----- | -------- | ----------- |
2647
- | id | string | yes | Sms provider id |
2648
-
2649
-
2650
-
2651
- Get sms provider by id
2652
-
2653
- *Returned Response:*
2654
-
2655
-
2656
-
2657
-
2658
- [SmsProvider](#SmsProvider)
2659
-
2660
- Success
2661
-
2662
-
2663
-
2664
-
2665
- <details>
2666
- <summary><i>&nbsp; Examples:</i></summary>
2667
-
2668
-
2669
- <details>
2670
- <summary><i>&nbsp; default</i></summary>
2671
-
2672
- ```json
2673
- {
2674
- "value": {
2675
- "rpt": 1,
2676
- "type": "application",
2677
- "provider": "telspiel",
2678
- "_id": "5fd9fd07c474a7710dd376d5",
2679
- "name": "test telspiel",
2680
- "description": "test",
2681
- "sender": "test",
2682
- "username": "test",
2683
- "authkey": "test",
2684
- "application": "000000000000000000000004",
2685
- "created_at": "2020-12-16T12:26:47.794Z",
2686
- "updated_at": "2020-12-16T12:26:47.794Z",
2687
- "slug": "test-telspiel-application-telspiel-p9UY1r7nG",
2688
- "__v": 0
2689
- }
2690
- }
2691
- ```
2692
- </details>
2693
-
2694
- </details>
2695
-
2696
-
2697
-
2698
-
2699
-
2700
-
2701
-
2702
-
2703
-
2704
- ---
2705
-
2706
-
2707
- ### getSmsProviders
2708
- Get sms providers
2709
-
2710
-
2711
-
2712
- ```javascript
2713
- // Promise
2714
- const promise = client.application("<APPLICATION_ID>").communication.getSmsProviders({ pageNo : value,
2715
- pageSize : value,
2716
- sort : value });
2717
-
2718
- // Async/Await
2719
- const data = await client.application("<APPLICATION_ID>").communication.getSmsProviders({ pageNo : value,
2720
- pageSize : value,
2721
- sort : value });
2722
- ```
2723
-
2724
-
2725
-
2726
-
2727
-
2728
- | Argument | Type | Required | Description |
2729
- | --------- | ----- | -------- | ----------- |
2730
- | pageNo | number | no | Current page no |
2731
- | pageSize | number | no | Current request items count |
2732
- | sort | Object | no | To sort based on created_at |
2733
-
2734
-
2735
-
2736
- Get sms providers
2737
-
2738
- *Returned Response:*
2739
-
2740
-
2741
-
2742
-
2743
- [SmsProviders](#SmsProviders)
2744
-
2745
- Success
2746
-
2747
-
2748
-
2749
-
2750
- <details>
2751
- <summary><i>&nbsp; Examples:</i></summary>
2752
-
2753
-
2754
- <details>
2755
- <summary><i>&nbsp; default</i></summary>
2756
-
2757
- ```json
2758
- {
2759
- "value": {
2760
- "items": [
2761
- {
2762
- "rpt": 1,
2763
- "type": "application",
2764
- "provider": "telspiel",
2765
- "_id": "5fd9fd07c474a7710dd376d5",
2766
- "name": "test telspiel",
2767
- "description": "test",
2768
- "sender": "test",
2769
- "username": "test",
2770
- "authkey": "test",
2771
- "application": "000000000000000000000004",
2772
- "created_at": "2020-12-16T12:26:47.794Z",
2773
- "updated_at": "2020-12-16T12:26:47.794Z",
2774
- "slug": "test-telspiel-application-telspiel-p9UY1r7nG",
2775
- "__v": 0
2776
- }
2777
- ],
2778
- "page": {
2779
- "type": "number",
2780
- "current": 1,
2781
- "size": 1,
2782
- "item_total": 1,
2783
- "has_next": false
2784
- }
2785
- }
2786
- }
2787
- ```
2788
- </details>
2789
-
2790
- </details>
2791
-
2792
-
2793
-
2794
-
2795
-
2796
-
2797
-
2798
-
2799
-
2800
- ---
2801
-
2802
-
2803
- ### getSmsTemplateById
2804
- Get sms template by id
2805
-
2806
-
2807
-
2808
- ```javascript
2809
- // Promise
2810
- const promise = client.application("<APPLICATION_ID>").communication.getSmsTemplateById({ id : value });
2811
-
2812
- // Async/Await
2813
- const data = await client.application("<APPLICATION_ID>").communication.getSmsTemplateById({ id : value });
2814
- ```
2815
-
2816
-
2817
-
2818
-
2819
-
2820
- | Argument | Type | Required | Description |
2821
- | --------- | ----- | -------- | ----------- |
2822
- | id | string | yes | Sms template id |
2823
-
2824
-
2825
-
2826
- Get sms template by id
2827
-
2828
- *Returned Response:*
2829
-
2830
-
2831
-
2832
-
2833
- [SmsTemplate](#SmsTemplate)
2834
-
2835
- Success
2836
-
2837
-
2838
-
2839
-
2840
- <details>
2841
- <summary><i>&nbsp; Examples:</i></summary>
2842
-
2843
-
2844
- <details>
2845
- <summary><i>&nbsp; default</i></summary>
2846
-
2847
- ```json
2848
- {
2849
- "value": {
2850
- "is_system": false,
2851
- "is_internal": true,
2852
- "description": "This is a test sms template",
2853
- "priority": "high",
2854
- "tags": [],
2855
- "published": true,
2856
- "_id": "5fd447728394dbf0d21329b3",
2857
- "slug": "test-sms",
2858
- "name": "Test sms",
2859
- "message": {
2860
- "template_type": "nunjucks",
2861
- "template": "This is a test sms for order - {{ orderId }}"
2862
- },
2863
- "template_variables": {
2864
- "orderId": "12345"
2865
- },
2866
- "created_at": "2020-12-12T04:30:42.456Z",
2867
- "updated_at": "2020-12-24T15:13:20.558Z",
2868
- "__v": 0
2869
- }
2870
- }
2871
- ```
2872
- </details>
2873
-
2874
- </details>
2875
-
2876
-
2877
-
2878
-
2879
-
2880
-
2881
-
2882
-
2883
-
2884
- ---
2885
-
2886
-
2887
- ### getSmsTemplates
2888
- Get sms templates
2889
-
2890
-
2891
-
2892
- ```javascript
2893
- // Promise
2894
- const promise = client.application("<APPLICATION_ID>").communication.getSmsTemplates({ pageNo : value,
2895
- pageSize : value,
2896
- sort : value });
2897
-
2898
- // Async/Await
2899
- const data = await client.application("<APPLICATION_ID>").communication.getSmsTemplates({ pageNo : value,
2900
- pageSize : value,
2901
- sort : value });
2902
- ```
2903
-
2904
-
2905
-
2906
-
2907
-
2908
- | Argument | Type | Required | Description |
2909
- | --------- | ----- | -------- | ----------- |
2910
- | pageNo | number | no | Current page no |
2911
- | pageSize | number | no | Current request items count |
2912
- | sort | Object | no | To sort based on created_at |
2913
-
2914
-
2915
-
2916
- Get sms templates
2917
-
2918
- *Returned Response:*
2919
-
2920
-
2921
-
2922
-
2923
- [SmsTemplates](#SmsTemplates)
2924
-
2925
- Success
2926
-
2927
-
2928
-
2929
-
2930
- <details>
2931
- <summary><i>&nbsp; Examples:</i></summary>
2932
-
2933
-
2934
- <details>
2935
- <summary><i>&nbsp; default</i></summary>
2936
-
2937
- ```json
2938
- {
2939
- "value": {
2940
- "items": [
2941
- {
2942
- "is_system": false,
2943
- "is_internal": true,
2944
- "description": "This is a test sms template",
2945
- "priority": "high",
2946
- "tags": [],
2947
- "published": true,
2948
- "_id": "5fd447728394dbf0d21329b3",
2949
- "slug": "test-sms",
2950
- "name": "Test sms",
2951
- "message": {
2952
- "template_type": "nunjucks",
2953
- "template": "This is a test sms for order - {{ orderId }}"
2954
- },
2955
- "template_variables": {
2956
- "orderId": "12345"
2957
- },
2958
- "created_at": "2020-12-12T04:30:42.456Z",
2959
- "updated_at": "2020-12-24T15:13:20.558Z",
2960
- "__v": 0
2961
- }
2962
- ],
2963
- "page": {
2964
- "type": "number",
2965
- "current": 1,
2966
- "size": 1,
2967
- "item_total": 66,
2968
- "has_next": true
2969
- }
2970
- }
2971
- }
2972
- ```
2973
- </details>
2974
-
2975
- </details>
2976
-
2977
-
2978
-
2979
-
2980
-
2981
-
2982
-
2983
-
2984
-
2985
- ---
2986
-
2987
-
2988
- ### getStatsOfCampaignById
2989
- Get stats of campaign by id
2990
-
2991
-
2992
-
2993
- ```javascript
2994
- // Promise
2995
- const promise = client.application("<APPLICATION_ID>").communication.getStatsOfCampaignById({ id : value });
2996
-
2997
- // Async/Await
2998
- const data = await client.application("<APPLICATION_ID>").communication.getStatsOfCampaignById({ id : value });
2999
- ```
3000
-
3001
-
3002
-
3003
-
3004
-
3005
- | Argument | Type | Required | Description |
3006
- | --------- | ----- | -------- | ----------- |
3007
- | id | string | yes | Campaign id |
3008
-
3009
-
3010
-
3011
- Get stats of campaign by id
3012
-
3013
- *Returned Response:*
3014
-
3015
-
3016
-
3017
-
3018
- [GetStats](#GetStats)
3019
-
3020
- Success
3021
-
3022
-
3023
-
3024
-
3025
- <details>
3026
- <summary><i>&nbsp; Examples:</i></summary>
3027
-
3028
-
3029
- <details>
3030
- <summary><i>&nbsp; default</i></summary>
3031
-
3032
- ```json
3033
- {
3034
- "value": [
3035
- {
3036
- "_id": "6009a1ea1f6a61d88e80a867",
3037
- "imported": {
3038
- "count": 2
3039
- },
3040
- "processed": {
3041
- "email": {
3042
- "success": 2,
3043
- "failed": 0,
3044
- "suppressed": 0
3045
- },
3046
- "sms": {
3047
- "success": 0,
3048
- "failed": 0,
3049
- "suppressed": 0
3050
- }
3051
- }
3052
- }
3053
- ]
3054
- }
3055
- ```
3056
- </details>
3057
-
3058
- </details>
3059
-
3060
-
3061
-
3062
-
3063
-
3064
-
3065
-
3066
-
3067
-
3068
- ---
3069
-
3070
-
3071
- ### getSystemEmailTemplates
3072
- Get system email templates
3073
-
3074
-
3075
-
3076
- ```javascript
3077
- // Promise
3078
- const promise = client.application("<APPLICATION_ID>").communication.getSystemEmailTemplates({ pageNo : value,
3079
- pageSize : value,
3080
- sort : value });
3081
-
3082
- // Async/Await
3083
- const data = await client.application("<APPLICATION_ID>").communication.getSystemEmailTemplates({ pageNo : value,
3084
- pageSize : value,
3085
- sort : value });
3086
- ```
3087
-
3088
-
3089
-
3090
-
3091
-
3092
- | Argument | Type | Required | Description |
3093
- | --------- | ----- | -------- | ----------- |
3094
- | pageNo | number | no | Current page no |
3095
- | pageSize | number | no | Current request items count |
3096
- | sort | Object | no | To sort based on created_at |
3097
-
3098
-
3099
-
3100
- Get system email templates
3101
-
3102
- *Returned Response:*
3103
-
3104
-
3105
-
3106
-
3107
- [SystemEmailTemplates](#SystemEmailTemplates)
3108
-
3109
- Success
3110
-
3111
-
3112
-
3113
-
3114
- <details>
3115
- <summary><i>&nbsp; Examples:</i></summary>
3116
-
3117
-
3118
- <details>
3119
- <summary><i>&nbsp; default</i></summary>
3120
-
3121
- ```json
3122
- {
3123
- "value": {
3124
- "items": [
3125
- {
3126
- "is_system": true,
3127
- "is_internal": true,
3128
- "description": "Application creation",
3129
- "static_to": [],
3130
- "static_cc": [],
3131
- "static_bcc": [],
3132
- "tags": [],
3133
- "priority": "high",
3134
- "published": true,
3135
- "_id": "5ef42a49c8b67d279c27a980",
3136
- "slug": "application-creation",
3137
- "name": "Application creation",
3138
- "from_name": "Fynd",
3139
- "subject": {
3140
- "template_type": "nunjucks",
3141
- "template": "This is a test email subject"
3142
- },
3143
- "html": {
3144
- "template_type": "nunjucks",
3145
- "template": "This is a test email body"
3146
- },
3147
- "text": {
3148
- "template_type": "nunjucks",
3149
- "template": "This is a test email body"
3150
- },
3151
- "headers": [],
3152
- "attachments": [],
3153
- "created_at": "2020-06-25T04:38:34.003Z",
3154
- "updated_at": "2020-08-10T12:27:43.583Z",
3155
- "__v": 0
3156
- }
3157
- ],
3158
- "page": {
3159
- "type": "number",
3160
- "current": 1,
3161
- "size": 1,
3162
- "item_total": 66,
3163
- "has_next": true
3164
- }
3165
- }
3166
- }
3167
- ```
3168
- </details>
3169
-
3170
- </details>
3171
-
3172
-
3173
-
3174
-
3175
-
3176
-
3177
-
3178
-
3179
-
3180
- ---
3181
-
3182
-
3183
- ### getSystemNotifications
3184
- Get system notifications
3185
-
3186
-
3187
-
3188
- ```javascript
3189
- // Promise
3190
- const promise = client.communication.getSystemNotifications({ pageNo : value,
3191
- pageSize : value });
3192
-
3193
- // Async/Await
3194
- const data = await client.communication.getSystemNotifications({ pageNo : value,
3195
- pageSize : value });
3196
- ```
3197
-
3198
-
3199
-
3200
-
3201
-
3202
- | Argument | Type | Required | Description |
3203
- | --------- | ----- | -------- | ----------- |
3204
- | pageNo | number | no | |
3205
- | pageSize | number | no | |
3206
-
3207
-
3208
-
3209
- Get system notifications
3210
-
3211
- *Returned Response:*
3212
-
3213
-
3214
-
3215
-
3216
- [SystemNotifications](#SystemNotifications)
3217
-
3218
- Success
3219
-
3220
-
3221
-
3222
-
3223
- <details>
3224
- <summary><i>&nbsp; Examples:</i></summary>
3225
-
3226
-
3227
- <details>
3228
- <summary><i>&nbsp; default</i></summary>
3229
-
3230
- ```json
3231
- {
3232
- "value": {
3233
- "items": [
3234
- {
3235
- "notification": {
3236
- "title": "Xyz Company is verified!",
3237
- "body": "",
3238
- "subtitle": "",
3239
- "icon": "icon.png",
3240
- "deeplink": "",
3241
- "click_action": ""
3242
- },
3243
- "user": {
3244
- "type": "company",
3245
- "value": "1"
3246
- },
3247
- "settings": {
3248
- "sound": true,
3249
- "priority": "normal",
3250
- "time_to_live": "60"
3251
- },
3252
- "_id": "60619f167dbd13ff0722f6dd",
3253
- "group": "fynd-platform",
3254
- "created_at": "2021-03-29T09:34:14.182Z"
3255
- }
3256
- ],
3257
- "last_read_anchor": 1616748860,
3258
- "page": {
3259
- "type": "number",
3260
- "current": 1,
3261
- "size": 1,
3262
- "item_total": 1,
3263
- "has_next": false
3264
- }
3265
- }
3266
- }
3267
- ```
3268
- </details>
3269
-
3270
- </details>
3271
-
3272
-
3273
-
3274
-
3275
-
3276
-
3277
-
3278
-
3279
-
3280
- ---
3281
-
3282
-
3283
- ### getSystemSystemTemplates
3284
- Get system sms templates
3285
-
3286
-
3287
-
3288
- ```javascript
3289
- // Promise
3290
- const promise = client.application("<APPLICATION_ID>").communication.getSystemSystemTemplates({ pageNo : value,
3291
- pageSize : value,
3292
- sort : value });
3293
-
3294
- // Async/Await
3295
- const data = await client.application("<APPLICATION_ID>").communication.getSystemSystemTemplates({ pageNo : value,
3296
- pageSize : value,
3297
- sort : value });
3298
- ```
3299
-
3300
-
3301
-
3302
-
3303
-
3304
- | Argument | Type | Required | Description |
3305
- | --------- | ----- | -------- | ----------- |
3306
- | pageNo | number | no | Current page no |
3307
- | pageSize | number | no | Current request items count |
3308
- | sort | Object | no | To sort based on created_at |
3309
-
3310
-
3311
-
3312
- Get system sms templates
3313
-
3314
- *Returned Response:*
3315
-
3316
-
3317
-
3318
-
3319
- [SystemSmsTemplates](#SystemSmsTemplates)
3320
-
3321
- Success
3322
-
3323
-
3324
-
3325
-
3326
- <details>
3327
- <summary><i>&nbsp; Examples:</i></summary>
3328
-
3329
-
3330
- <details>
3331
- <summary><i>&nbsp; default</i></summary>
3332
-
3333
- ```json
3334
- {
3335
- "value": {
3336
- "items": [
3337
- {
3338
- "is_system": true,
3339
- "is_internal": true,
3340
- "description": "This is a test sms template",
3341
- "priority": "high",
3342
- "tags": [],
3343
- "published": true,
3344
- "_id": "5fd447728394dbf0d21329b3",
3345
- "slug": "test-sms",
3346
- "name": "Test sms",
3347
- "message": {
3348
- "template_type": "nunjucks",
3349
- "template": "This is a test sms for order - {{ orderId }}"
3350
- },
3351
- "template_variables": {
3352
- "orderId": "12345"
3353
- },
3354
- "created_at": "2020-12-12T04:30:42.456Z",
3355
- "updated_at": "2020-12-24T15:13:20.558Z",
3356
- "__v": 0
3357
- }
3358
- ],
3359
- "page": {
3360
- "type": "number",
3361
- "current": 1,
3362
- "size": 1,
3363
- "item_total": 66,
3364
- "has_next": true
3365
- }
3366
- }
3367
- }
3368
- ```
3369
- </details>
3370
-
3371
- </details>
3372
-
3373
-
3374
-
3375
-
3376
-
3377
-
3378
-
3379
-
3380
-
3381
- ---
3382
-
3383
-
3384
- ### sendCommunicationAsynchronously
3385
- Send email or sms asynchronously
3386
-
3387
-
3388
-
3389
- ```javascript
3390
- // Promise
3391
- const promise = client.application("<APPLICATION_ID>").communication.sendCommunicationAsynchronously({ body : value });
3392
-
3393
- // Async/Await
3394
- const data = await client.application("<APPLICATION_ID>").communication.sendCommunicationAsynchronously({ body : value });
3395
- ```
3396
-
3397
-
3398
-
3399
-
3400
-
3401
- | Argument | Type | Required | Description |
3402
- | --------- | ----- | -------- | ----------- |
3403
- | body | [EngineRequest](#EngineRequest) | yes | Request body |
3404
-
3405
-
3406
- Send email or sms asynchronously
3407
-
3408
- *Returned Response:*
3409
-
3410
-
3411
-
3412
-
3413
- [EngineResponse](#EngineResponse)
3414
-
3415
- Success
3416
-
3417
-
3418
-
3419
-
3420
- <details>
3421
- <summary><i>&nbsp; Examples:</i></summary>
3422
-
3423
-
3424
- <details>
3425
- <summary><i>&nbsp; default</i></summary>
3426
-
3427
- ```json
3428
- {
3429
- "value": {
3430
- "success": true
3431
- }
3432
- }
3433
- ```
3434
- </details>
3435
-
3436
- </details>
3437
-
3438
-
3439
-
3440
-
3441
-
3442
-
3443
-
3444
-
3445
-
3446
- ---
3447
-
3448
-
3449
- ### sendCommunicationSynchronously
3450
- Send email or sms synchronously
3451
-
3452
-
3453
-
3454
- ```javascript
3455
- // Promise
3456
- const promise = client.application("<APPLICATION_ID>").communication.sendCommunicationSynchronously({ body : value });
3457
-
3458
- // Async/Await
3459
- const data = await client.application("<APPLICATION_ID>").communication.sendCommunicationSynchronously({ body : value });
3460
- ```
3461
-
3462
-
3463
-
3464
-
3465
-
3466
- | Argument | Type | Required | Description |
3467
- | --------- | ----- | -------- | ----------- |
3468
- | body | [EngineRequest](#EngineRequest) | yes | Request body |
3469
-
3470
-
3471
- Send email or sms synchronously
3472
-
3473
- *Returned Response:*
3474
-
3475
-
3476
-
3477
-
3478
- [EngineResponse](#EngineResponse)
3479
-
3480
- Success
3481
-
3482
-
3483
-
3484
-
3485
- <details>
3486
- <summary><i>&nbsp; Examples:</i></summary>
3487
-
3488
-
3489
- <details>
3490
- <summary><i>&nbsp; default</i></summary>
3491
-
3492
- ```json
3493
- {
3494
- "value": {
3495
- "success": true
3496
- }
3497
- }
3498
- ```
3499
- </details>
3500
-
3501
- </details>
3502
-
3503
-
3504
-
3505
-
3506
-
3507
-
3508
-
3509
-
3510
-
3511
- ---
3512
-
3513
-
3514
- ### sendOtp
3515
- Send OTP using email and sms
3516
-
3517
-
3518
-
3519
- ```javascript
3520
- // Promise
3521
- const promise = client.application("<APPLICATION_ID>").communication.sendOtp({ body : value });
3522
-
3523
- // Async/Await
3524
- const data = await client.application("<APPLICATION_ID>").communication.sendOtp({ body : value });
3525
- ```
3526
-
3527
-
3528
-
3529
-
3530
-
3531
- | Argument | Type | Required | Description |
3532
- | --------- | ----- | -------- | ----------- |
3533
- | body | [SendOtpCommsReq](#SendOtpCommsReq) | yes | Request body |
3534
-
3535
-
3536
- Send OTP Comms via email and sms
3537
-
3538
- *Returned Response:*
3539
-
3540
-
3541
-
3542
-
3543
- [SendOtpCommsRes](#SendOtpCommsRes)
3544
-
3545
- Success
3546
-
3547
-
3548
-
3549
-
3550
- <details>
3551
- <summary><i>&nbsp; Examples:</i></summary>
3552
-
3553
-
3554
- <details>
3555
- <summary><i>&nbsp; default</i></summary>
3556
-
3557
- ```json
3558
- {
3559
- "value": {
3560
- "sms": {
3561
- "success": true,
3562
- "request_id": "c8d1bd63d56a2d368aae9dbd4e7d8326",
3563
- "message": "OTP sent",
3564
- "mobile": "9096686804",
3565
- "country_code": "91",
3566
- "resend_timer": 30
3567
- },
3568
- "email": {
3569
- "success": true,
3570
- "request_id": "1cc79c911923971580d903039ea9ee05",
3571
- "message": "OTP sent",
3572
- "to": "parvezshaikh@gofynd.com",
3573
- "resend_timer": 30
3574
- }
3575
- }
3576
- }
3577
- ```
3578
- </details>
3579
-
3580
- </details>
3581
-
3582
-
3583
-
3584
-
3585
-
3586
-
3587
-
3588
-
3589
-
3590
- ---
3591
-
3592
-
3593
- ### triggerCampaignJob
3594
- Trigger campaign job
3595
-
3596
-
3597
-
3598
- ```javascript
3599
- // Promise
3600
- const promise = client.application("<APPLICATION_ID>").communication.triggerCampaignJob({ body : value });
3601
-
3602
- // Async/Await
3603
- const data = await client.application("<APPLICATION_ID>").communication.triggerCampaignJob({ body : value });
3604
- ```
3605
-
3606
-
3607
-
3608
-
3609
-
3610
- | Argument | Type | Required | Description |
3611
- | --------- | ----- | -------- | ----------- |
3612
- | body | [TriggerJobRequest](#TriggerJobRequest) | yes | Request body |
3613
-
3614
-
3615
- Trigger campaign job
3616
-
3617
- *Returned Response:*
3618
-
3619
-
3620
-
3621
-
3622
- [TriggerJobResponse](#TriggerJobResponse)
3623
-
3624
- Success
3625
-
3626
-
3627
-
3628
-
3629
- <details>
3630
- <summary><i>&nbsp; Examples:</i></summary>
3631
-
3632
-
3633
- <details>
3634
- <summary><i>&nbsp; default</i></summary>
3635
-
3636
- ```json
3637
- {
3638
- "value": {
3639
- "status": 200
3640
- }
3641
- }
3642
- ```
3643
- </details>
3644
-
3645
- </details>
3646
-
3647
-
3648
-
3649
-
3650
-
3651
-
3652
-
3653
-
3654
-
3655
- ---
3656
-
3657
-
3658
- ### updateAudienceById
3659
- Update audience by id
3660
-
3661
-
3662
-
3663
- ```javascript
3664
- // Promise
3665
- const promise = client.application("<APPLICATION_ID>").communication.updateAudienceById({ id : value,
3666
- body : value });
3667
-
3668
- // Async/Await
3669
- const data = await client.application("<APPLICATION_ID>").communication.updateAudienceById({ id : value,
3670
- body : value });
3671
- ```
3672
-
3673
-
3674
-
3675
-
3676
-
3677
- | Argument | Type | Required | Description |
3678
- | --------- | ----- | -------- | ----------- |
3679
- | id | string | yes | Audience id |
3680
- | body | [AudienceReq](#AudienceReq) | yes | Request body |
3681
-
3682
-
3683
- Update audience by id
3684
-
3685
- *Returned Response:*
3686
-
3687
-
3688
-
3689
-
3690
- [Audience](#Audience)
3691
-
3692
- Success
3693
-
3694
-
3695
-
3696
-
3697
- <details>
3698
- <summary><i>&nbsp; Examples:</i></summary>
3699
-
3700
-
3701
- <details>
3702
- <summary><i>&nbsp; default</i></summary>
3703
-
3704
- ```json
3705
- {
3706
- "value": {
3707
- "description": "test description",
3708
- "tags": [
3709
- "csv"
3710
- ],
3711
- "headers": [
3712
- "phone_number",
3713
- "email",
3714
- "firstname",
3715
- "lastname",
3716
- "orderid"
3717
- ],
3718
- "is_active": true,
3719
- "_id": "5fb6675c09fd901023917a5f",
3720
- "name": "Test csv",
3721
- "file_url": "https://hdn-1.addsale.com/x0/application/000000000000000000000004/datasources/2_r_D1jt6-test-1-entries.csv",
3722
- "type": "raw_csv",
3723
- "records_count": 3,
3724
- "application": "000000000000000000000004",
3725
- "created_at": "2020-11-19T12:38:52.580Z",
3726
- "updated_at": "2020-11-19T12:38:52.580Z",
3727
- "slug": "Test-csv",
3728
- "__v": 0
3729
- }
3730
- }
3731
- ```
3732
- </details>
3733
-
3734
- </details>
3735
-
3736
-
3737
-
3738
-
3739
-
3740
-
3741
-
3742
-
3743
-
3744
- ---
3745
-
3746
-
3747
- ### updateCampaignById
3748
- Update campaign by id
3749
-
3750
-
3751
-
3752
- ```javascript
3753
- // Promise
3754
- const promise = client.application("<APPLICATION_ID>").communication.updateCampaignById({ id : value,
3755
- body : value });
3756
-
3757
- // Async/Await
3758
- const data = await client.application("<APPLICATION_ID>").communication.updateCampaignById({ id : value,
3759
- body : value });
3760
- ```
3761
-
3762
-
3763
-
3764
-
3765
-
3766
- | Argument | Type | Required | Description |
3767
- | --------- | ----- | -------- | ----------- |
3768
- | id | string | yes | Campaign id |
3769
- | body | [CampaignReq](#CampaignReq) | yes | Request body |
3770
-
3771
-
3772
- Update campaign by id
3773
-
3774
- *Returned Response:*
3775
-
3776
-
3777
-
3778
-
3779
- [Campaign](#Campaign)
3780
-
3781
- Success
3782
-
3783
-
3784
-
3785
-
3786
- <details>
3787
- <summary><i>&nbsp; Examples:</i></summary>
3788
-
3789
-
3790
- <details>
3791
- <summary><i>&nbsp; default</i></summary>
3792
-
3793
- ```json
3794
- {
3795
- "value": {
3796
- "recipient_headers": {
3797
- "email": "email"
3798
- },
3799
- "email": {
3800
- "template": {
3801
- "key": "_id",
3802
- "value": "5fb6757a09fd90ca91917a60"
3803
- },
3804
- "provider": {
3805
- "_id": "5e560652b5eb4b1f13b4d601",
3806
- "from_name": "Fynd",
3807
- "from_email": "hey@gofynd.com"
3808
- }
3809
- },
3810
- "description": "",
3811
- "tags": [],
3812
- "is_active": true,
3813
- "_id": "6009a1ea1f6a61d88e80a867",
3814
- "datasource": "6009a1be1f6a61a13180a866",
3815
- "type": "email",
3816
- "name": "testing bq email",
3817
- "application": "000000000000000000000004",
3818
- "created_at": "2021-01-21T15:46:50.357Z",
3819
- "updated_at": "2021-01-21T15:46:50.357Z",
3820
- "slug": "testing-bq-email-vPyAd1YB1",
3821
- "__v": 0
3822
- }
3823
- }
3824
- ```
3825
- </details>
3826
-
3827
- </details>
3828
-
3829
-
3830
-
3831
-
3832
-
3833
-
3834
-
3835
-
3836
-
3837
- ---
3838
-
3839
-
3840
- ### updateEmailProviderById
3841
- Update email provider by id
3842
-
3843
-
3844
-
3845
- ```javascript
3846
- // Promise
3847
- const promise = client.application("<APPLICATION_ID>").communication.updateEmailProviderById({ id : value,
3848
- body : value });
3849
-
3850
- // Async/Await
3851
- const data = await client.application("<APPLICATION_ID>").communication.updateEmailProviderById({ id : value,
3852
- body : value });
3853
- ```
3854
-
3855
-
3856
-
3857
-
3858
-
3859
- | Argument | Type | Required | Description |
3860
- | --------- | ----- | -------- | ----------- |
3861
- | id | string | yes | Email provider id |
3862
- | body | [EmailProviderReq](#EmailProviderReq) | yes | Request body |
3863
-
3864
-
3865
- Update email provider by id
3866
-
3867
- *Returned Response:*
3868
-
3869
-
3870
-
3871
-
3872
- [EmailProvider](#EmailProvider)
3873
-
3874
- Success
3875
-
3876
-
3877
-
3878
-
3879
- <details>
3880
- <summary><i>&nbsp; Examples:</i></summary>
3881
-
3882
-
3883
- <details>
3884
- <summary><i>&nbsp; default</i></summary>
3885
-
3886
- ```json
3887
- {
3888
- "value": {
3889
- "type": "application",
3890
- "provider": "falconide",
3891
- "from_address": [
3892
- {
3893
- "is_default": true,
3894
- "name": "abc",
3895
- "email": "abc@test.com"
3896
- }
3897
- ],
3898
- "_id": "5fd9fd44c474a7e3d5d376d6",
3899
- "name": "test falconide",
3900
- "description": "test",
3901
- "api_key": "testtttt",
3902
- "application": "000000000000000000000004",
3903
- "created_at": "2020-12-16T12:27:48.051Z",
3904
- "updated_at": "2020-12-16T12:27:48.051Z",
3905
- "slug": "test-falconide-application-falconide-ZTD-D7wbB",
3906
- "__v": 0
3907
- }
3908
- }
3909
- ```
3910
- </details>
3911
-
3912
- </details>
3913
-
3914
-
3915
-
3916
-
3917
-
3918
-
3919
-
3920
-
3921
-
3922
- ---
3923
-
3924
-
3925
- ### updateEmailTemplateById
3926
- Update email template by id
3927
-
3928
-
3929
-
3930
- ```javascript
3931
- // Promise
3932
- const promise = client.application("<APPLICATION_ID>").communication.updateEmailTemplateById({ id : value,
3933
- body : value });
3934
-
3935
- // Async/Await
3936
- const data = await client.application("<APPLICATION_ID>").communication.updateEmailTemplateById({ id : value,
3937
- body : value });
3938
- ```
3939
-
3940
-
3941
-
3942
-
3943
-
3944
- | Argument | Type | Required | Description |
3945
- | --------- | ----- | -------- | ----------- |
3946
- | id | string | yes | Email template id |
3947
- | body | [EmailTemplateReq](#EmailTemplateReq) | yes | Request body |
3948
-
3949
-
3950
- Update email template by id
3951
-
3952
- *Returned Response:*
3953
-
3954
-
3955
-
3956
-
3957
- [EmailTemplateRes](#EmailTemplateRes)
3958
-
3959
- Success
3960
-
3961
-
3962
-
3963
-
3964
- <details>
3965
- <summary><i>&nbsp; Examples:</i></summary>
3966
-
3967
-
3968
- <details>
3969
- <summary><i>&nbsp; default</i></summary>
3970
-
3971
- ```json
3972
- {
3973
- "value": {
3974
- "is_system": false,
3975
- "is_internal": false,
3976
- "description": "test template",
3977
- "static_to": [
3978
- "abc@gofynd.com"
3979
- ],
3980
- "static_cc": [
3981
- "abc@gofynd.com"
3982
- ],
3983
- "static_bcc": [
3984
- "abc@gofynd.com"
3985
- ],
3986
- "tags": [],
3987
- "priority": "low",
3988
- "published": false,
3989
- "_id": "5ef42a49c8b67d279c27a980",
3990
- "name": "test",
3991
- "keys": {
3992
- "bcc": "abc@gofynd.com"
3993
- },
3994
- "reply_to": "abc@gofynd.com",
3995
- "headers": [
3996
- {
3997
- "key": "x-test-header",
3998
- "value": "test123"
3999
- }
4000
- ],
4001
- "subject": {
4002
- "template_type": "static",
4003
- "template": "This is test email"
4004
- },
4005
- "html": {
4006
- "template_type": "static",
4007
- "template": "This is test email"
4008
- },
4009
- "text": {
4010
- "template_type": "static",
4011
- "template": "This is test email"
4012
- },
4013
- "attachments": [],
4014
- "created_at": "2021-02-08T03:33:42.103Z",
4015
- "updated_at": "2021-02-08T03:33:42.103Z",
4016
- "slug": "test-fZfGq0lSQ",
4017
- "__v": 0
4018
- }
4019
- }
4020
- ```
4021
- </details>
4022
-
4023
- </details>
4024
-
4025
-
4026
-
4027
-
4028
-
4029
-
4030
-
4031
-
4032
-
4033
- ---
4034
-
4035
-
4036
- ### updateSmsProviderById
4037
- Update sms provider by id
4038
-
4039
-
4040
-
4041
- ```javascript
4042
- // Promise
4043
- const promise = client.application("<APPLICATION_ID>").communication.updateSmsProviderById({ id : value,
4044
- body : value });
4045
-
4046
- // Async/Await
4047
- const data = await client.application("<APPLICATION_ID>").communication.updateSmsProviderById({ id : value,
4048
- body : value });
4049
- ```
4050
-
4051
-
4052
-
4053
-
4054
-
4055
- | Argument | Type | Required | Description |
4056
- | --------- | ----- | -------- | ----------- |
4057
- | id | string | yes | Sms provider id |
4058
- | body | [SmsProviderReq](#SmsProviderReq) | yes | Request body |
4059
-
4060
-
4061
- Update sms provider by id
4062
-
4063
- *Returned Response:*
4064
-
4065
-
4066
-
4067
-
4068
- [SmsProvider](#SmsProvider)
4069
-
4070
- Success
4071
-
4072
-
4073
-
4074
-
4075
- <details>
4076
- <summary><i>&nbsp; Examples:</i></summary>
4077
-
4078
-
4079
- <details>
4080
- <summary><i>&nbsp; default</i></summary>
4081
-
4082
- ```json
4083
- {
4084
- "value": {
4085
- "rpt": 1,
4086
- "type": "application",
4087
- "provider": "telspiel",
4088
- "_id": "5fd9fd07c474a7710dd376d5",
4089
- "name": "test telspiel",
4090
- "description": "test",
4091
- "sender": "test",
4092
- "username": "test",
4093
- "authkey": "test",
4094
- "application": "000000000000000000000004",
4095
- "created_at": "2020-12-16T12:26:47.794Z",
4096
- "updated_at": "2020-12-16T12:26:47.794Z",
4097
- "slug": "test-telspiel-application-telspiel-p9UY1r7nG",
4098
- "__v": 0
4099
- }
4100
- }
4101
- ```
4102
- </details>
4103
-
4104
- </details>
4105
-
4106
-
4107
-
4108
-
4109
-
4110
-
4111
-
4112
-
4113
-
4114
- ---
4115
-
4116
-
4117
- ### updateSmsTemplateById
4118
- Update sms template by id
4119
-
4120
-
4121
-
4122
- ```javascript
4123
- // Promise
4124
- const promise = client.application("<APPLICATION_ID>").communication.updateSmsTemplateById({ id : value,
4125
- body : value });
4126
-
4127
- // Async/Await
4128
- const data = await client.application("<APPLICATION_ID>").communication.updateSmsTemplateById({ id : value,
4129
- body : value });
4130
- ```
4131
-
4132
-
4133
-
4134
-
4135
-
4136
- | Argument | Type | Required | Description |
4137
- | --------- | ----- | -------- | ----------- |
4138
- | id | string | yes | Sms template id |
4139
- | body | [SmsTemplateReq](#SmsTemplateReq) | yes | Request body |
4140
-
4141
-
4142
- Update sms template by id
4143
-
4144
- *Returned Response:*
4145
-
4146
-
4147
-
4148
-
4149
- [SmsTemplateRes](#SmsTemplateRes)
4150
-
4151
- Success
4152
-
4153
-
4154
-
4155
-
4156
- <details>
4157
- <summary><i>&nbsp; Examples:</i></summary>
4158
-
4159
-
4160
- <details>
4161
- <summary><i>&nbsp; default</i></summary>
4162
-
4163
- ```json
4164
- {
4165
- "value": {
4166
- "is_system": false,
4167
- "is_internal": true,
4168
- "description": "This is a test sms template",
4169
- "priority": "high",
4170
- "tags": [],
4171
- "published": true,
4172
- "_id": "5fd447728394dbf0d21329b3",
4173
- "slug": "test-sms",
4174
- "name": "Test sms",
4175
- "message": {
4176
- "template_type": "nunjucks",
4177
- "template": "This is a test sms for order - {{ orderId }}"
4178
- },
4179
- "template_variables": {
4180
- "orderId": "12345"
4181
- },
4182
- "created_at": "2020-12-12T04:30:42.456Z",
4183
- "updated_at": "2020-12-24T15:13:20.558Z",
4184
- "__v": 0
4185
- }
4186
- }
4187
- ```
4188
- </details>
4189
-
4190
- </details>
4191
-
4192
-
4193
-
4194
-
4195
-
4196
-
4197
-
4198
-
4199
-
4200
- ---
4201
-
4202
-
4203
- ### verfiyOtp
4204
- Verify OTP sent via email and sms
4205
-
4206
-
4207
-
4208
- ```javascript
4209
- // Promise
4210
- const promise = client.application("<APPLICATION_ID>").communication.verfiyOtp({ body : value });
4211
-
4212
- // Async/Await
4213
- const data = await client.application("<APPLICATION_ID>").communication.verfiyOtp({ body : value });
4214
- ```
4215
-
4216
-
4217
-
4218
-
4219
-
4220
- | Argument | Type | Required | Description |
4221
- | --------- | ----- | -------- | ----------- |
4222
- | body | [VerifyOtpCommsReq](#VerifyOtpCommsReq) | yes | Request body |
4223
-
4224
-
4225
- Verify OTP sent via email and sms
4226
-
4227
- *Returned Response:*
4228
-
4229
-
4230
-
4231
-
4232
- [VerifyOtpCommsSuccessRes](#VerifyOtpCommsSuccessRes)
4233
-
4234
- Success
4235
-
4236
-
4237
-
4238
-
4239
- <details>
4240
- <summary><i>&nbsp; Examples:</i></summary>
4241
-
4242
-
4243
- <details>
4244
- <summary><i>&nbsp; default</i></summary>
4245
-
4246
- ```json
4247
- {
4248
- "value": {
4249
- "success": true,
4250
- "mobile": "9096686804",
4251
- "country_code": "91",
4252
- "message": "OTP verified"
4253
- }
4254
- }
4255
- ```
4256
- </details>
4257
-
4258
- </details>
4259
-
4260
-
4261
-
4262
-
4263
-
4264
-
4265
-
4266
-
4267
-
4268
- ---
4269
-
4270
-
4271
-
4272
- ### Schemas
4273
-
4274
-
4275
- #### [Audience](#Audience)
4276
-
4277
- | Properties | Type | Nullable | Description |
4278
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || application | string | no | || created_at | string | no | || description | string | no | || file_url | string | no | || headers | [string] | no | || is_active | boolean | no | || name | string | no | || records_count | number | no | || slug | string | no | || tags | [string] | no | || type | string | no | || updated_at | string | no | |
4279
-
4280
- ---
4281
-
4282
- #### [AudienceReq](#AudienceReq)
4283
-
4284
- | Properties | Type | Nullable | Description |
4285
- | ---------- | ---- | -------- | ----------- || application | string | no | || description | string | no | || file_url | string | no | || headers | [string] | no | || is_active | boolean | no | || name | string | no | || records_count | number | no | || tags | [string] | no | || type | string | no | |
4286
-
4287
- ---
4288
-
4289
- #### [Audiences](#Audiences)
4290
-
4291
- | Properties | Type | Nullable | Description |
4292
- | ---------- | ---- | -------- | ----------- || items | [[Audience](#Audience)] | no | || page | [Page](#Page) | no | |
4293
-
4294
- ---
4295
-
4296
- #### [BadRequestSchema](#BadRequestSchema)
4297
-
4298
- | Properties | Type | Nullable | Description |
4299
- | ---------- | ---- | -------- | ----------- || message | string | no | || status | string | no | |
4300
-
4301
- ---
4302
-
4303
- #### [BigqueryHeadersReq](#BigqueryHeadersReq)
4304
-
4305
- | Properties | Type | Nullable | Description |
4306
- | ---------- | ---- | -------- | ----------- || query | string | no | || type | string | no | |
4307
-
4308
- ---
4309
-
4310
- #### [BigqueryHeadersRes](#BigqueryHeadersRes)
4311
-
4312
- | Properties | Type | Nullable | Description |
4313
- | ---------- | ---- | -------- | ----------- || headers | [[BigqueryHeadersResHeaders](#BigqueryHeadersResHeaders)] | no | |
4314
-
4315
- ---
4316
-
4317
- #### [BigqueryHeadersResHeaders](#BigqueryHeadersResHeaders)
4318
-
4319
- | Properties | Type | Nullable | Description |
4320
- | ---------- | ---- | -------- | ----------- || name | string | no | || type | string | no | |
4321
-
4322
- ---
4323
-
4324
- #### [Campaign](#Campaign)
4325
-
4326
- | Properties | Type | Nullable | Description |
4327
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || application | string | no | || created_at | string | no | || datasource | string | no | || description | string | no | || email | [CampaignEmail](#CampaignEmail) | no | || is_active | boolean | no | || name | string | no | || recipient_headers | [RecipientHeaders](#RecipientHeaders) | no | || slug | string | no | || tags | [any] | no | || type | string | no | || updated_at | string | no | |
4328
-
4329
- ---
4330
-
4331
- #### [CampaignEmail](#CampaignEmail)
4332
-
4333
- | Properties | Type | Nullable | Description |
4334
- | ---------- | ---- | -------- | ----------- || provider | [CampignEmailProvider](#CampignEmailProvider) | no | || template | [CampaignEmailTemplate](#CampaignEmailTemplate) | no | |
4335
-
4336
- ---
4337
-
4338
- #### [CampaignEmailTemplate](#CampaignEmailTemplate)
4339
-
4340
- | Properties | Type | Nullable | Description |
4341
- | ---------- | ---- | -------- | ----------- || key | string | no | || value | string | no | |
4342
-
4343
- ---
4344
-
4345
- #### [CampaignReq](#CampaignReq)
4346
-
4347
- | Properties | Type | Nullable | Description |
4348
- | ---------- | ---- | -------- | ----------- || application | string | no | || description | string | no | || file_url | string | no | || headers | [string] | no | || is_active | boolean | no | || name | string | no | || records_count | number | no | || tags | [string] | no | || type | string | no | |
4349
-
4350
- ---
4351
-
4352
- #### [Campaigns](#Campaigns)
4353
-
4354
- | Properties | Type | Nullable | Description |
4355
- | ---------- | ---- | -------- | ----------- || items | [[Campaign](#Campaign)] | no | || page | [Page](#Page) | no | |
4356
-
4357
- ---
4358
-
4359
- #### [CampignEmailProvider](#CampignEmailProvider)
4360
-
4361
- | Properties | Type | Nullable | Description |
4362
- | ---------- | ---- | -------- | ----------- || _id | string | no | || from_email | string | no | || from_name | string | no | |
4363
-
4364
- ---
4365
-
4366
- #### [EmailProvider](#EmailProvider)
4367
-
4368
- | Properties | Type | Nullable | Description |
4369
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || api_key | string | no | || application | string | no | || created_at | string | no | || description | string | no | || from_address | [[EmailProviderReqFrom](#EmailProviderReqFrom)] | no | || name | string | no | || provider | string | no | || slug | string | no | || type | string | no | || updated_at | string | no | |
4370
-
4371
- ---
4372
-
4373
- #### [EmailProviderReq](#EmailProviderReq)
4374
-
4375
- | Properties | Type | Nullable | Description |
4376
- | ---------- | ---- | -------- | ----------- || api_key | string | no | || description | string | no | || from_address | [[EmailProviderReqFrom](#EmailProviderReqFrom)] | no | || name | string | no | || provider | string | no | || type | string | no | |
4377
-
4378
- ---
4379
-
4380
- #### [EmailProviderReqFrom](#EmailProviderReqFrom)
4381
-
4382
- | Properties | Type | Nullable | Description |
4383
- | ---------- | ---- | -------- | ----------- || email | string | no | || is_default | boolean | no | || name | string | no | |
4384
-
4385
- ---
4386
-
4387
- #### [EmailProviders](#EmailProviders)
4388
-
4389
- | Properties | Type | Nullable | Description |
4390
- | ---------- | ---- | -------- | ----------- || items | [[EmailProvider](#EmailProvider)] | no | || page | [Page](#Page) | no | |
4391
-
4392
- ---
4393
-
4394
- #### [EmailTemplate](#EmailTemplate)
4395
-
4396
- | Properties | Type | Nullable | Description |
4397
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || attachments | [any] | no | || created_at | string | no | || description | string | no | || from_name | string | no | || headers | [any] | no | || html | [TemplateAndType](#TemplateAndType) | no | || is_internal | boolean | no | || is_system | boolean | no | || name | string | no | || priority | string | no | || published | boolean | no | || slug | string | no | || static_bcc | [any] | no | || static_cc | [any] | no | || static_to | [any] | no | || subject | [TemplateAndType](#TemplateAndType) | no | || tags | [any] | no | || text | [TemplateAndType](#TemplateAndType) | no | || updated_at | string | no | |
4398
-
4399
- ---
4400
-
4401
- #### [EmailTemplateDeleteFailureRes](#EmailTemplateDeleteFailureRes)
4402
-
4403
- | Properties | Type | Nullable | Description |
4404
- | ---------- | ---- | -------- | ----------- || message | string | no | || success | boolean | no | |
4405
-
4406
- ---
4407
-
4408
- #### [EmailTemplateDeleteSuccessRes](#EmailTemplateDeleteSuccessRes)
4409
-
4410
- | Properties | Type | Nullable | Description |
4411
- | ---------- | ---- | -------- | ----------- || message | string | no | || success | boolean | no | |
4412
-
4413
- ---
4414
-
4415
- #### [EmailTemplateHeaders](#EmailTemplateHeaders)
4416
-
4417
- | Properties | Type | Nullable | Description |
4418
- | ---------- | ---- | -------- | ----------- || key | string | no | || value | string | no | |
4419
-
4420
- ---
4421
-
4422
- #### [EmailTemplateKeys](#EmailTemplateKeys)
4423
-
4424
- | Properties | Type | Nullable | Description |
4425
- | ---------- | ---- | -------- | ----------- || bcc | string | no | || cc | string | no | || to | string | no | |
4426
-
4427
- ---
4428
-
4429
- #### [EmailTemplateReq](#EmailTemplateReq)
4430
-
4431
- | Properties | Type | Nullable | Description |
4432
- | ---------- | ---- | -------- | ----------- || attachments | [any] | no | || description | string | no | || headers | [[EmailTemplateHeaders](#EmailTemplateHeaders)] | no | || html | [TemplateAndType](#TemplateAndType) | no | || keys | [EmailTemplateKeys](#EmailTemplateKeys) | no | || name | string | no | || priority | string | no | || reply_to | string | no | || static_bcc | [string] | no | || static_cc | [string] | no | || static_to | [string] | no | || subject | [TemplateAndType](#TemplateAndType) | no | || text | [TemplateAndType](#TemplateAndType) | no | |
4433
-
4434
- ---
4435
-
4436
- #### [EmailTemplateRes](#EmailTemplateRes)
4437
-
4438
- | Properties | Type | Nullable | Description |
4439
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || attachments | [any] | no | || created_at | string | no | || description | string | no | || headers | [[EmailTemplateHeaders](#EmailTemplateHeaders)] | no | || html | [TemplateAndType](#TemplateAndType) | no | || is_internal | boolean | no | || is_system | boolean | no | || keys | [EmailTemplateKeys](#EmailTemplateKeys) | no | || name | string | no | || priority | string | no | || published | boolean | no | || reply_to | string | no | || slug | string | no | || static_bcc | [string] | no | || static_cc | [string] | no | || static_to | [string] | no | || subject | [TemplateAndType](#TemplateAndType) | no | || tags | [any] | no | || text | [TemplateAndType](#TemplateAndType) | no | || updated_at | string | no | |
4440
-
4441
- ---
4442
-
4443
- #### [EmailTemplates](#EmailTemplates)
4444
-
4445
- | Properties | Type | Nullable | Description |
4446
- | ---------- | ---- | -------- | ----------- || items | [[EmailTemplate](#EmailTemplate)] | no | || page | [Page](#Page) | no | |
4447
-
4448
- ---
4449
-
4450
- #### [EngineRequest](#EngineRequest)
4451
-
4452
- | Properties | Type | Nullable | Description |
4453
- | ---------- | ---- | -------- | ----------- || meta | [MetaStructure](#MetaStructure) | no | || payload | [PayloadStructure](#PayloadStructure) | no | |
4454
-
4455
- ---
4456
-
4457
- #### [EngineResponse](#EngineResponse)
4458
-
4459
- | Properties | Type | Nullable | Description |
4460
- | ---------- | ---- | -------- | ----------- || success | boolean | no | |
4461
-
4462
- ---
4463
-
4464
- #### [EventSubscription](#EventSubscription)
4465
-
4466
- | Properties | Type | Nullable | Description |
4467
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || application | string | no | || created_at | string | no | || event | string | no | || is_default | boolean | no | || slug | string | no | || template | [EventSubscriptionTemplate](#EventSubscriptionTemplate) | no | || updated_at | string | no | |
4468
-
4469
- ---
4470
-
4471
- #### [EventSubscriptions](#EventSubscriptions)
4472
-
4473
- | Properties | Type | Nullable | Description |
4474
- | ---------- | ---- | -------- | ----------- || items | [[EventSubscription](#EventSubscription)] | no | || page | [Page](#Page) | no | |
4475
-
4476
- ---
4477
-
4478
- #### [EventSubscriptionTemplate](#EventSubscriptionTemplate)
4479
-
4480
- | Properties | Type | Nullable | Description |
4481
- | ---------- | ---- | -------- | ----------- || email | [EventSubscriptionTemplateEmail](#EventSubscriptionTemplateEmail) | no | || sms | [EventSubscriptionTemplateSms](#EventSubscriptionTemplateSms) | no | |
4482
-
4483
- ---
4484
-
4485
- #### [EventSubscriptionTemplateEmail](#EventSubscriptionTemplateEmail)
4486
-
4487
- | Properties | Type | Nullable | Description |
4488
- | ---------- | ---- | -------- | ----------- || subscribed | boolean | no | || template | string | no | |
4489
-
4490
- ---
4491
-
4492
- #### [EventSubscriptionTemplateSms](#EventSubscriptionTemplateSms)
4493
-
4494
- | Properties | Type | Nullable | Description |
4495
- | ---------- | ---- | -------- | ----------- || subscribed | boolean | no | || template | string | no | |
4496
-
4497
- ---
4498
-
4499
- #### [GetNRecordsCsvReq](#GetNRecordsCsvReq)
4500
-
4501
- | Properties | Type | Nullable | Description |
4502
- | ---------- | ---- | -------- | ----------- || count | number | no | || header | boolean | no | || url | string | no | |
4503
-
4504
- ---
4505
-
4506
- #### [GetNRecordsCsvRes](#GetNRecordsCsvRes)
4507
-
4508
- | Properties | Type | Nullable | Description |
4509
- | ---------- | ---- | -------- | ----------- || items | [[GetNRecordsCsvResItems](#GetNRecordsCsvResItems)] | no | |
4510
-
4511
- ---
4512
-
4513
- #### [GetNRecordsCsvResItems](#GetNRecordsCsvResItems)
4514
-
4515
- | Properties | Type | Nullable | Description |
4516
- | ---------- | ---- | -------- | ----------- || email | string | no | || firstname | string | no | || lastname | string | no | || orderid | string | no | || phone_number | string | no | |
4517
-
4518
- ---
4519
-
4520
- #### [GetStats](#GetStats)
4521
-
4522
- | Properties | Type | Nullable | Description |
4523
- | ---------- | ---- | -------- | ----------- || items | [[Stats](#Stats)] | no | |
4524
-
4525
- ---
4526
-
4527
- #### [Job](#Job)
4528
-
4529
- | Properties | Type | Nullable | Description |
4530
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || application | string | no | || campaign | string | no | || completed | boolean | no | || created_at | string | no | || is_active | boolean | no | || updated_at | string | no | |
4531
-
4532
- ---
4533
-
4534
- #### [JobLog](#JobLog)
4535
-
4536
- | Properties | Type | Nullable | Description |
4537
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || campaign | string | no | || created_at | string | no | || imported | any | no | || job | string | no | || processed | any | no | || updated_at | string | no | |
4538
-
4539
- ---
4540
-
4541
- #### [JobLogs](#JobLogs)
4542
-
4543
- | Properties | Type | Nullable | Description |
4544
- | ---------- | ---- | -------- | ----------- || items | [[JobLog](#JobLog)] | no | || page | [Page](#Page) | no | |
4545
-
4546
- ---
4547
-
4548
- #### [Jobs](#Jobs)
4549
-
4550
- | Properties | Type | Nullable | Description |
4551
- | ---------- | ---- | -------- | ----------- || items | [[Job](#Job)] | no | || page | [Page](#Page) | no | |
4552
-
4553
- ---
4554
-
4555
- #### [Log](#Log)
4556
-
4557
- | Properties | Type | Nullable | Description |
4558
- | ---------- | ---- | -------- | ----------- || _id | string | no | || application | string | no | || created_at | string | no | || data | any | no | || email | [LogEmail](#LogEmail) | no | || expire_at | string | no | || meta | [LogMeta](#LogMeta) | no | || pushnotification | [LogPushnotification](#LogPushnotification) | no | || service | string | no | || status | string | no | || step | string | no | |
4559
-
4560
- ---
4561
-
4562
- #### [LogEmail](#LogEmail)
4563
-
4564
- | Properties | Type | Nullable | Description |
4565
- | ---------- | ---- | -------- | ----------- || template | string | no | |
4566
-
4567
- ---
4568
-
4569
- #### [LogMeta](#LogMeta)
4570
-
4571
- | Properties | Type | Nullable | Description |
4572
- | ---------- | ---- | -------- | ----------- || identifier | string | no | || key | string | no | || offset | string | no | || partition | string | no | || topic | string | no | || type | string | no | |
4573
-
4574
- ---
4575
-
4576
- #### [LogPushnotification](#LogPushnotification)
4577
-
4578
- | Properties | Type | Nullable | Description |
4579
- | ---------- | ---- | -------- | ----------- || pushtokens | [string] | no | |
4580
-
4581
- ---
4582
-
4583
- #### [Logs](#Logs)
4584
-
4585
- | Properties | Type | Nullable | Description |
4586
- | ---------- | ---- | -------- | ----------- || items | [[Log](#Log)] | no | || page | [Page](#Page) | no | |
4587
-
4588
- ---
4589
-
4590
- #### [MetaStructure](#MetaStructure)
4591
-
4592
- | Properties | Type | Nullable | Description |
4593
- | ---------- | ---- | -------- | ----------- || action | string | no | || job_type | string | no | || timestamp | string | no | || trace | string | no | |
4594
-
4595
- ---
4596
-
4597
- #### [NotFound](#NotFound)
4598
-
4599
- | Properties | Type | Nullable | Description |
4600
- | ---------- | ---- | -------- | ----------- || message | string | no | |
4601
-
4602
- ---
4603
-
4604
- #### [Notification](#Notification)
4605
-
4606
- | Properties | Type | Nullable | Description |
4607
- | ---------- | ---- | -------- | ----------- || body | string | no | || click_action | string | no | || deeplink | string | no | || icon | string | no | || subtitle | string | no | || title | string | no | |
4608
-
4609
- ---
4610
-
4611
- #### [Page](#Page)
4612
-
4613
- | Properties | Type | Nullable | Description |
4614
- | ---------- | ---- | -------- | ----------- || 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 | |
4615
-
4616
- ---
4617
-
4618
- #### [PayloadEmailProviderStructure](#PayloadEmailProviderStructure)
4619
-
4620
- | Properties | Type | Nullable | Description |
4621
- | ---------- | ---- | -------- | ----------- || _id | string | no | |
4622
-
4623
- ---
4624
-
4625
- #### [PayloadEmailStructure](#PayloadEmailStructure)
4626
-
4627
- | Properties | Type | Nullable | Description |
4628
- | ---------- | ---- | -------- | ----------- || provider | [PayloadEmailProviderStructure](#PayloadEmailProviderStructure) | no | || template | [PayloadEmailTemplateStructure](#PayloadEmailTemplateStructure) | no | |
4629
-
4630
- ---
4631
-
4632
- #### [PayloadEmailTemplateStructure](#PayloadEmailTemplateStructure)
4633
-
4634
- | Properties | Type | Nullable | Description |
4635
- | ---------- | ---- | -------- | ----------- || key | string | no | || value | any | no | |
4636
-
4637
- ---
4638
-
4639
- #### [PayloadSmsProviderStructure](#PayloadSmsProviderStructure)
4640
-
4641
- | Properties | Type | Nullable | Description |
4642
- | ---------- | ---- | -------- | ----------- || _id | string | no | |
4643
-
4644
- ---
4645
-
4646
- #### [PayloadSmsStructure](#PayloadSmsStructure)
4647
-
4648
- | Properties | Type | Nullable | Description |
4649
- | ---------- | ---- | -------- | ----------- || provider | [PayloadSmsProviderStructure](#PayloadSmsProviderStructure) | no | || template | [PayloadSmsTemplateStructure](#PayloadSmsTemplateStructure) | no | |
4650
-
4651
- ---
4652
-
4653
- #### [PayloadSmsTemplateStructure](#PayloadSmsTemplateStructure)
4654
-
4655
- | Properties | Type | Nullable | Description |
4656
- | ---------- | ---- | -------- | ----------- || key | string | no | || value | any | no | |
4657
-
4658
- ---
4659
-
4660
- #### [PayloadStructure](#PayloadStructure)
4661
-
4662
- | Properties | Type | Nullable | Description |
4663
- | ---------- | ---- | -------- | ----------- || application | string | no | || data | [string] | no | || email | [PayloadEmailStructure](#PayloadEmailStructure) | no | || sms | [PayloadSmsStructure](#PayloadSmsStructure) | no | |
4664
-
4665
- ---
4666
-
4667
- #### [PushtokenReq](#PushtokenReq)
4668
-
4669
- | Properties | Type | Nullable | Description |
4670
- | ---------- | ---- | -------- | ----------- || action | string | no | || bundle_identifier | string | no | || push_token | string | no | || unique_device_id | string | no | |
4671
-
4672
- ---
4673
-
4674
- #### [PushtokenRes](#PushtokenRes)
4675
-
4676
- | Properties | Type | Nullable | Description |
4677
- | ---------- | ---- | -------- | ----------- || _id | string | no | || application_id | string | no | || bundle_identifier | string | no | || created_at | string | no | || expired_at | string | no | || platform | string | no | || push_token | string | no | || type | string | no | || unique_device_id | string | no | || updated_at | string | no | || user_id | string | no | |
4678
-
4679
- ---
4680
-
4681
- #### [RecipientHeaders](#RecipientHeaders)
4682
-
4683
- | Properties | Type | Nullable | Description |
4684
- | ---------- | ---- | -------- | ----------- || email | string | no | |
4685
-
4686
- ---
4687
-
4688
- #### [SendOtpCommsReq](#SendOtpCommsReq)
4689
-
4690
- | Properties | Type | Nullable | Description |
4691
- | ---------- | ---- | -------- | ----------- || data | [SendOtpCommsReqData](#SendOtpCommsReqData) | no | || email | [SendOtpCommsReqEmail](#SendOtpCommsReqEmail) | no | || sms | [SendOtpCommsReqSms](#SendOtpCommsReqSms) | no | |
4692
-
4693
- ---
4694
-
4695
- #### [SendOtpCommsReqData](#SendOtpCommsReqData)
4696
-
4697
- | Properties | Type | Nullable | Description |
4698
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || mobile | string | no | || send_same_otp_to_channel | boolean | no | || to | string | no | |
4699
-
4700
- ---
4701
-
4702
- #### [SendOtpCommsReqEmail](#SendOtpCommsReqEmail)
4703
-
4704
- | Properties | Type | Nullable | Description |
4705
- | ---------- | ---- | -------- | ----------- || expiry | number | no | || otp_length | number | no | || template | [SendOtpEmailCommsTemplate](#SendOtpEmailCommsTemplate) | no | |
4706
-
4707
- ---
4708
-
4709
- #### [SendOtpCommsReqSms](#SendOtpCommsReqSms)
4710
-
4711
- | Properties | Type | Nullable | Description |
4712
- | ---------- | ---- | -------- | ----------- || expiry | number | no | || otp_length | number | no | || provider | [SendOtpSmsCommsProvider](#SendOtpSmsCommsProvider) | no | || template | [SendOtpSmsCommsTemplate](#SendOtpSmsCommsTemplate) | no | |
4713
-
4714
- ---
4715
-
4716
- #### [SendOtpCommsRes](#SendOtpCommsRes)
4717
-
4718
- | Properties | Type | Nullable | Description |
4719
- | ---------- | ---- | -------- | ----------- || email | [SendOtpCommsResEmail](#SendOtpCommsResEmail) | no | || sms | [SendOtpCommsResSms](#SendOtpCommsResSms) | no | |
4720
-
4721
- ---
4722
-
4723
- #### [SendOtpCommsResEmail](#SendOtpCommsResEmail)
4724
-
4725
- | Properties | Type | Nullable | Description |
4726
- | ---------- | ---- | -------- | ----------- || message | string | no | || request_id | string | no | || resend_timer | number | no | || success | boolean | no | || to | string | no | |
4727
-
4728
- ---
4729
-
4730
- #### [SendOtpCommsResSms](#SendOtpCommsResSms)
4731
-
4732
- | Properties | Type | Nullable | Description |
4733
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || message | string | no | || mobile | string | no | || request_id | string | no | || resend_timer | number | no | || success | boolean | no | |
4734
-
4735
- ---
4736
-
4737
- #### [SendOtpEmailCommsTemplate](#SendOtpEmailCommsTemplate)
4738
-
4739
- | Properties | Type | Nullable | Description |
4740
- | ---------- | ---- | -------- | ----------- || key | string | no | || value | any | no | |
4741
-
4742
- ---
4743
-
4744
- #### [SendOtpSmsCommsProvider](#SendOtpSmsCommsProvider)
4745
-
4746
- | Properties | Type | Nullable | Description |
4747
- | ---------- | ---- | -------- | ----------- || _id | string | no | || slug | string | no | |
4748
-
4749
- ---
4750
-
4751
- #### [SendOtpSmsCommsTemplate](#SendOtpSmsCommsTemplate)
4752
-
4753
- | Properties | Type | Nullable | Description |
4754
- | ---------- | ---- | -------- | ----------- || key | string | no | || value | any | no | |
4755
-
4756
- ---
4757
-
4758
- #### [SmsProvider](#SmsProvider)
4759
-
4760
- | Properties | Type | Nullable | Description |
4761
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || application | string | no | || authkey | string | no | || created_at | string | no | || description | string | no | || name | string | no | || provider | string | no | || rpt | number | no | || sender | string | no | || slug | string | no | || type | string | no | || updated_at | string | no | || username | string | no | |
4762
-
4763
- ---
4764
-
4765
- #### [SmsProviderReq](#SmsProviderReq)
4766
-
4767
- | Properties | Type | Nullable | Description |
4768
- | ---------- | ---- | -------- | ----------- || authkey | string | no | || description | string | no | || name | string | no | || provider | string | no | || sender | string | no | || type | string | no | || username | string | no | |
4769
-
4770
- ---
4771
-
4772
- #### [SmsProviders](#SmsProviders)
4773
-
4774
- | Properties | Type | Nullable | Description |
4775
- | ---------- | ---- | -------- | ----------- || items | [[SmsProvider](#SmsProvider)] | no | || page | [Page](#Page) | no | |
4776
-
4777
- ---
4778
-
4779
- #### [SmsTemplate](#SmsTemplate)
4780
-
4781
- | Properties | Type | Nullable | Description |
4782
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || created_at | string | no | || description | string | no | || is_internal | boolean | no | || is_system | boolean | no | || message | [SmsTemplateMessage](#SmsTemplateMessage) | no | || name | string | no | || priority | string | no | || published | boolean | no | || slug | string | no | || tags | [any] | no | || template_variables | any | no | || updated_at | string | no | |
4783
-
4784
- ---
4785
-
4786
- #### [SmsTemplateDeleteFailureRes](#SmsTemplateDeleteFailureRes)
4787
-
4788
- | Properties | Type | Nullable | Description |
4789
- | ---------- | ---- | -------- | ----------- || message | string | no | || success | boolean | no | |
4790
-
4791
- ---
4792
-
4793
- #### [SmsTemplateDeleteSuccessRes](#SmsTemplateDeleteSuccessRes)
4794
-
4795
- | Properties | Type | Nullable | Description |
4796
- | ---------- | ---- | -------- | ----------- || message | string | no | || success | boolean | no | |
4797
-
4798
- ---
4799
-
4800
- #### [SmsTemplateMessage](#SmsTemplateMessage)
4801
-
4802
- | Properties | Type | Nullable | Description |
4803
- | ---------- | ---- | -------- | ----------- || template | string | no | || template_type | string | no | |
4804
-
4805
- ---
4806
-
4807
- #### [SmsTemplateReq](#SmsTemplateReq)
4808
-
4809
- | Properties | Type | Nullable | Description |
4810
- | ---------- | ---- | -------- | ----------- || attachments | [any] | no | || description | string | no | || message | [SmsTemplateMessage](#SmsTemplateMessage) | no | || name | string | no | || priority | string | no | || template_variables | any | no | |
4811
-
4812
- ---
4813
-
4814
- #### [SmsTemplateRes](#SmsTemplateRes)
4815
-
4816
- | Properties | Type | Nullable | Description |
4817
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || created_at | string | no | || description | string | no | || is_internal | boolean | no | || is_system | boolean | no | || message | [SmsTemplateMessage](#SmsTemplateMessage) | no | || name | string | no | || priority | string | no | || published | boolean | no | || slug | string | no | || tags | [any] | no | || template_variables | any | no | || updated_at | string | no | |
4818
-
4819
- ---
4820
-
4821
- #### [SmsTemplates](#SmsTemplates)
4822
-
4823
- | Properties | Type | Nullable | Description |
4824
- | ---------- | ---- | -------- | ----------- || items | [[SmsTemplate](#SmsTemplate)] | no | || page | [Page](#Page) | no | |
4825
-
4826
- ---
4827
-
4828
- #### [Stats](#Stats)
4829
-
4830
- | Properties | Type | Nullable | Description |
4831
- | ---------- | ---- | -------- | ----------- || _id | string | no | || imported | any | no | || processed | any | no | |
4832
-
4833
- ---
4834
-
4835
- #### [StatsImported](#StatsImported)
4836
-
4837
- | Properties | Type | Nullable | Description |
4838
- | ---------- | ---- | -------- | ----------- || count | number | no | |
4839
-
4840
- ---
4841
-
4842
- #### [StatsProcessed](#StatsProcessed)
4843
-
4844
- | Properties | Type | Nullable | Description |
4845
- | ---------- | ---- | -------- | ----------- || email | [StatsProcessedEmail](#StatsProcessedEmail) | no | || sms | [StatsProcessedSms](#StatsProcessedSms) | no | |
4846
-
4847
- ---
4848
-
4849
- #### [StatsProcessedEmail](#StatsProcessedEmail)
4850
-
4851
- | Properties | Type | Nullable | Description |
4852
- | ---------- | ---- | -------- | ----------- || failed | number | no | || success | number | no | || suppressed | number | no | |
4853
-
4854
- ---
4855
-
4856
- #### [StatsProcessedSms](#StatsProcessedSms)
4857
-
4858
- | Properties | Type | Nullable | Description |
4859
- | ---------- | ---- | -------- | ----------- || failed | number | no | || success | number | no | || suppressed | number | no | |
4860
-
4861
- ---
4862
-
4863
- #### [SystemEmailTemplate](#SystemEmailTemplate)
4864
-
4865
- | Properties | Type | Nullable | Description |
4866
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || attachments | [any] | no | || created_at | string | no | || description | string | no | || from_name | string | no | || headers | [any] | no | || html | [TemplateAndType](#TemplateAndType) | no | || is_internal | boolean | no | || is_system | boolean | no | || name | string | no | || priority | string | no | || published | boolean | no | || slug | string | no | || static_bcc | [any] | no | || static_cc | [any] | no | || static_to | [any] | no | || subject | [TemplateAndType](#TemplateAndType) | no | || tags | [any] | no | || text | [TemplateAndType](#TemplateAndType) | no | || updated_at | string | no | |
4867
-
4868
- ---
4869
-
4870
- #### [SystemEmailTemplates](#SystemEmailTemplates)
4871
-
4872
- | Properties | Type | Nullable | Description |
4873
- | ---------- | ---- | -------- | ----------- || items | [[SystemEmailTemplate](#SystemEmailTemplate)] | no | || page | [Page](#Page) | no | |
4874
-
4875
- ---
4876
-
4877
- #### [SystemNotification](#SystemNotification)
4878
-
4879
- | Properties | Type | Nullable | Description |
4880
- | ---------- | ---- | -------- | ----------- || _id | string | no | || created_at | string | no | || group | string | no | || notification | [Notification](#Notification) | no | || settings | [SystemNotificationUser](#SystemNotificationUser) | no | || user | [SystemNotificationUser](#SystemNotificationUser) | no | |
4881
-
4882
- ---
4883
-
4884
- #### [SystemNotifications](#SystemNotifications)
4885
-
4886
- | Properties | Type | Nullable | Description |
4887
- | ---------- | ---- | -------- | ----------- || items | [[SystemNotification](#SystemNotification)] | no | || last_read_anchor | number | no | || page | [Page](#Page) | no | |
4888
-
4889
- ---
4890
-
4891
- #### [SystemNotificationSettings](#SystemNotificationSettings)
4892
-
4893
- | Properties | Type | Nullable | Description |
4894
- | ---------- | ---- | -------- | ----------- || priority | string | no | || sound | boolean | no | || time_to_live | string | no | |
4895
-
4896
- ---
4897
-
4898
- #### [SystemNotificationsPage](#SystemNotificationsPage)
4899
-
4900
- | Properties | Type | Nullable | Description |
4901
- | ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || item_total | number | no | || size | number | no | || type | string | no | |
4902
-
4903
- ---
4904
-
4905
- #### [SystemNotificationUser](#SystemNotificationUser)
4906
-
4907
- | Properties | Type | Nullable | Description |
4908
- | ---------- | ---- | -------- | ----------- || type | string | no | || value | string | no | |
4909
-
4910
- ---
4911
-
4912
- #### [SystemSmsTemplate](#SystemSmsTemplate)
4913
-
4914
- | Properties | Type | Nullable | Description |
4915
- | ---------- | ---- | -------- | ----------- || __v | number | no | || _id | string | no | || created_at | string | no | || description | string | no | || is_internal | boolean | no | || is_system | boolean | no | || message | [SmsTemplateMessage](#SmsTemplateMessage) | no | || name | string | no | || priority | string | no | || published | boolean | no | || slug | string | no | || tags | [any] | no | || template_variables | any | no | || updated_at | string | no | |
4916
-
4917
- ---
4918
-
4919
- #### [SystemSmsTemplates](#SystemSmsTemplates)
4920
-
4921
- | Properties | Type | Nullable | Description |
4922
- | ---------- | ---- | -------- | ----------- || items | [[SystemSmsTemplate](#SystemSmsTemplate)] | no | || page | [Page](#Page) | no | |
4923
-
4924
- ---
4925
-
4926
- #### [TemplateAndType](#TemplateAndType)
4927
-
4928
- | Properties | Type | Nullable | Description |
4929
- | ---------- | ---- | -------- | ----------- || template | string | no | || template_type | string | no | |
4930
-
4931
- ---
4932
-
4933
- #### [TriggerJobRequest](#TriggerJobRequest)
4934
-
4935
- | Properties | Type | Nullable | Description |
4936
- | ---------- | ---- | -------- | ----------- || job_id | string | no | |
4937
-
4938
- ---
4939
-
4940
- #### [TriggerJobResponse](#TriggerJobResponse)
4941
-
4942
- | Properties | Type | Nullable | Description |
4943
- | ---------- | ---- | -------- | ----------- || status | number | no | |
4944
-
4945
- ---
4946
-
4947
- #### [VerifyOtpCommsErrorRes](#VerifyOtpCommsErrorRes)
4948
-
4949
- | Properties | Type | Nullable | Description |
4950
- | ---------- | ---- | -------- | ----------- || message | string | no | || success | boolean | no | |
4951
-
4952
- ---
4953
-
4954
- #### [VerifyOtpCommsReq](#VerifyOtpCommsReq)
4955
-
4956
- | Properties | Type | Nullable | Description |
4957
- | ---------- | ---- | -------- | ----------- || otp | string | no | || request_id | string | no | |
4958
-
4959
- ---
4960
-
4961
- #### [VerifyOtpCommsSuccessRes](#VerifyOtpCommsSuccessRes)
4962
-
4963
- | Properties | Type | Nullable | Description |
4964
- | ---------- | ---- | -------- | ----------- || country_code | string | no | || message | string | no | || mobile | string | no | || success | boolean | no | |
4965
-
4966
- ---
4967
-
4968
-
4969
-
4970
-