@gofynd/fdk-client-javascript 1.0.0 → 1.0.2

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 (156) hide show
  1. package/documentation/application/CART.md +251 -251
  2. package/documentation/application/CATALOG.md +393 -393
  3. package/documentation/application/CONTENT.md +15 -1
  4. package/documentation/application/ORDER.md +268 -268
  5. package/documentation/application/PAYMENT.md +249 -249
  6. package/documentation/application/POSCART.md +297 -297
  7. package/documentation/platform/CART.md +499 -499
  8. package/documentation/platform/CATALOG.md +3497 -3097
  9. package/documentation/platform/COMPANYPROFILE.md +207 -207
  10. package/documentation/platform/CONTENT.md +123 -1
  11. package/documentation/platform/ORDER.md +1518 -1324
  12. package/documentation/platform/PARTNER.md +7 -7
  13. package/documentation/platform/PAYMENT.md +96 -96
  14. package/index.js +7 -1
  15. package/package.json +1 -1
  16. package/sdk/application/ApplicationConfig.js +1 -1
  17. package/sdk/application/Cart/CartApplicationClient.js +865 -52
  18. package/sdk/application/Cart/CartApplicationModel.d.ts +7 -7
  19. package/sdk/application/Cart/CartApplicationModel.js +335 -335
  20. package/sdk/application/Cart/CartApplicationValidator.js +1 -0
  21. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +1 -1
  22. package/sdk/application/Catalog/CatalogApplicationClient.js +1034 -60
  23. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +19 -19
  24. package/sdk/application/Catalog/CatalogApplicationModel.js +532 -532
  25. package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
  26. package/sdk/application/Common/CommonApplicationClient.js +66 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +1 -0
  28. package/sdk/application/Communication/CommunicationApplicationClient.js +108 -6
  29. package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
  30. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +1 -1
  31. package/sdk/application/Configuration/ConfigurationApplicationClient.js +558 -32
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
  33. package/sdk/application/Content/ContentApplicationClient.js +621 -38
  34. package/sdk/application/Content/ContentApplicationModel.d.ts +1 -0
  35. package/sdk/application/Content/ContentApplicationModel.js +11 -1
  36. package/sdk/application/Content/ContentApplicationValidator.js +1 -0
  37. package/sdk/application/FileStorage/FileStorageApplicationClient.js +101 -6
  38. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
  39. package/sdk/application/Lead/LeadApplicationClient.js +229 -14
  40. package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
  41. package/sdk/application/Logistic/LogisticApplicationClient.js +134 -8
  42. package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
  43. package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
  44. package/sdk/application/Order/OrderApplicationClient.js +403 -24
  45. package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
  46. package/sdk/application/Order/OrderApplicationModel.js +334 -334
  47. package/sdk/application/Order/OrderApplicationValidator.js +1 -0
  48. package/sdk/application/Payment/PaymentApplicationClient.js +1381 -78
  49. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2 -2
  50. package/sdk/application/Payment/PaymentApplicationModel.js +350 -350
  51. package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
  52. package/sdk/application/PosCart/PosCartApplicationClient.js +914 -54
  53. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +15 -15
  54. package/sdk/application/PosCart/PosCartApplicationModel.js +389 -389
  55. package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
  56. package/sdk/application/Rewards/RewardsApplicationClient.js +235 -14
  57. package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
  58. package/sdk/application/Share/ShareApplicationClient.js +226 -14
  59. package/sdk/application/Share/ShareApplicationValidator.js +1 -0
  60. package/sdk/application/Theme/ThemeApplicationClient.js +130 -8
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
  62. package/sdk/application/User/UserApplicationClient.js +1133 -70
  63. package/sdk/application/User/UserApplicationValidator.js +1 -0
  64. package/sdk/common/AxiosHelper.js +1 -1
  65. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +16 -8
  66. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +287 -16
  67. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  68. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +153 -8
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +141 -8
  71. package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -12
  72. package/sdk/platform/Billing/BillingPlatformClient.js +429 -24
  73. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -17
  74. package/sdk/platform/Cart/CartPlatformApplicationClient.js +617 -34
  75. package/sdk/platform/Cart/CartPlatformModel.d.ts +35 -35
  76. package/sdk/platform/Cart/CartPlatformModel.js +617 -617
  77. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +191 -138
  78. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2202 -302
  79. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +11 -11
  80. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +45 -45
  81. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +344 -226
  82. package/sdk/platform/Catalog/CatalogPlatformClient.js +3282 -488
  83. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +110 -100
  84. package/sdk/platform/Catalog/CatalogPlatformModel.js +2073 -1795
  85. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +23 -21
  86. package/sdk/platform/Catalog/CatalogPlatformValidator.js +103 -84
  87. package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -2
  88. package/sdk/platform/Common/CommonPlatformClient.js +73 -4
  89. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -40
  90. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1499 -80
  91. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  92. package/sdk/platform/Communication/CommunicationPlatformClient.js +41 -2
  93. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -14
  94. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +486 -26
  95. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +9 -9
  96. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +274 -274
  97. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +56 -28
  98. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1022 -56
  99. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  100. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +693 -36
  101. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +148 -67
  102. package/sdk/platform/Content/ContentPlatformApplicationClient.js +2446 -140
  103. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
  104. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -0
  105. package/sdk/platform/Content/ContentPlatformModel.d.ts +4 -0
  106. package/sdk/platform/Content/ContentPlatformModel.js +43 -1
  107. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +21 -10
  108. package/sdk/platform/Discount/DiscountPlatformClient.js +400 -22
  109. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +8 -4
  110. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +148 -8
  111. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -6
  112. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +214 -12
  113. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +27 -14
  114. package/sdk/platform/Inventory/InventoryPlatformClient.js +449 -24
  115. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +26 -13
  116. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +447 -26
  117. package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -11
  118. package/sdk/platform/Lead/LeadPlatformClient.js +384 -22
  119. package/sdk/platform/OAuthClient.js +8 -8
  120. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -3
  121. package/sdk/platform/Order/OrderPlatformApplicationClient.js +125 -6
  122. package/sdk/platform/Order/OrderPlatformClient.d.ts +108 -47
  123. package/sdk/platform/Order/OrderPlatformClient.js +1641 -100
  124. package/sdk/platform/Order/OrderPlatformModel.d.ts +69 -58
  125. package/sdk/platform/Order/OrderPlatformModel.js +1485 -1493
  126. package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
  127. package/sdk/platform/Order/OrderPlatformValidator.js +15 -4
  128. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  129. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +74 -4
  130. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  131. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  132. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -11
  133. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +418 -22
  134. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +21 -11
  135. package/sdk/platform/Payment/PaymentPlatformClient.js +374 -20
  136. package/sdk/platform/Payment/PaymentPlatformModel.js +139 -139
  137. package/sdk/platform/PlatformApplicationClient.d.ts +2973 -2827
  138. package/sdk/platform/PlatformApplicationClient.js +3461 -3263
  139. package/sdk/platform/PlatformClient.d.ts +2973 -2827
  140. package/sdk/platform/PlatformClient.js +3461 -3263
  141. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +26 -13
  142. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +449 -26
  143. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +8 -4
  144. package/sdk/platform/Share/SharePlatformApplicationClient.js +139 -8
  145. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +47 -23
  146. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +816 -48
  147. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +24 -12
  148. package/sdk/platform/User/UserPlatformApplicationClient.js +417 -24
  149. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +12 -6
  150. package/sdk/platform/Webhook/WebhookPlatformClient.js +229 -12
  151. package/sdk/public/Configuration/ConfigurationPublicClient.js +72 -4
  152. package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
  153. package/sdk/public/Inventory/InventoryPublicClient.js +210 -12
  154. package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
  155. package/sdk/public/Webhook/WebhookPublicClient.js +74 -4
  156. package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
@@ -8,6 +8,7 @@ declare class Communication {
8
8
  * @param {number} [arg.pageNo] - Current page no
9
9
  * @param {number} [arg.pageSize] - Current request items count
10
10
  * @param {Object} [arg.sort] - To sort based on created_at
11
+ * @returns {Promise<Campaigns>} - Success response
11
12
  * @summary: Get campaigns
12
13
  * @description: Get campaigns
13
14
  */
@@ -15,7 +16,7 @@ declare class Communication {
15
16
  pageNo?: number;
16
17
  pageSize?: number;
17
18
  sort?: any;
18
- }): Promise<any>;
19
+ }): Promise<Campaigns>;
19
20
  /**
20
21
  * @param {Object} arg - Arg object.
21
22
  * @param {string} arg.companyId - Company id
@@ -34,46 +35,51 @@ declare class Communication {
34
35
  /**
35
36
  * @param {Object} arg - Arg object.
36
37
  * @param {CampaignReq} arg.body
38
+ * @returns {Promise<Campaign>} - Success response
37
39
  * @summary: Create campaign
38
40
  * @description: Create campaign
39
41
  */
40
42
  createCampaign({ body }?: {
41
43
  body: CampaignReq;
42
- }): Promise<any>;
44
+ }): Promise<Campaign>;
43
45
  /**
44
46
  * @param {Object} arg - Arg object.
45
47
  * @param {string} arg.id - Campaign id
48
+ * @returns {Promise<Campaign>} - Success response
46
49
  * @summary: Get campaign by id
47
50
  * @description: Get campaign by id
48
51
  */
49
52
  getCampaignById({ id }?: {
50
53
  id: string;
51
- }): Promise<any>;
54
+ }): Promise<Campaign>;
52
55
  /**
53
56
  * @param {Object} arg - Arg object.
54
57
  * @param {string} arg.id - Campaign id
55
58
  * @param {CampaignReq} arg.body
59
+ * @returns {Promise<Campaign>} - Success response
56
60
  * @summary: Update campaign by id
57
61
  * @description: Update campaign by id
58
62
  */
59
63
  updateCampaignById({ id, body }?: {
60
64
  id: string;
61
65
  body: CampaignReq;
62
- }): Promise<any>;
66
+ }): Promise<Campaign>;
63
67
  /**
64
68
  * @param {Object} arg - Arg object.
65
69
  * @param {string} arg.id - Campaign id
70
+ * @returns {Promise<GetStats>} - Success response
66
71
  * @summary: Get stats of campaign by id
67
72
  * @description: Get stats of campaign by id
68
73
  */
69
74
  getStatsOfCampaignById({ id }?: {
70
75
  id: string;
71
- }): Promise<any>;
76
+ }): Promise<GetStats>;
72
77
  /**
73
78
  * @param {Object} arg - Arg object.
74
79
  * @param {number} [arg.pageNo] - Current page no
75
80
  * @param {number} [arg.pageSize] - Current request items count
76
81
  * @param {Object} [arg.sort] - To sort based on created_at
82
+ * @returns {Promise<Audiences>} - Success response
77
83
  * @summary: Get audiences
78
84
  * @description: Get audiences
79
85
  */
@@ -81,7 +87,7 @@ declare class Communication {
81
87
  pageNo?: number;
82
88
  pageSize?: number;
83
89
  sort?: any;
84
- }): Promise<any>;
90
+ }): Promise<Audiences>;
85
91
  /**
86
92
  * @param {Object} arg - Arg object.
87
93
  * @param {string} arg.companyId - Company id
@@ -100,55 +106,61 @@ declare class Communication {
100
106
  /**
101
107
  * @param {Object} arg - Arg object.
102
108
  * @param {AudienceReq} arg.body
109
+ * @returns {Promise<Audience>} - Success response
103
110
  * @summary: Create audience
104
111
  * @description: Create audience
105
112
  */
106
113
  createAudience({ body }?: {
107
114
  body: AudienceReq;
108
- }): Promise<any>;
115
+ }): Promise<Audience>;
109
116
  /**
110
117
  * @param {Object} arg - Arg object.
111
118
  * @param {BigqueryHeadersReq} arg.body
119
+ * @returns {Promise<BigqueryHeadersRes>} - Success response
112
120
  * @summary: Get bigquery headers
113
121
  * @description: Get bigquery headers
114
122
  */
115
123
  getBigqueryHeaders({ body }?: {
116
124
  body: BigqueryHeadersReq;
117
- }): Promise<any>;
125
+ }): Promise<BigqueryHeadersRes>;
118
126
  /**
119
127
  * @param {Object} arg - Arg object.
120
128
  * @param {string} arg.id - Audience id
129
+ * @returns {Promise<Audience>} - Success response
121
130
  * @summary: Get audience by id
122
131
  * @description: Get audience by id
123
132
  */
124
133
  getAudienceById({ id }?: {
125
134
  id: string;
126
- }): Promise<any>;
135
+ }): Promise<Audience>;
127
136
  /**
128
137
  * @param {Object} arg - Arg object.
129
138
  * @param {string} arg.id - Audience id
130
139
  * @param {AudienceReq} arg.body
140
+ * @returns {Promise<Audience>} - Success response
131
141
  * @summary: Update audience by id
132
142
  * @description: Update audience by id
133
143
  */
134
144
  updateAudienceById({ id, body }?: {
135
145
  id: string;
136
146
  body: AudienceReq;
137
- }): Promise<any>;
147
+ }): Promise<Audience>;
138
148
  /**
139
149
  * @param {Object} arg - Arg object.
140
150
  * @param {GetNRecordsCsvReq} arg.body
151
+ * @returns {Promise<GetNRecordsCsvRes>} - Success response
141
152
  * @summary: Get n sample records from csv
142
153
  * @description: Get n sample records from csv
143
154
  */
144
155
  getNSampleRecordsFromCsv({ body }?: {
145
156
  body: GetNRecordsCsvReq;
146
- }): Promise<any>;
157
+ }): Promise<GetNRecordsCsvRes>;
147
158
  /**
148
159
  * @param {Object} arg - Arg object.
149
160
  * @param {number} [arg.pageNo] - Current page no
150
161
  * @param {number} [arg.pageSize] - Current request items count
151
162
  * @param {Object} [arg.sort] - To sort based on created_at
163
+ * @returns {Promise<EmailProviders>} - Success response
152
164
  * @summary: Get email providers
153
165
  * @description: Get email providers
154
166
  */
@@ -156,7 +168,7 @@ declare class Communication {
156
168
  pageNo?: number;
157
169
  pageSize?: number;
158
170
  sort?: any;
159
- }): Promise<any>;
171
+ }): Promise<EmailProviders>;
160
172
  /**
161
173
  * @param {Object} arg - Arg object.
162
174
  * @param {string} arg.companyId - Company id
@@ -175,37 +187,41 @@ declare class Communication {
175
187
  /**
176
188
  * @param {Object} arg - Arg object.
177
189
  * @param {EmailProviderReq} arg.body
190
+ * @returns {Promise<EmailProvider>} - Success response
178
191
  * @summary: Create email provider
179
192
  * @description: Create email provider
180
193
  */
181
194
  createEmailProvider({ body }?: {
182
195
  body: EmailProviderReq;
183
- }): Promise<any>;
196
+ }): Promise<EmailProvider>;
184
197
  /**
185
198
  * @param {Object} arg - Arg object.
186
199
  * @param {string} arg.id - Email provider id
200
+ * @returns {Promise<EmailProvider>} - Success response
187
201
  * @summary: Get email provider by id
188
202
  * @description: Get email provider by id
189
203
  */
190
204
  getEmailProviderById({ id }?: {
191
205
  id: string;
192
- }): Promise<any>;
206
+ }): Promise<EmailProvider>;
193
207
  /**
194
208
  * @param {Object} arg - Arg object.
195
209
  * @param {string} arg.id - Email provider id
196
210
  * @param {EmailProviderReq} arg.body
211
+ * @returns {Promise<EmailProvider>} - Success response
197
212
  * @summary: Update email provider by id
198
213
  * @description: Update email provider by id
199
214
  */
200
215
  updateEmailProviderById({ id, body }?: {
201
216
  id: string;
202
217
  body: EmailProviderReq;
203
- }): Promise<any>;
218
+ }): Promise<EmailProvider>;
204
219
  /**
205
220
  * @param {Object} arg - Arg object.
206
221
  * @param {number} [arg.pageNo] - Current page no
207
222
  * @param {number} [arg.pageSize] - Current request items count
208
223
  * @param {Object} [arg.sort] - To sort based on created_at
224
+ * @returns {Promise<EmailTemplates>} - Success response
209
225
  * @summary: Get email templates
210
226
  * @description: Get email templates
211
227
  */
@@ -213,7 +229,7 @@ declare class Communication {
213
229
  pageNo?: number;
214
230
  pageSize?: number;
215
231
  sort?: any;
216
- }): Promise<any>;
232
+ }): Promise<EmailTemplates>;
217
233
  /**
218
234
  * @param {Object} arg - Arg object.
219
235
  * @param {string} arg.companyId - Company id
@@ -232,17 +248,19 @@ declare class Communication {
232
248
  /**
233
249
  * @param {Object} arg - Arg object.
234
250
  * @param {EmailTemplateReq} arg.body
251
+ * @returns {Promise<EmailTemplateRes>} - Success response
235
252
  * @summary: Create email template
236
253
  * @description: Create email template
237
254
  */
238
255
  createEmailTemplate({ body }?: {
239
256
  body: EmailTemplateReq;
240
- }): Promise<any>;
257
+ }): Promise<EmailTemplateRes>;
241
258
  /**
242
259
  * @param {Object} arg - Arg object.
243
260
  * @param {number} [arg.pageNo] - Current page no
244
261
  * @param {number} [arg.pageSize] - Current request items count
245
262
  * @param {Object} [arg.sort] - To sort based on created_at
263
+ * @returns {Promise<SystemEmailTemplates>} - Success response
246
264
  * @summary: Get system email templates
247
265
  * @description: Get system email templates
248
266
  */
@@ -250,7 +268,7 @@ declare class Communication {
250
268
  pageNo?: number;
251
269
  pageSize?: number;
252
270
  sort?: any;
253
- }): Promise<any>;
271
+ }): Promise<SystemEmailTemplates>;
254
272
  /**
255
273
  * @param {Object} arg - Arg object.
256
274
  * @param {string} arg.companyId - Company id
@@ -269,55 +287,61 @@ declare class Communication {
269
287
  /**
270
288
  * @param {Object} arg - Arg object.
271
289
  * @param {string} arg.id - Email template id
290
+ * @returns {Promise<EmailTemplate>} - Success response
272
291
  * @summary: Get email template by id
273
292
  * @description: Get email template by id
274
293
  */
275
294
  getEmailTemplateById({ id }?: {
276
295
  id: string;
277
- }): Promise<any>;
296
+ }): Promise<EmailTemplate>;
278
297
  /**
279
298
  * @param {Object} arg - Arg object.
280
299
  * @param {string} arg.id - Email template id
281
300
  * @param {EmailTemplateReq} arg.body
301
+ * @returns {Promise<EmailTemplateRes>} - Success response
282
302
  * @summary: Update email template by id
283
303
  * @description: Update email template by id
284
304
  */
285
305
  updateEmailTemplateById({ id, body }?: {
286
306
  id: string;
287
307
  body: EmailTemplateReq;
288
- }): Promise<any>;
308
+ }): Promise<EmailTemplateRes>;
289
309
  /**
290
310
  * @param {Object} arg - Arg object.
291
311
  * @param {string} arg.id - Email template id
312
+ * @returns {Promise<EmailTemplateDeleteSuccessRes>} - Success response
292
313
  * @summary: Delete email template by id
293
314
  * @description: Delete email template by id
294
315
  */
295
316
  deleteEmailTemplateById({ id }?: {
296
317
  id: string;
297
- }): Promise<any>;
318
+ }): Promise<EmailTemplateDeleteSuccessRes>;
298
319
  /**
299
320
  * @param {Object} arg - Arg object.
300
321
  * @param {EngineRequest} arg.body
322
+ * @returns {Promise<EngineResponse>} - Success response
301
323
  * @summary: Send email or sms synchronously
302
324
  * @description: Send email or sms synchronously
303
325
  */
304
326
  sendCommunicationSynchronously({ body }?: {
305
327
  body: EngineRequest;
306
- }): Promise<any>;
328
+ }): Promise<EngineResponse>;
307
329
  /**
308
330
  * @param {Object} arg - Arg object.
309
331
  * @param {EngineRequest} arg.body
332
+ * @returns {Promise<EngineResponse>} - Success response
310
333
  * @summary: Send email or sms asynchronously
311
334
  * @description: Send email or sms asynchronously
312
335
  */
313
336
  sendCommunicationAsynchronously({ body }?: {
314
337
  body: EngineRequest;
315
- }): Promise<any>;
338
+ }): Promise<EngineResponse>;
316
339
  /**
317
340
  * @param {Object} arg - Arg object.
318
341
  * @param {number} [arg.pageNo] - Current page no
319
342
  * @param {number} [arg.pageSize] - Current request items count
320
343
  * @param {string} [arg.populate] - Populate fields
344
+ * @returns {Promise<EventSubscriptions>} - Success response
321
345
  * @summary: Get event subscriptions
322
346
  * @description: Get event subscriptions
323
347
  */
@@ -325,7 +349,7 @@ declare class Communication {
325
349
  pageNo?: number;
326
350
  pageSize?: number;
327
351
  populate?: string;
328
- }): Promise<any>;
352
+ }): Promise<EventSubscriptions>;
329
353
  /**
330
354
  * @param {Object} arg - Arg object.
331
355
  * @param {string} arg.companyId - Company id
@@ -346,6 +370,7 @@ declare class Communication {
346
370
  * @param {number} [arg.pageNo] - Current page no
347
371
  * @param {number} [arg.pageSize] - Current request items count
348
372
  * @param {Object} [arg.sort] - To sort based on created_at
373
+ * @returns {Promise<Jobs>} - Success response
349
374
  * @summary: Get jobs
350
375
  * @description: Get jobs
351
376
  */
@@ -353,7 +378,7 @@ declare class Communication {
353
378
  pageNo?: number;
354
379
  pageSize?: number;
355
380
  sort?: any;
356
- }): Promise<any>;
381
+ }): Promise<Jobs>;
357
382
  /**
358
383
  * @param {Object} arg - Arg object.
359
384
  * @param {string} arg.companyId - Company id
@@ -372,17 +397,19 @@ declare class Communication {
372
397
  /**
373
398
  * @param {Object} arg - Arg object.
374
399
  * @param {TriggerJobRequest} arg.body
400
+ * @returns {Promise<TriggerJobResponse>} - Success response
375
401
  * @summary: Trigger campaign job
376
402
  * @description: Trigger campaign job
377
403
  */
378
404
  triggerCampaignJob({ body }?: {
379
405
  body: TriggerJobRequest;
380
- }): Promise<any>;
406
+ }): Promise<TriggerJobResponse>;
381
407
  /**
382
408
  * @param {Object} arg - Arg object.
383
409
  * @param {number} [arg.pageNo] - Current page no
384
410
  * @param {number} [arg.pageSize] - Current request items count
385
411
  * @param {Object} [arg.sort] - To sort based on created_at
412
+ * @returns {Promise<JobLogs>} - Success response
386
413
  * @summary: Get job logs
387
414
  * @description: Get job logs
388
415
  */
@@ -390,7 +417,7 @@ declare class Communication {
390
417
  pageNo?: number;
391
418
  pageSize?: number;
392
419
  sort?: any;
393
- }): Promise<any>;
420
+ }): Promise<JobLogs>;
394
421
  /**
395
422
  * @param {Object} arg - Arg object.
396
423
  * @param {string} arg.companyId - Company id
@@ -412,6 +439,7 @@ declare class Communication {
412
439
  * @param {number} [arg.pageSize] - Current request items count
413
440
  * @param {Object} [arg.sort] - To sort based on _id
414
441
  * @param {Object} [arg.query] -
442
+ * @returns {Promise<Logs>} - Success response
415
443
  * @summary: Get communication logs
416
444
  * @description: Get communication logs
417
445
  */
@@ -420,7 +448,7 @@ declare class Communication {
420
448
  pageSize?: number;
421
449
  sort?: any;
422
450
  query?: any;
423
- }): Promise<any>;
451
+ }): Promise<Logs>;
424
452
  /**
425
453
  * @param {Object} arg - Arg object.
426
454
  * @param {string} arg.companyId - Company id
@@ -441,26 +469,29 @@ declare class Communication {
441
469
  /**
442
470
  * @param {Object} arg - Arg object.
443
471
  * @param {SendOtpCommsReq} arg.body
472
+ * @returns {Promise<SendOtpCommsRes>} - Success response
444
473
  * @summary: Send OTP using email and sms
445
474
  * @description: Send OTP Comms via email and sms
446
475
  */
447
476
  sendOtp({ body }?: {
448
477
  body: SendOtpCommsReq;
449
- }): Promise<any>;
478
+ }): Promise<SendOtpCommsRes>;
450
479
  /**
451
480
  * @param {Object} arg - Arg object.
452
481
  * @param {VerifyOtpCommsReq} arg.body
482
+ * @returns {Promise<VerifyOtpCommsSuccessRes>} - Success response
453
483
  * @summary: Verify OTP sent via email and sms
454
484
  * @description: Verify OTP sent via email and sms
455
485
  */
456
486
  verfiyOtp({ body }?: {
457
487
  body: VerifyOtpCommsReq;
458
- }): Promise<any>;
488
+ }): Promise<VerifyOtpCommsSuccessRes>;
459
489
  /**
460
490
  * @param {Object} arg - Arg object.
461
491
  * @param {number} [arg.pageNo] - Current page no
462
492
  * @param {number} [arg.pageSize] - Current request items count
463
493
  * @param {Object} [arg.sort] - To sort based on created_at
494
+ * @returns {Promise<SmsProviders>} - Success response
464
495
  * @summary: Get sms providers
465
496
  * @description: Get sms providers
466
497
  */
@@ -468,7 +499,7 @@ declare class Communication {
468
499
  pageNo?: number;
469
500
  pageSize?: number;
470
501
  sort?: any;
471
- }): Promise<any>;
502
+ }): Promise<SmsProviders>;
472
503
  /**
473
504
  * @param {Object} arg - Arg object.
474
505
  * @param {string} arg.companyId - Company id
@@ -487,37 +518,41 @@ declare class Communication {
487
518
  /**
488
519
  * @param {Object} arg - Arg object.
489
520
  * @param {SmsProviderReq} arg.body
521
+ * @returns {Promise<SmsProvider>} - Success response
490
522
  * @summary: Create sms provider
491
523
  * @description: Create sms provider
492
524
  */
493
525
  createSmsProvider({ body }?: {
494
526
  body: SmsProviderReq;
495
- }): Promise<any>;
527
+ }): Promise<SmsProvider>;
496
528
  /**
497
529
  * @param {Object} arg - Arg object.
498
530
  * @param {string} arg.id - Sms provider id
531
+ * @returns {Promise<SmsProvider>} - Success response
499
532
  * @summary: Get sms provider by id
500
533
  * @description: Get sms provider by id
501
534
  */
502
535
  getSmsProviderById({ id }?: {
503
536
  id: string;
504
- }): Promise<any>;
537
+ }): Promise<SmsProvider>;
505
538
  /**
506
539
  * @param {Object} arg - Arg object.
507
540
  * @param {string} arg.id - Sms provider id
508
541
  * @param {SmsProviderReq} arg.body
542
+ * @returns {Promise<SmsProvider>} - Success response
509
543
  * @summary: Update sms provider by id
510
544
  * @description: Update sms provider by id
511
545
  */
512
546
  updateSmsProviderById({ id, body }?: {
513
547
  id: string;
514
548
  body: SmsProviderReq;
515
- }): Promise<any>;
549
+ }): Promise<SmsProvider>;
516
550
  /**
517
551
  * @param {Object} arg - Arg object.
518
552
  * @param {number} [arg.pageNo] - Current page no
519
553
  * @param {number} [arg.pageSize] - Current request items count
520
554
  * @param {Object} [arg.sort] - To sort based on created_at
555
+ * @returns {Promise<SmsTemplates>} - Success response
521
556
  * @summary: Get sms templates
522
557
  * @description: Get sms templates
523
558
  */
@@ -525,7 +560,7 @@ declare class Communication {
525
560
  pageNo?: number;
526
561
  pageSize?: number;
527
562
  sort?: any;
528
- }): Promise<any>;
563
+ }): Promise<SmsTemplates>;
529
564
  /**
530
565
  * @param {Object} arg - Arg object.
531
566
  * @param {string} arg.companyId - Company id
@@ -544,46 +579,51 @@ declare class Communication {
544
579
  /**
545
580
  * @param {Object} arg - Arg object.
546
581
  * @param {SmsTemplateReq} arg.body
582
+ * @returns {Promise<SmsTemplateRes>} - Success response
547
583
  * @summary: Create sms template
548
584
  * @description: Create sms template
549
585
  */
550
586
  createSmsTemplate({ body }?: {
551
587
  body: SmsTemplateReq;
552
- }): Promise<any>;
588
+ }): Promise<SmsTemplateRes>;
553
589
  /**
554
590
  * @param {Object} arg - Arg object.
555
591
  * @param {string} arg.id - Sms template id
592
+ * @returns {Promise<SmsTemplate>} - Success response
556
593
  * @summary: Get sms template by id
557
594
  * @description: Get sms template by id
558
595
  */
559
596
  getSmsTemplateById({ id }?: {
560
597
  id: string;
561
- }): Promise<any>;
598
+ }): Promise<SmsTemplate>;
562
599
  /**
563
600
  * @param {Object} arg - Arg object.
564
601
  * @param {string} arg.id - Sms template id
565
602
  * @param {SmsTemplateReq} arg.body
603
+ * @returns {Promise<SmsTemplateRes>} - Success response
566
604
  * @summary: Update sms template by id
567
605
  * @description: Update sms template by id
568
606
  */
569
607
  updateSmsTemplateById({ id, body }?: {
570
608
  id: string;
571
609
  body: SmsTemplateReq;
572
- }): Promise<any>;
610
+ }): Promise<SmsTemplateRes>;
573
611
  /**
574
612
  * @param {Object} arg - Arg object.
575
613
  * @param {string} arg.id - Sms template id
614
+ * @returns {Promise<SmsTemplateDeleteSuccessRes>} - Success response
576
615
  * @summary: Delete sms template by id
577
616
  * @description: Delete sms template by id
578
617
  */
579
618
  deleteSmsTemplateById({ id }?: {
580
619
  id: string;
581
- }): Promise<any>;
620
+ }): Promise<SmsTemplateDeleteSuccessRes>;
582
621
  /**
583
622
  * @param {Object} arg - Arg object.
584
623
  * @param {number} [arg.pageNo] - Current page no
585
624
  * @param {number} [arg.pageSize] - Current request items count
586
625
  * @param {Object} [arg.sort] - To sort based on created_at
626
+ * @returns {Promise<SystemSmsTemplates>} - Success response
587
627
  * @summary: Get system sms templates
588
628
  * @description: Get system sms templates
589
629
  */
@@ -591,7 +631,7 @@ declare class Communication {
591
631
  pageNo?: number;
592
632
  pageSize?: number;
593
633
  sort?: any;
594
- }): Promise<any>;
634
+ }): Promise<SystemSmsTemplates>;
595
635
  /**
596
636
  * @param {Object} arg - Arg object.
597
637
  * @param {string} arg.companyId - Company id