@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.3

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 (106) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
  4. package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
  5. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  6. package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
  7. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  8. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  9. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  10. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  11. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
  12. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
  14. package/sdk/application/Content/ContentApplicationModel.js +757 -757
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  16. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  17. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  18. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  19. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
  21. package/sdk/application/Order/OrderApplicationModel.d.ts +846 -846
  22. package/sdk/application/Order/OrderApplicationModel.js +822 -822
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  24. package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
  25. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2155 -2150
  26. package/sdk/application/Payment/PaymentApplicationModel.js +1460 -1458
  27. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  28. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  29. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
  30. package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
  31. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  32. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  33. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  34. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  35. package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
  36. package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
  37. package/sdk/application/User/UserApplicationModel.d.ts +762 -762
  38. package/sdk/application/User/UserApplicationModel.js +738 -738
  39. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
  40. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
  41. package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
  42. package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
  43. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
  44. package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
  45. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
  46. package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
  47. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
  48. package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
  49. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  50. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  51. package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
  52. package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
  53. package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
  54. package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -1013
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +923 -923
  57. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  58. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  59. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
  60. package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
  61. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
  62. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
  63. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
  64. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
  65. package/sdk/platform/Content/ContentPlatformModel.d.ts +1833 -1833
  66. package/sdk/platform/Content/ContentPlatformModel.js +1837 -1837
  67. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
  68. package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
  69. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +865 -865
  70. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +877 -877
  71. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
  72. package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
  73. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  74. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  75. package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
  76. package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
  77. package/sdk/platform/Order/OrderPlatformModel.d.ts +5180 -5176
  78. package/sdk/platform/Order/OrderPlatformModel.js +4740 -4736
  79. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  80. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  81. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2670 -2660
  82. package/sdk/platform/Payment/PaymentPlatformModel.js +1831 -1827
  83. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  84. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  85. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1505 -1507
  86. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1532 -1536
  87. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  88. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  89. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
  90. package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
  91. package/sdk/platform/User/UserPlatformModel.d.ts +758 -758
  92. package/sdk/platform/User/UserPlatformModel.js +643 -643
  93. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
  94. package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
  95. package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
  96. package/sdk/public/Billing/BillingPublicModel.js +51 -51
  97. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  98. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  99. package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
  100. package/sdk/public/Content/ContentPublicModel.js +28 -28
  101. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  102. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  103. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  104. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  105. package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
  106. package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
@@ -1,261 +1,210 @@
1
1
  export = DiscountPlatformModel;
2
2
  /**
3
- * @typedef BadRequestData
4
- * @property {string} [message]
5
- */
6
- /**
7
- * @typedef BadRequestObject
8
- * @property {string} message
9
- */
10
- /**
11
- * @typedef BadRequestObjectGet
12
- * @property {BadRequestData} [data]
13
- * @property {string} [error]
14
- * @property {string} [message]
15
- */
16
- /**
17
- * @typedef BulkDiscount
18
- * @property {number} company_id
19
- * @property {DiscountItems[]} items
20
- */
21
- /**
22
- * @typedef CancelJobResponse
23
- * @property {boolean} success
3
+ * @typedef ValidityObject
4
+ * @property {string} start
5
+ * @property {string} end
24
6
  */
25
7
  /**
26
8
  * @typedef CreateUpdateDiscount
27
- * @property {string[]} app_ids
28
- * @property {number[]} [brand_ids]
9
+ * @property {string} name
29
10
  * @property {number} company_id
30
- * @property {string} discount_level
31
- * @property {DiscountMeta} [discount_meta]
32
- * @property {string} discount_type
33
- * @property {string[]} [extension_ids]
34
- * @property {string} [file_path]
35
11
  * @property {boolean} is_active
12
+ * @property {string[]} app_ids
13
+ * @property {string[]} [extension_ids]
36
14
  * @property {string} job_type
37
- * @property {string} name
38
- * @property {number[]} [store_ids]
39
- * @property {ValidityObject} validity
40
- * @property {number} [value]
41
- * @property {string[]} [zone_ids]
42
- */
43
- /**
44
- * @typedef DiscountItems
45
- * @property {string} [brand_name]
46
- * @property {DiscountMeta} [discount_meta]
47
15
  * @property {string} discount_type
48
- * @property {string} [item_code]
49
- * @property {string} [seller_identifier]
50
- * @property {number} value
51
- */
52
- /**
53
- * @typedef DiscountJob
54
- * @property {string} _id
55
- * @property {string[]} [app_ids]
56
- * @property {number[]} [brand_ids]
57
- * @property {number} company_id
58
- * @property {UserDetails} created_by
59
- * @property {string} created_on
60
- * @property {string} [discount_level]
61
- * @property {DiscountMeta} [discount_meta]
62
- * @property {string} [discount_type]
16
+ * @property {string} discount_level
17
+ * @property {number} [value]
63
18
  * @property {string} [file_path]
64
- * @property {boolean} is_active
65
- * @property {string} [job_type]
66
- * @property {Object} [meta]
67
- * @property {UserDetails} modified_by
68
- * @property {string} modified_on
69
- * @property {string} name
19
+ * @property {number[]} [brand_ids]
70
20
  * @property {number[]} [store_ids]
71
- * @property {ValidityObject} validity
72
- * @property {number} [value]
73
21
  * @property {string[]} [zone_ids]
22
+ * @property {ValidityObject} validity
23
+ * @property {DiscountMeta} [discount_meta]
74
24
  */
75
25
  /**
76
26
  * @typedef DiscountMeta
27
+ * @property {boolean} timer - Determines whether the discount countdown is
28
+ * visible or not.
77
29
  * @property {number} [hours] - The time in hours before the discount ends when
78
30
  * the countdown timer should start.
79
31
  * @property {number} [minutes] - The time in minutes before the discount ends
80
32
  * when the countdown timer should start.
81
- * @property {boolean} timer - Determines whether the discount countdown is
82
- * visible or not.
83
33
  */
84
34
  /**
85
- * @typedef DownloadFileJob
35
+ * @typedef DiscountJob
36
+ * @property {string} _id
37
+ * @property {string} name
38
+ * @property {number} company_id
39
+ * @property {boolean} is_active
40
+ * @property {string[]} [app_ids]
41
+ * @property {string} [job_type]
42
+ * @property {string} [discount_type]
43
+ * @property {string} [discount_level]
44
+ * @property {number} [value]
45
+ * @property {string} [file_path]
86
46
  * @property {number[]} [brand_ids]
87
47
  * @property {number[]} [store_ids]
48
+ * @property {string[]} [zone_ids]
49
+ * @property {DiscountMeta} [discount_meta]
50
+ * @property {ValidityObject} validity
51
+ * @property {string} created_on
52
+ * @property {string} modified_on
53
+ * @property {UserDetails} created_by
54
+ * @property {UserDetails} modified_by
55
+ * @property {Object} [meta]
88
56
  */
89
57
  /**
90
58
  * @typedef FileJobBody
91
- * @property {string[]} [app_ids]
92
- * @property {number[]} [brand_ids]
59
+ * @property {string} [name]
93
60
  * @property {number} [company_id]
94
- * @property {UserDetails} [created_by]
95
- * @property {string} [created_on]
96
- * @property {string} [discount_level]
97
- * @property {DiscountMeta} [discount_meta]
98
- * @property {string} [discount_type]
99
- * @property {string[]} [extension_ids]
100
- * @property {string} [file_path]
101
61
  * @property {boolean} [is_active]
62
+ * @property {string[]} [app_ids]
102
63
  * @property {string} [job_type]
103
- * @property {Object} [meta]
104
- * @property {UserDetails} [modified_by]
105
- * @property {string} [modified_on]
106
- * @property {string} [name]
64
+ * @property {string} [discount_type]
65
+ * @property {string} [discount_level]
66
+ * @property {number} [value]
67
+ * @property {string} [file_path]
68
+ * @property {number[]} [brand_ids]
107
69
  * @property {number[]} [store_ids]
70
+ * @property {string[]} [extension_ids]
71
+ * @property {string[]} [zone_ids]
72
+ * @property {DiscountMeta} [discount_meta]
108
73
  * @property {ValidityObject} [validity]
109
- * @property {number} [value]
74
+ * @property {string} [created_on]
75
+ * @property {string} [modified_on]
76
+ * @property {UserDetails} [created_by]
77
+ * @property {UserDetails} [modified_by]
78
+ * @property {Object} [meta]
79
+ */
80
+ /**
81
+ * @typedef ListOrCalender
82
+ * @property {DiscountJob[]} items
83
+ * @property {Page} page
84
+ */
85
+ /**
86
+ * @typedef DiscountItems
87
+ * @property {string} [item_code]
88
+ * @property {string} [brand_name]
89
+ * @property {string} [seller_identifier]
90
+ * @property {string} discount_type
91
+ * @property {number} value
92
+ * @property {DiscountMeta} [discount_meta]
93
+ */
94
+ /**
95
+ * @typedef BulkDiscount
96
+ * @property {number} company_id
97
+ * @property {DiscountItems[]} items
98
+ */
99
+ /**
100
+ * @typedef FileJobResponse
101
+ * @property {string} stage
102
+ * @property {number} total
103
+ * @property {number} failed
104
+ * @property {number} company_id
105
+ * @property {FileJobBody} [body]
106
+ * @property {string} type
107
+ * @property {string} [file_type]
108
+ * @property {string} _id - A unique identifier to distinguish and identify a job.
109
+ * @property {string} [file_path]
110
+ * @property {number} [progress]
111
+ * @property {string[]} [extension_ids]
110
112
  * @property {string[]} [zone_ids]
113
+ * @property {string} [created_on]
114
+ * @property {string} [modified_on]
115
+ * @property {UserDetails} [created_by]
111
116
  */
112
117
  /**
113
118
  * @typedef FileJobRequest
114
- * @property {string[]} [app_ids]
115
- * @property {number[]} [brand_ids]
119
+ * @property {string} name
120
+ * @property {boolean} is_active
116
121
  * @property {number} company_id
117
- * @property {string} [discount_level]
122
+ * @property {string[]} [app_ids]
123
+ * @property {string} [job_type]
118
124
  * @property {string} [discount_type]
125
+ * @property {string} [discount_level]
119
126
  * @property {string} [file_path]
120
- * @property {boolean} is_active
121
- * @property {string} [job_type]
122
- * @property {Object} [meta]
123
- * @property {string} name
127
+ * @property {number[]} [brand_ids]
124
128
  * @property {number[]} [store_ids]
125
129
  * @property {ValidityObject} validity
130
+ * @property {Object} [meta]
126
131
  */
127
132
  /**
128
- * @typedef FileJobResponse
129
- * @property {string} _id - A unique identifier to distinguish and identify a job.
130
- * @property {FileJobBody} [body]
131
- * @property {number} company_id
132
- * @property {UserDetails} [created_by]
133
- * @property {string} [created_on]
134
- * @property {string[]} [extension_ids]
135
- * @property {number} failed
136
- * @property {string} [file_path]
137
- * @property {string} [file_type]
138
- * @property {string} [modified_on]
139
- * @property {number} [progress]
140
- * @property {string} stage
141
- * @property {number} total
142
- * @property {string} type
143
- * @property {string[]} [zone_ids]
133
+ * @typedef DownloadFileJob
134
+ * @property {number[]} [brand_ids]
135
+ * @property {number[]} [store_ids]
144
136
  */
145
137
  /**
146
- * @typedef ListOrCalender
147
- * @property {DiscountJob[]} items
148
- * @property {Page} page
138
+ * @typedef CancelJobResponse
139
+ * @property {boolean} success
149
140
  */
150
141
  /**
151
142
  * @typedef Page
152
- * @property {number} [current]
153
- * @property {boolean} [has_next]
154
- * @property {boolean} [has_previous]
155
143
  * @property {number} [item_total]
156
144
  * @property {string} [next_id]
157
- * @property {number} [size]
145
+ * @property {boolean} [has_previous]
146
+ * @property {boolean} [has_next]
147
+ * @property {number} [current]
158
148
  * @property {string} type
149
+ * @property {number} [size]
159
150
  */
160
151
  /**
161
152
  * @typedef UserDetails
162
- * @property {string} user_id
163
153
  * @property {string} username
154
+ * @property {string} user_id
164
155
  */
165
156
  /**
166
- * @typedef ValidityObject
167
- * @property {string} end
168
- * @property {string} start
157
+ * @typedef BadRequestObject
158
+ * @property {string} message
159
+ */
160
+ /**
161
+ * @typedef BadRequestData
162
+ * @property {string} [message]
163
+ */
164
+ /**
165
+ * @typedef BadRequestObjectGet
166
+ * @property {string} [message]
167
+ * @property {string} [error]
168
+ * @property {BadRequestData} [data]
169
169
  */
170
170
  declare class DiscountPlatformModel {
171
171
  }
172
172
  declare namespace DiscountPlatformModel {
173
- export { BadRequestData, BadRequestObject, BadRequestObjectGet, BulkDiscount, CancelJobResponse, CreateUpdateDiscount, DiscountItems, DiscountJob, DiscountMeta, DownloadFileJob, FileJobBody, FileJobRequest, FileJobResponse, ListOrCalender, Page, UserDetails, ValidityObject };
173
+ export { ValidityObject, CreateUpdateDiscount, DiscountMeta, DiscountJob, FileJobBody, ListOrCalender, DiscountItems, BulkDiscount, FileJobResponse, FileJobRequest, DownloadFileJob, CancelJobResponse, Page, UserDetails, BadRequestObject, BadRequestData, BadRequestObjectGet };
174
174
  }
175
- /** @returns {BadRequestData} */
176
- declare function BadRequestData(): BadRequestData;
177
- type BadRequestData = {
178
- message?: string;
179
- };
180
- /** @returns {BadRequestObject} */
181
- declare function BadRequestObject(): BadRequestObject;
182
- type BadRequestObject = {
183
- message: string;
184
- };
185
- /** @returns {BadRequestObjectGet} */
186
- declare function BadRequestObjectGet(): BadRequestObjectGet;
187
- type BadRequestObjectGet = {
188
- data?: BadRequestData;
189
- error?: string;
190
- message?: string;
191
- };
192
- /** @returns {BulkDiscount} */
193
- declare function BulkDiscount(): BulkDiscount;
194
- type BulkDiscount = {
195
- company_id: number;
196
- items: DiscountItems[];
197
- };
198
- /** @returns {CancelJobResponse} */
199
- declare function CancelJobResponse(): CancelJobResponse;
200
- type CancelJobResponse = {
201
- success: boolean;
175
+ /** @returns {ValidityObject} */
176
+ declare function ValidityObject(): ValidityObject;
177
+ type ValidityObject = {
178
+ start: string;
179
+ end: string;
202
180
  };
203
181
  /** @returns {CreateUpdateDiscount} */
204
182
  declare function CreateUpdateDiscount(): CreateUpdateDiscount;
205
183
  type CreateUpdateDiscount = {
206
- app_ids: string[];
207
- brand_ids?: number[];
184
+ name: string;
208
185
  company_id: number;
209
- discount_level: string;
210
- discount_meta?: DiscountMeta;
211
- discount_type: string;
212
- extension_ids?: string[];
213
- file_path?: string;
214
186
  is_active: boolean;
187
+ app_ids: string[];
188
+ extension_ids?: string[];
215
189
  job_type: string;
216
- name: string;
217
- store_ids?: number[];
218
- validity: ValidityObject;
219
- value?: number;
220
- zone_ids?: string[];
221
- };
222
- /** @returns {DiscountItems} */
223
- declare function DiscountItems(): DiscountItems;
224
- type DiscountItems = {
225
- brand_name?: string;
226
- discount_meta?: DiscountMeta;
227
190
  discount_type: string;
228
- item_code?: string;
229
- seller_identifier?: string;
230
- value: number;
231
- };
232
- /** @returns {DiscountJob} */
233
- declare function DiscountJob(): DiscountJob;
234
- type DiscountJob = {
235
- _id: string;
236
- app_ids?: string[];
237
- brand_ids?: number[];
238
- company_id: number;
239
- created_by: UserDetails;
240
- created_on: string;
241
- discount_level?: string;
242
- discount_meta?: DiscountMeta;
243
- discount_type?: string;
191
+ discount_level: string;
192
+ value?: number;
244
193
  file_path?: string;
245
- is_active: boolean;
246
- job_type?: string;
247
- meta?: any;
248
- modified_by: UserDetails;
249
- modified_on: string;
250
- name: string;
194
+ brand_ids?: number[];
251
195
  store_ids?: number[];
252
- validity: ValidityObject;
253
- value?: number;
254
196
  zone_ids?: string[];
197
+ validity: ValidityObject;
198
+ discount_meta?: DiscountMeta;
255
199
  };
256
200
  /** @returns {DiscountMeta} */
257
201
  declare function DiscountMeta(): DiscountMeta;
258
202
  type DiscountMeta = {
203
+ /**
204
+ * - Determines whether the discount countdown is
205
+ * visible or not.
206
+ */
207
+ timer: boolean;
259
208
  /**
260
209
  * - The time in hours before the discount ends when
261
210
  * the countdown timer should start.
@@ -266,106 +215,157 @@ type DiscountMeta = {
266
215
  * when the countdown timer should start.
267
216
  */
268
217
  minutes?: number;
269
- /**
270
- * - Determines whether the discount countdown is
271
- * visible or not.
272
- */
273
- timer: boolean;
274
218
  };
275
- /** @returns {DownloadFileJob} */
276
- declare function DownloadFileJob(): DownloadFileJob;
277
- type DownloadFileJob = {
219
+ /** @returns {DiscountJob} */
220
+ declare function DiscountJob(): DiscountJob;
221
+ type DiscountJob = {
222
+ _id: string;
223
+ name: string;
224
+ company_id: number;
225
+ is_active: boolean;
226
+ app_ids?: string[];
227
+ job_type?: string;
228
+ discount_type?: string;
229
+ discount_level?: string;
230
+ value?: number;
231
+ file_path?: string;
278
232
  brand_ids?: number[];
279
233
  store_ids?: number[];
234
+ zone_ids?: string[];
235
+ discount_meta?: DiscountMeta;
236
+ validity: ValidityObject;
237
+ created_on: string;
238
+ modified_on: string;
239
+ created_by: UserDetails;
240
+ modified_by: UserDetails;
241
+ meta?: any;
280
242
  };
281
243
  /** @returns {FileJobBody} */
282
244
  declare function FileJobBody(): FileJobBody;
283
245
  type FileJobBody = {
284
- app_ids?: string[];
285
- brand_ids?: number[];
246
+ name?: string;
286
247
  company_id?: number;
287
- created_by?: UserDetails;
288
- created_on?: string;
289
- discount_level?: string;
290
- discount_meta?: DiscountMeta;
291
- discount_type?: string;
292
- extension_ids?: string[];
293
- file_path?: string;
294
248
  is_active?: boolean;
249
+ app_ids?: string[];
295
250
  job_type?: string;
296
- meta?: any;
297
- modified_by?: UserDetails;
298
- modified_on?: string;
299
- name?: string;
300
- store_ids?: number[];
301
- validity?: ValidityObject;
251
+ discount_type?: string;
252
+ discount_level?: string;
302
253
  value?: number;
254
+ file_path?: string;
255
+ brand_ids?: number[];
256
+ store_ids?: number[];
257
+ extension_ids?: string[];
303
258
  zone_ids?: string[];
259
+ discount_meta?: DiscountMeta;
260
+ validity?: ValidityObject;
261
+ created_on?: string;
262
+ modified_on?: string;
263
+ created_by?: UserDetails;
264
+ modified_by?: UserDetails;
265
+ meta?: any;
304
266
  };
305
- /** @returns {FileJobRequest} */
306
- declare function FileJobRequest(): FileJobRequest;
307
- type FileJobRequest = {
308
- app_ids?: string[];
309
- brand_ids?: number[];
267
+ /** @returns {ListOrCalender} */
268
+ declare function ListOrCalender(): ListOrCalender;
269
+ type ListOrCalender = {
270
+ items: DiscountJob[];
271
+ page: Page;
272
+ };
273
+ /** @returns {DiscountItems} */
274
+ declare function DiscountItems(): DiscountItems;
275
+ type DiscountItems = {
276
+ item_code?: string;
277
+ brand_name?: string;
278
+ seller_identifier?: string;
279
+ discount_type: string;
280
+ value: number;
281
+ discount_meta?: DiscountMeta;
282
+ };
283
+ /** @returns {BulkDiscount} */
284
+ declare function BulkDiscount(): BulkDiscount;
285
+ type BulkDiscount = {
310
286
  company_id: number;
311
- discount_level?: string;
312
- discount_type?: string;
313
- file_path?: string;
314
- is_active: boolean;
315
- job_type?: string;
316
- meta?: any;
317
- name: string;
318
- store_ids?: number[];
319
- validity: ValidityObject;
287
+ items: DiscountItems[];
320
288
  };
321
289
  /** @returns {FileJobResponse} */
322
290
  declare function FileJobResponse(): FileJobResponse;
323
291
  type FileJobResponse = {
292
+ stage: string;
293
+ total: number;
294
+ failed: number;
295
+ company_id: number;
296
+ body?: FileJobBody;
297
+ type: string;
298
+ file_type?: string;
324
299
  /**
325
300
  * - A unique identifier to distinguish and identify a job.
326
301
  */
327
302
  _id: string;
328
- body?: FileJobBody;
329
- company_id: number;
330
- created_by?: UserDetails;
331
- created_on?: string;
332
- extension_ids?: string[];
333
- failed: number;
334
303
  file_path?: string;
335
- file_type?: string;
336
- modified_on?: string;
337
304
  progress?: number;
338
- stage: string;
339
- total: number;
340
- type: string;
305
+ extension_ids?: string[];
341
306
  zone_ids?: string[];
307
+ created_on?: string;
308
+ modified_on?: string;
309
+ created_by?: UserDetails;
342
310
  };
343
- /** @returns {ListOrCalender} */
344
- declare function ListOrCalender(): ListOrCalender;
345
- type ListOrCalender = {
346
- items: DiscountJob[];
347
- page: Page;
311
+ /** @returns {FileJobRequest} */
312
+ declare function FileJobRequest(): FileJobRequest;
313
+ type FileJobRequest = {
314
+ name: string;
315
+ is_active: boolean;
316
+ company_id: number;
317
+ app_ids?: string[];
318
+ job_type?: string;
319
+ discount_type?: string;
320
+ discount_level?: string;
321
+ file_path?: string;
322
+ brand_ids?: number[];
323
+ store_ids?: number[];
324
+ validity: ValidityObject;
325
+ meta?: any;
326
+ };
327
+ /** @returns {DownloadFileJob} */
328
+ declare function DownloadFileJob(): DownloadFileJob;
329
+ type DownloadFileJob = {
330
+ brand_ids?: number[];
331
+ store_ids?: number[];
332
+ };
333
+ /** @returns {CancelJobResponse} */
334
+ declare function CancelJobResponse(): CancelJobResponse;
335
+ type CancelJobResponse = {
336
+ success: boolean;
348
337
  };
349
338
  /** @returns {Page} */
350
339
  declare function Page(): Page;
351
340
  type Page = {
352
- current?: number;
353
- has_next?: boolean;
354
- has_previous?: boolean;
355
341
  item_total?: number;
356
342
  next_id?: string;
357
- size?: number;
343
+ has_previous?: boolean;
344
+ has_next?: boolean;
345
+ current?: number;
358
346
  type: string;
347
+ size?: number;
359
348
  };
360
349
  /** @returns {UserDetails} */
361
350
  declare function UserDetails(): UserDetails;
362
351
  type UserDetails = {
363
- user_id: string;
364
352
  username: string;
353
+ user_id: string;
365
354
  };
366
- /** @returns {ValidityObject} */
367
- declare function ValidityObject(): ValidityObject;
368
- type ValidityObject = {
369
- end: string;
370
- start: string;
355
+ /** @returns {BadRequestObject} */
356
+ declare function BadRequestObject(): BadRequestObject;
357
+ type BadRequestObject = {
358
+ message: string;
359
+ };
360
+ /** @returns {BadRequestData} */
361
+ declare function BadRequestData(): BadRequestData;
362
+ type BadRequestData = {
363
+ message?: string;
364
+ };
365
+ /** @returns {BadRequestObjectGet} */
366
+ declare function BadRequestObjectGet(): BadRequestObjectGet;
367
+ type BadRequestObjectGet = {
368
+ message?: string;
369
+ error?: string;
370
+ data?: BadRequestData;
371
371
  };