@gofynd/fdk-client-javascript 0.1.35 → 0.1.36
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 +256 -239
- package/documentation/application/CATALOG.md +413 -409
- 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 +4 -0
- package/documentation/application/ORDER.md +307 -303
- package/documentation/application/PAYMENT.md +445 -259
- package/documentation/application/POSCART.md +317 -300
- 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 +4 -0
- package/documentation/platform/BILLING.md +4 -0
- package/documentation/platform/CART.md +480 -463
- package/documentation/platform/CATALOG.md +3895 -2942
- package/documentation/platform/COMMON.md +4 -0
- package/documentation/platform/COMMUNICATION.md +4 -0
- package/documentation/platform/COMPANYPROFILE.md +224 -193
- 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 +1 -1
- package/sdk/application/ApplicationModels.d.ts +77 -73
- package/sdk/application/ApplicationModels.js +1751 -1725
- 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 +5 -5
- 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/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 +8600 -7286
- package/sdk/platform/PlatformApplicationClient.js +4338 -3678
- package/sdk/platform/PlatformApplicationModels.d.ts +21 -26
- package/sdk/platform/PlatformApplicationModels.js +5561 -4301
- package/sdk/platform/PlatformClient.d.ts +3448 -2801
- package/sdk/platform/PlatformClient.js +3903 -3108
- package/sdk/platform/PlatformModels.d.ts +352 -278
- package/sdk/platform/PlatformModels.js +5230 -3942
- 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 +209 -150
- package/sdk/platform/client/CatalogPlatformClient.js +441 -294
- 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 +24 -21
- package/sdk/platform/models/CatalogValidator.js +103 -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 Platform docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Configuration Methods
|
|
8
9
|
Application configuration apis
|
|
10
|
+
|
|
9
11
|
* [getBuildConfig](#getbuildconfig)
|
|
10
12
|
* [updateBuildConfig](#updatebuildconfig)
|
|
11
13
|
* [getPreviousVersions](#getpreviousversions)
|
|
@@ -58,6 +60,8 @@ Application configuration apis
|
|
|
58
60
|
## Methods with example and description
|
|
59
61
|
|
|
60
62
|
|
|
63
|
+
|
|
64
|
+
|
|
61
65
|
### getBuildConfig
|
|
62
66
|
Get latest build config
|
|
63
67
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Platform docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Content Methods
|
|
8
9
|
Content System
|
|
10
|
+
|
|
9
11
|
* [getAnnouncementsList](#getannouncementslist)
|
|
10
12
|
* [createAnnouncement](#createannouncement)
|
|
11
13
|
* [getAnnouncementById](#getannouncementbyid)
|
|
@@ -80,6 +82,8 @@ Content System
|
|
|
80
82
|
## Methods with example and description
|
|
81
83
|
|
|
82
84
|
|
|
85
|
+
|
|
86
|
+
|
|
83
87
|
### getAnnouncementsList
|
|
84
88
|
Get a list of announcements
|
|
85
89
|
|
|
@@ -1351,7 +1355,7 @@ Use this to get all data loaders of an application
|
|
|
1351
1355
|
|
|
1352
1356
|
[DataLoadersSchema](#DataLoadersSchema)
|
|
1353
1357
|
|
|
1354
|
-
Success. Refer `
|
|
1358
|
+
Success. Refer `DataLoadersSchema` for more details.
|
|
1355
1359
|
|
|
1356
1360
|
|
|
1357
1361
|
|
|
@@ -7952,26 +7956,6 @@ Success. Returns a JSON object of components. Refer `PageSchema` for more detail
|
|
|
7952
7956
|
|
|
7953
7957
|
#### [NavigationReference](#NavigationReference)
|
|
7954
7958
|
|
|
7955
|
-
| Properties | Type | Nullable | Description |
|
|
7956
|
-
| ---------- | ---- | -------- | ----------- |
|
|
7957
|
-
| acl | [string] | no | |
|
|
7958
|
-
| tags | [string] | no | |
|
|
7959
|
-
| _locale_language | [LocaleLanguage](#LocaleLanguage) | no | |
|
|
7960
|
-
| image | string | no | |
|
|
7961
|
-
| type | string | no | |
|
|
7962
|
-
| action | [Action](#Action) | no | |
|
|
7963
|
-
| active | boolean | no | |
|
|
7964
|
-
| display | string | no | |
|
|
7965
|
-
| sort_order | number | no | |
|
|
7966
|
-
| sub_navigation | [[SubNavigationReference](#SubNavigationReference)] | no | |
|
|
7967
|
-
|
|
7968
|
-
---
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
#### [SubNavigationReference](#SubNavigationReference)
|
|
7974
|
-
|
|
7975
7959
|
| Properties | Type | Nullable | Description |
|
|
7976
7960
|
| ---------- | ---- | -------- | ----------- |
|
|
7977
7961
|
| acl | [string] | no | |
|
|
@@ -8118,6 +8102,7 @@ Success. Returns a JSON object of components. Refer `PageSchema` for more detail
|
|
|
8118
8102
|
| url | string | no | |
|
|
8119
8103
|
| position | string | no | |
|
|
8120
8104
|
| attributes | string | no | |
|
|
8105
|
+
| pages | [string] | no | |
|
|
8121
8106
|
| content | string | no | |
|
|
8122
8107
|
|
|
8123
8108
|
---
|
|
@@ -8903,6 +8888,7 @@ Success. Returns a JSON object of components. Refer `PageSchema` for more detail
|
|
|
8903
8888
|
| position | string | no | |
|
|
8904
8889
|
| attributes | string | no | |
|
|
8905
8890
|
| content | string | no | |
|
|
8891
|
+
| pages | [string] | no | |
|
|
8906
8892
|
| __source | [TagSourceSchema](#TagSourceSchema) | no | |
|
|
8907
8893
|
|
|
8908
8894
|
---
|
|
@@ -8959,6 +8945,7 @@ Success. Returns a JSON object of components. Refer `PageSchema` for more detail
|
|
|
8959
8945
|
| productRequest | product-request | Symbolic link for Product Request: /product-request/ |
|
|
8960
8946
|
| products | products | Symbolic link for Products: /products/ |
|
|
8961
8947
|
| profile | profile | Symbolic link for Profile: /profile |
|
|
8948
|
+
| profileOrderShipment | profile-order-shipment | Symbolic link for profile orders shipment: /profile/orders/shipment/:shipmentid |
|
|
8962
8949
|
| profileBasic | profile-basic | Symbolic link for Basic Profile: /profile/details |
|
|
8963
8950
|
| profileCompany | profile-company | Symbolic link for Profile Company: /profile/company |
|
|
8964
8951
|
| profileEmails | profile-emails | Symbolic link for Profile Emails: /profile/email |
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Platform docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Discount Methods
|
|
8
9
|
Discount
|
|
10
|
+
|
|
9
11
|
* [getDiscounts](#getdiscounts)
|
|
10
12
|
* [createDiscount](#creatediscount)
|
|
11
13
|
* [getDiscount](#getdiscount)
|
|
@@ -22,6 +24,8 @@ Discount
|
|
|
22
24
|
## Methods with example and description
|
|
23
25
|
|
|
24
26
|
|
|
27
|
+
|
|
28
|
+
|
|
25
29
|
### getDiscounts
|
|
26
30
|
Fetch discount list.
|
|
27
31
|
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Platform 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
|
* [appStartUpload](#appstartupload)
|
|
@@ -22,6 +26,87 @@ File Storage
|
|
|
22
26
|
## Methods with example and description
|
|
23
27
|
|
|
24
28
|
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### upload
|
|
32
|
+
method which internally calls `startUpload` and `completeUpload` method to handle the whole file upload flow.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
```javascript
|
|
36
|
+
// Promise
|
|
37
|
+
const promise = fileStorage.upload({
|
|
38
|
+
data,
|
|
39
|
+
file_name,
|
|
40
|
+
content_type,
|
|
41
|
+
namespace,
|
|
42
|
+
size,
|
|
43
|
+
tags,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// Async/Await
|
|
47
|
+
const data = await fileStorage.upload({
|
|
48
|
+
data,
|
|
49
|
+
file_name,
|
|
50
|
+
content_type,
|
|
51
|
+
namespace,
|
|
52
|
+
size,
|
|
53
|
+
tags,
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
| Argument | Type | Required | Description |
|
|
57
|
+
| --------- | ----- | -------- | ----------- |
|
|
58
|
+
| data | file | yes | File which needs to be uploaded |
|
|
59
|
+
| file_name | string | yes | Name of the file |
|
|
60
|
+
| content_type | string | yes | type of file |
|
|
61
|
+
| namespace | string | yes | Name of the bucket created for storing objects |
|
|
62
|
+
| size | number | yes | File size |
|
|
63
|
+
| tags | [string] | yes | |
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
Use this API to perform the upload of an arbitrarily sized buffer or blob.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
*Returned Response:*
|
|
71
|
+
|
|
72
|
+
[CompleteResponse](#CompleteResponse)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<details>
|
|
77
|
+
<summary><i> Example:</i></summary>
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"file_name":"logo.png",
|
|
82
|
+
"file_path":"/path/to/file/logo.png",
|
|
83
|
+
"success":true,
|
|
84
|
+
"namespace":"namespace",
|
|
85
|
+
"content_type":"image/png",
|
|
86
|
+
"size":1024,
|
|
87
|
+
"operation":"putObject",
|
|
88
|
+
"tags":[],
|
|
89
|
+
"cdn":{
|
|
90
|
+
"url":"https://cdn.pixelbin.io/v2/logo.png",
|
|
91
|
+
"absolute_url":"https://cdn.pixelbin.io/v2/logo.png",
|
|
92
|
+
"relative_url":"logo.png"
|
|
93
|
+
},
|
|
94
|
+
"_id":"63dbbxxxxxxxxxxxxdecc69f",
|
|
95
|
+
"created_by":{
|
|
96
|
+
"username":"username_gofynd_com"
|
|
97
|
+
},
|
|
98
|
+
"created_on":"2023-01-01T12:00:00.000Z",
|
|
99
|
+
"modified_on":"2023-01-01T00:00:00.000Z"
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
</details>
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
25
110
|
### startUpload
|
|
26
111
|
This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob.
|
|
27
112
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Platform docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Inventory Methods
|
|
8
9
|
|
|
10
|
+
|
|
9
11
|
* [getJobsByCompany](#getjobsbycompany)
|
|
10
12
|
* [updateJob](#updatejob)
|
|
11
13
|
* [createJob](#createjob)
|
|
@@ -24,6 +26,8 @@
|
|
|
24
26
|
## Methods with example and description
|
|
25
27
|
|
|
26
28
|
|
|
29
|
+
|
|
30
|
+
|
|
27
31
|
### getJobsByCompany
|
|
28
32
|
Get Job Configs For A Company
|
|
29
33
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Platform docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Lead Methods
|
|
8
9
|
Handles communication between Administrator <-> Staff and Staff <-> Users
|
|
10
|
+
|
|
9
11
|
* [getTickets](#gettickets)
|
|
10
12
|
* [createTicket](#createticket)
|
|
11
13
|
* [getTickets](#gettickets)
|
|
@@ -36,6 +38,8 @@ Handles communication between Administrator <-> Staff and Staff <-> Users
|
|
|
36
38
|
## Methods with example and description
|
|
37
39
|
|
|
38
40
|
|
|
41
|
+
|
|
42
|
+
|
|
39
43
|
### getTickets
|
|
40
44
|
Gets the list of company level tickets and/or ticket filters depending on query params
|
|
41
45
|
|
|
@@ -4288,7 +4292,7 @@ Success
|
|
|
4288
4292
|
| Properties | Type | Nullable | Description |
|
|
4289
4293
|
| ---------- | ---- | -------- | ----------- |
|
|
4290
4294
|
| message | string | yes | Success message for form submission |
|
|
4291
|
-
| ticket | [Ticket](#Ticket) |
|
|
4295
|
+
| ticket | [Ticket](#Ticket) | no | Ticket created on form submission |
|
|
4292
4296
|
|
|
4293
4297
|
---
|
|
4294
4298
|
|
|
@@ -4634,7 +4638,7 @@ Success
|
|
|
4634
4638
|
| created_on | [CreatedOn](#CreatedOn) | no | Details of company and application realated to the ticket |
|
|
4635
4639
|
| response_id | string | no | Details of company and application realated to the ticket |
|
|
4636
4640
|
| content | [TicketContent](#TicketContent) | no | Ticket conetent details |
|
|
4637
|
-
| category |
|
|
4641
|
+
| category | [TicketCategory](#TicketCategory) | yes | Category assigned to the ticket |
|
|
4638
4642
|
| sub_category | string | no | Sub-category assigned to the ticket |
|
|
4639
4643
|
| source | [TicketSourceEnum](#TicketSourceEnum) | yes | Denotes if the ticket was created at company or application level |
|
|
4640
4644
|
| status | [Status](#Status) | yes | Denotes in what state is the ticket |
|