@gofynd/fdk-client-javascript 1.3.11-beta.6 → 1.3.11-beta.8

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 (229) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  56. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  58. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  59. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  60. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  62. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  67. package/sdk/partner/PartnerClient.d.ts +6 -0
  68. package/sdk/partner/PartnerClient.js +9 -0
  69. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  70. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  71. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  72. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  73. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  74. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  75. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  76. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  77. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  78. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  79. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  80. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  81. package/sdk/partner/index.d.ts +3 -0
  82. package/sdk/partner/index.js +6 -0
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  85. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  86. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  87. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  88. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  89. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  90. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  91. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  92. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  93. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  94. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  95. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  100. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  101. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  102. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  103. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  104. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  105. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  106. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  110. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  111. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  112. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  113. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  118. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  119. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  120. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  121. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  122. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  123. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  124. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  125. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
  126. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
  127. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
  128. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  129. package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
  130. package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
  131. package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
  132. package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
  133. package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  145. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  147. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  150. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  151. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  152. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  153. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  154. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  155. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  156. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  158. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  160. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  161. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  162. package/sdk/platform/Order/OrderPlatformModel.d.ts +1030 -468
  163. package/sdk/platform/Order/OrderPlatformModel.js +1176 -523
  164. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  165. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  166. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  167. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  168. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  169. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  170. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  171. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  172. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  173. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  174. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  175. package/sdk/platform/PlatformApplicationClient.js +4 -4
  176. package/sdk/platform/PlatformClient.d.ts +4 -2
  177. package/sdk/platform/PlatformClient.js +8 -4
  178. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  179. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  188. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  189. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  190. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  191. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  192. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  193. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  194. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  195. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  196. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  197. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  198. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  199. package/sdk/platform/User/UserPlatformModel.js +256 -5
  200. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  201. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  202. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  203. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  204. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  205. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  206. package/sdk/platform/index.d.ts +1 -1
  207. package/sdk/platform/index.js +2 -2
  208. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  209. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  210. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  211. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  212. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  213. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  214. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  215. package/sdk/public/Content/ContentPublicClient.js +114 -0
  216. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  217. package/sdk/public/Content/ContentPublicModel.js +60 -0
  218. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  219. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  220. package/sdk/public/PublicClient.d.ts +4 -0
  221. package/sdk/public/PublicClient.js +8 -0
  222. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  223. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  224. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  225. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  226. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  227. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  228. package/sdk/public/index.d.ts +2 -0
  229. package/sdk/public/index.js +4 -0
@@ -1,8 +1,18 @@
1
1
  export = DiscountPlatformModel;
2
+ /**
3
+ * @typedef BadRequestData
4
+ * @property {string} [message]
5
+ */
2
6
  /**
3
7
  * @typedef BadRequestObject
4
8
  * @property {string} message
5
9
  */
10
+ /**
11
+ * @typedef BadRequestObjectGet
12
+ * @property {BadRequestData} [data]
13
+ * @property {string} [error]
14
+ * @property {string} [message]
15
+ */
6
16
  /**
7
17
  * @typedef BulkDiscount
8
18
  * @property {number} company_id
@@ -20,7 +30,7 @@ export = DiscountPlatformModel;
20
30
  * @property {string} discount_level
21
31
  * @property {DiscountMeta} [discount_meta]
22
32
  * @property {string} discount_type
23
- * @property {string[]} extension_ids
33
+ * @property {string[]} [extension_ids]
24
34
  * @property {string} [file_path]
25
35
  * @property {boolean} is_active
26
36
  * @property {string} job_type
@@ -28,11 +38,10 @@ export = DiscountPlatformModel;
28
38
  * @property {number[]} [store_ids]
29
39
  * @property {ValidityObject} validity
30
40
  * @property {number} [value]
31
- * @property {string[]} [zone_ids]
32
41
  */
33
42
  /**
34
43
  * @typedef DiscountItems
35
- * @property {number} [brand_uid]
44
+ * @property {string} [brand_name]
36
45
  * @property {DiscountMeta} [discount_meta]
37
46
  * @property {string} discount_type
38
47
  * @property {string} [item_code]
@@ -60,6 +69,7 @@ export = DiscountPlatformModel;
60
69
  * @property {number[]} [store_ids]
61
70
  * @property {ValidityObject} validity
62
71
  * @property {number} [value]
72
+ * @property {string[]} [zone_ids]
63
73
  */
64
74
  /**
65
75
  * @typedef DiscountMeta
@@ -75,10 +85,34 @@ export = DiscountPlatformModel;
75
85
  * @property {number[]} [brand_ids]
76
86
  * @property {number[]} [store_ids]
77
87
  */
88
+ /**
89
+ * @typedef FileJobBody
90
+ * @property {string[]} [app_ids]
91
+ * @property {number[]} [brand_ids]
92
+ * @property {number} [company_id]
93
+ * @property {UserDetails} [created_by]
94
+ * @property {string} [created_on]
95
+ * @property {string} [discount_level]
96
+ * @property {DiscountMeta} [discount_meta]
97
+ * @property {string} [discount_type]
98
+ * @property {string[]} [extension_ids]
99
+ * @property {string} [file_path]
100
+ * @property {boolean} [is_active]
101
+ * @property {string} [job_type]
102
+ * @property {Object} [meta]
103
+ * @property {UserDetails} [modified_by]
104
+ * @property {string} [modified_on]
105
+ * @property {string} [name]
106
+ * @property {number[]} [store_ids]
107
+ * @property {ValidityObject} [validity]
108
+ * @property {number} [value]
109
+ * @property {string[]} [zone_ids]
110
+ */
78
111
  /**
79
112
  * @typedef FileJobRequest
80
113
  * @property {string[]} [app_ids]
81
114
  * @property {number[]} [brand_ids]
115
+ * @property {number} company_id
82
116
  * @property {string} [discount_level]
83
117
  * @property {string} [discount_type]
84
118
  * @property {string} [file_path]
@@ -92,14 +126,20 @@ export = DiscountPlatformModel;
92
126
  /**
93
127
  * @typedef FileJobResponse
94
128
  * @property {string} _id - A unique identifier to distinguish and identify a job.
95
- * @property {Object} [body]
129
+ * @property {FileJobBody} [body]
96
130
  * @property {number} company_id
131
+ * @property {UserDetails} [created_by]
132
+ * @property {string} [created_on]
133
+ * @property {string[]} [extension_ids]
97
134
  * @property {number} failed
98
- * @property {string} file_path
99
- * @property {string} file_type
135
+ * @property {string} [file_path]
136
+ * @property {string} [file_type]
137
+ * @property {string} [modified_on]
138
+ * @property {number} [progress]
100
139
  * @property {string} stage
101
140
  * @property {number} total
102
141
  * @property {string} type
142
+ * @property {string[]} [zone_ids]
103
143
  */
104
144
  /**
105
145
  * @typedef ListOrCalender
@@ -129,13 +169,25 @@ export = DiscountPlatformModel;
129
169
  declare class DiscountPlatformModel {
130
170
  }
131
171
  declare namespace DiscountPlatformModel {
132
- export { BadRequestObject, BulkDiscount, CancelJobResponse, CreateUpdateDiscount, DiscountItems, DiscountJob, DiscountMeta, DownloadFileJob, FileJobRequest, FileJobResponse, ListOrCalender, Page, UserDetails, ValidityObject };
172
+ export { BadRequestData, BadRequestObject, BadRequestObjectGet, BulkDiscount, CancelJobResponse, CreateUpdateDiscount, DiscountItems, DiscountJob, DiscountMeta, DownloadFileJob, FileJobBody, FileJobRequest, FileJobResponse, ListOrCalender, Page, UserDetails, ValidityObject };
133
173
  }
174
+ /** @returns {BadRequestData} */
175
+ declare function BadRequestData(): BadRequestData;
176
+ type BadRequestData = {
177
+ message?: string;
178
+ };
134
179
  /** @returns {BadRequestObject} */
135
180
  declare function BadRequestObject(): BadRequestObject;
136
181
  type BadRequestObject = {
137
182
  message: string;
138
183
  };
184
+ /** @returns {BadRequestObjectGet} */
185
+ declare function BadRequestObjectGet(): BadRequestObjectGet;
186
+ type BadRequestObjectGet = {
187
+ data?: BadRequestData;
188
+ error?: string;
189
+ message?: string;
190
+ };
139
191
  /** @returns {BulkDiscount} */
140
192
  declare function BulkDiscount(): BulkDiscount;
141
193
  type BulkDiscount = {
@@ -156,7 +208,7 @@ type CreateUpdateDiscount = {
156
208
  discount_level: string;
157
209
  discount_meta?: DiscountMeta;
158
210
  discount_type: string;
159
- extension_ids: string[];
211
+ extension_ids?: string[];
160
212
  file_path?: string;
161
213
  is_active: boolean;
162
214
  job_type: string;
@@ -164,12 +216,11 @@ type CreateUpdateDiscount = {
164
216
  store_ids?: number[];
165
217
  validity: ValidityObject;
166
218
  value?: number;
167
- zone_ids?: string[];
168
219
  };
169
220
  /** @returns {DiscountItems} */
170
221
  declare function DiscountItems(): DiscountItems;
171
222
  type DiscountItems = {
172
- brand_uid?: number;
223
+ brand_name?: string;
173
224
  discount_meta?: DiscountMeta;
174
225
  discount_type: string;
175
226
  item_code?: string;
@@ -198,6 +249,7 @@ type DiscountJob = {
198
249
  store_ids?: number[];
199
250
  validity: ValidityObject;
200
251
  value?: number;
252
+ zone_ids?: string[];
201
253
  };
202
254
  /** @returns {DiscountMeta} */
203
255
  declare function DiscountMeta(): DiscountMeta;
@@ -224,11 +276,36 @@ type DownloadFileJob = {
224
276
  brand_ids?: number[];
225
277
  store_ids?: number[];
226
278
  };
279
+ /** @returns {FileJobBody} */
280
+ declare function FileJobBody(): FileJobBody;
281
+ type FileJobBody = {
282
+ app_ids?: string[];
283
+ brand_ids?: number[];
284
+ company_id?: number;
285
+ created_by?: UserDetails;
286
+ created_on?: string;
287
+ discount_level?: string;
288
+ discount_meta?: DiscountMeta;
289
+ discount_type?: string;
290
+ extension_ids?: string[];
291
+ file_path?: string;
292
+ is_active?: boolean;
293
+ job_type?: string;
294
+ meta?: any;
295
+ modified_by?: UserDetails;
296
+ modified_on?: string;
297
+ name?: string;
298
+ store_ids?: number[];
299
+ validity?: ValidityObject;
300
+ value?: number;
301
+ zone_ids?: string[];
302
+ };
227
303
  /** @returns {FileJobRequest} */
228
304
  declare function FileJobRequest(): FileJobRequest;
229
305
  type FileJobRequest = {
230
306
  app_ids?: string[];
231
307
  brand_ids?: number[];
308
+ company_id: number;
232
309
  discount_level?: string;
233
310
  discount_type?: string;
234
311
  file_path?: string;
@@ -246,14 +323,20 @@ type FileJobResponse = {
246
323
  * - A unique identifier to distinguish and identify a job.
247
324
  */
248
325
  _id: string;
249
- body?: any;
326
+ body?: FileJobBody;
250
327
  company_id: number;
328
+ created_by?: UserDetails;
329
+ created_on?: string;
330
+ extension_ids?: string[];
251
331
  failed: number;
252
- file_path: string;
253
- file_type: string;
332
+ file_path?: string;
333
+ file_type?: string;
334
+ modified_on?: string;
335
+ progress?: number;
254
336
  stage: string;
255
337
  total: number;
256
338
  type: string;
339
+ zone_ids?: string[];
257
340
  };
258
341
  /** @returns {ListOrCalender} */
259
342
  declare function ListOrCalender(): ListOrCalender;
@@ -1,10 +1,22 @@
1
1
  const Joi = require("joi");
2
2
 
3
+ /**
4
+ * @typedef BadRequestData
5
+ * @property {string} [message]
6
+ */
7
+
3
8
  /**
4
9
  * @typedef BadRequestObject
5
10
  * @property {string} message
6
11
  */
7
12
 
13
+ /**
14
+ * @typedef BadRequestObjectGet
15
+ * @property {BadRequestData} [data]
16
+ * @property {string} [error]
17
+ * @property {string} [message]
18
+ */
19
+
8
20
  /**
9
21
  * @typedef BulkDiscount
10
22
  * @property {number} company_id
@@ -24,7 +36,7 @@ const Joi = require("joi");
24
36
  * @property {string} discount_level
25
37
  * @property {DiscountMeta} [discount_meta]
26
38
  * @property {string} discount_type
27
- * @property {string[]} extension_ids
39
+ * @property {string[]} [extension_ids]
28
40
  * @property {string} [file_path]
29
41
  * @property {boolean} is_active
30
42
  * @property {string} job_type
@@ -32,12 +44,11 @@ const Joi = require("joi");
32
44
  * @property {number[]} [store_ids]
33
45
  * @property {ValidityObject} validity
34
46
  * @property {number} [value]
35
- * @property {string[]} [zone_ids]
36
47
  */
37
48
 
38
49
  /**
39
50
  * @typedef DiscountItems
40
- * @property {number} [brand_uid]
51
+ * @property {string} [brand_name]
41
52
  * @property {DiscountMeta} [discount_meta]
42
53
  * @property {string} discount_type
43
54
  * @property {string} [item_code]
@@ -66,6 +77,7 @@ const Joi = require("joi");
66
77
  * @property {number[]} [store_ids]
67
78
  * @property {ValidityObject} validity
68
79
  * @property {number} [value]
80
+ * @property {string[]} [zone_ids]
69
81
  */
70
82
 
71
83
  /**
@@ -84,10 +96,35 @@ const Joi = require("joi");
84
96
  * @property {number[]} [store_ids]
85
97
  */
86
98
 
99
+ /**
100
+ * @typedef FileJobBody
101
+ * @property {string[]} [app_ids]
102
+ * @property {number[]} [brand_ids]
103
+ * @property {number} [company_id]
104
+ * @property {UserDetails} [created_by]
105
+ * @property {string} [created_on]
106
+ * @property {string} [discount_level]
107
+ * @property {DiscountMeta} [discount_meta]
108
+ * @property {string} [discount_type]
109
+ * @property {string[]} [extension_ids]
110
+ * @property {string} [file_path]
111
+ * @property {boolean} [is_active]
112
+ * @property {string} [job_type]
113
+ * @property {Object} [meta]
114
+ * @property {UserDetails} [modified_by]
115
+ * @property {string} [modified_on]
116
+ * @property {string} [name]
117
+ * @property {number[]} [store_ids]
118
+ * @property {ValidityObject} [validity]
119
+ * @property {number} [value]
120
+ * @property {string[]} [zone_ids]
121
+ */
122
+
87
123
  /**
88
124
  * @typedef FileJobRequest
89
125
  * @property {string[]} [app_ids]
90
126
  * @property {number[]} [brand_ids]
127
+ * @property {number} company_id
91
128
  * @property {string} [discount_level]
92
129
  * @property {string} [discount_type]
93
130
  * @property {string} [file_path]
@@ -102,14 +139,20 @@ const Joi = require("joi");
102
139
  /**
103
140
  * @typedef FileJobResponse
104
141
  * @property {string} _id - A unique identifier to distinguish and identify a job.
105
- * @property {Object} [body]
142
+ * @property {FileJobBody} [body]
106
143
  * @property {number} company_id
144
+ * @property {UserDetails} [created_by]
145
+ * @property {string} [created_on]
146
+ * @property {string[]} [extension_ids]
107
147
  * @property {number} failed
108
- * @property {string} file_path
109
- * @property {string} file_type
148
+ * @property {string} [file_path]
149
+ * @property {string} [file_type]
150
+ * @property {string} [modified_on]
151
+ * @property {number} [progress]
110
152
  * @property {string} stage
111
153
  * @property {number} total
112
154
  * @property {string} type
155
+ * @property {string[]} [zone_ids]
113
156
  */
114
157
 
115
158
  /**
@@ -142,6 +185,13 @@ const Joi = require("joi");
142
185
  */
143
186
 
144
187
  class DiscountPlatformModel {
188
+ /** @returns {BadRequestData} */
189
+ static BadRequestData() {
190
+ return Joi.object({
191
+ message: Joi.string().allow(""),
192
+ });
193
+ }
194
+
145
195
  /** @returns {BadRequestObject} */
146
196
  static BadRequestObject() {
147
197
  return Joi.object({
@@ -149,6 +199,15 @@ class DiscountPlatformModel {
149
199
  });
150
200
  }
151
201
 
202
+ /** @returns {BadRequestObjectGet} */
203
+ static BadRequestObjectGet() {
204
+ return Joi.object({
205
+ data: DiscountPlatformModel.BadRequestData(),
206
+ error: Joi.string().allow(""),
207
+ message: Joi.string().allow(""),
208
+ });
209
+ }
210
+
152
211
  /** @returns {BulkDiscount} */
153
212
  static BulkDiscount() {
154
213
  return Joi.object({
@@ -175,7 +234,7 @@ class DiscountPlatformModel {
175
234
  discount_level: Joi.string().allow("").required(),
176
235
  discount_meta: DiscountPlatformModel.DiscountMeta(),
177
236
  discount_type: Joi.string().allow("").required(),
178
- extension_ids: Joi.array().items(Joi.string().allow("")).required(),
237
+ extension_ids: Joi.array().items(Joi.string().allow("")),
179
238
  file_path: Joi.string().allow(""),
180
239
  is_active: Joi.boolean().required(),
181
240
  job_type: Joi.string().allow("").required(),
@@ -183,14 +242,13 @@ class DiscountPlatformModel {
183
242
  store_ids: Joi.array().items(Joi.number()),
184
243
  validity: DiscountPlatformModel.ValidityObject().required(),
185
244
  value: Joi.number(),
186
- zone_ids: Joi.array().items(Joi.string().allow("")),
187
245
  });
188
246
  }
189
247
 
190
248
  /** @returns {DiscountItems} */
191
249
  static DiscountItems() {
192
250
  return Joi.object({
193
- brand_uid: Joi.number(),
251
+ brand_name: Joi.string().allow(""),
194
252
  discount_meta: DiscountPlatformModel.DiscountMeta(),
195
253
  discount_type: Joi.string().allow("").required(),
196
254
  item_code: Joi.string().allow(""),
@@ -221,6 +279,7 @@ class DiscountPlatformModel {
221
279
  store_ids: Joi.array().items(Joi.number()),
222
280
  validity: DiscountPlatformModel.ValidityObject().required(),
223
281
  value: Joi.number(),
282
+ zone_ids: Joi.array().items(Joi.string().allow("")),
224
283
  });
225
284
  }
226
285
 
@@ -241,11 +300,38 @@ class DiscountPlatformModel {
241
300
  });
242
301
  }
243
302
 
303
+ /** @returns {FileJobBody} */
304
+ static FileJobBody() {
305
+ return Joi.object({
306
+ app_ids: Joi.array().items(Joi.string().allow("")),
307
+ brand_ids: Joi.array().items(Joi.number()),
308
+ company_id: Joi.number(),
309
+ created_by: DiscountPlatformModel.UserDetails(),
310
+ created_on: Joi.string().allow(""),
311
+ discount_level: Joi.string().allow(""),
312
+ discount_meta: DiscountPlatformModel.DiscountMeta(),
313
+ discount_type: Joi.string().allow(""),
314
+ extension_ids: Joi.array().items(Joi.string().allow("")),
315
+ file_path: Joi.string().allow(""),
316
+ is_active: Joi.boolean(),
317
+ job_type: Joi.string().allow(""),
318
+ meta: Joi.any(),
319
+ modified_by: DiscountPlatformModel.UserDetails(),
320
+ modified_on: Joi.string().allow(""),
321
+ name: Joi.string().allow(""),
322
+ store_ids: Joi.array().items(Joi.number()),
323
+ validity: DiscountPlatformModel.ValidityObject(),
324
+ value: Joi.number(),
325
+ zone_ids: Joi.array().items(Joi.string().allow("")),
326
+ });
327
+ }
328
+
244
329
  /** @returns {FileJobRequest} */
245
330
  static FileJobRequest() {
246
331
  return Joi.object({
247
332
  app_ids: Joi.array().items(Joi.string().allow("")),
248
333
  brand_ids: Joi.array().items(Joi.number()),
334
+ company_id: Joi.number().required(),
249
335
  discount_level: Joi.string().allow(""),
250
336
  discount_type: Joi.string().allow(""),
251
337
  file_path: Joi.string().allow(""),
@@ -262,14 +348,20 @@ class DiscountPlatformModel {
262
348
  static FileJobResponse() {
263
349
  return Joi.object({
264
350
  _id: Joi.string().allow("").required(),
265
- body: Joi.any(),
351
+ body: DiscountPlatformModel.FileJobBody(),
266
352
  company_id: Joi.number().required(),
353
+ created_by: DiscountPlatformModel.UserDetails(),
354
+ created_on: Joi.string().allow(""),
355
+ extension_ids: Joi.array().items(Joi.string().allow("")),
267
356
  failed: Joi.number().required(),
268
- file_path: Joi.string().allow("").required(),
269
- file_type: Joi.string().allow("").required(),
357
+ file_path: Joi.string().allow(""),
358
+ file_type: Joi.string().allow(""),
359
+ modified_on: Joi.string().allow(""),
360
+ progress: Joi.number(),
270
361
  stage: Joi.string().allow("").required(),
271
362
  total: Joi.number().required(),
272
363
  type: Joi.string().allow("").required(),
364
+ zone_ids: Joi.array().items(Joi.string().allow("")),
273
365
  });
274
366
  }
275
367
 
@@ -82,7 +82,17 @@ declare class FileStorage {
82
82
  * @summary: Browse Files
83
83
  * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/).
84
84
  */
85
- appbrowse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformApplicationValidator.AppbrowseParam, { responseHeaders }?: object): Promise<any>;
85
+ appbrowse({ namespace, page, limit, search, requestHeaders }?: FileStoragePlatformApplicationValidator.AppbrowseParam, { responseHeaders }?: object): Promise<any>;
86
+ /**
87
+ * @param {FileStoragePlatformApplicationValidator.BrowsefilesParam} arg - Arg object
88
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
89
+ * @param {import("../PlatformAPIClient").Options} - Options
90
+ * @returns {Promise<Object>} - Success response
91
+ * @name browsefiles
92
+ * @summary: Browse Files
93
+ * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browsefiles/).
94
+ */
95
+ browsefiles({ namespace, body, page, limit, search, requestHeaders }?: FileStoragePlatformApplicationValidator.BrowsefilesParam, { responseHeaders }?: object): Promise<any>;
86
96
  /**
87
97
  * @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg
88
98
  * - Arg object
@@ -106,7 +116,7 @@ declare class FileStorage {
106
116
  * @summary: Get html template for sales channel
107
117
  * @description: Get default html template for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultHtmlTemplate/).
108
118
  */
109
- getDefaultHtmlTemplate({ pdfTypeId, format, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfConfigSuccess>;
119
+ getDefaultHtmlTemplate({ pdfTypeId, format, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultHtmlTemplateParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfConfigSuccess>;
110
120
  /**
111
121
  * @param {FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam} arg
112
122
  * - Arg object
@@ -119,7 +129,7 @@ declare class FileStorage {
119
129
  * @summary: Get Dummy pdf data for invoice or label
120
130
  * @description: Get Dummy pdf data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
121
131
  */
122
- getDefaultPdfData({ pdfTypeId, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.DummyTemplateDataItems>;
132
+ getDefaultPdfData({ pdfTypeId, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.DummyTemplateDataItems>;
123
133
  /**
124
134
  * @param {FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam} arg
125
135
  * - Arg object
@@ -132,7 +142,7 @@ declare class FileStorage {
132
142
  * @summary: Default html template
133
143
  * @description: Get default html template data for invoice or label - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/).
134
144
  */
135
- getDefaultPdfTemplate({ pdfTypeId, format, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfDefaultTemplateSuccess>;
145
+ getDefaultPdfTemplate({ pdfTypeId, format, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfDefaultTemplateSuccess>;
136
146
  /**
137
147
  * @param {FileStoragePlatformApplicationValidator.GetPdfTypesParam} arg - Arg object
138
148
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -141,9 +151,9 @@ declare class FileStorage {
141
151
  * Success response
142
152
  * @name getPdfTypes
143
153
  * @summary: Get all the supported invoice pdf types
144
- * @description: Get all the supported invoice pdf types such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
154
+ * @description: Get all the supported invoice pdf types such as Invoice, Label, Delivery challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
145
155
  */
146
- getPdfTypes({ requestHeaders }?: any, { responseHeaders }?: object): Promise<FileStoragePlatformModel.InvoiceTypesResponse>;
156
+ getPdfTypes({ countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfTypesParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.InvoiceTypesResponse>;
147
157
  /**
148
158
  * @param {FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam} arg
149
159
  * - Arg object