@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.
Files changed (118) hide show
  1. package/README.md +1 -1
  2. package/documentation/application/CART.md +272 -249
  3. package/documentation/application/CATALOG.md +417 -413
  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 +427 -101
  11. package/documentation/application/ORDER.md +292 -288
  12. package/documentation/application/PAYMENT.md +445 -259
  13. package/documentation/application/POSCART.md +309 -286
  14. package/documentation/application/README.md +1 -1
  15. package/documentation/application/REWARDS.md +153 -160
  16. package/documentation/application/SHARE.md +4 -0
  17. package/documentation/application/THEME.md +4 -0
  18. package/documentation/application/USER.md +4 -0
  19. package/documentation/platform/ANALYTICS.md +4 -0
  20. package/documentation/platform/AUDITTRAIL.md +6 -2
  21. package/documentation/platform/BILLING.md +4 -0
  22. package/documentation/platform/CART.md +476 -459
  23. package/documentation/platform/CATALOG.md +4138 -2968
  24. package/documentation/platform/COMMON.md +4 -0
  25. package/documentation/platform/COMMUNICATION.md +4 -0
  26. package/documentation/platform/COMPANYPROFILE.md +258 -206
  27. package/documentation/platform/CONFIGURATION.md +4 -0
  28. package/documentation/platform/CONTENT.md +8 -21
  29. package/documentation/platform/DISCOUNT.md +4 -0
  30. package/documentation/platform/FILESTORAGE.md +85 -0
  31. package/documentation/platform/INVENTORY.md +4 -0
  32. package/documentation/platform/LEAD.md +6 -2
  33. package/documentation/platform/ORDER.md +6298 -1448
  34. package/documentation/platform/PARTNER.md +12 -8
  35. package/documentation/platform/PAYMENT.md +107 -103
  36. package/documentation/platform/README.md +2 -2
  37. package/documentation/platform/REWARDS.md +219 -152
  38. package/documentation/platform/SHARE.md +4 -0
  39. package/documentation/platform/THEME.md +4 -0
  40. package/documentation/platform/USER.md +4 -0
  41. package/documentation/platform/WEBHOOK.md +4 -0
  42. package/documentation/public/CONFIGURATION.md +4 -0
  43. package/documentation/public/INVENTORY.md +4 -0
  44. package/documentation/public/WEBHOOK.md +4 -0
  45. package/package.json +2 -2
  46. package/sdk/application/ApplicationAPIClient.js +3 -0
  47. package/sdk/application/ApplicationClient.d.ts +1 -0
  48. package/sdk/application/ApplicationClient.js +11 -1
  49. package/sdk/application/ApplicationConfig.d.ts +1 -0
  50. package/sdk/application/ApplicationConfig.js +1 -0
  51. package/sdk/application/ApplicationModels.d.ts +94 -85
  52. package/sdk/application/ApplicationModels.js +1909 -1792
  53. package/sdk/application/client/CartApplicationClient.d.ts +36 -36
  54. package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
  55. package/sdk/application/client/CatalogApplicationClient.js +16 -16
  56. package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
  57. package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
  58. package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
  59. package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
  60. package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
  61. package/sdk/application/client/FileStorageApplicationClient.js +2 -0
  62. package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
  63. package/sdk/application/client/LogisticApplicationClient.d.ts +32 -21
  64. package/sdk/application/client/LogisticApplicationClient.js +62 -27
  65. package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
  66. package/sdk/application/client/OrderApplicationClient.js +1 -1
  67. package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
  68. package/sdk/application/client/PaymentApplicationClient.js +66 -0
  69. package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
  70. package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
  71. package/sdk/application/client/RewardsApplicationClient.js +77 -77
  72. package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
  73. package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/client/UserApplicationClient.d.ts +63 -63
  75. package/sdk/application/models/CatalogValidator.d.ts +1 -1
  76. package/sdk/application/models/CatalogValidator.js +2 -2
  77. package/sdk/application/models/LogisticValidator.d.ts +2 -1
  78. package/sdk/application/models/LogisticValidator.js +11 -6
  79. package/sdk/application/models/PaymentValidator.d.ts +2 -0
  80. package/sdk/application/models/PaymentValidator.js +12 -0
  81. package/sdk/application/models/RewardsValidator.d.ts +3 -3
  82. package/sdk/application/models/RewardsValidator.js +12 -12
  83. package/sdk/common/AxiosHelper.js +1 -1
  84. package/sdk/common/Constant.d.ts +9 -0
  85. package/sdk/common/Constant.js +11 -0
  86. package/sdk/platform/PlatformApplicationClient.d.ts +7962 -6505
  87. package/sdk/platform/PlatformApplicationClient.js +4377 -3635
  88. package/sdk/platform/PlatformApplicationModels.d.ts +26 -31
  89. package/sdk/platform/PlatformApplicationModels.js +5530 -4134
  90. package/sdk/platform/PlatformClient.d.ts +3495 -2780
  91. package/sdk/platform/PlatformClient.js +3985 -3108
  92. package/sdk/platform/PlatformModels.d.ts +354 -273
  93. package/sdk/platform/PlatformModels.js +5635 -4211
  94. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
  95. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
  96. package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
  97. package/sdk/platform/client/CatalogPlatformClient.d.ts +222 -154
  98. package/sdk/platform/client/CatalogPlatformClient.js +473 -295
  99. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
  100. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
  101. package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
  102. package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
  103. package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
  104. package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
  105. package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
  106. package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
  107. package/sdk/platform/client/OrderPlatformClient.js +1551 -247
  108. package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
  109. package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
  110. package/sdk/platform/models/CatalogValidator.d.ts +26 -22
  111. package/sdk/platform/models/CatalogValidator.js +109 -72
  112. package/sdk/platform/models/OrderValidator.d.ts +43 -11
  113. package/sdk/platform/models/OrderValidator.js +312 -51
  114. package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
  115. package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
  116. package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
  117. package/tests/common/schema/action-url.json +15 -0
  118. 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 `DataLoaderResponseSchema` for more details.
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>&nbsp; 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) | yes | Ticket created on form submission |
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 | string | yes | Category assigned to the ticket |
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 |