@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.
Files changed (109) hide show
  1. package/README.md +1 -1
  2. package/documentation/application/CART.md +256 -239
  3. package/documentation/application/CATALOG.md +413 -409
  4. package/documentation/application/COMMON.md +4 -0
  5. package/documentation/application/COMMUNICATION.md +4 -0
  6. package/documentation/application/CONFIGURATION.md +4 -0
  7. package/documentation/application/CONTENT.md +7 -20
  8. package/documentation/application/FILESTORAGE.md +85 -0
  9. package/documentation/application/LEAD.md +6 -2
  10. package/documentation/application/LOGISTIC.md +4 -0
  11. package/documentation/application/ORDER.md +307 -303
  12. package/documentation/application/PAYMENT.md +445 -259
  13. package/documentation/application/POSCART.md +317 -300
  14. package/documentation/application/REWARDS.md +153 -160
  15. package/documentation/application/SHARE.md +4 -0
  16. package/documentation/application/THEME.md +4 -0
  17. package/documentation/application/USER.md +4 -0
  18. package/documentation/platform/ANALYTICS.md +4 -0
  19. package/documentation/platform/AUDITTRAIL.md +4 -0
  20. package/documentation/platform/BILLING.md +4 -0
  21. package/documentation/platform/CART.md +480 -463
  22. package/documentation/platform/CATALOG.md +3895 -2942
  23. package/documentation/platform/COMMON.md +4 -0
  24. package/documentation/platform/COMMUNICATION.md +4 -0
  25. package/documentation/platform/COMPANYPROFILE.md +224 -193
  26. package/documentation/platform/CONFIGURATION.md +4 -0
  27. package/documentation/platform/CONTENT.md +8 -21
  28. package/documentation/platform/DISCOUNT.md +4 -0
  29. package/documentation/platform/FILESTORAGE.md +85 -0
  30. package/documentation/platform/INVENTORY.md +4 -0
  31. package/documentation/platform/LEAD.md +6 -2
  32. package/documentation/platform/ORDER.md +6298 -1448
  33. package/documentation/platform/PARTNER.md +12 -8
  34. package/documentation/platform/PAYMENT.md +107 -103
  35. package/documentation/platform/README.md +2 -2
  36. package/documentation/platform/REWARDS.md +219 -152
  37. package/documentation/platform/SHARE.md +4 -0
  38. package/documentation/platform/THEME.md +4 -0
  39. package/documentation/platform/USER.md +4 -0
  40. package/documentation/platform/WEBHOOK.md +4 -0
  41. package/documentation/public/CONFIGURATION.md +4 -0
  42. package/documentation/public/INVENTORY.md +4 -0
  43. package/documentation/public/WEBHOOK.md +4 -0
  44. package/package.json +1 -1
  45. package/sdk/application/ApplicationModels.d.ts +77 -73
  46. package/sdk/application/ApplicationModels.js +1751 -1725
  47. package/sdk/application/client/CartApplicationClient.d.ts +36 -36
  48. package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
  49. package/sdk/application/client/CatalogApplicationClient.js +16 -16
  50. package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
  51. package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
  52. package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
  53. package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
  54. package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
  55. package/sdk/application/client/FileStorageApplicationClient.js +2 -0
  56. package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
  57. package/sdk/application/client/LogisticApplicationClient.d.ts +5 -5
  58. package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
  59. package/sdk/application/client/OrderApplicationClient.js +1 -1
  60. package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
  61. package/sdk/application/client/PaymentApplicationClient.js +66 -0
  62. package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
  63. package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
  64. package/sdk/application/client/RewardsApplicationClient.js +77 -77
  65. package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
  66. package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
  67. package/sdk/application/client/UserApplicationClient.d.ts +63 -63
  68. package/sdk/application/models/CatalogValidator.d.ts +1 -1
  69. package/sdk/application/models/CatalogValidator.js +2 -2
  70. package/sdk/application/models/PaymentValidator.d.ts +2 -0
  71. package/sdk/application/models/PaymentValidator.js +12 -0
  72. package/sdk/application/models/RewardsValidator.d.ts +3 -3
  73. package/sdk/application/models/RewardsValidator.js +12 -12
  74. package/sdk/common/AxiosHelper.js +1 -1
  75. package/sdk/common/Constant.d.ts +9 -0
  76. package/sdk/common/Constant.js +11 -0
  77. package/sdk/platform/PlatformApplicationClient.d.ts +8600 -7286
  78. package/sdk/platform/PlatformApplicationClient.js +4338 -3678
  79. package/sdk/platform/PlatformApplicationModels.d.ts +21 -26
  80. package/sdk/platform/PlatformApplicationModels.js +5561 -4301
  81. package/sdk/platform/PlatformClient.d.ts +3448 -2801
  82. package/sdk/platform/PlatformClient.js +3903 -3108
  83. package/sdk/platform/PlatformModels.d.ts +352 -278
  84. package/sdk/platform/PlatformModels.js +5230 -3942
  85. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
  86. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
  87. package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
  88. package/sdk/platform/client/CatalogPlatformClient.d.ts +209 -150
  89. package/sdk/platform/client/CatalogPlatformClient.js +441 -294
  90. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
  91. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
  92. package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
  93. package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
  94. package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
  95. package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
  96. package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
  97. package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
  98. package/sdk/platform/client/OrderPlatformClient.js +1551 -247
  99. package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
  100. package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
  101. package/sdk/platform/models/CatalogValidator.d.ts +24 -21
  102. package/sdk/platform/models/CatalogValidator.js +103 -72
  103. package/sdk/platform/models/OrderValidator.d.ts +43 -11
  104. package/sdk/platform/models/OrderValidator.js +312 -51
  105. package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
  106. package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
  107. package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
  108. package/tests/common/schema/action-url.json +15 -0
  109. 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>&nbsp; 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) | yes | Ticket created on form submission |
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 | string | yes | Category assigned to the ticket |
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 |
@@ -2,10 +2,12 @@
2
2
 
3
3
 
4
4
 
5
+
5
6
  ##### [Back to Application docs](./README.md)
6
7
 
7
8
  ## Logistic Methods
8
9
  Handles Platform websites OMS
10
+
9
11
  * [getTatProduct](#gettatproduct)
10
12
  * [getPincodeZones](#getpincodezones)
11
13
  * [getPincodeCity](#getpincodecity)
@@ -15,6 +17,8 @@ Handles Platform websites OMS
15
17
  ## Methods with example and description
16
18
 
17
19
 
20
+
21
+
18
22
  ### getTatProduct
19
23
  Get TAT of a product
20
24