@gofynd/fdk-client-javascript 0.1.35 → 0.1.37
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 +1 -1
- package/documentation/application/CART.md +272 -249
- package/documentation/application/CATALOG.md +417 -413
- package/documentation/application/COMMON.md +4 -0
- package/documentation/application/COMMUNICATION.md +4 -0
- package/documentation/application/CONFIGURATION.md +4 -0
- package/documentation/application/CONTENT.md +7 -20
- package/documentation/application/FILESTORAGE.md +85 -0
- package/documentation/application/LEAD.md +6 -2
- package/documentation/application/LOGISTIC.md +427 -101
- package/documentation/application/ORDER.md +292 -288
- package/documentation/application/PAYMENT.md +445 -259
- package/documentation/application/POSCART.md +309 -286
- package/documentation/application/README.md +1 -1
- package/documentation/application/REWARDS.md +153 -160
- package/documentation/application/SHARE.md +4 -0
- package/documentation/application/THEME.md +4 -0
- package/documentation/application/USER.md +4 -0
- package/documentation/platform/ANALYTICS.md +4 -0
- package/documentation/platform/AUDITTRAIL.md +6 -2
- package/documentation/platform/BILLING.md +4 -0
- package/documentation/platform/CART.md +476 -459
- package/documentation/platform/CATALOG.md +4138 -2968
- package/documentation/platform/COMMON.md +4 -0
- package/documentation/platform/COMMUNICATION.md +4 -0
- package/documentation/platform/COMPANYPROFILE.md +258 -206
- package/documentation/platform/CONFIGURATION.md +4 -0
- package/documentation/platform/CONTENT.md +8 -21
- package/documentation/platform/DISCOUNT.md +4 -0
- package/documentation/platform/FILESTORAGE.md +85 -0
- package/documentation/platform/INVENTORY.md +4 -0
- package/documentation/platform/LEAD.md +6 -2
- package/documentation/platform/ORDER.md +6298 -1448
- package/documentation/platform/PARTNER.md +12 -8
- package/documentation/platform/PAYMENT.md +107 -103
- package/documentation/platform/README.md +2 -2
- package/documentation/platform/REWARDS.md +219 -152
- package/documentation/platform/SHARE.md +4 -0
- package/documentation/platform/THEME.md +4 -0
- package/documentation/platform/USER.md +4 -0
- package/documentation/platform/WEBHOOK.md +4 -0
- package/documentation/public/CONFIGURATION.md +4 -0
- package/documentation/public/INVENTORY.md +4 -0
- package/documentation/public/WEBHOOK.md +4 -0
- package/package.json +2 -2
- package/sdk/application/ApplicationAPIClient.js +3 -0
- package/sdk/application/ApplicationClient.d.ts +1 -0
- package/sdk/application/ApplicationClient.js +11 -1
- package/sdk/application/ApplicationConfig.d.ts +1 -0
- package/sdk/application/ApplicationConfig.js +1 -0
- package/sdk/application/ApplicationModels.d.ts +94 -85
- package/sdk/application/ApplicationModels.js +1909 -1792
- package/sdk/application/client/CartApplicationClient.d.ts +36 -36
- package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
- package/sdk/application/client/CatalogApplicationClient.js +16 -16
- package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
- package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
- package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
- package/sdk/application/client/FileStorageApplicationClient.js +2 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
- package/sdk/application/client/LogisticApplicationClient.d.ts +32 -21
- package/sdk/application/client/LogisticApplicationClient.js +62 -27
- package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
- package/sdk/application/client/OrderApplicationClient.js +1 -1
- package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
- package/sdk/application/client/PaymentApplicationClient.js +66 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
- package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
- package/sdk/application/client/RewardsApplicationClient.js +77 -77
- package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
- package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/client/UserApplicationClient.d.ts +63 -63
- package/sdk/application/models/CatalogValidator.d.ts +1 -1
- package/sdk/application/models/CatalogValidator.js +2 -2
- package/sdk/application/models/LogisticValidator.d.ts +2 -1
- package/sdk/application/models/LogisticValidator.js +11 -6
- package/sdk/application/models/PaymentValidator.d.ts +2 -0
- package/sdk/application/models/PaymentValidator.js +12 -0
- package/sdk/application/models/RewardsValidator.d.ts +3 -3
- package/sdk/application/models/RewardsValidator.js +12 -12
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +7962 -6505
- package/sdk/platform/PlatformApplicationClient.js +4377 -3635
- package/sdk/platform/PlatformApplicationModels.d.ts +26 -31
- package/sdk/platform/PlatformApplicationModels.js +5530 -4134
- package/sdk/platform/PlatformClient.d.ts +3495 -2780
- package/sdk/platform/PlatformClient.js +3985 -3108
- package/sdk/platform/PlatformModels.d.ts +354 -273
- package/sdk/platform/PlatformModels.js +5635 -4211
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
- package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
- package/sdk/platform/client/CatalogPlatformClient.d.ts +222 -154
- package/sdk/platform/client/CatalogPlatformClient.js +473 -295
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
- package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
- package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
- package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
- package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
- package/sdk/platform/client/OrderPlatformClient.js +1551 -247
- package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
- package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/models/CatalogValidator.d.ts +26 -22
- package/sdk/platform/models/CatalogValidator.js +109 -72
- package/sdk/platform/models/OrderValidator.d.ts +43 -11
- package/sdk/platform/models/OrderValidator.js +312 -51
- package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
- package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
- package/tests/common/schema/action-url.json +15 -0
- package/tests/common/schema/url-action.json +16 -0
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Common Methods
|
|
8
9
|
Application configuration apis
|
|
10
|
+
|
|
9
11
|
* [searchApplication](#searchapplication)
|
|
10
12
|
* [getLocations](#getlocations)
|
|
11
13
|
|
|
@@ -14,6 +16,8 @@ Application configuration apis
|
|
|
14
16
|
## Methods with example and description
|
|
15
17
|
|
|
16
18
|
|
|
19
|
+
|
|
20
|
+
|
|
17
21
|
### searchApplication
|
|
18
22
|
Search Application
|
|
19
23
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Communication Methods
|
|
8
9
|
Manages email, sms, push notifications sent to users
|
|
10
|
+
|
|
9
11
|
* [getCommunicationConsent](#getcommunicationconsent)
|
|
10
12
|
* [upsertCommunicationConsent](#upsertcommunicationconsent)
|
|
11
13
|
* [upsertAppPushtoken](#upsertapppushtoken)
|
|
@@ -15,6 +17,8 @@ Manages email, sms, push notifications sent to users
|
|
|
15
17
|
## Methods with example and description
|
|
16
18
|
|
|
17
19
|
|
|
20
|
+
|
|
21
|
+
|
|
18
22
|
### getCommunicationConsent
|
|
19
23
|
Get communication consent
|
|
20
24
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Configuration Methods
|
|
8
9
|
Application configuration apis
|
|
10
|
+
|
|
9
11
|
* [getApplication](#getapplication)
|
|
10
12
|
* [getOwnerInfo](#getownerinfo)
|
|
11
13
|
* [getBasicDetails](#getbasicdetails)
|
|
@@ -28,6 +30,8 @@ Application configuration apis
|
|
|
28
30
|
## Methods with example and description
|
|
29
31
|
|
|
30
32
|
|
|
33
|
+
|
|
34
|
+
|
|
31
35
|
### getApplication
|
|
32
36
|
Get current application details
|
|
33
37
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Content Methods
|
|
8
9
|
Content System
|
|
10
|
+
|
|
9
11
|
* [getAnnouncements](#getannouncements)
|
|
10
12
|
* [getBlog](#getblog)
|
|
11
13
|
* [getBlogs](#getblogs)
|
|
@@ -31,6 +33,8 @@ Content System
|
|
|
31
33
|
## Methods with example and description
|
|
32
34
|
|
|
33
35
|
|
|
36
|
+
|
|
37
|
+
|
|
34
38
|
### getAnnouncements
|
|
35
39
|
Get live announcements
|
|
36
40
|
|
|
@@ -2313,26 +2317,6 @@ Success. Returns a list of pages along with their details. Check the example sho
|
|
|
2313
2317
|
|
|
2314
2318
|
#### [NavigationReference](#NavigationReference)
|
|
2315
2319
|
|
|
2316
|
-
| Properties | Type | Nullable | Description |
|
|
2317
|
-
| ---------- | ---- | -------- | ----------- |
|
|
2318
|
-
| acl | [string] | no | |
|
|
2319
|
-
| tags | [string] | no | |
|
|
2320
|
-
| _locale_language | [LocaleLanguage](#LocaleLanguage) | no | |
|
|
2321
|
-
| image | string | no | |
|
|
2322
|
-
| type | string | no | |
|
|
2323
|
-
| action | [Action](#Action) | no | |
|
|
2324
|
-
| active | boolean | no | |
|
|
2325
|
-
| display | string | no | |
|
|
2326
|
-
| sort_order | number | no | |
|
|
2327
|
-
| sub_navigation | [[SubNavigationReference](#SubNavigationReference)] | no | |
|
|
2328
|
-
|
|
2329
|
-
---
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
#### [SubNavigationReference](#SubNavigationReference)
|
|
2335
|
-
|
|
2336
2320
|
| Properties | Type | Nullable | Description |
|
|
2337
2321
|
| ---------- | ---- | -------- | ----------- |
|
|
2338
2322
|
| acl | [string] | no | |
|
|
@@ -2479,6 +2463,7 @@ Success. Returns a list of pages along with their details. Check the example sho
|
|
|
2479
2463
|
| url | string | no | |
|
|
2480
2464
|
| position | string | no | |
|
|
2481
2465
|
| attributes | string | no | |
|
|
2466
|
+
| pages | [string] | no | |
|
|
2482
2467
|
| content | string | no | |
|
|
2483
2468
|
|
|
2484
2469
|
---
|
|
@@ -3264,6 +3249,7 @@ Success. Returns a list of pages along with their details. Check the example sho
|
|
|
3264
3249
|
| position | string | no | |
|
|
3265
3250
|
| attributes | string | no | |
|
|
3266
3251
|
| content | string | no | |
|
|
3252
|
+
| pages | [string] | no | |
|
|
3267
3253
|
| __source | [TagSourceSchema](#TagSourceSchema) | no | |
|
|
3268
3254
|
|
|
3269
3255
|
---
|
|
@@ -3320,6 +3306,7 @@ Success. Returns a list of pages along with their details. Check the example sho
|
|
|
3320
3306
|
| productRequest | product-request | Symbolic link for Product Request: /product-request/ |
|
|
3321
3307
|
| products | products | Symbolic link for Products: /products/ |
|
|
3322
3308
|
| profile | profile | Symbolic link for Profile: /profile |
|
|
3309
|
+
| profileOrderShipment | profile-order-shipment | Symbolic link for profile orders shipment: /profile/orders/shipment/:shipmentid |
|
|
3323
3310
|
| profileBasic | profile-basic | Symbolic link for Basic Profile: /profile/details |
|
|
3324
3311
|
| profileCompany | profile-company | Symbolic link for Profile Company: /profile/company |
|
|
3325
3312
|
| profileEmails | profile-emails | Symbolic link for Profile Emails: /profile/email |
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## FileStorage Methods
|
|
8
9
|
File Storage
|
|
10
|
+
|
|
11
|
+
* [upload](#upload)
|
|
12
|
+
|
|
9
13
|
* [startUpload](#startupload)
|
|
10
14
|
* [completeUpload](#completeupload)
|
|
11
15
|
* [signUrls](#signurls)
|
|
@@ -15,6 +19,87 @@ File Storage
|
|
|
15
19
|
## Methods with example and description
|
|
16
20
|
|
|
17
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
|
+
|
|
18
103
|
### startUpload
|
|
19
104
|
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.
|
|
20
105
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Lead Methods
|
|
8
9
|
Handles communication between Staff and Users
|
|
10
|
+
|
|
9
11
|
* [getTicket](#getticket)
|
|
10
12
|
* [createHistory](#createhistory)
|
|
11
13
|
* [createTicket](#createticket)
|
|
@@ -19,6 +21,8 @@ Handles communication between Staff and Users
|
|
|
19
21
|
## Methods with example and description
|
|
20
22
|
|
|
21
23
|
|
|
24
|
+
|
|
25
|
+
|
|
22
26
|
### getTicket
|
|
23
27
|
Get Ticket with the specific id
|
|
24
28
|
|
|
@@ -1443,7 +1447,7 @@ Success
|
|
|
1443
1447
|
| Properties | Type | Nullable | Description |
|
|
1444
1448
|
| ---------- | ---- | -------- | ----------- |
|
|
1445
1449
|
| message | string | yes | Success message for form submission |
|
|
1446
|
-
| ticket | [Ticket](#Ticket) |
|
|
1450
|
+
| ticket | [Ticket](#Ticket) | no | Ticket created on form submission |
|
|
1447
1451
|
|
|
1448
1452
|
---
|
|
1449
1453
|
|
|
@@ -1789,7 +1793,7 @@ Success
|
|
|
1789
1793
|
| created_on | [CreatedOn](#CreatedOn) | no | Details of company and application realated to the ticket |
|
|
1790
1794
|
| response_id | string | no | Details of company and application realated to the ticket |
|
|
1791
1795
|
| content | [TicketContent](#TicketContent) | no | Ticket conetent details |
|
|
1792
|
-
| category |
|
|
1796
|
+
| category | [TicketCategory](#TicketCategory) | yes | Category assigned to the ticket |
|
|
1793
1797
|
| sub_category | string | no | Sub-category assigned to the ticket |
|
|
1794
1798
|
| source | [TicketSourceEnum](#TicketSourceEnum) | yes | Denotes if the ticket was created at company or application level |
|
|
1795
1799
|
| status | [Status](#Status) | yes | Denotes in what state is the ticket |
|