@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,513 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Platform docs](./README.md)
7
-
8
- ## Share Methods
9
- Short link and QR Code
10
-
11
- * [createShortLink](#createshortlink)
12
- * [getShortLinkByHash](#getshortlinkbyhash)
13
- * [getShortLinks](#getshortlinks)
14
- * [updateShortLinkById](#updateshortlinkbyid)
15
-
16
-
17
-
18
- ## Methods with example and description
19
-
20
-
21
-
22
-
23
- ### createShortLink
24
- Create short link
25
-
26
-
27
-
28
- ```javascript
29
- // Promise
30
- const promise = client.application("<APPLICATION_ID>").share.createShortLink({ body : value });
31
-
32
- // Async/Await
33
- const data = await client.application("<APPLICATION_ID>").share.createShortLink({ body : value });
34
- ```
35
-
36
-
37
-
38
-
39
-
40
- | Argument | Type | Required | Description |
41
- | --------- | ----- | -------- | ----------- |
42
- | body | [ShortLinkReq](#ShortLinkReq) | yes | Request body |
43
-
44
-
45
- Create short link
46
-
47
- *Returned Response:*
48
-
49
-
50
-
51
-
52
- [ShortLinkRes](#ShortLinkRes)
53
-
54
- Success
55
-
56
-
57
-
58
-
59
- <details>
60
- <summary><i>&nbsp; Example:</i></summary>
61
-
62
- ```json
63
- {
64
- "url": {
65
- "original": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh",
66
- "short": "https://0icof6vvsf.hostx0.de/l/3qKlnsq-x",
67
- "hash": "3qKlnsq-x"
68
- },
69
- "redirects": {
70
- "ios": {
71
- "type": "web",
72
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
73
- },
74
- "android": {
75
- "type": "web",
76
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
77
- },
78
- "web": {
79
- "type": "web",
80
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
81
- },
82
- "force_web": false
83
- },
84
- "created_by": "team",
85
- "personalized": false,
86
- "app_redirect": false,
87
- "fallback": "web",
88
- "enable_tracking": false,
89
- "active": true,
90
- "count": 0,
91
- "_id": "601a54054c0349592e76c8f3",
92
- "title": "new ",
93
- "meta": {
94
- "type": "brand"
95
- },
96
- "expire_at": null,
97
- "application": "5eda528b97457fe43a733ace",
98
- "user_id": "5e4d01e2c39837ab66144f6d",
99
- "created_at": "2021-02-03T07:43:01.342Z",
100
- "updated_at": "2021-02-03T07:43:01.342Z"
101
- }
102
- ```
103
- </details>
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
- ---
114
-
115
-
116
- ### getShortLinkByHash
117
- Get short link by hash
118
-
119
-
120
-
121
- ```javascript
122
- // Promise
123
- const promise = client.application("<APPLICATION_ID>").share.getShortLinkByHash({ hash : value });
124
-
125
- // Async/Await
126
- const data = await client.application("<APPLICATION_ID>").share.getShortLinkByHash({ hash : value });
127
- ```
128
-
129
-
130
-
131
-
132
-
133
- | Argument | Type | Required | Description |
134
- | --------- | ----- | -------- | ----------- |
135
- | hash | string | yes | Hash of short url |
136
-
137
-
138
-
139
- Get short link by hash
140
-
141
- *Returned Response:*
142
-
143
-
144
-
145
-
146
- [ShortLinkRes](#ShortLinkRes)
147
-
148
- Success
149
-
150
-
151
-
152
-
153
- <details>
154
- <summary><i>&nbsp; Example:</i></summary>
155
-
156
- ```json
157
- {
158
- "url": {
159
- "original": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh",
160
- "short": "https://0icof6vvsf.hostx0.de/l/3qKlnsq-x",
161
- "hash": "3qKlnsq-x"
162
- },
163
- "redirects": {
164
- "ios": {
165
- "type": "web",
166
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
167
- },
168
- "android": {
169
- "type": "web",
170
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
171
- },
172
- "web": {
173
- "type": "web",
174
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
175
- },
176
- "force_web": false
177
- },
178
- "created_by": "team",
179
- "personalized": false,
180
- "app_redirect": false,
181
- "fallback": "web",
182
- "enable_tracking": false,
183
- "active": true,
184
- "count": 0,
185
- "_id": "601a54054c0349592e76c8f3",
186
- "title": "new ",
187
- "meta": {
188
- "type": "brand"
189
- },
190
- "expire_at": null,
191
- "application": "5eda528b97457fe43a733ace",
192
- "user_id": "5e4d01e2c39837ab66144f6d",
193
- "created_at": "2021-02-03T07:43:01.342Z",
194
- "updated_at": "2021-02-03T07:43:01.342Z"
195
- }
196
- ```
197
- </details>
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
- ---
208
-
209
-
210
- ### getShortLinks
211
- Get short links
212
-
213
-
214
-
215
- ```javascript
216
- // Promise
217
- const promise = client.application("<APPLICATION_ID>").share.getShortLinks({ pageNo : value,
218
- pageSize : value,
219
- createdBy : value,
220
- active : value,
221
- q : value });
222
-
223
- // Async/Await
224
- const data = await client.application("<APPLICATION_ID>").share.getShortLinks({ pageNo : value,
225
- pageSize : value,
226
- createdBy : value,
227
- active : value,
228
- q : value });
229
- ```
230
-
231
-
232
-
233
-
234
-
235
- | Argument | Type | Required | Description |
236
- | --------- | ----- | -------- | ----------- |
237
- | pageNo | number | no | Current page number |
238
- | pageSize | number | no | Current page size |
239
- | createdBy | string | no | Short link creator |
240
- | active | string | no | Short link active status |
241
- | q | string | no | Search text for original and short url |
242
-
243
-
244
-
245
- Get short links
246
-
247
- *Returned Response:*
248
-
249
-
250
-
251
-
252
- [ShortLinkList](#ShortLinkList)
253
-
254
- Success
255
-
256
-
257
-
258
-
259
- <details>
260
- <summary><i>&nbsp; Example:</i></summary>
261
-
262
- ```json
263
- {
264
- "items": [
265
- {
266
- "url": {
267
- "original": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh",
268
- "short": "https://0icof6vvsf.hostx0.de/l/3qKlnsq-x",
269
- "hash": "3qKlnsq-x"
270
- },
271
- "redirects": {
272
- "ios": {
273
- "type": "web",
274
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
275
- },
276
- "android": {
277
- "type": "web",
278
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
279
- },
280
- "web": {
281
- "type": "web",
282
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
283
- },
284
- "force_web": false
285
- },
286
- "created_by": "team",
287
- "personalized": false,
288
- "app_redirect": false,
289
- "fallback": "web",
290
- "enable_tracking": false,
291
- "active": true,
292
- "count": 0,
293
- "_id": "601a54054c0349592e76c8f3",
294
- "title": "new ",
295
- "meta": {
296
- "type": "brand"
297
- },
298
- "expire_at": null,
299
- "application": "5eda528b97457fe43a733ace",
300
- "user_id": "5e4d01e2c39837ab66144f6d",
301
- "created_at": "2021-02-03T07:43:01.342Z",
302
- "updated_at": "2021-02-03T07:43:01.342Z"
303
- }
304
- ],
305
- "page": {
306
- "size": 10,
307
- "type": "number",
308
- "page": 1,
309
- "item_total": 30,
310
- "has_next": true
311
- }
312
- }
313
- ```
314
- </details>
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
- ---
325
-
326
-
327
- ### updateShortLinkById
328
- Update short link by id
329
-
330
-
331
-
332
- ```javascript
333
- // Promise
334
- const promise = client.application("<APPLICATION_ID>").share.updateShortLinkById({ id : value,
335
- body : value });
336
-
337
- // Async/Await
338
- const data = await client.application("<APPLICATION_ID>").share.updateShortLinkById({ id : value,
339
- body : value });
340
- ```
341
-
342
-
343
-
344
-
345
-
346
- | Argument | Type | Required | Description |
347
- | --------- | ----- | -------- | ----------- |
348
- | id | string | yes | Short link document identifier |
349
- | body | [ShortLinkReq](#ShortLinkReq) | yes | Request body |
350
-
351
-
352
- Update short link by id
353
-
354
- *Returned Response:*
355
-
356
-
357
-
358
-
359
- [ShortLinkRes](#ShortLinkRes)
360
-
361
- Success
362
-
363
-
364
-
365
-
366
- <details>
367
- <summary><i>&nbsp; Example:</i></summary>
368
-
369
- ```json
370
- {
371
- "url": {
372
- "original": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh",
373
- "short": "https://0icof6vvsf.hostx0.de/l/3qKlnsq-x",
374
- "hash": "3qKlnsq-x"
375
- },
376
- "redirects": {
377
- "ios": {
378
- "type": "web",
379
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
380
- },
381
- "android": {
382
- "type": "web",
383
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
384
- },
385
- "web": {
386
- "type": "web",
387
- "link": "https://0icof6vvsf.hostx0.de/products/?brand=ruosh"
388
- },
389
- "force_web": false
390
- },
391
- "created_by": "team",
392
- "personalized": false,
393
- "app_redirect": false,
394
- "fallback": "web",
395
- "enable_tracking": false,
396
- "active": true,
397
- "count": 0,
398
- "_id": "601a54054c0349592e76c8f3",
399
- "title": "new ",
400
- "meta": {
401
- "type": "brand"
402
- },
403
- "expire_at": null,
404
- "application": "5eda528b97457fe43a733ace",
405
- "user_id": "5e4d01e2c39837ab66144f6d",
406
- "created_at": "2021-02-03T07:43:01.342Z",
407
- "updated_at": "2021-02-03T07:43:01.342Z"
408
- }
409
- ```
410
- </details>
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
- ---
421
-
422
-
423
-
424
- ### Schemas
425
-
426
-
427
- #### [Attribution](#Attribution)
428
-
429
- | Properties | Type | Nullable | Description |
430
- | ---------- | ---- | -------- | ----------- || campaign_cookie_expiry | string | no | |
431
-
432
- ---
433
-
434
- #### [CampaignShortLink](#CampaignShortLink)
435
-
436
- | Properties | Type | Nullable | Description |
437
- | ---------- | ---- | -------- | ----------- || medium | string | no | || source | string | no | |
438
-
439
- ---
440
-
441
- #### [ErrorRes](#ErrorRes)
442
-
443
- | Properties | Type | Nullable | Description |
444
- | ---------- | ---- | -------- | ----------- || message | string | no | |
445
-
446
- ---
447
-
448
- #### [Page](#Page)
449
-
450
- | Properties | Type | Nullable | Description |
451
- | ---------- | ---- | -------- | ----------- || 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 | |
452
-
453
- ---
454
-
455
- #### [RedirectDevice](#RedirectDevice)
456
-
457
- | Properties | Type | Nullable | Description |
458
- | ---------- | ---- | -------- | ----------- || link | string | no | || type | string | no | |
459
-
460
- ---
461
-
462
- #### [Redirects](#Redirects)
463
-
464
- | Properties | Type | Nullable | Description |
465
- | ---------- | ---- | -------- | ----------- || android | [RedirectDevice](#RedirectDevice) | no | || force_web | boolean | no | || ios | [RedirectDevice](#RedirectDevice) | no | || web | [WebRedirect](#WebRedirect) | no | |
466
-
467
- ---
468
-
469
- #### [ShortLinkList](#ShortLinkList)
470
-
471
- | Properties | Type | Nullable | Description |
472
- | ---------- | ---- | -------- | ----------- || items | [[ShortLinkRes](#ShortLinkRes)] | no | || page | [Page](#Page) | no | |
473
-
474
- ---
475
-
476
- #### [ShortLinkReq](#ShortLinkReq)
477
-
478
- | Properties | Type | Nullable | Description |
479
- | ---------- | ---- | -------- | ----------- || active | boolean | no | || attribution | [Attribution](#Attribution) | no | || campaign | [CampaignShortLink](#CampaignShortLink) | no | || count | number | no | || enable_tracking | boolean | no | || expire_at | string | no | || hash | string | no | || personalized | boolean | no | || redirects | [Redirects](#Redirects) | no | || social_media_tags | [SocialMediaTags](#SocialMediaTags) | no | || title | string | yes | || url | string | yes | |
480
-
481
- ---
482
-
483
- #### [ShortLinkRes](#ShortLinkRes)
484
-
485
- | Properties | Type | Nullable | Description |
486
- | ---------- | ---- | -------- | ----------- || _id | string | no | || active | boolean | no | || app_redirect | boolean | no | || application | string | no | || attribution | [Attribution](#Attribution) | no | || campaign | [CampaignShortLink](#CampaignShortLink) | no | || count | number | no | || created_at | string | no | || created_by | string | no | || enable_tracking | boolean | no | || expire_at | string | no | || fallback | string | no | || meta | string | no | || personalized | boolean | no | || redirects | [Redirects](#Redirects) | no | || social_media_tags | [SocialMediaTags](#SocialMediaTags) | no | || title | string | no | || updated_at | string | no | || url | [UrlInfo](#UrlInfo) | no | || user_id | string | no | |
487
-
488
- ---
489
-
490
- #### [SocialMediaTags](#SocialMediaTags)
491
-
492
- | Properties | Type | Nullable | Description |
493
- | ---------- | ---- | -------- | ----------- || description | string | no | || image | string | no | || title | string | no | |
494
-
495
- ---
496
-
497
- #### [UrlInfo](#UrlInfo)
498
-
499
- | Properties | Type | Nullable | Description |
500
- | ---------- | ---- | -------- | ----------- || hash | string | no | || original | string | no | || short | string | no | |
501
-
502
- ---
503
-
504
- #### [WebRedirect](#WebRedirect)
505
-
506
- | Properties | Type | Nullable | Description |
507
- | ---------- | ---- | -------- | ----------- || link | string | no | || type | string | no | |
508
-
509
- ---
510
-
511
-
512
-
513
-