@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.
- package/README.md +51 -2
- package/index.d.ts +7 -4
- package/index.js +22 -7
- package/package.json +23 -14
- package/partner.d.ts +4 -0
- package/partner.js +7 -0
- package/sdk/application/ApplicationAPIClient.js +2 -4
- package/sdk/application/Cart/CartApplicationClient.js +29 -28
- package/sdk/application/Cart/CartApplicationModel.js +3 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
- package/sdk/application/Catalog/CatalogApplicationModel.js +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -4
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
- package/sdk/application/Content/ContentApplicationClient.js +26 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
- package/sdk/application/Lead/LeadApplicationClient.js +10 -9
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
- package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
- package/sdk/application/Order/OrderApplicationClient.js +15 -14
- package/sdk/application/Order/OrderApplicationModel.js +9 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
- package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
- package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
- package/sdk/application/Share/ShareApplicationClient.js +10 -9
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
- package/sdk/application/User/UserApplicationClient.js +38 -37
- package/sdk/common/AxiosHelper.js +17 -6
- package/sdk/common/BaseOAuthClient.d.ts +17 -0
- package/sdk/common/BaseOAuthClient.js +67 -0
- package/sdk/common/RequestSigner.js +0 -5
- package/sdk/partner/OAuthClient.d.ts +14 -0
- package/sdk/partner/OAuthClient.js +112 -0
- package/sdk/partner/PartnerAPIClient.d.ts +12 -0
- package/sdk/partner/PartnerAPIClient.js +42 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +30 -0
- package/sdk/partner/PartnerConfig.js +39 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +137 -2
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +4 -0
- package/sdk/platform/Billing/BillingPlatformModel.js +44 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +2 -0
- package/sdk/platform/Billing/BillingPlatformValidator.js +15 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
- package/sdk/platform/Cart/CartPlatformModel.js +7 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9 -9
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
- package/sdk/platform/Common/CommonPlatformClient.js +7 -18
- package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
- package/sdk/platform/OAuthClient.js +3 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformClient.js +16 -3
- package/sdk/platform/Order/OrderPlatformModel.js +1 -0
- package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
- package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +5 -1
- package/sdk/platform/PlatformApplicationClient.js +4 -0
- package/sdk/platform/PlatformClient.d.ts +51 -12
- package/sdk/platform/PlatformClient.js +54 -11
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +17 -19
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +88 -83
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +8 -9
- package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
- package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
- package/.github/workflows/on_create_release.yml +0 -23
- package/.github/workflows/on_merge_main.yml +0 -38
- package/.github/workflows/on_pull_request.yml +0 -35
- package/.prettierrc +0 -5
- package/documentation/application/CART.md +0 -8771
- package/documentation/application/CATALOG.md +0 -8690
- package/documentation/application/COMMON.md +0 -325
- package/documentation/application/COMMUNICATION.md +0 -387
- package/documentation/application/CONFIGURATION.md +0 -2212
- package/documentation/application/CONTENT.md +0 -2629
- package/documentation/application/FILESTORAGE.md +0 -442
- package/documentation/application/LEAD.md +0 -1549
- package/documentation/application/LOGISTIC.md +0 -689
- package/documentation/application/ORDER.md +0 -2937
- package/documentation/application/PAYMENT.md +0 -4475
- package/documentation/application/POSCART.md +0 -9375
- package/documentation/application/README.md +0 -21
- package/documentation/application/REWARDS.md +0 -554
- package/documentation/application/SHARE.md +0 -635
- package/documentation/application/THEME.md +0 -5517
- package/documentation/application/USER.md +0 -3798
- package/documentation/platform/ANALYTICS.md +0 -1012
- package/documentation/platform/AUDITTRAIL.md +0 -493
- package/documentation/platform/BILLING.md +0 -1889
- package/documentation/platform/CART.md +0 -4711
- package/documentation/platform/CATALOG.md +0 -20522
- package/documentation/platform/COMMON.md +0 -325
- package/documentation/platform/COMMUNICATION.md +0 -4970
- package/documentation/platform/COMPANYPROFILE.md +0 -1646
- package/documentation/platform/CONFIGURATION.md +0 -6316
- package/documentation/platform/CONTENT.md +0 -8364
- package/documentation/platform/DISCOUNT.md +0 -767
- package/documentation/platform/FILESTORAGE.md +0 -945
- package/documentation/platform/INVENTORY.md +0 -1136
- package/documentation/platform/LEAD.md +0 -4394
- package/documentation/platform/ORDER.md +0 -6525
- package/documentation/platform/PARTNER.md +0 -193
- package/documentation/platform/PAYMENT.md +0 -3138
- package/documentation/platform/README.md +0 -27
- package/documentation/platform/REWARDS.md +0 -919
- package/documentation/platform/SHARE.md +0 -513
- package/documentation/platform/THEME.md +0 -35446
- package/documentation/platform/USER.md +0 -2174
- package/documentation/platform/WEBHOOK.md +0 -485
- package/documentation/public/CONFIGURATION.md +0 -325
- package/documentation/public/INVENTORY.md +0 -508
- package/documentation/public/WEBHOOK.md +0 -246
- package/jest.config.d.ts +0 -4
- package/jest.config.js +0 -6
- package/tests/application/catalog.spec.js +0 -54
- package/tests/common/action-url.spec.js +0 -35
- package/tests/common/schema/action-url.json +0 -178
- package/tests/common/schema/url-action.json +0 -683
- package/tests/common/url-action.spec.js +0 -48
- package/tests/helpers/cookie.helper.js +0 -31
- package/tests/helpers/oauth.helper.js +0 -43
- package/tests/platform/catalog.spec.js +0 -49
- package/tests/public/location.spec.js +0 -39
|
@@ -1,442 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
##### [Back to Application docs](./README.md)
|
|
7
|
-
|
|
8
|
-
## FileStorage Methods
|
|
9
|
-
File Storage
|
|
10
|
-
|
|
11
|
-
* [upload](#upload)
|
|
12
|
-
|
|
13
|
-
* [completeUpload](#completeupload)
|
|
14
|
-
* [signUrls](#signurls)
|
|
15
|
-
* [startUpload](#startupload)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
## Methods with example and description
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### upload
|
|
25
|
-
method which internally calls `startUpload` and `completeUpload` method to handle the whole file upload flow.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```javascript
|
|
29
|
-
// Promise
|
|
30
|
-
const promise = fileStorage.upload({
|
|
31
|
-
data,
|
|
32
|
-
file_name,
|
|
33
|
-
content_type,
|
|
34
|
-
namespace,
|
|
35
|
-
size,
|
|
36
|
-
tags,
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
// Async/Await
|
|
40
|
-
const data = await fileStorage.upload({
|
|
41
|
-
data,
|
|
42
|
-
file_name,
|
|
43
|
-
content_type,
|
|
44
|
-
namespace,
|
|
45
|
-
size,
|
|
46
|
-
tags,
|
|
47
|
-
});
|
|
48
|
-
```
|
|
49
|
-
| Argument | Type | Required | Description |
|
|
50
|
-
| --------- | ----- | -------- | ----------- |
|
|
51
|
-
| data | file | yes | File which needs to be uploaded |
|
|
52
|
-
| file_name | string | yes | Name of the file |
|
|
53
|
-
| content_type | string | yes | type of file |
|
|
54
|
-
| namespace | string | yes | Name of the bucket created for storing objects |
|
|
55
|
-
| size | number | yes | File size |
|
|
56
|
-
| tags | [string] | yes | |
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Use this API to perform the upload of an arbitrarily sized buffer or blob.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
*Returned Response:*
|
|
64
|
-
|
|
65
|
-
[CompleteResponse](#CompleteResponse)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<details>
|
|
70
|
-
<summary><i> Example:</i></summary>
|
|
71
|
-
|
|
72
|
-
```json
|
|
73
|
-
{
|
|
74
|
-
"file_name":"logo.png",
|
|
75
|
-
"file_path":"/path/to/file/logo.png",
|
|
76
|
-
"success":true,
|
|
77
|
-
"namespace":"namespace",
|
|
78
|
-
"content_type":"image/png",
|
|
79
|
-
"size":1024,
|
|
80
|
-
"operation":"putObject",
|
|
81
|
-
"tags":[],
|
|
82
|
-
"cdn":{
|
|
83
|
-
"url":"https://cdn.pixelbin.io/v2/logo.png",
|
|
84
|
-
"absolute_url":"https://cdn.pixelbin.io/v2/logo.png",
|
|
85
|
-
"relative_url":"logo.png"
|
|
86
|
-
},
|
|
87
|
-
"_id":"63dbbxxxxxxxxxxxxdecc69f",
|
|
88
|
-
"created_by":{
|
|
89
|
-
"username":"username_gofynd_com"
|
|
90
|
-
},
|
|
91
|
-
"created_on":"2023-01-01T12:00:00.000Z",
|
|
92
|
-
"modified_on":"2023-01-01T00:00:00.000Z"
|
|
93
|
-
}
|
|
94
|
-
```
|
|
95
|
-
</details>
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
### completeUpload
|
|
104
|
-
Completes the upload process. After successfully uploading a file, call this API to finish the upload process.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
```javascript
|
|
109
|
-
// Promise
|
|
110
|
-
const promise = fileStorage.completeUpload({ namespace : value,
|
|
111
|
-
body : value });
|
|
112
|
-
|
|
113
|
-
// Async/Await
|
|
114
|
-
const data = await fileStorage.completeUpload({ namespace : value,
|
|
115
|
-
body : value });
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
| Argument | Type | Required | Description |
|
|
123
|
-
| --------- | ----- | -------- | ----------- |
|
|
124
|
-
| namespace | string | yes | Name of the bucket created for storing objects. |
|
|
125
|
-
| body | [StartResponse](#StartResponse) | yes | Request body |
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
Use this API to perform the third step of uploading (i.e. **Complete**) an arbitrarily sized buffer or blob.
|
|
129
|
-
|
|
130
|
-
The three major steps are:
|
|
131
|
-
* Start
|
|
132
|
-
* Upload
|
|
133
|
-
* Complete
|
|
134
|
-
|
|
135
|
-
### Start
|
|
136
|
-
Initiates the assets upload using `startUpload`.
|
|
137
|
-
It returns a storage link in response.
|
|
138
|
-
|
|
139
|
-
### Upload
|
|
140
|
-
Use the storage link to upload a file (Buffer or Blob) to the File Storage.
|
|
141
|
-
Make a `PUT` request on storage link received from `startUpload` API with the file (Buffer or Blob) in the request body.
|
|
142
|
-
|
|
143
|
-
### Complete
|
|
144
|
-
After successfully upload, call the `completeUpload` API to finish the upload process.
|
|
145
|
-
This operation will return the URL of the uploaded file.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
*Returned Response:*
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
[CompleteResponse](#CompleteResponse)
|
|
154
|
-
|
|
155
|
-
Success
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
<details>
|
|
161
|
-
<summary><i> Example:</i></summary>
|
|
162
|
-
|
|
163
|
-
```json
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
</details>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
### signUrls
|
|
180
|
-
Explain here
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
```javascript
|
|
185
|
-
// Promise
|
|
186
|
-
const promise = fileStorage.signUrls({ body : value });
|
|
187
|
-
|
|
188
|
-
// Async/Await
|
|
189
|
-
const data = await fileStorage.signUrls({ body : value });
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
| Argument | Type | Required | Description |
|
|
197
|
-
| --------- | ----- | -------- | ----------- |
|
|
198
|
-
| body | [SignUrlRequest](#SignUrlRequest) | yes | Request body |
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
Describe here
|
|
202
|
-
|
|
203
|
-
*Returned Response:*
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
[SignUrlResponse](#SignUrlResponse)
|
|
209
|
-
|
|
210
|
-
Success
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<details>
|
|
216
|
-
<summary><i> Example:</i></summary>
|
|
217
|
-
|
|
218
|
-
```json
|
|
219
|
-
|
|
220
|
-
```
|
|
221
|
-
</details>
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
### startUpload
|
|
235
|
-
Initiates an upload and returns a storage link that is valid for 30 minutes. You can use the storage link to make subsequent upload request with file buffer or blob.
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
```javascript
|
|
240
|
-
// Promise
|
|
241
|
-
const promise = fileStorage.startUpload({ namespace : value,
|
|
242
|
-
body : value });
|
|
243
|
-
|
|
244
|
-
// Async/Await
|
|
245
|
-
const data = await fileStorage.startUpload({ namespace : value,
|
|
246
|
-
body : value });
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
| Argument | Type | Required | Description |
|
|
254
|
-
| --------- | ----- | -------- | ----------- |
|
|
255
|
-
| namespace | string | yes | Name of the bucket created for storing objects. |
|
|
256
|
-
| body | [StartRequest](#StartRequest) | yes | Request body |
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
Use this API to perform the first step of uploading (i.e. **Start**) an arbitrarily sized buffer or blob.
|
|
260
|
-
|
|
261
|
-
The three major steps are:
|
|
262
|
-
* Start
|
|
263
|
-
* Upload
|
|
264
|
-
* Complete
|
|
265
|
-
|
|
266
|
-
### Start
|
|
267
|
-
Initiates the assets upload using `startUpload`.
|
|
268
|
-
It returns a storage link in response.
|
|
269
|
-
|
|
270
|
-
### Upload
|
|
271
|
-
Use the storage link to upload a file (Buffer or Blob) to the File Storage.
|
|
272
|
-
Make a `PUT` request on storage link received from `startUpload` API with the file (Buffer or Blob) in the request body.
|
|
273
|
-
|
|
274
|
-
### Complete
|
|
275
|
-
After successfully upload, call the `completeUpload` API to finish the upload process.
|
|
276
|
-
This operation will return the URL of the uploaded file.
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
*Returned Response:*
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
[StartResponse](#StartResponse)
|
|
285
|
-
|
|
286
|
-
Success. Next, call the `completeUpload` API and pass the response payload of this API to finish the upload process.
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
<details>
|
|
292
|
-
<summary><i> Example:</i></summary>
|
|
293
|
-
|
|
294
|
-
```json
|
|
295
|
-
|
|
296
|
-
```
|
|
297
|
-
</details>
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
---
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
### Schemas
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
#### [BrowseResponse](#BrowseResponse)
|
|
315
|
-
|
|
316
|
-
| Properties | Type | Nullable | Description |
|
|
317
|
-
| ---------- | ---- | -------- | ----------- || items | [[DbRecord](#DbRecord)] | yes | || page | [Page](#Page) | yes | |
|
|
318
|
-
|
|
319
|
-
---
|
|
320
|
-
|
|
321
|
-
#### [BulkRequest](#BulkRequest)
|
|
322
|
-
|
|
323
|
-
| Properties | Type | Nullable | Description |
|
|
324
|
-
| ---------- | ---- | -------- | ----------- || configuration | [ReqConfiguration](#ReqConfiguration) | no | || destination | [Destination](#Destination) | yes | || urls | [string] | yes | |
|
|
325
|
-
|
|
326
|
-
---
|
|
327
|
-
|
|
328
|
-
#### [BulkUploadResponse](#BulkUploadResponse)
|
|
329
|
-
|
|
330
|
-
| Properties | Type | Nullable | Description |
|
|
331
|
-
| ---------- | ---- | -------- | ----------- || task | [CopyFileTask](#CopyFileTask) | yes | || tracking_url | string | yes | |
|
|
332
|
-
|
|
333
|
-
---
|
|
334
|
-
|
|
335
|
-
#### [CDN](#CDN)
|
|
336
|
-
|
|
337
|
-
| Properties | Type | Nullable | Description |
|
|
338
|
-
| ---------- | ---- | -------- | ----------- || absolute_url | string | no | || relative_url | string | no | || url | string | yes | |
|
|
339
|
-
|
|
340
|
-
---
|
|
341
|
-
|
|
342
|
-
#### [CompleteResponse](#CompleteResponse)
|
|
343
|
-
|
|
344
|
-
| Properties | Type | Nullable | Description |
|
|
345
|
-
| ---------- | ---- | -------- | ----------- || _id | string | yes | || cdn | [CDN](#CDN) | yes | || content_type | string | yes | || created_on | string | yes | || file_name | string | yes | || file_path | string | yes | || modified_on | string | yes | || namespace | string | yes | || operation | string | yes | || size | number | yes | || success | boolean | yes | || tags | [string] | no | || upload | [Upload](#Upload) | yes | |
|
|
346
|
-
|
|
347
|
-
---
|
|
348
|
-
|
|
349
|
-
#### [CopyFileTask](#CopyFileTask)
|
|
350
|
-
|
|
351
|
-
| Properties | Type | Nullable | Description |
|
|
352
|
-
| ---------- | ---- | -------- | ----------- || attempts_made | number | yes | || data | [BulkRequest](#BulkRequest) | yes | || delay | number | yes | || finished_on | number | yes | || id | string | yes | || name | string | yes | || opts | [Opts](#Opts) | yes | || processed_on | number | yes | || progress | number | yes | || stacktrace | [string] | no | || timestamp | number | yes | |
|
|
353
|
-
|
|
354
|
-
---
|
|
355
|
-
|
|
356
|
-
#### [DbRecord](#DbRecord)
|
|
357
|
-
|
|
358
|
-
| Properties | Type | Nullable | Description |
|
|
359
|
-
| ---------- | ---- | -------- | ----------- || _id | string | yes | || cdn | [CDN](#CDN) | yes | || content_type | string | yes | || created_on | string | yes | || file_name | string | yes | || file_path | string | yes | || modified_on | string | yes | || namespace | string | yes | || operation | string | no | || success | boolean | yes | || tags | [string] | yes | || upload | [Upload](#Upload) | yes | |
|
|
360
|
-
|
|
361
|
-
---
|
|
362
|
-
|
|
363
|
-
#### [Destination](#Destination)
|
|
364
|
-
|
|
365
|
-
| Properties | Type | Nullable | Description |
|
|
366
|
-
| ---------- | ---- | -------- | ----------- || basepath | string | no | || namespace | string | yes | || rewrite | string | yes | |
|
|
367
|
-
|
|
368
|
-
---
|
|
369
|
-
|
|
370
|
-
#### [FailedResponse](#FailedResponse)
|
|
371
|
-
|
|
372
|
-
| Properties | Type | Nullable | Description |
|
|
373
|
-
| ---------- | ---- | -------- | ----------- || message | string | yes | |
|
|
374
|
-
|
|
375
|
-
---
|
|
376
|
-
|
|
377
|
-
#### [Opts](#Opts)
|
|
378
|
-
|
|
379
|
-
| Properties | Type | Nullable | Description |
|
|
380
|
-
| ---------- | ---- | -------- | ----------- || attempts | number | no | || delay | number | no | || timestamp | number | no | |
|
|
381
|
-
|
|
382
|
-
---
|
|
383
|
-
|
|
384
|
-
#### [Page](#Page)
|
|
385
|
-
|
|
386
|
-
| Properties | Type | Nullable | Description |
|
|
387
|
-
| ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || has_previous | boolean | no | || item_total | number | no | || next_id | string | no | || size | number | no | || type | number | yes | |
|
|
388
|
-
|
|
389
|
-
---
|
|
390
|
-
|
|
391
|
-
#### [ReqConfiguration](#ReqConfiguration)
|
|
392
|
-
|
|
393
|
-
| Properties | Type | Nullable | Description |
|
|
394
|
-
| ---------- | ---- | -------- | ----------- || concurrency | number | no | |
|
|
395
|
-
|
|
396
|
-
---
|
|
397
|
-
|
|
398
|
-
#### [SignUrlRequest](#SignUrlRequest)
|
|
399
|
-
|
|
400
|
-
| Properties | Type | Nullable | Description |
|
|
401
|
-
| ---------- | ---- | -------- | ----------- || expiry | number | yes | || urls | [string] | yes | |
|
|
402
|
-
|
|
403
|
-
---
|
|
404
|
-
|
|
405
|
-
#### [SignUrlResponse](#SignUrlResponse)
|
|
406
|
-
|
|
407
|
-
| Properties | Type | Nullable | Description |
|
|
408
|
-
| ---------- | ---- | -------- | ----------- || urls | [[Urls](#Urls)] | yes | |
|
|
409
|
-
|
|
410
|
-
---
|
|
411
|
-
|
|
412
|
-
#### [StartRequest](#StartRequest)
|
|
413
|
-
|
|
414
|
-
| Properties | Type | Nullable | Description |
|
|
415
|
-
| ---------- | ---- | -------- | ----------- || content_type | string | yes | || file_name | string | yes | || params | string | no | || size | number | yes | || tags | [string] | no | |
|
|
416
|
-
|
|
417
|
-
---
|
|
418
|
-
|
|
419
|
-
#### [StartResponse](#StartResponse)
|
|
420
|
-
|
|
421
|
-
| Properties | Type | Nullable | Description |
|
|
422
|
-
| ---------- | ---- | -------- | ----------- || cdn | [CDN](#CDN) | yes | || content_type | string | yes | || file_name | string | yes | || file_path | string | yes | || method | string | no | || namespace | string | yes | || operation | string | yes | || size | number | yes | || tags | [string] | no | || upload | [Upload](#Upload) | yes | |
|
|
423
|
-
|
|
424
|
-
---
|
|
425
|
-
|
|
426
|
-
#### [Upload](#Upload)
|
|
427
|
-
|
|
428
|
-
| Properties | Type | Nullable | Description |
|
|
429
|
-
| ---------- | ---- | -------- | ----------- || expiry | number | yes | || url | string | yes | |
|
|
430
|
-
|
|
431
|
-
---
|
|
432
|
-
|
|
433
|
-
#### [Urls](#Urls)
|
|
434
|
-
|
|
435
|
-
| Properties | Type | Nullable | Description |
|
|
436
|
-
| ---------- | ---- | -------- | ----------- || expiry | number | yes | || signed_url | string | yes | || url | string | yes | |
|
|
437
|
-
|
|
438
|
-
---
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|