@gofynd/fdk-client-javascript 1.4.3 → 1.4.5
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 -10
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -48
- package/sdk/application/Cart/CartApplicationClient.js +48 -48
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +69 -69
- package/sdk/application/Catalog/CatalogApplicationClient.js +69 -69
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -32
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -32
- package/sdk/application/Content/ContentApplicationClient.d.ts +45 -45
- package/sdk/application/Content/ContentApplicationClient.js +45 -45
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +5 -5
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +5 -5
- package/sdk/application/Lead/LeadApplicationClient.d.ts +9 -9
- package/sdk/application/Lead/LeadApplicationClient.js +9 -9
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -22
- package/sdk/application/Logistic/LogisticApplicationClient.js +22 -22
- package/sdk/application/Order/OrderApplicationClient.d.ts +14 -25
- package/sdk/application/Order/OrderApplicationClient.js +14 -94
- package/sdk/application/Order/OrderApplicationValidator.d.ts +1 -15
- package/sdk/application/Order/OrderApplicationValidator.js +0 -13
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +71 -71
- package/sdk/application/Payment/PaymentApplicationClient.js +71 -71
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +1 -1
- package/sdk/application/Share/ShareApplicationClient.d.ts +1 -1
- package/sdk/application/Share/ShareApplicationClient.js +1 -1
- package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
- package/sdk/application/Share/ShareApplicationModel.js +2 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
- package/sdk/application/User/UserApplicationClient.d.ts +74 -74
- package/sdk/application/User/UserApplicationClient.js +74 -74
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +5 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +5 -5
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +13 -13
- package/sdk/platform/Billing/BillingPlatformClient.js +13 -13
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +102 -102
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +102 -102
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +132 -131
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +132 -131
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +130 -130
- package/sdk/platform/Catalog/CatalogPlatformClient.js +130 -130
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
- package/sdk/platform/Common/CommonPlatformClient.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +118 -118
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +118 -118
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +22 -22
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +22 -22
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +34 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +35 -5
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +4 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +41 -41
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +41 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +26 -26
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +26 -26
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +93 -93
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +93 -93
- package/sdk/platform/Content/ContentPlatformClient.d.ts +29 -29
- package/sdk/platform/Content/ContentPlatformClient.js +29 -29
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +18 -18
- package/sdk/platform/Discount/DiscountPlatformClient.js +18 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +18 -17
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +2 -2
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.js +4 -4
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +15 -15
- package/sdk/platform/Lead/LeadPlatformClient.js +15 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +10 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +95 -106
- package/sdk/platform/Order/OrderPlatformClient.js +95 -190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -0
- package/sdk/platform/Order/OrderPlatformModel.js +4 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +1 -33
- package/sdk/platform/Order/OrderPlatformValidator.js +0 -20
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +77 -77
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +77 -77
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +2 -2
- package/sdk/platform/Payment/PaymentPlatformClient.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +7 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +3 -0
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +40 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +40 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +51 -50
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +51 -50
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +1 -1
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +34 -104
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +34 -591
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +1 -100
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -92
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +6 -6
- package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -35
- package/sdk/platform/User/UserPlatformApplicationClient.js +35 -35
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +7 -6
- package/sdk/platform/Webhook/WebhookPlatformClient.js +7 -6
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +0 -152
- package/sdk/platform/Inventory/InventoryPlatformClient.js +0 -1017
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +0 -1355
- package/sdk/platform/Inventory/InventoryPlatformModel.js +0 -1544
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +0 -171
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +0 -159
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
export = InventoryPlatformValidator;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef CreateJobParam
|
|
4
|
-
* @property {InventoryPlatformModel.JobConfigDTO} body
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @typedef DisableParam
|
|
8
|
-
* @property {string} integrationId - IntegrationId
|
|
9
|
-
*/
|
|
10
|
-
/** @typedef GetConfigByCompanyParam */
|
|
11
|
-
/**
|
|
12
|
-
* @typedef GetJobByCodeParam
|
|
13
|
-
* @property {string} code - Job Code
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* @typedef GetJobByCompanyAndIntegrationParam
|
|
17
|
-
* @property {string} integrationId - Integration Id
|
|
18
|
-
* @property {number} [pageNo] - Page Number
|
|
19
|
-
* @property {number} [pageSize] - Page Size
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* @typedef GetJobCodeMetricsParam
|
|
23
|
-
* @property {string} code - Code
|
|
24
|
-
* @property {number} [pageNo] - Page Number
|
|
25
|
-
* @property {number} [pageSize] - Page Size
|
|
26
|
-
* @property {string} [status] - Status
|
|
27
|
-
* @property {string} [date] - From Date
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* @typedef GetJobCodesByCompanyAndIntegrationParam
|
|
31
|
-
* @property {string} integrationId - Integration Id
|
|
32
|
-
* @property {number} [pageNo] - Page Number
|
|
33
|
-
* @property {number} [pageSize] - Page Size
|
|
34
|
-
*/
|
|
35
|
-
/** @typedef GetJobConfigDefaultsParam */
|
|
36
|
-
/**
|
|
37
|
-
* @typedef GetJobStepsParam
|
|
38
|
-
* @property {number} jobId - Job Id
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* @typedef GetJobsByCompanyParam
|
|
42
|
-
* @property {number} [pageNo] - Page Number
|
|
43
|
-
* @property {number} [pageSize] - Page Size
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* @typedef SuppressStoresParam
|
|
47
|
-
* @property {InventoryPlatformModel.SuppressStorePayload} body
|
|
48
|
-
*/
|
|
49
|
-
/**
|
|
50
|
-
* @typedef UpdateJobParam
|
|
51
|
-
* @property {InventoryPlatformModel.JobConfigDTO} body
|
|
52
|
-
*/
|
|
53
|
-
declare class InventoryPlatformValidator {
|
|
54
|
-
/** @returns {CreateJobParam} */
|
|
55
|
-
static createJob(): CreateJobParam;
|
|
56
|
-
/** @returns {DisableParam} */
|
|
57
|
-
static disable(): DisableParam;
|
|
58
|
-
/** @returns {GetConfigByCompanyParam} */
|
|
59
|
-
static getConfigByCompany(): any;
|
|
60
|
-
/** @returns {GetJobByCodeParam} */
|
|
61
|
-
static getJobByCode(): GetJobByCodeParam;
|
|
62
|
-
/** @returns {GetJobByCompanyAndIntegrationParam} */
|
|
63
|
-
static getJobByCompanyAndIntegration(): GetJobByCompanyAndIntegrationParam;
|
|
64
|
-
/** @returns {GetJobCodeMetricsParam} */
|
|
65
|
-
static getJobCodeMetrics(): GetJobCodeMetricsParam;
|
|
66
|
-
/** @returns {GetJobCodesByCompanyAndIntegrationParam} */
|
|
67
|
-
static getJobCodesByCompanyAndIntegration(): GetJobCodesByCompanyAndIntegrationParam;
|
|
68
|
-
/** @returns {GetJobConfigDefaultsParam} */
|
|
69
|
-
static getJobConfigDefaults(): any;
|
|
70
|
-
/** @returns {GetJobStepsParam} */
|
|
71
|
-
static getJobSteps(): GetJobStepsParam;
|
|
72
|
-
/** @returns {GetJobsByCompanyParam} */
|
|
73
|
-
static getJobsByCompany(): GetJobsByCompanyParam;
|
|
74
|
-
/** @returns {SuppressStoresParam} */
|
|
75
|
-
static suppressStores(): SuppressStoresParam;
|
|
76
|
-
/** @returns {UpdateJobParam} */
|
|
77
|
-
static updateJob(): UpdateJobParam;
|
|
78
|
-
}
|
|
79
|
-
declare namespace InventoryPlatformValidator {
|
|
80
|
-
export { CreateJobParam, DisableParam, GetConfigByCompanyParam, GetJobByCodeParam, GetJobByCompanyAndIntegrationParam, GetJobCodeMetricsParam, GetJobCodesByCompanyAndIntegrationParam, GetJobConfigDefaultsParam, GetJobStepsParam, GetJobsByCompanyParam, SuppressStoresParam, UpdateJobParam };
|
|
81
|
-
}
|
|
82
|
-
type CreateJobParam = {
|
|
83
|
-
body: InventoryPlatformModel.JobConfigDTO;
|
|
84
|
-
};
|
|
85
|
-
type DisableParam = {
|
|
86
|
-
/**
|
|
87
|
-
* - IntegrationId
|
|
88
|
-
*/
|
|
89
|
-
integrationId: string;
|
|
90
|
-
};
|
|
91
|
-
type GetJobByCodeParam = {
|
|
92
|
-
/**
|
|
93
|
-
* - Job Code
|
|
94
|
-
*/
|
|
95
|
-
code: string;
|
|
96
|
-
};
|
|
97
|
-
type GetJobByCompanyAndIntegrationParam = {
|
|
98
|
-
/**
|
|
99
|
-
* - Integration Id
|
|
100
|
-
*/
|
|
101
|
-
integrationId: string;
|
|
102
|
-
/**
|
|
103
|
-
* - Page Number
|
|
104
|
-
*/
|
|
105
|
-
pageNo?: number;
|
|
106
|
-
/**
|
|
107
|
-
* - Page Size
|
|
108
|
-
*/
|
|
109
|
-
pageSize?: number;
|
|
110
|
-
};
|
|
111
|
-
type GetJobCodeMetricsParam = {
|
|
112
|
-
/**
|
|
113
|
-
* - Code
|
|
114
|
-
*/
|
|
115
|
-
code: string;
|
|
116
|
-
/**
|
|
117
|
-
* - Page Number
|
|
118
|
-
*/
|
|
119
|
-
pageNo?: number;
|
|
120
|
-
/**
|
|
121
|
-
* - Page Size
|
|
122
|
-
*/
|
|
123
|
-
pageSize?: number;
|
|
124
|
-
/**
|
|
125
|
-
* - Status
|
|
126
|
-
*/
|
|
127
|
-
status?: string;
|
|
128
|
-
/**
|
|
129
|
-
* - From Date
|
|
130
|
-
*/
|
|
131
|
-
date?: string;
|
|
132
|
-
};
|
|
133
|
-
type GetJobCodesByCompanyAndIntegrationParam = {
|
|
134
|
-
/**
|
|
135
|
-
* - Integration Id
|
|
136
|
-
*/
|
|
137
|
-
integrationId: string;
|
|
138
|
-
/**
|
|
139
|
-
* - Page Number
|
|
140
|
-
*/
|
|
141
|
-
pageNo?: number;
|
|
142
|
-
/**
|
|
143
|
-
* - Page Size
|
|
144
|
-
*/
|
|
145
|
-
pageSize?: number;
|
|
146
|
-
};
|
|
147
|
-
type GetJobStepsParam = {
|
|
148
|
-
/**
|
|
149
|
-
* - Job Id
|
|
150
|
-
*/
|
|
151
|
-
jobId: number;
|
|
152
|
-
};
|
|
153
|
-
type GetJobsByCompanyParam = {
|
|
154
|
-
/**
|
|
155
|
-
* - Page Number
|
|
156
|
-
*/
|
|
157
|
-
pageNo?: number;
|
|
158
|
-
/**
|
|
159
|
-
* - Page Size
|
|
160
|
-
*/
|
|
161
|
-
pageSize?: number;
|
|
162
|
-
};
|
|
163
|
-
type SuppressStoresParam = {
|
|
164
|
-
body: InventoryPlatformModel.SuppressStorePayload;
|
|
165
|
-
};
|
|
166
|
-
type UpdateJobParam = {
|
|
167
|
-
body: InventoryPlatformModel.JobConfigDTO;
|
|
168
|
-
};
|
|
169
|
-
type GetConfigByCompanyParam = any;
|
|
170
|
-
type GetJobConfigDefaultsParam = any;
|
|
171
|
-
import InventoryPlatformModel = require("./InventoryPlatformModel");
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
const Joi = require("joi");
|
|
2
|
-
|
|
3
|
-
const InventoryPlatformModel = require("./InventoryPlatformModel");
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @typedef CreateJobParam
|
|
7
|
-
* @property {InventoryPlatformModel.JobConfigDTO} body
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @typedef DisableParam
|
|
12
|
-
* @property {string} integrationId - IntegrationId
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/** @typedef GetConfigByCompanyParam */
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @typedef GetJobByCodeParam
|
|
19
|
-
* @property {string} code - Job Code
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @typedef GetJobByCompanyAndIntegrationParam
|
|
24
|
-
* @property {string} integrationId - Integration Id
|
|
25
|
-
* @property {number} [pageNo] - Page Number
|
|
26
|
-
* @property {number} [pageSize] - Page Size
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @typedef GetJobCodeMetricsParam
|
|
31
|
-
* @property {string} code - Code
|
|
32
|
-
* @property {number} [pageNo] - Page Number
|
|
33
|
-
* @property {number} [pageSize] - Page Size
|
|
34
|
-
* @property {string} [status] - Status
|
|
35
|
-
* @property {string} [date] - From Date
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @typedef GetJobCodesByCompanyAndIntegrationParam
|
|
40
|
-
* @property {string} integrationId - Integration Id
|
|
41
|
-
* @property {number} [pageNo] - Page Number
|
|
42
|
-
* @property {number} [pageSize] - Page Size
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/** @typedef GetJobConfigDefaultsParam */
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @typedef GetJobStepsParam
|
|
49
|
-
* @property {number} jobId - Job Id
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @typedef GetJobsByCompanyParam
|
|
54
|
-
* @property {number} [pageNo] - Page Number
|
|
55
|
-
* @property {number} [pageSize] - Page Size
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @typedef SuppressStoresParam
|
|
60
|
-
* @property {InventoryPlatformModel.SuppressStorePayload} body
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @typedef UpdateJobParam
|
|
65
|
-
* @property {InventoryPlatformModel.JobConfigDTO} body
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
class InventoryPlatformValidator {
|
|
69
|
-
/** @returns {CreateJobParam} */
|
|
70
|
-
static createJob() {
|
|
71
|
-
return Joi.object({
|
|
72
|
-
body: InventoryPlatformModel.JobConfigDTO().required(),
|
|
73
|
-
}).required();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/** @returns {DisableParam} */
|
|
77
|
-
static disable() {
|
|
78
|
-
return Joi.object({
|
|
79
|
-
integrationId: Joi.string().allow("").required(),
|
|
80
|
-
}).required();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** @returns {GetConfigByCompanyParam} */
|
|
84
|
-
static getConfigByCompany() {
|
|
85
|
-
return Joi.object({}).required();
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** @returns {GetJobByCodeParam} */
|
|
89
|
-
static getJobByCode() {
|
|
90
|
-
return Joi.object({
|
|
91
|
-
code: Joi.string().allow("").required(),
|
|
92
|
-
}).required();
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/** @returns {GetJobByCompanyAndIntegrationParam} */
|
|
96
|
-
static getJobByCompanyAndIntegration() {
|
|
97
|
-
return Joi.object({
|
|
98
|
-
integrationId: Joi.string().allow("").required(),
|
|
99
|
-
pageNo: Joi.number(),
|
|
100
|
-
pageSize: Joi.number(),
|
|
101
|
-
}).required();
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** @returns {GetJobCodeMetricsParam} */
|
|
105
|
-
static getJobCodeMetrics() {
|
|
106
|
-
return Joi.object({
|
|
107
|
-
code: Joi.string().allow("").required(),
|
|
108
|
-
pageNo: Joi.number(),
|
|
109
|
-
pageSize: Joi.number(),
|
|
110
|
-
status: Joi.string().allow(""),
|
|
111
|
-
date: Joi.string().allow(""),
|
|
112
|
-
}).required();
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/** @returns {GetJobCodesByCompanyAndIntegrationParam} */
|
|
116
|
-
static getJobCodesByCompanyAndIntegration() {
|
|
117
|
-
return Joi.object({
|
|
118
|
-
integrationId: Joi.string().allow("").required(),
|
|
119
|
-
pageNo: Joi.number(),
|
|
120
|
-
pageSize: Joi.number(),
|
|
121
|
-
}).required();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/** @returns {GetJobConfigDefaultsParam} */
|
|
125
|
-
static getJobConfigDefaults() {
|
|
126
|
-
return Joi.object({}).required();
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** @returns {GetJobStepsParam} */
|
|
130
|
-
static getJobSteps() {
|
|
131
|
-
return Joi.object({
|
|
132
|
-
jobId: Joi.number().required(),
|
|
133
|
-
}).required();
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/** @returns {GetJobsByCompanyParam} */
|
|
137
|
-
static getJobsByCompany() {
|
|
138
|
-
return Joi.object({
|
|
139
|
-
pageNo: Joi.number(),
|
|
140
|
-
pageSize: Joi.number(),
|
|
141
|
-
}).required();
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/** @returns {SuppressStoresParam} */
|
|
145
|
-
static suppressStores() {
|
|
146
|
-
return Joi.object({
|
|
147
|
-
body: InventoryPlatformModel.SuppressStorePayload().required(),
|
|
148
|
-
}).required();
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/** @returns {UpdateJobParam} */
|
|
152
|
-
static updateJob() {
|
|
153
|
-
return Joi.object({
|
|
154
|
-
body: InventoryPlatformModel.JobConfigDTO().required(),
|
|
155
|
-
}).required();
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
module.exports = InventoryPlatformValidator;
|