@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4
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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
- package/sdk/application/Order/OrderApplicationModel.js +828 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
- package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.js +4 -7
- package/sdk/application/User/UserApplicationModel.d.ts +769 -764
- package/sdk/application/User/UserApplicationModel.js +731 -741
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
- package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
- package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
- package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
- package/sdk/platform/User/UserPlatformModel.js +731 -661
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -1,261 +1,210 @@
|
|
|
1
1
|
export = DiscountPlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {string}
|
|
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
|
|
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}
|
|
49
|
-
* @property {
|
|
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 {
|
|
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
|
|
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
|
|
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 {
|
|
104
|
-
* @property {
|
|
105
|
-
* @property {
|
|
106
|
-
* @property {string} [
|
|
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 {
|
|
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
|
|
115
|
-
* @property {
|
|
119
|
+
* @property {string} name
|
|
120
|
+
* @property {boolean} is_active
|
|
116
121
|
* @property {number} company_id
|
|
117
|
-
* @property {string} [
|
|
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 {
|
|
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
|
|
129
|
-
* @property {
|
|
130
|
-
* @property {
|
|
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
|
|
147
|
-
* @property {
|
|
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 {
|
|
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
|
|
167
|
-
* @property {string}
|
|
168
|
-
|
|
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 {
|
|
173
|
+
export { ValidityObject, CreateUpdateDiscount, DiscountMeta, DiscountJob, FileJobBody, ListOrCalender, DiscountItems, BulkDiscount, FileJobResponse, FileJobRequest, DownloadFileJob, CancelJobResponse, Page, UserDetails, BadRequestObject, BadRequestData, BadRequestObjectGet };
|
|
174
174
|
}
|
|
175
|
-
/** @returns {
|
|
176
|
-
declare function
|
|
177
|
-
type
|
|
178
|
-
|
|
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
|
-
|
|
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
|
-
|
|
229
|
-
|
|
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
|
-
|
|
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 {
|
|
276
|
-
declare function
|
|
277
|
-
type
|
|
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
|
-
|
|
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
|
-
|
|
297
|
-
|
|
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 {
|
|
306
|
-
declare function
|
|
307
|
-
type
|
|
308
|
-
|
|
309
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
344
|
-
declare function
|
|
345
|
-
type
|
|
346
|
-
|
|
347
|
-
|
|
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
|
-
|
|
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 {
|
|
367
|
-
declare function
|
|
368
|
-
type
|
|
369
|
-
|
|
370
|
-
|
|
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
|
};
|