law-common 12.11.1-beta.99 → 13.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/dist/src/entities/index.d.ts +19 -0
- package/dist/src/entities/index.js +19 -0
- package/dist/src/entities/interface/field-constraint/client_introducing_mapping_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/client_introducing_mapping_field_constraints.interface.js +11 -0
- package/dist/src/entities/interface/field-constraint/client_user_mapping_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/client_user_mapping_field_constraints.interface.js +11 -0
- package/dist/src/entities/interface/field-constraint/configuration_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/configuration_field_constraints.interface.js +19 -0
- package/dist/src/entities/interface/field-constraint/cron_jobs_field_constraints.interface.d.ts +22 -0
- package/dist/src/entities/interface/field-constraint/cron_jobs_field_constraints.interface.js +14 -0
- package/dist/src/entities/interface/field-constraint/document_upload_field_constraints.interface.d.ts +22 -0
- package/dist/src/entities/interface/field-constraint/document_upload_field_constraints.interface.js +12 -0
- package/dist/src/entities/interface/field-constraint/entity_history_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/entity_history_field_constraints.interface.js +15 -0
- package/dist/src/entities/interface/field-constraint/expense_type_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/expense_type_field_constraints.interface.js +12 -0
- package/dist/src/entities/interface/field-constraint/holiday_list_field_constraints.interface.d.ts +20 -0
- package/dist/src/entities/interface/field-constraint/holiday_list_field_constraints.interface.js +10 -0
- package/dist/src/entities/interface/field-constraint/office_location_field_constraints.interface.d.ts +20 -0
- package/dist/src/entities/interface/field-constraint/office_location_field_constraints.interface.js +30 -0
- package/dist/src/entities/interface/field-constraint/organization_field_constraints.interface.d.ts +22 -0
- package/dist/src/entities/interface/field-constraint/organization_field_constraints.interface.js +23 -0
- package/dist/src/entities/interface/field-constraint/organization_type_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/organization_type_field_constraints.interface.js +13 -0
- package/dist/src/entities/interface/field-constraint/organization_type_tds_rate_mapping_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/organization_type_tds_rate_mapping_field_constraints.interface.js +11 -0
- package/dist/src/entities/interface/field-constraint/permission_field_constraints.interface.d.ts +22 -0
- package/dist/src/entities/interface/field-constraint/permission_field_constraints.interface.js +15 -0
- package/dist/src/entities/interface/field-constraint/project_user_mapping_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/project_user_mapping_field_constraints.interface.js +11 -0
- package/dist/src/entities/interface/field-constraint/role_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/role_field_constraints.interface.js +15 -0
- package/dist/src/entities/interface/field-constraint/role_permission_mapping_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/role_permission_mapping_field_constraints.interface.js +11 -0
- package/dist/src/entities/interface/field-constraint/state_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/state_field_constraints.interface.js +14 -0
- package/dist/src/entities/interface/field-constraint/website_lead_field_constraints.interface.d.ts +20 -0
- package/dist/src/entities/interface/field-constraint/website_lead_field_constraints.interface.js +14 -0
- package/dist/src/entities/interface/field-constraint/website_newsletter_subscription_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/website_newsletter_subscription_field_constraints.interface.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# law-common
|
|
1
|
+
# law-common
|
|
@@ -4,22 +4,27 @@ export * from "./enums/task_type_enum";
|
|
|
4
4
|
export * from "./interface/entity.utils.interface";
|
|
5
5
|
export * from "./interface/relation-config.interface";
|
|
6
6
|
export * from "./interface/organization.entity.interface";
|
|
7
|
+
export * from "./interface/field-constraint/organization_field_constraints.interface";
|
|
7
8
|
export * from "./interface/task.entity.interface";
|
|
8
9
|
export * from "./interface/user.entity.interface";
|
|
9
10
|
export * from "./interface/field-constraint/user_field_constraints.interface";
|
|
10
11
|
export * from "./interface/designation.entity.interface";
|
|
11
12
|
export * from "./interface/industry.entity.interface";
|
|
12
13
|
export * from "./interface/configuration.entity.interface";
|
|
14
|
+
export * from "./interface/field-constraint/configuration_field_constraints.interface";
|
|
13
15
|
export * from "./interface/rate.entity.interface";
|
|
14
16
|
export * from "./interface/client.entity.interface";
|
|
15
17
|
export * from "./interface/field-constraint/client_field_constraints.interface";
|
|
16
18
|
export * from "./interface/client_introducing_mapping.entity.interface";
|
|
19
|
+
export * from "./interface/field-constraint/client_introducing_mapping_field_constraints.interface";
|
|
17
20
|
export * from "./interface/client_user_mapping.entity.interface";
|
|
21
|
+
export * from "./interface/field-constraint/client_user_mapping_field_constraints.interface";
|
|
18
22
|
export * from "./interface/moving_timesheet.entity.interface";
|
|
19
23
|
export * from "./interface/field-constraint/moving_timesheet_field_constraints.interface";
|
|
20
24
|
export * from "./interface/project.entity.interface";
|
|
21
25
|
export * from "./interface/field-constraint/project_field_constraints.interface";
|
|
22
26
|
export * from "./interface/project_user_mapping.entity.interface";
|
|
27
|
+
export * from "./interface/field-constraint/project_user_mapping_field_constraints.interface";
|
|
23
28
|
export * from "./enums/moving_timesheet_action_enum";
|
|
24
29
|
export * from "./enums/moving_timesheet_status_enum";
|
|
25
30
|
export * from "./interface/timesheet.entity.interface";
|
|
@@ -36,6 +41,7 @@ export * from "./interface/reimbursement.entity.interface";
|
|
|
36
41
|
export * from "./interface/field-constraint/reimbursement_field_constraints.interface";
|
|
37
42
|
export * from "./enums/expense_type_entity_enum";
|
|
38
43
|
export * from "./interface/expense_type.entity.interface";
|
|
44
|
+
export * from "./interface/field-constraint/expense_type_field_constraints.interface";
|
|
39
45
|
export * from "./enums/billing_impact_enum";
|
|
40
46
|
export * from "./enums/payment_status.enum";
|
|
41
47
|
export * from "./interface/billing.entity.interface";
|
|
@@ -43,13 +49,17 @@ export * from "./interface/field-constraint/billing_field_constraints.interface"
|
|
|
43
49
|
export * from "./enums/billing_status_enum";
|
|
44
50
|
export * from "./enums/billing_timesheet_change_status_enum";
|
|
45
51
|
export * from "./interface/office_location.entity.interface";
|
|
52
|
+
export * from "./interface/field-constraint/office_location_field_constraints.interface";
|
|
46
53
|
export * from "./interface/bank.entity.interface";
|
|
47
54
|
export * from "./interface/field-constraint/bank_field_constraints.interface";
|
|
48
55
|
export * from "./interface/client_affiliate.entity.interface";
|
|
49
56
|
export * from "./interface/field-constraint/client_affiliate_field_constraints.interface";
|
|
50
57
|
export * from "./interface/permission.entity.interface";
|
|
58
|
+
export * from "./interface/field-constraint/permission_field_constraints.interface";
|
|
51
59
|
export * from "./interface/role.entity.interface";
|
|
60
|
+
export * from "./interface/field-constraint/role_field_constraints.interface";
|
|
52
61
|
export * from "./interface/role_permission_mapping.entity.interface";
|
|
62
|
+
export * from "./interface/field-constraint/role_permission_mapping_field_constraints.interface";
|
|
53
63
|
export * from "./enums/billing_transaction_enum";
|
|
54
64
|
export * from "./interface/billing_transaction.entity.interface";
|
|
55
65
|
export * from "./interface/field-constraint/billing_transaction_field_constraints.interface";
|
|
@@ -94,11 +104,13 @@ export * from "./interface/field-constraint/address_book_field_constraints.inter
|
|
|
94
104
|
export * from "./interface/holiday.entity.interface";
|
|
95
105
|
export * from "./interface/field-constraint/holiday_field_constraints.interface";
|
|
96
106
|
export * from "./interface/holiday_list.entity.interface";
|
|
107
|
+
export * from "./interface/field-constraint/holiday_list_field_constraints.interface";
|
|
97
108
|
export * from "./enums/configuration_key_enum";
|
|
98
109
|
export * from "./enums/cron_jobs_name_enum";
|
|
99
110
|
export * from "./enums/cron_jobs_status_enum";
|
|
100
111
|
export * from "./enums/timezone.enum";
|
|
101
112
|
export * from "./interface/cron_jobs.entity.interface";
|
|
113
|
+
export * from "./interface/field-constraint/cron_jobs_field_constraints.interface";
|
|
102
114
|
export * from "./interface/to_do_list.entity.interface";
|
|
103
115
|
export * from "./interface/field-constraint/to_do_list_field_constraints.interface";
|
|
104
116
|
export * from "./model/configuration.entity.model";
|
|
@@ -145,6 +157,7 @@ export * from "./enums/state_action_enum";
|
|
|
145
157
|
export * from "./enums/state_status_enum";
|
|
146
158
|
export * from "./flow-configs/state_flow.config";
|
|
147
159
|
export * from "./interface/state.entity.interface";
|
|
160
|
+
export * from "./interface/field-constraint/state_field_constraints.interface";
|
|
148
161
|
export * from "./model/state.entity.model";
|
|
149
162
|
export * from "./enums/gst_rate_status_enum";
|
|
150
163
|
export * from "./interface/gst_rate.entity.interface";
|
|
@@ -152,8 +165,10 @@ export * from "./interface/field-constraint/gst_rate_field_constraints.interface
|
|
|
152
165
|
export * from "./model/gst_rate.entity.model";
|
|
153
166
|
export * from "./enums/organization_type_status_enum";
|
|
154
167
|
export * from "./interface/organization_type.entity.interface";
|
|
168
|
+
export * from "./interface/field-constraint/organization_type_field_constraints.interface";
|
|
155
169
|
export * from "./model/organization_type.entity.model";
|
|
156
170
|
export * from "./interface/organization_type_tds_rate_mapping.entity.interface";
|
|
171
|
+
export * from "./interface/field-constraint/organization_type_tds_rate_mapping_field_constraints.interface";
|
|
157
172
|
export * from "./model/organization_type_tds_rate_mapping.entity.model";
|
|
158
173
|
export * from "./enums/tds_rate_status_enum";
|
|
159
174
|
export * from "./interface/tds_rate.entity.interface";
|
|
@@ -183,6 +198,7 @@ export * from "./model/intermediary_bank.entity.model";
|
|
|
183
198
|
export * from "./enums/billing_status_category.enum";
|
|
184
199
|
export * from "./enums/billing_summarry_export_type.enum";
|
|
185
200
|
export * from "./interface/document_upload.entity.interface";
|
|
201
|
+
export * from "./interface/field-constraint/document_upload_field_constraints.interface";
|
|
186
202
|
export * from "./model/document_upload.entity.model";
|
|
187
203
|
export * from "./enums/vendor_contract_applicability_enum";
|
|
188
204
|
export * from "./enums/vendor_gst_type_enum";
|
|
@@ -201,7 +217,9 @@ export * from "./model/office_location.entity.model";
|
|
|
201
217
|
export * from "./model/vendor_invoice.entity.model";
|
|
202
218
|
export * from "./model/vendor_invoice_item.entity.model";
|
|
203
219
|
export * from "./interface/website_lead.entity.interface";
|
|
220
|
+
export * from "./interface/field-constraint/website_lead_field_constraints.interface";
|
|
204
221
|
export * from "./interface/website_newsletter_subscription.entity.interface";
|
|
222
|
+
export * from "./interface/field-constraint/website_newsletter_subscription_field_constraints.interface";
|
|
205
223
|
export * from "./model/website_lead.entity.model";
|
|
206
224
|
export * from "./model/website_newsletter_subscription.entity.model";
|
|
207
225
|
export * from "./interface/vendor_invoice_history.entity.interface";
|
|
@@ -243,6 +261,7 @@ export * from "./enums/entity_history_operation_enum";
|
|
|
243
261
|
export * from "./enums/entity_history_status_enum";
|
|
244
262
|
export * from "./flow-configs/entity_history_flow.config";
|
|
245
263
|
export * from "./interface/entity_history.entity.interface";
|
|
264
|
+
export * from "./interface/field-constraint/entity_history_field_constraints.interface";
|
|
246
265
|
export * from "./model/entity_history.entity.model";
|
|
247
266
|
export * from "./enums/vendor_invoice_payment_action_enum";
|
|
248
267
|
export * from "./enums/vendor_invoice_payment_mode_enum";
|
|
@@ -20,22 +20,27 @@ __exportStar(require("./enums/task_type_enum"), exports);
|
|
|
20
20
|
__exportStar(require("./interface/entity.utils.interface"), exports);
|
|
21
21
|
__exportStar(require("./interface/relation-config.interface"), exports);
|
|
22
22
|
__exportStar(require("./interface/organization.entity.interface"), exports);
|
|
23
|
+
__exportStar(require("./interface/field-constraint/organization_field_constraints.interface"), exports);
|
|
23
24
|
__exportStar(require("./interface/task.entity.interface"), exports);
|
|
24
25
|
__exportStar(require("./interface/user.entity.interface"), exports);
|
|
25
26
|
__exportStar(require("./interface/field-constraint/user_field_constraints.interface"), exports);
|
|
26
27
|
__exportStar(require("./interface/designation.entity.interface"), exports);
|
|
27
28
|
__exportStar(require("./interface/industry.entity.interface"), exports);
|
|
28
29
|
__exportStar(require("./interface/configuration.entity.interface"), exports);
|
|
30
|
+
__exportStar(require("./interface/field-constraint/configuration_field_constraints.interface"), exports);
|
|
29
31
|
__exportStar(require("./interface/rate.entity.interface"), exports);
|
|
30
32
|
__exportStar(require("./interface/client.entity.interface"), exports);
|
|
31
33
|
__exportStar(require("./interface/field-constraint/client_field_constraints.interface"), exports);
|
|
32
34
|
__exportStar(require("./interface/client_introducing_mapping.entity.interface"), exports);
|
|
35
|
+
__exportStar(require("./interface/field-constraint/client_introducing_mapping_field_constraints.interface"), exports);
|
|
33
36
|
__exportStar(require("./interface/client_user_mapping.entity.interface"), exports);
|
|
37
|
+
__exportStar(require("./interface/field-constraint/client_user_mapping_field_constraints.interface"), exports);
|
|
34
38
|
__exportStar(require("./interface/moving_timesheet.entity.interface"), exports);
|
|
35
39
|
__exportStar(require("./interface/field-constraint/moving_timesheet_field_constraints.interface"), exports);
|
|
36
40
|
__exportStar(require("./interface/project.entity.interface"), exports);
|
|
37
41
|
__exportStar(require("./interface/field-constraint/project_field_constraints.interface"), exports);
|
|
38
42
|
__exportStar(require("./interface/project_user_mapping.entity.interface"), exports);
|
|
43
|
+
__exportStar(require("./interface/field-constraint/project_user_mapping_field_constraints.interface"), exports);
|
|
39
44
|
__exportStar(require("./enums/moving_timesheet_action_enum"), exports);
|
|
40
45
|
__exportStar(require("./enums/moving_timesheet_status_enum"), exports);
|
|
41
46
|
__exportStar(require("./interface/timesheet.entity.interface"), exports);
|
|
@@ -52,6 +57,7 @@ __exportStar(require("./interface/reimbursement.entity.interface"), exports);
|
|
|
52
57
|
__exportStar(require("./interface/field-constraint/reimbursement_field_constraints.interface"), exports);
|
|
53
58
|
__exportStar(require("./enums/expense_type_entity_enum"), exports);
|
|
54
59
|
__exportStar(require("./interface/expense_type.entity.interface"), exports);
|
|
60
|
+
__exportStar(require("./interface/field-constraint/expense_type_field_constraints.interface"), exports);
|
|
55
61
|
__exportStar(require("./enums/billing_impact_enum"), exports);
|
|
56
62
|
__exportStar(require("./enums/payment_status.enum"), exports);
|
|
57
63
|
__exportStar(require("./interface/billing.entity.interface"), exports);
|
|
@@ -59,13 +65,17 @@ __exportStar(require("./interface/field-constraint/billing_field_constraints.int
|
|
|
59
65
|
__exportStar(require("./enums/billing_status_enum"), exports);
|
|
60
66
|
__exportStar(require("./enums/billing_timesheet_change_status_enum"), exports);
|
|
61
67
|
__exportStar(require("./interface/office_location.entity.interface"), exports);
|
|
68
|
+
__exportStar(require("./interface/field-constraint/office_location_field_constraints.interface"), exports);
|
|
62
69
|
__exportStar(require("./interface/bank.entity.interface"), exports);
|
|
63
70
|
__exportStar(require("./interface/field-constraint/bank_field_constraints.interface"), exports);
|
|
64
71
|
__exportStar(require("./interface/client_affiliate.entity.interface"), exports);
|
|
65
72
|
__exportStar(require("./interface/field-constraint/client_affiliate_field_constraints.interface"), exports);
|
|
66
73
|
__exportStar(require("./interface/permission.entity.interface"), exports);
|
|
74
|
+
__exportStar(require("./interface/field-constraint/permission_field_constraints.interface"), exports);
|
|
67
75
|
__exportStar(require("./interface/role.entity.interface"), exports);
|
|
76
|
+
__exportStar(require("./interface/field-constraint/role_field_constraints.interface"), exports);
|
|
68
77
|
__exportStar(require("./interface/role_permission_mapping.entity.interface"), exports);
|
|
78
|
+
__exportStar(require("./interface/field-constraint/role_permission_mapping_field_constraints.interface"), exports);
|
|
69
79
|
__exportStar(require("./enums/billing_transaction_enum"), exports);
|
|
70
80
|
__exportStar(require("./interface/billing_transaction.entity.interface"), exports);
|
|
71
81
|
__exportStar(require("./interface/field-constraint/billing_transaction_field_constraints.interface"), exports);
|
|
@@ -110,11 +120,13 @@ __exportStar(require("./interface/field-constraint/address_book_field_constraint
|
|
|
110
120
|
__exportStar(require("./interface/holiday.entity.interface"), exports);
|
|
111
121
|
__exportStar(require("./interface/field-constraint/holiday_field_constraints.interface"), exports);
|
|
112
122
|
__exportStar(require("./interface/holiday_list.entity.interface"), exports);
|
|
123
|
+
__exportStar(require("./interface/field-constraint/holiday_list_field_constraints.interface"), exports);
|
|
113
124
|
__exportStar(require("./enums/configuration_key_enum"), exports);
|
|
114
125
|
__exportStar(require("./enums/cron_jobs_name_enum"), exports);
|
|
115
126
|
__exportStar(require("./enums/cron_jobs_status_enum"), exports);
|
|
116
127
|
__exportStar(require("./enums/timezone.enum"), exports);
|
|
117
128
|
__exportStar(require("./interface/cron_jobs.entity.interface"), exports);
|
|
129
|
+
__exportStar(require("./interface/field-constraint/cron_jobs_field_constraints.interface"), exports);
|
|
118
130
|
__exportStar(require("./interface/to_do_list.entity.interface"), exports);
|
|
119
131
|
__exportStar(require("./interface/field-constraint/to_do_list_field_constraints.interface"), exports);
|
|
120
132
|
__exportStar(require("./model/configuration.entity.model"), exports);
|
|
@@ -161,6 +173,7 @@ __exportStar(require("./enums/state_action_enum"), exports);
|
|
|
161
173
|
__exportStar(require("./enums/state_status_enum"), exports);
|
|
162
174
|
__exportStar(require("./flow-configs/state_flow.config"), exports);
|
|
163
175
|
__exportStar(require("./interface/state.entity.interface"), exports);
|
|
176
|
+
__exportStar(require("./interface/field-constraint/state_field_constraints.interface"), exports);
|
|
164
177
|
__exportStar(require("./model/state.entity.model"), exports);
|
|
165
178
|
__exportStar(require("./enums/gst_rate_status_enum"), exports);
|
|
166
179
|
__exportStar(require("./interface/gst_rate.entity.interface"), exports);
|
|
@@ -168,8 +181,10 @@ __exportStar(require("./interface/field-constraint/gst_rate_field_constraints.in
|
|
|
168
181
|
__exportStar(require("./model/gst_rate.entity.model"), exports);
|
|
169
182
|
__exportStar(require("./enums/organization_type_status_enum"), exports);
|
|
170
183
|
__exportStar(require("./interface/organization_type.entity.interface"), exports);
|
|
184
|
+
__exportStar(require("./interface/field-constraint/organization_type_field_constraints.interface"), exports);
|
|
171
185
|
__exportStar(require("./model/organization_type.entity.model"), exports);
|
|
172
186
|
__exportStar(require("./interface/organization_type_tds_rate_mapping.entity.interface"), exports);
|
|
187
|
+
__exportStar(require("./interface/field-constraint/organization_type_tds_rate_mapping_field_constraints.interface"), exports);
|
|
173
188
|
__exportStar(require("./model/organization_type_tds_rate_mapping.entity.model"), exports);
|
|
174
189
|
__exportStar(require("./enums/tds_rate_status_enum"), exports);
|
|
175
190
|
__exportStar(require("./interface/tds_rate.entity.interface"), exports);
|
|
@@ -199,6 +214,7 @@ __exportStar(require("./model/intermediary_bank.entity.model"), exports);
|
|
|
199
214
|
__exportStar(require("./enums/billing_status_category.enum"), exports);
|
|
200
215
|
__exportStar(require("./enums/billing_summarry_export_type.enum"), exports);
|
|
201
216
|
__exportStar(require("./interface/document_upload.entity.interface"), exports);
|
|
217
|
+
__exportStar(require("./interface/field-constraint/document_upload_field_constraints.interface"), exports);
|
|
202
218
|
__exportStar(require("./model/document_upload.entity.model"), exports);
|
|
203
219
|
__exportStar(require("./enums/vendor_contract_applicability_enum"), exports);
|
|
204
220
|
__exportStar(require("./enums/vendor_gst_type_enum"), exports);
|
|
@@ -217,7 +233,9 @@ __exportStar(require("./model/office_location.entity.model"), exports);
|
|
|
217
233
|
__exportStar(require("./model/vendor_invoice.entity.model"), exports);
|
|
218
234
|
__exportStar(require("./model/vendor_invoice_item.entity.model"), exports);
|
|
219
235
|
__exportStar(require("./interface/website_lead.entity.interface"), exports);
|
|
236
|
+
__exportStar(require("./interface/field-constraint/website_lead_field_constraints.interface"), exports);
|
|
220
237
|
__exportStar(require("./interface/website_newsletter_subscription.entity.interface"), exports);
|
|
238
|
+
__exportStar(require("./interface/field-constraint/website_newsletter_subscription_field_constraints.interface"), exports);
|
|
221
239
|
__exportStar(require("./model/website_lead.entity.model"), exports);
|
|
222
240
|
__exportStar(require("./model/website_newsletter_subscription.entity.model"), exports);
|
|
223
241
|
__exportStar(require("./interface/vendor_invoice_history.entity.interface"), exports);
|
|
@@ -259,6 +277,7 @@ __exportStar(require("./enums/entity_history_operation_enum"), exports);
|
|
|
259
277
|
__exportStar(require("./enums/entity_history_status_enum"), exports);
|
|
260
278
|
__exportStar(require("./flow-configs/entity_history_flow.config"), exports);
|
|
261
279
|
__exportStar(require("./interface/entity_history.entity.interface"), exports);
|
|
280
|
+
__exportStar(require("./interface/field-constraint/entity_history_field_constraints.interface"), exports);
|
|
262
281
|
__exportStar(require("./model/entity_history.entity.model"), exports);
|
|
263
282
|
__exportStar(require("./enums/vendor_invoice_payment_action_enum"), exports);
|
|
264
283
|
__exportStar(require("./enums/vendor_invoice_payment_mode_enum"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IClientIntroducingMappingEntity } from "../client_introducing_mapping.entity.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* a join table of two int foreign keys and nothing else. Both client_introducing_mapping.create.dto.ts
|
|
9
|
+
* and client_introducing_mapping.update.dto.ts are commented out in full, so both bounds come from
|
|
10
|
+
* the column definitions
|
|
11
|
+
*/
|
|
12
|
+
export type IClientIntroducingMappingFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IClientIntroducingMappingFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IClientIntroducingMappingEntity, IClientIntroducingMappingFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const clientIntroducingMappingFieldMinMaxConstraints: IClientIntroducingMappingFieldMinMaxConstraints;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clientIntroducingMappingFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.clientIntroducingMappingFieldMinMaxConstraints = {
|
|
5
|
+
clientId: {
|
|
6
|
+
max: 9999999,
|
|
7
|
+
},
|
|
8
|
+
userId: {
|
|
9
|
+
max: 9999999,
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IClientUserMappingEntity } from "../client_user_mapping.entity.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* a join table of two int foreign keys and nothing else. Both client_user_mapping.create.dto.ts and
|
|
9
|
+
* client_user_mapping.update.dto.ts are commented out in full, so both bounds come from the column
|
|
10
|
+
* definitions
|
|
11
|
+
*/
|
|
12
|
+
export type IClientUserMappingFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IClientUserMappingFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IClientUserMappingEntity, IClientUserMappingFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const clientUserMappingFieldMinMaxConstraints: IClientUserMappingFieldMinMaxConstraints;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clientUserMappingFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.clientUserMappingFieldMinMaxConstraints = {
|
|
5
|
+
clientId: {
|
|
6
|
+
max: 9999999,
|
|
7
|
+
},
|
|
8
|
+
userId: {
|
|
9
|
+
max: 9999999,
|
|
10
|
+
},
|
|
11
|
+
};
|
package/dist/src/entities/interface/field-constraint/configuration_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IConfigurationEntity } from "../configuration.entity.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "key", "type" enums, they carry no min/max
|
|
7
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
8
|
+
*
|
|
9
|
+
* ConfigurationEntityUpdateDto extends PartialType(OmitType(ConfigurationEntityCreateDto, ...)), so
|
|
10
|
+
* it inherits every create bound — create and update cannot disagree for this entity
|
|
11
|
+
*/
|
|
12
|
+
export type IConfigurationFieldLengthConstraintsExclude = "id" | "key" | "type" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IConfigurationFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IConfigurationEntity, IConfigurationFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const configurationFieldMinMaxConstraints: IConfigurationFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/configuration_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.configurationFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.configurationFieldMinMaxConstraints = {
|
|
5
|
+
value: {
|
|
6
|
+
max: 255,
|
|
7
|
+
},
|
|
8
|
+
organizationId: {
|
|
9
|
+
max: 9999999,
|
|
10
|
+
},
|
|
11
|
+
/** the column is varchar(128) but the create DTO allows @MaxLength(255) — the DTO bound stays as a
|
|
12
|
+
* literal, reconciling the two is step-4 material */
|
|
13
|
+
label: {
|
|
14
|
+
max: 128,
|
|
15
|
+
},
|
|
16
|
+
description: {
|
|
17
|
+
max: 255,
|
|
18
|
+
},
|
|
19
|
+
};
|
package/dist/src/entities/interface/field-constraint/cron_jobs_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ICronJobsEntity } from "../cron_jobs.entity.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "job", "status" enums, they carry no min/max
|
|
7
|
+
* - "startTime", "endTime" datetime columns, they carry no length
|
|
8
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
9
|
+
*
|
|
10
|
+
* there is no CronJobsCreateDto / CronJobsUpdateDto in the backend — rows are written by the cron
|
|
11
|
+
* runner itself — so every bound below comes from the column definition alone
|
|
12
|
+
*/
|
|
13
|
+
export type ICronJobsFieldLengthConstraintsExclude = "id" | "job" | "status" | "startTime" | "endTime" | keyof IEntityAuditColumn;
|
|
14
|
+
/**
|
|
15
|
+
* since some fields are optional, but we still need their
|
|
16
|
+
* min & max length constraints, we need to make them required in this type
|
|
17
|
+
* hence we are using -? to make all properties required in this type
|
|
18
|
+
*/
|
|
19
|
+
export type ICronJobsFieldMinMaxConstraints = {
|
|
20
|
+
[K in keyof Omit<ICronJobsEntity, ICronJobsFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
21
|
+
};
|
|
22
|
+
export declare const cronJobsFieldMinMaxConstraints: ICronJobsFieldMinMaxConstraints;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cronJobsFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.cronJobsFieldMinMaxConstraints = {
|
|
5
|
+
message: {
|
|
6
|
+
max: 512,
|
|
7
|
+
},
|
|
8
|
+
error: {
|
|
9
|
+
max: 512,
|
|
10
|
+
},
|
|
11
|
+
parameters: {
|
|
12
|
+
max: 512,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IDocumentUploadEntity } from "../document_upload.entity.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "gstDocument" a url, its length is not a business constraint
|
|
7
|
+
* - "additionalDocuments" urls, their length is not a business constraint
|
|
8
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
9
|
+
*
|
|
10
|
+
* DocumentUploadUpdateDto extends PartialType(OmitType(DocumentUploadCreateDto, ...)), so it
|
|
11
|
+
* inherits every create bound — create and update cannot disagree for this entity
|
|
12
|
+
*/
|
|
13
|
+
export type IDocumentUploadFieldLengthConstraintsExclude = "id" | "gstDocument" | "additionalDocuments" | keyof IEntityAuditColumn;
|
|
14
|
+
/**
|
|
15
|
+
* since some fields are optional, but we still need their
|
|
16
|
+
* min & max length constraints, we need to make them required in this type
|
|
17
|
+
* hence we are using -? to make all properties required in this type
|
|
18
|
+
*/
|
|
19
|
+
export type IDocumentUploadFieldMinMaxConstraints = {
|
|
20
|
+
[K in keyof Omit<IDocumentUploadEntity, IDocumentUploadFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
21
|
+
};
|
|
22
|
+
export declare const documentUploadFieldMinMaxConstraints: IDocumentUploadFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/document_upload_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentUploadFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.documentUploadFieldMinMaxConstraints = {
|
|
5
|
+
name: {
|
|
6
|
+
min: 1,
|
|
7
|
+
max: 255,
|
|
8
|
+
},
|
|
9
|
+
gstNo: {
|
|
10
|
+
max: 32,
|
|
11
|
+
},
|
|
12
|
+
};
|
package/dist/src/entities/interface/field-constraint/entity_history_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IEntityHistoryEntity } from "../entity_history.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "operation", "status" enums, they carry no min/max
|
|
7
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
8
|
+
*
|
|
9
|
+
* EntityHistoryUpdateDto extends PartialType(OmitType(EntityHistoryCreateDto, ...)), so it inherits
|
|
10
|
+
* every create bound — create and update cannot disagree for this entity
|
|
11
|
+
*/
|
|
12
|
+
export type IEntityHistoryFieldLengthConstraintsExclude = "id" | "operation" | "status" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IEntityHistoryFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IEntityHistoryEntity, IEntityHistoryFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const entityHistoryFieldMinMaxConstraints: IEntityHistoryFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/entity_history_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.entityHistoryFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.entityHistoryFieldMinMaxConstraints = {
|
|
5
|
+
entity: {
|
|
6
|
+
max: 64,
|
|
7
|
+
},
|
|
8
|
+
entityId: {
|
|
9
|
+
max: 9999999,
|
|
10
|
+
},
|
|
11
|
+
/** the serialised entity snapshot, held in a text column — the create DTO does not bound it */
|
|
12
|
+
data: {
|
|
13
|
+
max: 65535,
|
|
14
|
+
},
|
|
15
|
+
};
|
package/dist/src/entities/interface/field-constraint/expense_type_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IExpenseTypeEntity } from "../expense_type.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "type" ExpenseTypeEnum, enums carry no min/max
|
|
7
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
8
|
+
*
|
|
9
|
+
* this entity has a create DTO only — there is no ExpenseTypeUpdateDto, so no
|
|
10
|
+
* create/update disagreement is possible
|
|
11
|
+
*/
|
|
12
|
+
export type IExpenseTypeFieldLengthConstraintsExclude = "type" | "id" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IExpenseTypeFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IExpenseTypeEntity, IExpenseTypeFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const expenseTypeFieldMinMaxConstraints: IExpenseTypeFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/expense_type_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expenseTypeFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.expenseTypeFieldMinMaxConstraints = {
|
|
5
|
+
name: {
|
|
6
|
+
min: 3,
|
|
7
|
+
max: 255,
|
|
8
|
+
},
|
|
9
|
+
description: {
|
|
10
|
+
max: 1028,
|
|
11
|
+
},
|
|
12
|
+
};
|
package/dist/src/entities/interface/field-constraint/holiday_list_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IHolidayListEntity } from "../holiday_list.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* HolidayListUpdateDto extends PartialType(OmitType(HolidayListCreateDto, ...)), so it inherits
|
|
9
|
+
* every create bound — create and update cannot disagree for this entity
|
|
10
|
+
*/
|
|
11
|
+
export type IHolidayListFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
12
|
+
/**
|
|
13
|
+
* since some fields are optional, but we still need their
|
|
14
|
+
* min & max length constraints, we need to make them required in this type
|
|
15
|
+
* hence we are using -? to make all properties required in this type
|
|
16
|
+
*/
|
|
17
|
+
export type IHolidayListFieldMinMaxConstraints = {
|
|
18
|
+
[K in keyof Omit<IHolidayListEntity, IHolidayListFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
19
|
+
};
|
|
20
|
+
export declare const holidayListFieldMinMaxConstraints: IHolidayListFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/holiday_list_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.holidayListFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.holidayListFieldMinMaxConstraints = {
|
|
5
|
+
/** doubles as the holiday list's name — it is the field uniqueness is checked on */
|
|
6
|
+
description: {
|
|
7
|
+
min: 2,
|
|
8
|
+
max: 256,
|
|
9
|
+
},
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IOfficeLocationEntity } from "../office_location.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* OfficeLocationUpdateDto is a standalone class rather than a PartialType of the create DTO, so the
|
|
9
|
+
* two can and do disagree — see the note on `address` below
|
|
10
|
+
*/
|
|
11
|
+
export type IOfficeLocationFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
12
|
+
/**
|
|
13
|
+
* since some fields are optional, but we still need their
|
|
14
|
+
* min & max length constraints, we need to make them required in this type
|
|
15
|
+
* hence we are using -? to make all properties required in this type
|
|
16
|
+
*/
|
|
17
|
+
export type IOfficeLocationFieldMinMaxConstraints = {
|
|
18
|
+
[K in keyof Omit<IOfficeLocationEntity, IOfficeLocationFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
19
|
+
};
|
|
20
|
+
export declare const officeLocationFieldMinMaxConstraints: IOfficeLocationFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/office_location_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.officeLocationFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.officeLocationFieldMinMaxConstraints = {
|
|
5
|
+
name: {
|
|
6
|
+
min: 3,
|
|
7
|
+
max: 128,
|
|
8
|
+
},
|
|
9
|
+
/**
|
|
10
|
+
* the column is varchar(1024) and the update DTO agrees, but the create DTO caps it at
|
|
11
|
+
* @MaxLength(255) — the create bound stays as a literal, reconciling the two is step-4 material
|
|
12
|
+
*/
|
|
13
|
+
address: {
|
|
14
|
+
max: 1024,
|
|
15
|
+
},
|
|
16
|
+
/**
|
|
17
|
+
* NOT a numeric bound: the property is typed `number` but the column is varchar(64), so 64 is the
|
|
18
|
+
* stored string length. Neither DTO bounds it, and it is deliberately left unwired there —
|
|
19
|
+
* the number/varchar mismatch is step-4 material
|
|
20
|
+
*/
|
|
21
|
+
zipCode: {
|
|
22
|
+
max: 64,
|
|
23
|
+
},
|
|
24
|
+
country: {
|
|
25
|
+
max: 128,
|
|
26
|
+
},
|
|
27
|
+
organizationId: {
|
|
28
|
+
max: 9999999,
|
|
29
|
+
},
|
|
30
|
+
};
|
package/dist/src/entities/interface/field-constraint/organization_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IOrganizationEntity } from "../organization.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "status" enum, it carries no min/max
|
|
7
|
+
* - "panDocumentUrl" a url, its length is not a business constraint
|
|
8
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
9
|
+
*
|
|
10
|
+
* there is no OrganizationCreateDto / OrganizationUpdateDto in the backend — organization rows are
|
|
11
|
+
* seeded by migration — so every bound below comes from the column definition alone
|
|
12
|
+
*/
|
|
13
|
+
export type IOrganizationFieldLengthConstraintsExclude = "id" | "status" | "panDocumentUrl" | keyof IEntityAuditColumn;
|
|
14
|
+
/**
|
|
15
|
+
* since some fields are optional, but we still need their
|
|
16
|
+
* min & max length constraints, we need to make them required in this type
|
|
17
|
+
* hence we are using -? to make all properties required in this type
|
|
18
|
+
*/
|
|
19
|
+
export type IOrganizationFieldMinMaxConstraints = {
|
|
20
|
+
[K in keyof Omit<IOrganizationEntity, IOrganizationFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
21
|
+
};
|
|
22
|
+
export declare const organizationFieldMinMaxConstraints: IOrganizationFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/organization_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.organizationFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.organizationFieldMinMaxConstraints = {
|
|
5
|
+
name: {
|
|
6
|
+
max: 128,
|
|
7
|
+
},
|
|
8
|
+
email: {
|
|
9
|
+
max: 128,
|
|
10
|
+
},
|
|
11
|
+
contact: {
|
|
12
|
+
max: 32,
|
|
13
|
+
},
|
|
14
|
+
description: {
|
|
15
|
+
max: 1024,
|
|
16
|
+
},
|
|
17
|
+
address: {
|
|
18
|
+
max: 256,
|
|
19
|
+
},
|
|
20
|
+
panNo: {
|
|
21
|
+
max: 64,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IOrganizationTypeEntity } from "../organization_type.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "status" enum, it carries no min/max
|
|
7
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
8
|
+
*
|
|
9
|
+
* OrganizationTypeUpdateDto extends PartialType(OmitType(OrganizationTypeCreateDto, ...)), so it
|
|
10
|
+
* inherits every create bound — create and update cannot disagree for this entity
|
|
11
|
+
*/
|
|
12
|
+
export type IOrganizationTypeFieldLengthConstraintsExclude = "id" | "status" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IOrganizationTypeFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IOrganizationTypeEntity, IOrganizationTypeFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const organizationTypeFieldMinMaxConstraints: IOrganizationTypeFieldMinMaxConstraints;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.organizationTypeFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.organizationTypeFieldMinMaxConstraints = {
|
|
5
|
+
/** a single character, the create DTO pins it shut with @MinLength(1) @MaxLength(1) */
|
|
6
|
+
code: {
|
|
7
|
+
min: 1,
|
|
8
|
+
max: 1,
|
|
9
|
+
},
|
|
10
|
+
name: {
|
|
11
|
+
max: 64,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IOrganizationTypeTdsRateMappingEntity } from "../organization_type_tds_rate_mapping.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* OrganizationTypeTdsRateMappingUpdateDto extends
|
|
9
|
+
* PartialType(OmitType(OrganizationTypeTdsRateMappingCreateDto, ...)), so it inherits every
|
|
10
|
+
* create bound — create and update cannot disagree for this entity
|
|
11
|
+
*/
|
|
12
|
+
export type IOrganizationTypeTdsRateMappingFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IOrganizationTypeTdsRateMappingFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IOrganizationTypeTdsRateMappingEntity, IOrganizationTypeTdsRateMappingFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const organizationTypeTdsRateMappingFieldMinMaxConstraints: IOrganizationTypeTdsRateMappingFieldMinMaxConstraints;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.organizationTypeTdsRateMappingFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.organizationTypeTdsRateMappingFieldMinMaxConstraints = {
|
|
5
|
+
organizationTypeId: {
|
|
6
|
+
max: 9999999,
|
|
7
|
+
},
|
|
8
|
+
tdsRateId: {
|
|
9
|
+
max: 9999999,
|
|
10
|
+
},
|
|
11
|
+
};
|
package/dist/src/entities/interface/field-constraint/permission_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IPermissionEntity } from "../permission.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* neither PermissionCreateDto nor PermissionUpdateDto carries a single @MaxLength — the lengths they
|
|
9
|
+
* advertise live only in @ApiProperty metadata, which documents but does not validate (and on the
|
|
10
|
+
* create DTO the description's @ApiProperty is commented out entirely). Every bound below therefore
|
|
11
|
+
* comes from the column definition
|
|
12
|
+
*/
|
|
13
|
+
export type IPermissionFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
14
|
+
/**
|
|
15
|
+
* since some fields are optional, but we still need their
|
|
16
|
+
* min & max length constraints, we need to make them required in this type
|
|
17
|
+
* hence we are using -? to make all properties required in this type
|
|
18
|
+
*/
|
|
19
|
+
export type IPermissionFieldMinMaxConstraints = {
|
|
20
|
+
[K in keyof Omit<IPermissionEntity, IPermissionFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
21
|
+
};
|
|
22
|
+
export declare const permissionFieldMinMaxConstraints: IPermissionFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/permission_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.permissionFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.permissionFieldMinMaxConstraints = {
|
|
5
|
+
/** the column is varchar(255) — both DTOs advertise 128 in @ApiProperty, but neither enforces it */
|
|
6
|
+
name: {
|
|
7
|
+
max: 255,
|
|
8
|
+
},
|
|
9
|
+
description: {
|
|
10
|
+
max: 1024,
|
|
11
|
+
},
|
|
12
|
+
organizationId: {
|
|
13
|
+
max: 9999999,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IProjectUserMappingEntity } from "../project_user_mapping.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "status" enum, it carries no min/max
|
|
7
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
8
|
+
*
|
|
9
|
+
* a join table of two int foreign keys plus a status. There is no ProjectUserMappingCreateDto or
|
|
10
|
+
* UpdateDto in the backend, so both bounds come from the column definitions
|
|
11
|
+
*/
|
|
12
|
+
export type IProjectUserMappingFieldLengthConstraintsExclude = "id" | "status" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IProjectUserMappingFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IProjectUserMappingEntity, IProjectUserMappingFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const projectUserMappingFieldMinMaxConstraints: IProjectUserMappingFieldMinMaxConstraints;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.projectUserMappingFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.projectUserMappingFieldMinMaxConstraints = {
|
|
5
|
+
projectId: {
|
|
6
|
+
max: 9999999,
|
|
7
|
+
},
|
|
8
|
+
userId: {
|
|
9
|
+
max: 9999999,
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IRoleEntity } from "../role.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* neither RoleCreateDto nor RoleUpdateDto carries a single @MaxLength — the lengths they advertise
|
|
9
|
+
* live only in @ApiProperty metadata, which documents but does not validate. Every bound below
|
|
10
|
+
* therefore comes from the column definition
|
|
11
|
+
*/
|
|
12
|
+
export type IRoleFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IRoleFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IRoleEntity, IRoleFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const roleFieldMinMaxConstraints: IRoleFieldMinMaxConstraints;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.roleFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.roleFieldMinMaxConstraints = {
|
|
5
|
+
/** the column is varchar(255) — both DTOs advertise 128 in @ApiProperty, but neither enforces it */
|
|
6
|
+
name: {
|
|
7
|
+
max: 255,
|
|
8
|
+
},
|
|
9
|
+
description: {
|
|
10
|
+
max: 1024,
|
|
11
|
+
},
|
|
12
|
+
organizationId: {
|
|
13
|
+
max: 9999999,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IRolePermissionMappingEntity } from "../role_permission_mapping.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* a join table of two int foreign keys and nothing else. There is no RolePermissionMappingCreateDto
|
|
9
|
+
* or UpdateDto — RolePermissionsMappingCreateDto takes a { permissionName: roleName[] } map rather
|
|
10
|
+
* than entity fields — so both bounds come from the column definitions
|
|
11
|
+
*/
|
|
12
|
+
export type IRolePermissionMappingFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IRolePermissionMappingFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IRolePermissionMappingEntity, IRolePermissionMappingFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const rolePermissionMappingFieldMinMaxConstraints: IRolePermissionMappingFieldMinMaxConstraints;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rolePermissionMappingFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.rolePermissionMappingFieldMinMaxConstraints = {
|
|
5
|
+
roleId: {
|
|
6
|
+
max: 9999999,
|
|
7
|
+
},
|
|
8
|
+
permissionId: {
|
|
9
|
+
max: 9999999,
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IStateEntity } from "../state.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "status" enum, it carries no min/max
|
|
7
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
8
|
+
*
|
|
9
|
+
* StateUpdateDto extends PartialType(OmitType(StateCreateDto, ...)), so it inherits every create
|
|
10
|
+
* bound — create and update cannot disagree for this entity
|
|
11
|
+
*/
|
|
12
|
+
export type IStateFieldLengthConstraintsExclude = "id" | "status" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IStateFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IStateEntity, IStateFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const stateFieldMinMaxConstraints: IStateFieldMinMaxConstraints;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stateFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.stateFieldMinMaxConstraints = {
|
|
5
|
+
name: {
|
|
6
|
+
min: 2,
|
|
7
|
+
max: 64,
|
|
8
|
+
},
|
|
9
|
+
/** the two letter state code, the create DTO pins it shut with @MinLength(2) @MaxLength(2) */
|
|
10
|
+
code: {
|
|
11
|
+
min: 2,
|
|
12
|
+
max: 2,
|
|
13
|
+
},
|
|
14
|
+
};
|
package/dist/src/entities/interface/field-constraint/website_lead_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IWebsiteLeadEntity } from "../website_lead.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* WebsiteLeadUpdateDto extends PartialType(OmitType(WebsiteLeadCreateDto, ...)), so it inherits
|
|
9
|
+
* every create bound — create and update cannot disagree for this entity
|
|
10
|
+
*/
|
|
11
|
+
export type IWebsiteLeadFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
12
|
+
/**
|
|
13
|
+
* since some fields are optional, but we still need their
|
|
14
|
+
* min & max length constraints, we need to make them required in this type
|
|
15
|
+
* hence we are using -? to make all properties required in this type
|
|
16
|
+
*/
|
|
17
|
+
export type IWebsiteLeadFieldMinMaxConstraints = {
|
|
18
|
+
[K in keyof Omit<IWebsiteLeadEntity, IWebsiteLeadFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
19
|
+
};
|
|
20
|
+
export declare const websiteLeadFieldMinMaxConstraints: IWebsiteLeadFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/website_lead_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.websiteLeadFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.websiteLeadFieldMinMaxConstraints = {
|
|
5
|
+
fullName: {
|
|
6
|
+
max: 128,
|
|
7
|
+
},
|
|
8
|
+
email: {
|
|
9
|
+
max: 128,
|
|
10
|
+
},
|
|
11
|
+
message: {
|
|
12
|
+
max: 512,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
2
|
+
import { IWebsiteNewsletterSubscriptionEntity } from "../website_newsletter_subscription.entity.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
*
|
|
8
|
+
* WebsiteNewsletterSubscriptionUpdateDto extends
|
|
9
|
+
* PartialType(OmitType(WebsiteNewsletterSubscriptionCreateDto, ...)), so it inherits every create
|
|
10
|
+
* bound — create and update cannot disagree for this entity
|
|
11
|
+
*/
|
|
12
|
+
export type IWebsiteNewsletterSubscriptionFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IWebsiteNewsletterSubscriptionFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IWebsiteNewsletterSubscriptionEntity, IWebsiteNewsletterSubscriptionFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const websiteNewsletterSubscriptionFieldMinMaxConstraints: IWebsiteNewsletterSubscriptionFieldMinMaxConstraints;
|