@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9

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 (189) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
  36. package/sdk/application/Content/ContentApplicationModel.js +341 -277
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
  58. package/sdk/application/Order/OrderApplicationModel.js +391 -317
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
  98. package/sdk/partner/PartnerClient.d.ts +8 -0
  99. package/sdk/partner/PartnerClient.js +14 -0
  100. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  102. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  103. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  104. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  105. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  106. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  107. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  108. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  110. package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
  111. package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
  112. package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
  113. package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
  114. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
  115. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
  116. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  117. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  118. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  119. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  120. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  121. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  122. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  123. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  124. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  125. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  128. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  130. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
  139. package/sdk/platform/Content/ContentPlatformModel.js +28 -15
  140. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  141. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  145. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
  147. package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  149. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  150. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  151. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  152. package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
  153. package/sdk/platform/Order/OrderPlatformModel.js +359 -41
  154. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  155. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  156. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  157. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  158. package/sdk/platform/PlatformClient.d.ts +8 -0
  159. package/sdk/platform/PlatformClient.js +14 -0
  160. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  161. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  162. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  163. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  164. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
  165. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
  166. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  167. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  168. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  169. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  170. package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
  171. package/sdk/platform/User/UserPlatformModel.js +9 -9
  172. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
  173. package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
  174. package/sdk/public/PublicClient.d.ts +0 -4
  175. package/sdk/public/PublicClient.js +0 -8
  176. package/sdk/public/index.d.ts +0 -2
  177. package/sdk/public/index.js +0 -4
  178. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
  179. package/sdk/public/Billing/BillingPublicClient.js +0 -269
  180. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
  181. package/sdk/public/Billing/BillingPublicModel.js +0 -395
  182. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
  183. package/sdk/public/Billing/BillingPublicValidator.js +0 -38
  184. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  185. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  186. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  187. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  188. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  189. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -1,395 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- /**
4
- * @typedef ResourceNotFound
5
- * @property {string} [message] - Resource not found with {id}
6
- */
7
-
8
- /**
9
- * @typedef PlanRecurring
10
- * @property {string} [interval]
11
- * @property {number} [interval_count]
12
- * @property {string} [aggregate_usage]
13
- * @property {string} [usage_type]
14
- */
15
-
16
- /**
17
- * @typedef DetailList
18
- * @property {PlanDetails[]} [plans]
19
- * @property {string[]} [component_groups]
20
- */
21
-
22
- /**
23
- * @typedef PlanTaxation
24
- * @property {number} [gst]
25
- */
26
-
27
- /**
28
- * @typedef OneTimeFees
29
- * @property {number} [developement]
30
- * @property {number} [marketing]
31
- */
32
-
33
- /**
34
- * @typedef CreditLine
35
- * @property {boolean} [is_active]
36
- */
37
-
38
- /**
39
- * @typedef PlanMeta
40
- * @property {string} [plan_platform_display_name]
41
- */
42
-
43
- /**
44
- * @typedef FeatureConfig
45
- * @property {boolean} [enabled]
46
- * @property {number} [limit]
47
- * @property {number} [hard_limit]
48
- * @property {number} [soft_limit]
49
- */
50
-
51
- /**
52
- * @typedef PlanConfig
53
- * @property {boolean} [is_active]
54
- * @property {string} [display_text]
55
- * @property {boolean} [is_default]
56
- * @property {string} [processing_type]
57
- * @property {string[]} [tags]
58
- * @property {FeatureConfig} [feature_config]
59
- * @property {string} [_id]
60
- * @property {string} [component_id]
61
- * @property {string} [created_at]
62
- * @property {string} [modified_at]
63
- * @property {number} [__v]
64
- * @property {string} [billing_scheme]
65
- * @property {string} [bill_type]
66
- * @property {string} [price_ui_type]
67
- * @property {PlanRecurring} [recurring]
68
- * @property {TransformQuantity} [transform_quantity]
69
- * @property {FreeTier} [free_tier]
70
- * @property {string} [currency]
71
- * @property {number} [unit_amount]
72
- * @property {number} [quantity]
73
- * @property {string} [price_type]
74
- * @property {Object[]} [tiers]
75
- */
76
-
77
- /**
78
- * @typedef FreeTier
79
- * @property {string} [type]
80
- * @property {number} [value]
81
- */
82
-
83
- /**
84
- * @typedef TransformQuantity
85
- * @property {number} [divide_by]
86
- * @property {string} [round]
87
- */
88
-
89
- /**
90
- * @typedef ComponentsSchema
91
- * @property {string} [name]
92
- * @property {string} [slug]
93
- * @property {string} [description]
94
- * @property {string} [group]
95
- * @property {string} [icon]
96
- * @property {Object} [links]
97
- * @property {PlanConfig} [config]
98
- * @property {boolean} [is_active]
99
- * @property {string} [display_text]
100
- */
101
-
102
- /**
103
- * @typedef PlanDetails
104
- * @property {string} [approved_by]
105
- * @property {string} [updated_by]
106
- * @property {PlanRecurring} [recurring]
107
- * @property {boolean} [is_trial_plan]
108
- * @property {string[]} [company_ids]
109
- * @property {string} [created_by]
110
- * @property {string} [channel_type]
111
- * @property {string} [platform]
112
- * @property {string} [plan_group]
113
- * @property {string[]} [tag_lines]
114
- * @property {string} [currency]
115
- * @property {boolean} [is_active]
116
- * @property {boolean} [is_visible]
117
- * @property {number} [trial_period]
118
- * @property {string[]} [addons]
119
- * @property {string[]} [tags]
120
- * @property {string} [type]
121
- * @property {string} [country]
122
- * @property {string} [_id]
123
- * @property {string} [name]
124
- * @property {string} [description]
125
- * @property {number} [amount]
126
- * @property {string} [product_suite_id]
127
- * @property {string} [created_at]
128
- * @property {string} [modified_at]
129
- * @property {PlanTaxation} [taxation]
130
- * @property {OneTimeFees} [one_time_fees]
131
- * @property {CreditLine} [credit_line]
132
- * @property {string} [current_status]
133
- * @property {PlanMeta} [meta]
134
- * @property {ComponentsSchema[]} [components]
135
- */
136
-
137
- /**
138
- * @typedef Recurring
139
- * @property {string} [interval] - Interval for recurring payments
140
- * @property {number} [interval_count] - Number of intervals
141
- */
142
-
143
- /**
144
- * @typedef Taxation
145
- * @property {number} [gst] - GST percentage
146
- */
147
-
148
- /**
149
- * @typedef PlanList
150
- * @property {string} [approved_by]
151
- * @property {string} [updated_by]
152
- * @property {Recurring} [recurring]
153
- * @property {Taxation} [taxation]
154
- * @property {OneTimeFees} [one_time_fees]
155
- * @property {CreditLine} [credit_line]
156
- * @property {string} [_id] - Unique identifier of the plan
157
- * @property {string} [product_suite_id] - Identifier of the product suite
158
- * associated with the plan
159
- * @property {boolean} [is_trial_plan] - Indicates whether the plan is a trial plan
160
- * @property {string} [name] - Name of the plan
161
- * @property {string} [description] - Description of the plan
162
- * @property {string} [plan_group] - Group to which the plan belongs
163
- * @property {string[]} [tag_lines] - Tag lines associated with the plan
164
- * @property {string} [currency] - Currency of the plan
165
- * @property {number} [amount] - Amount of the plan
166
- * @property {boolean} [is_active] - Indicates whether the plan is active
167
- * @property {boolean} [is_visible] - Indicates whether the plan is visible
168
- * @property {number} [trial_period] - Trial period of the plan
169
- * @property {Object[]} [addons] - Addons associated with the plan
170
- * @property {string[]} [tags] - Tags associated with the plan
171
- * @property {string} [type] - Type of the plan
172
- * @property {Object} [meta] - Additional metadata associated with the plan
173
- * @property {string} [country] - Country associated with the plan
174
- * @property {string[]} [company_ids] - Company IDs associated with the plan
175
- * @property {string} [created_by] - ID of the user who created the plan
176
- * @property {string} [current_status] - Current status of the plan
177
- * @property {string} [channel_type] - Type of channel associated with the plan
178
- * @property {string} [platform] - Platform associated with the plan
179
- * @property {string} [created_at] - Date and time when the plan was created
180
- * @property {string} [modified_at] - Date and time when the plan was last modified
181
- */
182
-
183
- class BillingPublicModel {
184
- /** @returns {ResourceNotFound} */
185
- static ResourceNotFound() {
186
- return Joi.object({
187
- message: Joi.string().allow(""),
188
- });
189
- }
190
-
191
- /** @returns {PlanRecurring} */
192
- static PlanRecurring() {
193
- return Joi.object({
194
- interval: Joi.string().allow(""),
195
- interval_count: Joi.number(),
196
- aggregate_usage: Joi.string().allow(""),
197
- usage_type: Joi.string().allow(""),
198
- });
199
- }
200
-
201
- /** @returns {DetailList} */
202
- static DetailList() {
203
- return Joi.object({
204
- plans: Joi.array().items(BillingPublicModel.PlanDetails()),
205
- component_groups: Joi.array().items(Joi.string().allow("")),
206
- });
207
- }
208
-
209
- /** @returns {PlanTaxation} */
210
- static PlanTaxation() {
211
- return Joi.object({
212
- gst: Joi.number(),
213
- });
214
- }
215
-
216
- /** @returns {OneTimeFees} */
217
- static OneTimeFees() {
218
- return Joi.object({
219
- developement: Joi.number().allow(null),
220
- marketing: Joi.number().allow(null),
221
- });
222
- }
223
-
224
- /** @returns {CreditLine} */
225
- static CreditLine() {
226
- return Joi.object({
227
- is_active: Joi.boolean(),
228
- });
229
- }
230
-
231
- /** @returns {PlanMeta} */
232
- static PlanMeta() {
233
- return Joi.object({
234
- plan_platform_display_name: Joi.string().allow("").allow(null),
235
- });
236
- }
237
-
238
- /** @returns {FeatureConfig} */
239
- static FeatureConfig() {
240
- return Joi.object({
241
- enabled: Joi.boolean(),
242
- limit: Joi.number(),
243
- hard_limit: Joi.number(),
244
- soft_limit: Joi.number(),
245
- });
246
- }
247
-
248
- /** @returns {PlanConfig} */
249
- static PlanConfig() {
250
- return Joi.object({
251
- is_active: Joi.boolean(),
252
- display_text: Joi.string().allow("").allow(null),
253
- is_default: Joi.boolean(),
254
- processing_type: Joi.string().allow(""),
255
- tags: Joi.array().items(Joi.string().allow("")),
256
- feature_config: BillingPublicModel.FeatureConfig(),
257
- _id: Joi.string().allow(""),
258
- component_id: Joi.string().allow(""),
259
- created_at: Joi.string().allow(""),
260
- modified_at: Joi.string().allow(""),
261
- __v: Joi.number(),
262
- billing_scheme: Joi.string().allow(""),
263
- bill_type: Joi.string().allow(""),
264
- price_ui_type: Joi.string().allow(""),
265
- recurring: BillingPublicModel.PlanRecurring(),
266
- transform_quantity: BillingPublicModel.TransformQuantity(),
267
- free_tier: BillingPublicModel.FreeTier(),
268
- currency: Joi.string().allow(""),
269
- unit_amount: Joi.number(),
270
- quantity: Joi.number(),
271
- price_type: Joi.string().allow(""),
272
- tiers: Joi.array().items(Joi.any()),
273
- });
274
- }
275
-
276
- /** @returns {FreeTier} */
277
- static FreeTier() {
278
- return Joi.object({
279
- type: Joi.string().allow(""),
280
- value: Joi.number(),
281
- });
282
- }
283
-
284
- /** @returns {TransformQuantity} */
285
- static TransformQuantity() {
286
- return Joi.object({
287
- divide_by: Joi.number(),
288
- round: Joi.string().allow(""),
289
- });
290
- }
291
-
292
- /** @returns {ComponentsSchema} */
293
- static ComponentsSchema() {
294
- return Joi.object({
295
- name: Joi.string().allow(""),
296
- slug: Joi.string().allow(""),
297
- description: Joi.string().allow(""),
298
- group: Joi.string().allow(""),
299
- icon: Joi.string().allow(""),
300
- links: Joi.any(),
301
- config: BillingPublicModel.PlanConfig(),
302
- is_active: Joi.boolean(),
303
- display_text: Joi.string().allow("").allow(null),
304
- });
305
- }
306
-
307
- /** @returns {PlanDetails} */
308
- static PlanDetails() {
309
- return Joi.object({
310
- approved_by: Joi.string().allow(""),
311
- updated_by: Joi.string().allow(""),
312
- recurring: BillingPublicModel.PlanRecurring(),
313
- is_trial_plan: Joi.boolean(),
314
- company_ids: Joi.array().items(Joi.string().allow("")),
315
- created_by: Joi.string().allow(""),
316
- channel_type: Joi.string().allow(""),
317
- platform: Joi.string().allow("").allow(null),
318
- plan_group: Joi.string().allow(""),
319
- tag_lines: Joi.array().items(Joi.string().allow("")),
320
- currency: Joi.string().allow(""),
321
- is_active: Joi.boolean(),
322
- is_visible: Joi.boolean(),
323
- trial_period: Joi.number(),
324
- addons: Joi.array().items(Joi.string().allow("")),
325
- tags: Joi.array().items(Joi.string().allow("")),
326
- type: Joi.string().allow(""),
327
- country: Joi.string().allow(""),
328
- _id: Joi.string().allow(""),
329
- name: Joi.string().allow(""),
330
- description: Joi.string().allow(""),
331
- amount: Joi.number(),
332
- product_suite_id: Joi.string().allow(""),
333
- created_at: Joi.string().allow(""),
334
- modified_at: Joi.string().allow(""),
335
- taxation: BillingPublicModel.PlanTaxation(),
336
- one_time_fees: BillingPublicModel.OneTimeFees(),
337
- credit_line: BillingPublicModel.CreditLine(),
338
- current_status: Joi.string().allow(""),
339
- meta: BillingPublicModel.PlanMeta(),
340
- components: Joi.array().items(BillingPublicModel.ComponentsSchema()),
341
- });
342
- }
343
-
344
- /** @returns {Recurring} */
345
- static Recurring() {
346
- return Joi.object({
347
- interval: Joi.string().allow(""),
348
- interval_count: Joi.number(),
349
- });
350
- }
351
-
352
- /** @returns {Taxation} */
353
- static Taxation() {
354
- return Joi.object({
355
- gst: Joi.number(),
356
- });
357
- }
358
-
359
- /** @returns {PlanList} */
360
- static PlanList() {
361
- return Joi.object({
362
- approved_by: Joi.string().allow(""),
363
- updated_by: Joi.string().allow(""),
364
- recurring: BillingPublicModel.Recurring(),
365
- taxation: BillingPublicModel.Taxation(),
366
- one_time_fees: BillingPublicModel.OneTimeFees(),
367
- credit_line: BillingPublicModel.CreditLine(),
368
- _id: Joi.string().allow(""),
369
- product_suite_id: Joi.string().allow(""),
370
- is_trial_plan: Joi.boolean(),
371
- name: Joi.string().allow(""),
372
- description: Joi.string().allow(""),
373
- plan_group: Joi.string().allow(""),
374
- tag_lines: Joi.array().items(Joi.string().allow("")),
375
- currency: Joi.string().allow(""),
376
- amount: Joi.number(),
377
- is_active: Joi.boolean(),
378
- is_visible: Joi.boolean(),
379
- trial_period: Joi.number(),
380
- addons: Joi.array().items(Joi.any()),
381
- tags: Joi.array().items(Joi.string().allow("")),
382
- type: Joi.string().allow(""),
383
- meta: Joi.any(),
384
- country: Joi.string().allow(""),
385
- company_ids: Joi.array().items(Joi.string().allow("")),
386
- created_by: Joi.string().allow(""),
387
- current_status: Joi.string().allow(""),
388
- channel_type: Joi.string().allow(""),
389
- platform: Joi.string().allow("").allow(null),
390
- created_at: Joi.string().allow(""),
391
- modified_at: Joi.string().allow(""),
392
- });
393
- }
394
- }
395
- module.exports = BillingPublicModel;
@@ -1,34 +0,0 @@
1
- export = BillingPublicValidator;
2
- /**
3
- * @typedef GetPlanDetailsParam
4
- * @property {string} planId - Plan unique id.
5
- */
6
- /**
7
- * @typedef GetStandardPlansParam
8
- * @property {string} [platform] - The type of platform for which plans are requested.
9
- */
10
- /** @typedef PlanListParam */
11
- declare class BillingPublicValidator {
12
- /** @returns {GetPlanDetailsParam} */
13
- static getPlanDetails(): GetPlanDetailsParam;
14
- /** @returns {GetStandardPlansParam} */
15
- static getStandardPlans(): GetStandardPlansParam;
16
- /** @returns {PlanListParam} */
17
- static planList(): any;
18
- }
19
- declare namespace BillingPublicValidator {
20
- export { GetPlanDetailsParam, GetStandardPlansParam, PlanListParam };
21
- }
22
- type GetPlanDetailsParam = {
23
- /**
24
- * - Plan unique id.
25
- */
26
- planId: string;
27
- };
28
- type GetStandardPlansParam = {
29
- /**
30
- * - The type of platform for which plans are requested.
31
- */
32
- platform?: string;
33
- };
34
- type PlanListParam = any;
@@ -1,38 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- const BillingPublicModel = require("./BillingPublicModel");
4
-
5
- /**
6
- * @typedef GetPlanDetailsParam
7
- * @property {string} planId - Plan unique id.
8
- */
9
-
10
- /**
11
- * @typedef GetStandardPlansParam
12
- * @property {string} [platform] - The type of platform for which plans are requested.
13
- */
14
-
15
- /** @typedef PlanListParam */
16
-
17
- class BillingPublicValidator {
18
- /** @returns {GetPlanDetailsParam} */
19
- static getPlanDetails() {
20
- return Joi.object({
21
- planId: Joi.string().allow("").required(),
22
- }).required();
23
- }
24
-
25
- /** @returns {GetStandardPlansParam} */
26
- static getStandardPlans() {
27
- return Joi.object({
28
- platform: Joi.string().allow(""),
29
- });
30
- }
31
-
32
- /** @returns {PlanListParam} */
33
- static planList() {
34
- return Joi.object({});
35
- }
36
- }
37
-
38
- module.exports = BillingPublicValidator;
@@ -1,87 +0,0 @@
1
- export = Inventory;
2
- declare class Inventory {
3
- constructor(_conf: any);
4
- _conf: any;
5
- _relativeUrls: {
6
- getApiKey: string;
7
- getConfigByApiKey: string;
8
- getJobByCode: string;
9
- getJobCodesMetrics: string;
10
- getJobConfigByIntegrationType: string;
11
- saveJobCodesMetrics: string;
12
- };
13
- _urls: {};
14
- updateUrls(urls: any): void;
15
- /**
16
- * @param {InventoryPublicValidator.GetApiKeyParam} arg - Arg object.
17
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
18
- * @param {import("../PublicAPIClient").Options} - Options
19
- * @returns {Promise<InventoryPublicModel.ResponseEnvelopeApikeyModel>} -
20
- * Success response
21
- * @name getApiKey
22
- * @summary: Get apikey for Company to call other Slingshot Configuration APIs
23
- * @description: REST Endpoint that returns apikey by username by password - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getApiKey/).
24
- */
25
- getApiKey({ userName, password, requestHeaders }?: InventoryPublicValidator.GetApiKeyParam, { responseHeaders }?: object): Promise<InventoryPublicModel.ResponseEnvelopeApikeyModel>;
26
- /**
27
- * @param {InventoryPublicValidator.GetConfigByApiKeyParam} arg - Arg object.
28
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
29
- * @param {import("../PublicAPIClient").Options} - Options
30
- * @returns {Promise<InventoryPublicModel.ResponseEnvelopeSlingshotConfigurationDetail>}
31
- * - Success response
32
- *
33
- * @name getConfigByApiKey
34
- * @summary: Get Slingshot Configuration Of A Company using API key
35
- * @description: REST Endpoint that returns all configuration detail of a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getConfigByApiKey/).
36
- */
37
- getConfigByApiKey({ apikey, requestHeaders }?: InventoryPublicValidator.GetConfigByApiKeyParam, { responseHeaders }?: object): Promise<InventoryPublicModel.ResponseEnvelopeSlingshotConfigurationDetail>;
38
- /**
39
- * @param {InventoryPublicValidator.GetJobByCodeParam} arg - Arg object.
40
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
41
- * @param {import("../PublicAPIClient").Options} - Options
42
- * @returns {Promise<InventoryPublicModel.ResponseEnvelopeJobConfigDTO>} -
43
- * Success response
44
- * @name getJobByCode
45
- * @summary: Get Job Config By Code
46
- * @description: REST Endpoint that returns job config by code - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getJobByCode/).
47
- */
48
- getJobByCode({ code, requestHeaders }?: InventoryPublicValidator.GetJobByCodeParam, { responseHeaders }?: object): Promise<InventoryPublicModel.ResponseEnvelopeJobConfigDTO>;
49
- /**
50
- * @param {InventoryPublicValidator.GetJobCodesMetricsParam} arg - Arg object.
51
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
52
- * @param {import("../PublicAPIClient").Options} - Options
53
- * @returns {Promise<InventoryPublicModel.ResponseEnvelopeObject>} - Success response
54
- * @name getJobCodesMetrics
55
- * @summary: Find all the JobCodes from Metrics Collection based on the field Values
56
- * @description: Endpoint to return all JobCodes present in Metrics Collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getJobCodesMetrics/).
57
- */
58
- getJobCodesMetrics({ dailyJob, jobCode, requestHeaders }?: InventoryPublicValidator.GetJobCodesMetricsParam, { responseHeaders }?: object): Promise<InventoryPublicModel.ResponseEnvelopeObject>;
59
- /**
60
- * @param {InventoryPublicValidator.GetJobConfigByIntegrationTypeParam} arg
61
- * - Arg object.
62
- *
63
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
64
- * @param {import("../PublicAPIClient").Options} - Options
65
- * @returns {Promise<InventoryPublicModel.ResponseEnvelopeListJobConfigDTO>}
66
- * - Success response
67
- *
68
- * @name getJobConfigByIntegrationType
69
- * @summary: Get Job Configs By Integration Type
70
- * @description: REST Endpoint that returns all job Configs by Integration Type - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/getJobConfigByIntegrationType/).
71
- */
72
- getJobConfigByIntegrationType({ integrationType, disable, requestHeaders }?: InventoryPublicValidator.GetJobConfigByIntegrationTypeParam, { responseHeaders }?: object): Promise<InventoryPublicModel.ResponseEnvelopeListJobConfigDTO>;
73
- /**
74
- * @param {InventoryPublicValidator.SaveJobCodesMetricsParam} arg - Arg object.
75
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
76
- * @param {import("../PublicAPIClient").Options} - Options
77
- * @returns {Promise<InventoryPublicModel.ResponseEnvelopeEmailJobMetrics>}
78
- * - Success response
79
- *
80
- * @name saveJobCodesMetrics
81
- * @summary: Save JobCode Metrics
82
- * @description: Endpoint to save JobCode Metrics - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/inventory/saveJobCodesMetrics/).
83
- */
84
- saveJobCodesMetrics({ body, requestHeaders }?: InventoryPublicValidator.SaveJobCodesMetricsParam, { responseHeaders }?: object): Promise<InventoryPublicModel.ResponseEnvelopeEmailJobMetrics>;
85
- }
86
- import InventoryPublicValidator = require("./InventoryPublicValidator");
87
- import InventoryPublicModel = require("./InventoryPublicModel");