@gofynd/fdk-client-javascript 1.6.4 → 2.0.0
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/CartApplicationClient.d.ts +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -268
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
- package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
- package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
- package/sdk/application/Content/ContentApplicationClient.js +222 -191
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
- package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +68 -153
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
- package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
- package/sdk/platform/Cart/CartPlatformModel.js +38 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
- package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
- package/sdk/platform/Content/ContentPlatformModel.js +717 -34
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
- package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
- package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
- package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
- package/sdk/platform/Order/OrderPlatformClient.js +397 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +41 -9
- package/sdk/platform/Order/OrderPlatformModel.js +20 -7
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
- package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +13 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +12 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +52 -1
- package/sdk/platform/User/UserPlatformModel.js +36 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +5 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +2 -0
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
- package/sdk/public/Content/ContentPublicClient.js +261 -104
- package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
- package/sdk/public/Content/ContentPublicModel.js +102 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
- package/sdk/public/Content/ContentPublicValidator.js +26 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
export = DiscountPlatformModel;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef ValidityObject
|
|
4
|
-
* @property {string} start
|
|
5
|
-
* @property {string} end
|
|
4
|
+
* @property {string} start - The start date and time of the discount period.
|
|
5
|
+
* @property {string} end - The end date and time of the discount period.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* @typedef CreateUpdateDiscount
|
|
9
|
-
* @property {string} name
|
|
10
|
-
* @property {number} company_id
|
|
11
|
-
* @property {boolean} is_active
|
|
12
|
-
* @property {string[]} app_ids
|
|
13
|
-
* @property {string[]} [extension_ids]
|
|
14
|
-
*
|
|
15
|
-
* @property {string}
|
|
16
|
-
* @property {string}
|
|
17
|
-
* @property {
|
|
18
|
-
* @property {
|
|
19
|
-
* @property {
|
|
20
|
-
* @property {number[]} [
|
|
21
|
-
* @property {
|
|
9
|
+
* @property {string} name - The name of the discount.
|
|
10
|
+
* @property {number} company_id - The unique identifier for the company.
|
|
11
|
+
* @property {boolean} is_active - Indicates if the discount is currently active.
|
|
12
|
+
* @property {string[]} app_ids - List of application IDs associated with the discount.
|
|
13
|
+
* @property {string[]} [extension_ids] - List of extension IDs associated with
|
|
14
|
+
* the discount.
|
|
15
|
+
* @property {string} job_type - The type of job associated with the discount.
|
|
16
|
+
* @property {string} discount_type - The type of discount being offered.
|
|
17
|
+
* @property {string} discount_level - The level at which the discount is applied.
|
|
18
|
+
* @property {number} [value] - The value of the discount.
|
|
19
|
+
* @property {string} [file_path] - The file path for discount file.
|
|
20
|
+
* @property {number[]} [brand_ids] - List of brand IDs associated with the discount.
|
|
21
|
+
* @property {number[]} [store_ids] - List of store IDs associated with the discount.
|
|
22
|
+
* @property {string[]} [zone_ids] - List of zone IDs associated with the discount.
|
|
22
23
|
* @property {ValidityObject} validity
|
|
23
24
|
* @property {DiscountMeta} [discount_meta]
|
|
24
25
|
*/
|
|
@@ -33,110 +34,112 @@ export = DiscountPlatformModel;
|
|
|
33
34
|
*/
|
|
34
35
|
/**
|
|
35
36
|
* @typedef DiscountJob
|
|
36
|
-
* @property {string} _id
|
|
37
|
-
* @property {string} name
|
|
38
|
-
* @property {number} company_id
|
|
39
|
-
* @property {boolean} is_active
|
|
40
|
-
* @property {string[]}
|
|
41
|
-
*
|
|
42
|
-
* @property {string}
|
|
43
|
-
* @property {string} [
|
|
44
|
-
* @property {
|
|
45
|
-
* @property {
|
|
46
|
-
* @property {
|
|
47
|
-
* @property {number[]} [
|
|
48
|
-
* @property {
|
|
37
|
+
* @property {string} _id - The unique identifier for the discount job.
|
|
38
|
+
* @property {string} name - The name of the discount job.
|
|
39
|
+
* @property {number} company_id - The unique identifier for the company.
|
|
40
|
+
* @property {boolean} is_active - Indicates if the discount job is currently active.
|
|
41
|
+
* @property {string[]} app_ids - List of application IDs associated with the
|
|
42
|
+
* discount job.
|
|
43
|
+
* @property {string} job_type - The type of job associated with the discount job.
|
|
44
|
+
* @property {string} [discount_type] - The type of discount being offered.
|
|
45
|
+
* @property {string} discount_level - The level at which the discount is applied.
|
|
46
|
+
* @property {number} [value] - The value of the discount.
|
|
47
|
+
* @property {string} [file_path] - The file path for discount file.
|
|
48
|
+
* @property {number[]} [brand_ids] - List of brand IDs associated with the discount job.
|
|
49
|
+
* @property {number[]} [store_ids] - List of store IDs associated with the discount job.
|
|
50
|
+
* @property {string[]} [zone_ids] - List of zone IDs associated with the discount job.
|
|
49
51
|
* @property {DiscountMeta} [discount_meta]
|
|
50
52
|
* @property {ValidityObject} validity
|
|
51
|
-
* @property {string} created_on
|
|
52
|
-
* @property {string} modified_on
|
|
53
|
+
* @property {string} created_on - The date and time when the discount job was created.
|
|
54
|
+
* @property {string} modified_on - The date and time when the discount job was
|
|
55
|
+
* last modified.
|
|
53
56
|
* @property {UserDetails} created_by
|
|
54
57
|
* @property {UserDetails} modified_by
|
|
55
|
-
* @property {Object} [meta]
|
|
58
|
+
* @property {Object} [meta] - Additional metadata for the discount job.
|
|
56
59
|
*/
|
|
57
60
|
/**
|
|
58
61
|
* @typedef FileJobBody
|
|
59
|
-
* @property {string} [name]
|
|
60
|
-
* @property {number} [company_id]
|
|
61
|
-
* @property {boolean} [is_active]
|
|
62
|
-
* @property {string[]} [app_ids]
|
|
63
|
-
* @property {string} [job_type]
|
|
64
|
-
* @property {string} [discount_type]
|
|
65
|
-
* @property {string} [discount_level]
|
|
66
|
-
* @property {number} [value]
|
|
67
|
-
* @property {string} [file_path]
|
|
68
|
-
* @property {number[]} [brand_ids]
|
|
69
|
-
* @property {number[]} [store_ids]
|
|
70
|
-
* @property {string[]} [extension_ids]
|
|
71
|
-
* @property {string[]} [zone_ids]
|
|
62
|
+
* @property {string} [name] - The name of the job.
|
|
63
|
+
* @property {number} [company_id] - Unique identifier for the company.
|
|
64
|
+
* @property {boolean} [is_active] - Indicates if the job is active.
|
|
65
|
+
* @property {string[]} [app_ids] - List of application identifiers.
|
|
66
|
+
* @property {string} [job_type] - Type of job being processed.
|
|
67
|
+
* @property {string} [discount_type] - Type of discount applied.
|
|
68
|
+
* @property {string} [discount_level] - Level at which the discount is applied.
|
|
69
|
+
* @property {number} [value] - Value of the discount.
|
|
70
|
+
* @property {string} [file_path] - Path to the discount file associated with the job.
|
|
71
|
+
* @property {number[]} [brand_ids] - List of brand identifiers.
|
|
72
|
+
* @property {number[]} [store_ids] - List of store identifiers.
|
|
73
|
+
* @property {string[]} [extension_ids] - List of extension identifiers.
|
|
74
|
+
* @property {string[]} [zone_ids] - List of zone identifiers.
|
|
72
75
|
* @property {DiscountMeta} [discount_meta]
|
|
73
76
|
* @property {ValidityObject} [validity]
|
|
74
|
-
* @property {string} [created_on]
|
|
75
|
-
* @property {string} [modified_on]
|
|
77
|
+
* @property {string} [created_on] - Timestamp when the job was created.
|
|
78
|
+
* @property {string} [modified_on] - Timestamp when the job was last modified.
|
|
76
79
|
* @property {UserDetails} [created_by]
|
|
77
80
|
* @property {UserDetails} [modified_by]
|
|
78
|
-
* @property {Object} [meta]
|
|
81
|
+
* @property {Object} [meta] - Additional metadata for the job.
|
|
79
82
|
*/
|
|
80
83
|
/**
|
|
81
84
|
* @typedef ListOrCalender
|
|
82
|
-
* @property {DiscountJob[]} items
|
|
85
|
+
* @property {DiscountJob[]} items - List of discount jobs.
|
|
83
86
|
* @property {Page} page
|
|
84
87
|
*/
|
|
85
88
|
/**
|
|
86
89
|
* @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
|
|
90
|
+
* @property {string} [item_code] - Unique code for the item.
|
|
91
|
+
* @property {string} [brand_name] - Name of the brand.
|
|
92
|
+
* @property {string} [seller_identifier] - Unique Identifier for the size.
|
|
93
|
+
* @property {string} discount_type - Type of discount applied.
|
|
94
|
+
* @property {number} value - Value of the discount.
|
|
92
95
|
* @property {DiscountMeta} [discount_meta]
|
|
93
96
|
*/
|
|
94
97
|
/**
|
|
95
98
|
* @typedef BulkDiscount
|
|
96
|
-
* @property {number} company_id
|
|
97
|
-
* @property {DiscountItems[]} items
|
|
99
|
+
* @property {number} company_id - Uinque Identifier for the company.
|
|
100
|
+
* @property {DiscountItems[]} items - List of discount items.
|
|
98
101
|
*/
|
|
99
102
|
/**
|
|
100
103
|
* @typedef FileJobResponseSchema
|
|
101
|
-
* @property {string} stage
|
|
102
|
-
* @property {number} total
|
|
103
|
-
* @property {number} failed
|
|
104
|
-
* @property {number} company_id
|
|
104
|
+
* @property {string} stage - Current stage of the file job.
|
|
105
|
+
* @property {number} total - Total number of items processed.
|
|
106
|
+
* @property {number} failed - Number of items that failed processing.
|
|
107
|
+
* @property {number} company_id - Identifier for the company.
|
|
105
108
|
* @property {FileJobBody} [body]
|
|
106
|
-
* @property {string} type
|
|
107
|
-
* @property {string} [file_type]
|
|
109
|
+
* @property {string} type - Type of file job.
|
|
110
|
+
* @property {string} [file_type] - Type of file being processed.
|
|
108
111
|
* @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]
|
|
112
|
-
* @property {string[]} [zone_ids]
|
|
113
|
-
* @property {string} [created_on]
|
|
114
|
-
* @property {string} [modified_on]
|
|
112
|
+
* @property {string} [file_path] - Path to the disocunt file.
|
|
113
|
+
* @property {number} [progress] - Progress of the file job.
|
|
114
|
+
* @property {string[]} [extension_ids] - List of extension identifiers.
|
|
115
|
+
* @property {string[]} [zone_ids] - List of zone identifiers.
|
|
116
|
+
* @property {string} [created_on] - Timestamp when the job was created.
|
|
117
|
+
* @property {string} [modified_on] - Timestamp when the job was last modified.
|
|
115
118
|
* @property {UserDetails} [created_by]
|
|
116
119
|
*/
|
|
117
120
|
/**
|
|
118
121
|
* @typedef FileJobRequestSchema
|
|
119
|
-
* @property {string} name
|
|
120
|
-
* @property {boolean} is_active
|
|
121
|
-
* @property {number} company_id
|
|
122
|
-
* @property {string[]}
|
|
123
|
-
* @property {string}
|
|
124
|
-
* @property {string} [discount_type]
|
|
125
|
-
* @property {string}
|
|
126
|
-
* @property {string} [file_path]
|
|
127
|
-
* @property {number[]} [brand_ids]
|
|
128
|
-
* @property {number[]} [store_ids]
|
|
122
|
+
* @property {string} name - Name of the file job.
|
|
123
|
+
* @property {boolean} is_active - Indicates if the job is active.
|
|
124
|
+
* @property {number} company_id - Unique Identifier for the company.
|
|
125
|
+
* @property {string[]} app_ids - List of application identifiers.
|
|
126
|
+
* @property {string} job_type - Type of job.
|
|
127
|
+
* @property {string} [discount_type] - Type of discount.
|
|
128
|
+
* @property {string} discount_level - Level at which the discount is applied.
|
|
129
|
+
* @property {string} [file_path] - Path to the disocunt file.
|
|
130
|
+
* @property {number[]} [brand_ids] - List of brand identifiers.
|
|
131
|
+
* @property {number[]} [store_ids] - List of store identifiers.
|
|
129
132
|
* @property {ValidityObject} validity
|
|
130
|
-
* @property {Object} [meta]
|
|
133
|
+
* @property {Object} [meta] - Additional metadata for the disocunt.
|
|
131
134
|
*/
|
|
132
135
|
/**
|
|
133
136
|
* @typedef DownloadFileJob
|
|
134
|
-
* @property {number[]} [brand_ids]
|
|
135
|
-
* @property {number[]} [store_ids]
|
|
137
|
+
* @property {number[]} [brand_ids] - List of brand identifiers.
|
|
138
|
+
* @property {number[]} [store_ids] - List of store identifiers.
|
|
136
139
|
*/
|
|
137
140
|
/**
|
|
138
141
|
* @typedef CancelJobResponseSchema
|
|
139
|
-
* @property {boolean} success
|
|
142
|
+
* @property {boolean} success - Indicates if the job cancellation was successful.
|
|
140
143
|
*/
|
|
141
144
|
/**
|
|
142
145
|
* @typedef Page
|
|
@@ -147,24 +150,25 @@ export = DiscountPlatformModel;
|
|
|
147
150
|
* @property {number} [current] - The current page number.
|
|
148
151
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
149
152
|
* @property {number} [size] - The number of items per page.
|
|
153
|
+
* @property {number} [page_size] - The number of items per page.
|
|
150
154
|
*/
|
|
151
155
|
/**
|
|
152
156
|
* @typedef UserDetails
|
|
153
|
-
* @property {string} username
|
|
154
|
-
* @property {string} user_id
|
|
157
|
+
* @property {string} username - Username of the user.
|
|
158
|
+
* @property {string} user_id - Unique identifier for the user.
|
|
155
159
|
*/
|
|
156
160
|
/**
|
|
157
161
|
* @typedef BadRequestObject
|
|
158
|
-
* @property {string} message
|
|
162
|
+
* @property {string} message - A brief description of the error encountered.
|
|
159
163
|
*/
|
|
160
164
|
/**
|
|
161
165
|
* @typedef BadRequestData
|
|
162
|
-
* @property {string} [message]
|
|
166
|
+
* @property {string} [message] - Detailed information about the error.
|
|
163
167
|
*/
|
|
164
168
|
/**
|
|
165
169
|
* @typedef BadRequestObjectGet
|
|
166
|
-
* @property {string} [message]
|
|
167
|
-
* @property {string} [error]
|
|
170
|
+
* @property {string} [message] - A brief description of the error encountered.
|
|
171
|
+
* @property {string} [error] - Specific error code or identifier.
|
|
168
172
|
* @property {BadRequestData} [data]
|
|
169
173
|
*/
|
|
170
174
|
declare class DiscountPlatformModel {
|
|
@@ -175,24 +179,70 @@ declare namespace DiscountPlatformModel {
|
|
|
175
179
|
/** @returns {ValidityObject} */
|
|
176
180
|
declare function ValidityObject(): ValidityObject;
|
|
177
181
|
type ValidityObject = {
|
|
182
|
+
/**
|
|
183
|
+
* - The start date and time of the discount period.
|
|
184
|
+
*/
|
|
178
185
|
start: string;
|
|
186
|
+
/**
|
|
187
|
+
* - The end date and time of the discount period.
|
|
188
|
+
*/
|
|
179
189
|
end: string;
|
|
180
190
|
};
|
|
181
191
|
/** @returns {CreateUpdateDiscount} */
|
|
182
192
|
declare function CreateUpdateDiscount(): CreateUpdateDiscount;
|
|
183
193
|
type CreateUpdateDiscount = {
|
|
194
|
+
/**
|
|
195
|
+
* - The name of the discount.
|
|
196
|
+
*/
|
|
184
197
|
name: string;
|
|
198
|
+
/**
|
|
199
|
+
* - The unique identifier for the company.
|
|
200
|
+
*/
|
|
185
201
|
company_id: number;
|
|
202
|
+
/**
|
|
203
|
+
* - Indicates if the discount is currently active.
|
|
204
|
+
*/
|
|
186
205
|
is_active: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* - List of application IDs associated with the discount.
|
|
208
|
+
*/
|
|
187
209
|
app_ids: string[];
|
|
210
|
+
/**
|
|
211
|
+
* - List of extension IDs associated with
|
|
212
|
+
* the discount.
|
|
213
|
+
*/
|
|
188
214
|
extension_ids?: string[];
|
|
215
|
+
/**
|
|
216
|
+
* - The type of job associated with the discount.
|
|
217
|
+
*/
|
|
189
218
|
job_type: string;
|
|
219
|
+
/**
|
|
220
|
+
* - The type of discount being offered.
|
|
221
|
+
*/
|
|
190
222
|
discount_type: string;
|
|
223
|
+
/**
|
|
224
|
+
* - The level at which the discount is applied.
|
|
225
|
+
*/
|
|
191
226
|
discount_level: string;
|
|
227
|
+
/**
|
|
228
|
+
* - The value of the discount.
|
|
229
|
+
*/
|
|
192
230
|
value?: number;
|
|
231
|
+
/**
|
|
232
|
+
* - The file path for discount file.
|
|
233
|
+
*/
|
|
193
234
|
file_path?: string;
|
|
235
|
+
/**
|
|
236
|
+
* - List of brand IDs associated with the discount.
|
|
237
|
+
*/
|
|
194
238
|
brand_ids?: number[];
|
|
239
|
+
/**
|
|
240
|
+
* - List of store IDs associated with the discount.
|
|
241
|
+
*/
|
|
195
242
|
store_ids?: number[];
|
|
243
|
+
/**
|
|
244
|
+
* - List of zone IDs associated with the discount.
|
|
245
|
+
*/
|
|
196
246
|
zone_ids?: string[];
|
|
197
247
|
validity: ValidityObject;
|
|
198
248
|
discount_meta?: DiscountMeta;
|
|
@@ -219,120 +269,320 @@ type DiscountMeta = {
|
|
|
219
269
|
/** @returns {DiscountJob} */
|
|
220
270
|
declare function DiscountJob(): DiscountJob;
|
|
221
271
|
type DiscountJob = {
|
|
272
|
+
/**
|
|
273
|
+
* - The unique identifier for the discount job.
|
|
274
|
+
*/
|
|
222
275
|
_id: string;
|
|
276
|
+
/**
|
|
277
|
+
* - The name of the discount job.
|
|
278
|
+
*/
|
|
223
279
|
name: string;
|
|
280
|
+
/**
|
|
281
|
+
* - The unique identifier for the company.
|
|
282
|
+
*/
|
|
224
283
|
company_id: number;
|
|
284
|
+
/**
|
|
285
|
+
* - Indicates if the discount job is currently active.
|
|
286
|
+
*/
|
|
225
287
|
is_active: boolean;
|
|
226
|
-
|
|
227
|
-
|
|
288
|
+
/**
|
|
289
|
+
* - List of application IDs associated with the
|
|
290
|
+
* discount job.
|
|
291
|
+
*/
|
|
292
|
+
app_ids: string[];
|
|
293
|
+
/**
|
|
294
|
+
* - The type of job associated with the discount job.
|
|
295
|
+
*/
|
|
296
|
+
job_type: string;
|
|
297
|
+
/**
|
|
298
|
+
* - The type of discount being offered.
|
|
299
|
+
*/
|
|
228
300
|
discount_type?: string;
|
|
229
|
-
|
|
301
|
+
/**
|
|
302
|
+
* - The level at which the discount is applied.
|
|
303
|
+
*/
|
|
304
|
+
discount_level: string;
|
|
305
|
+
/**
|
|
306
|
+
* - The value of the discount.
|
|
307
|
+
*/
|
|
230
308
|
value?: number;
|
|
309
|
+
/**
|
|
310
|
+
* - The file path for discount file.
|
|
311
|
+
*/
|
|
231
312
|
file_path?: string;
|
|
313
|
+
/**
|
|
314
|
+
* - List of brand IDs associated with the discount job.
|
|
315
|
+
*/
|
|
232
316
|
brand_ids?: number[];
|
|
317
|
+
/**
|
|
318
|
+
* - List of store IDs associated with the discount job.
|
|
319
|
+
*/
|
|
233
320
|
store_ids?: number[];
|
|
321
|
+
/**
|
|
322
|
+
* - List of zone IDs associated with the discount job.
|
|
323
|
+
*/
|
|
234
324
|
zone_ids?: string[];
|
|
235
325
|
discount_meta?: DiscountMeta;
|
|
236
326
|
validity: ValidityObject;
|
|
327
|
+
/**
|
|
328
|
+
* - The date and time when the discount job was created.
|
|
329
|
+
*/
|
|
237
330
|
created_on: string;
|
|
331
|
+
/**
|
|
332
|
+
* - The date and time when the discount job was
|
|
333
|
+
* last modified.
|
|
334
|
+
*/
|
|
238
335
|
modified_on: string;
|
|
239
336
|
created_by: UserDetails;
|
|
240
337
|
modified_by: UserDetails;
|
|
338
|
+
/**
|
|
339
|
+
* - Additional metadata for the discount job.
|
|
340
|
+
*/
|
|
241
341
|
meta?: any;
|
|
242
342
|
};
|
|
243
343
|
/** @returns {FileJobBody} */
|
|
244
344
|
declare function FileJobBody(): FileJobBody;
|
|
245
345
|
type FileJobBody = {
|
|
346
|
+
/**
|
|
347
|
+
* - The name of the job.
|
|
348
|
+
*/
|
|
246
349
|
name?: string;
|
|
350
|
+
/**
|
|
351
|
+
* - Unique identifier for the company.
|
|
352
|
+
*/
|
|
247
353
|
company_id?: number;
|
|
354
|
+
/**
|
|
355
|
+
* - Indicates if the job is active.
|
|
356
|
+
*/
|
|
248
357
|
is_active?: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* - List of application identifiers.
|
|
360
|
+
*/
|
|
249
361
|
app_ids?: string[];
|
|
362
|
+
/**
|
|
363
|
+
* - Type of job being processed.
|
|
364
|
+
*/
|
|
250
365
|
job_type?: string;
|
|
366
|
+
/**
|
|
367
|
+
* - Type of discount applied.
|
|
368
|
+
*/
|
|
251
369
|
discount_type?: string;
|
|
370
|
+
/**
|
|
371
|
+
* - Level at which the discount is applied.
|
|
372
|
+
*/
|
|
252
373
|
discount_level?: string;
|
|
374
|
+
/**
|
|
375
|
+
* - Value of the discount.
|
|
376
|
+
*/
|
|
253
377
|
value?: number;
|
|
378
|
+
/**
|
|
379
|
+
* - Path to the discount file associated with the job.
|
|
380
|
+
*/
|
|
254
381
|
file_path?: string;
|
|
382
|
+
/**
|
|
383
|
+
* - List of brand identifiers.
|
|
384
|
+
*/
|
|
255
385
|
brand_ids?: number[];
|
|
386
|
+
/**
|
|
387
|
+
* - List of store identifiers.
|
|
388
|
+
*/
|
|
256
389
|
store_ids?: number[];
|
|
390
|
+
/**
|
|
391
|
+
* - List of extension identifiers.
|
|
392
|
+
*/
|
|
257
393
|
extension_ids?: string[];
|
|
394
|
+
/**
|
|
395
|
+
* - List of zone identifiers.
|
|
396
|
+
*/
|
|
258
397
|
zone_ids?: string[];
|
|
259
398
|
discount_meta?: DiscountMeta;
|
|
260
399
|
validity?: ValidityObject;
|
|
400
|
+
/**
|
|
401
|
+
* - Timestamp when the job was created.
|
|
402
|
+
*/
|
|
261
403
|
created_on?: string;
|
|
404
|
+
/**
|
|
405
|
+
* - Timestamp when the job was last modified.
|
|
406
|
+
*/
|
|
262
407
|
modified_on?: string;
|
|
263
408
|
created_by?: UserDetails;
|
|
264
409
|
modified_by?: UserDetails;
|
|
410
|
+
/**
|
|
411
|
+
* - Additional metadata for the job.
|
|
412
|
+
*/
|
|
265
413
|
meta?: any;
|
|
266
414
|
};
|
|
267
415
|
/** @returns {ListOrCalender} */
|
|
268
416
|
declare function ListOrCalender(): ListOrCalender;
|
|
269
417
|
type ListOrCalender = {
|
|
418
|
+
/**
|
|
419
|
+
* - List of discount jobs.
|
|
420
|
+
*/
|
|
270
421
|
items: DiscountJob[];
|
|
271
422
|
page: Page;
|
|
272
423
|
};
|
|
273
424
|
/** @returns {DiscountItems} */
|
|
274
425
|
declare function DiscountItems(): DiscountItems;
|
|
275
426
|
type DiscountItems = {
|
|
427
|
+
/**
|
|
428
|
+
* - Unique code for the item.
|
|
429
|
+
*/
|
|
276
430
|
item_code?: string;
|
|
431
|
+
/**
|
|
432
|
+
* - Name of the brand.
|
|
433
|
+
*/
|
|
277
434
|
brand_name?: string;
|
|
435
|
+
/**
|
|
436
|
+
* - Unique Identifier for the size.
|
|
437
|
+
*/
|
|
278
438
|
seller_identifier?: string;
|
|
439
|
+
/**
|
|
440
|
+
* - Type of discount applied.
|
|
441
|
+
*/
|
|
279
442
|
discount_type: string;
|
|
443
|
+
/**
|
|
444
|
+
* - Value of the discount.
|
|
445
|
+
*/
|
|
280
446
|
value: number;
|
|
281
447
|
discount_meta?: DiscountMeta;
|
|
282
448
|
};
|
|
283
449
|
/** @returns {BulkDiscount} */
|
|
284
450
|
declare function BulkDiscount(): BulkDiscount;
|
|
285
451
|
type BulkDiscount = {
|
|
452
|
+
/**
|
|
453
|
+
* - Uinque Identifier for the company.
|
|
454
|
+
*/
|
|
286
455
|
company_id: number;
|
|
456
|
+
/**
|
|
457
|
+
* - List of discount items.
|
|
458
|
+
*/
|
|
287
459
|
items: DiscountItems[];
|
|
288
460
|
};
|
|
289
461
|
/** @returns {FileJobResponseSchema} */
|
|
290
462
|
declare function FileJobResponseSchema(): FileJobResponseSchema;
|
|
291
463
|
type FileJobResponseSchema = {
|
|
464
|
+
/**
|
|
465
|
+
* - Current stage of the file job.
|
|
466
|
+
*/
|
|
292
467
|
stage: string;
|
|
468
|
+
/**
|
|
469
|
+
* - Total number of items processed.
|
|
470
|
+
*/
|
|
293
471
|
total: number;
|
|
472
|
+
/**
|
|
473
|
+
* - Number of items that failed processing.
|
|
474
|
+
*/
|
|
294
475
|
failed: number;
|
|
476
|
+
/**
|
|
477
|
+
* - Identifier for the company.
|
|
478
|
+
*/
|
|
295
479
|
company_id: number;
|
|
296
480
|
body?: FileJobBody;
|
|
481
|
+
/**
|
|
482
|
+
* - Type of file job.
|
|
483
|
+
*/
|
|
297
484
|
type: string;
|
|
485
|
+
/**
|
|
486
|
+
* - Type of file being processed.
|
|
487
|
+
*/
|
|
298
488
|
file_type?: string;
|
|
299
489
|
/**
|
|
300
490
|
* - A unique identifier to distinguish and identify a job.
|
|
301
491
|
*/
|
|
302
492
|
_id: string;
|
|
493
|
+
/**
|
|
494
|
+
* - Path to the disocunt file.
|
|
495
|
+
*/
|
|
303
496
|
file_path?: string;
|
|
497
|
+
/**
|
|
498
|
+
* - Progress of the file job.
|
|
499
|
+
*/
|
|
304
500
|
progress?: number;
|
|
501
|
+
/**
|
|
502
|
+
* - List of extension identifiers.
|
|
503
|
+
*/
|
|
305
504
|
extension_ids?: string[];
|
|
505
|
+
/**
|
|
506
|
+
* - List of zone identifiers.
|
|
507
|
+
*/
|
|
306
508
|
zone_ids?: string[];
|
|
509
|
+
/**
|
|
510
|
+
* - Timestamp when the job was created.
|
|
511
|
+
*/
|
|
307
512
|
created_on?: string;
|
|
513
|
+
/**
|
|
514
|
+
* - Timestamp when the job was last modified.
|
|
515
|
+
*/
|
|
308
516
|
modified_on?: string;
|
|
309
517
|
created_by?: UserDetails;
|
|
310
518
|
};
|
|
311
519
|
/** @returns {FileJobRequestSchema} */
|
|
312
520
|
declare function FileJobRequestSchema(): FileJobRequestSchema;
|
|
313
521
|
type FileJobRequestSchema = {
|
|
522
|
+
/**
|
|
523
|
+
* - Name of the file job.
|
|
524
|
+
*/
|
|
314
525
|
name: string;
|
|
526
|
+
/**
|
|
527
|
+
* - Indicates if the job is active.
|
|
528
|
+
*/
|
|
315
529
|
is_active: boolean;
|
|
530
|
+
/**
|
|
531
|
+
* - Unique Identifier for the company.
|
|
532
|
+
*/
|
|
316
533
|
company_id: number;
|
|
317
|
-
|
|
318
|
-
|
|
534
|
+
/**
|
|
535
|
+
* - List of application identifiers.
|
|
536
|
+
*/
|
|
537
|
+
app_ids: string[];
|
|
538
|
+
/**
|
|
539
|
+
* - Type of job.
|
|
540
|
+
*/
|
|
541
|
+
job_type: string;
|
|
542
|
+
/**
|
|
543
|
+
* - Type of discount.
|
|
544
|
+
*/
|
|
319
545
|
discount_type?: string;
|
|
320
|
-
|
|
546
|
+
/**
|
|
547
|
+
* - Level at which the discount is applied.
|
|
548
|
+
*/
|
|
549
|
+
discount_level: string;
|
|
550
|
+
/**
|
|
551
|
+
* - Path to the disocunt file.
|
|
552
|
+
*/
|
|
321
553
|
file_path?: string;
|
|
554
|
+
/**
|
|
555
|
+
* - List of brand identifiers.
|
|
556
|
+
*/
|
|
322
557
|
brand_ids?: number[];
|
|
558
|
+
/**
|
|
559
|
+
* - List of store identifiers.
|
|
560
|
+
*/
|
|
323
561
|
store_ids?: number[];
|
|
324
562
|
validity: ValidityObject;
|
|
563
|
+
/**
|
|
564
|
+
* - Additional metadata for the disocunt.
|
|
565
|
+
*/
|
|
325
566
|
meta?: any;
|
|
326
567
|
};
|
|
327
568
|
/** @returns {DownloadFileJob} */
|
|
328
569
|
declare function DownloadFileJob(): DownloadFileJob;
|
|
329
570
|
type DownloadFileJob = {
|
|
571
|
+
/**
|
|
572
|
+
* - List of brand identifiers.
|
|
573
|
+
*/
|
|
330
574
|
brand_ids?: number[];
|
|
575
|
+
/**
|
|
576
|
+
* - List of store identifiers.
|
|
577
|
+
*/
|
|
331
578
|
store_ids?: number[];
|
|
332
579
|
};
|
|
333
580
|
/** @returns {CancelJobResponseSchema} */
|
|
334
581
|
declare function CancelJobResponseSchema(): CancelJobResponseSchema;
|
|
335
582
|
type CancelJobResponseSchema = {
|
|
583
|
+
/**
|
|
584
|
+
* - Indicates if the job cancellation was successful.
|
|
585
|
+
*/
|
|
336
586
|
success: boolean;
|
|
337
587
|
};
|
|
338
588
|
/** @returns {Page} */
|
|
@@ -366,27 +616,49 @@ type Page = {
|
|
|
366
616
|
* - The number of items per page.
|
|
367
617
|
*/
|
|
368
618
|
size?: number;
|
|
619
|
+
/**
|
|
620
|
+
* - The number of items per page.
|
|
621
|
+
*/
|
|
622
|
+
page_size?: number;
|
|
369
623
|
};
|
|
370
624
|
/** @returns {UserDetails} */
|
|
371
625
|
declare function UserDetails(): UserDetails;
|
|
372
626
|
type UserDetails = {
|
|
627
|
+
/**
|
|
628
|
+
* - Username of the user.
|
|
629
|
+
*/
|
|
373
630
|
username: string;
|
|
631
|
+
/**
|
|
632
|
+
* - Unique identifier for the user.
|
|
633
|
+
*/
|
|
374
634
|
user_id: string;
|
|
375
635
|
};
|
|
376
636
|
/** @returns {BadRequestObject} */
|
|
377
637
|
declare function BadRequestObject(): BadRequestObject;
|
|
378
638
|
type BadRequestObject = {
|
|
639
|
+
/**
|
|
640
|
+
* - A brief description of the error encountered.
|
|
641
|
+
*/
|
|
379
642
|
message: string;
|
|
380
643
|
};
|
|
381
644
|
/** @returns {BadRequestData} */
|
|
382
645
|
declare function BadRequestData(): BadRequestData;
|
|
383
646
|
type BadRequestData = {
|
|
647
|
+
/**
|
|
648
|
+
* - Detailed information about the error.
|
|
649
|
+
*/
|
|
384
650
|
message?: string;
|
|
385
651
|
};
|
|
386
652
|
/** @returns {BadRequestObjectGet} */
|
|
387
653
|
declare function BadRequestObjectGet(): BadRequestObjectGet;
|
|
388
654
|
type BadRequestObjectGet = {
|
|
655
|
+
/**
|
|
656
|
+
* - A brief description of the error encountered.
|
|
657
|
+
*/
|
|
389
658
|
message?: string;
|
|
659
|
+
/**
|
|
660
|
+
* - Specific error code or identifier.
|
|
661
|
+
*/
|
|
390
662
|
error?: string;
|
|
391
663
|
data?: BadRequestData;
|
|
392
664
|
};
|