@deallony/shared 1.2.6 → 1.2.8
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/dist/cjs/constants/company/Company.d.ts +9 -0
- package/dist/cjs/constants/company/Company.js +12 -0
- package/dist/cjs/constants/company/index.d.ts +1 -0
- package/dist/cjs/constants/company/index.js +17 -0
- package/dist/cjs/constants/index.d.ts +1 -0
- package/dist/cjs/constants/index.js +2 -1
- package/dist/cjs/schema/events/Event.schema.d.ts +4 -0
- package/dist/cjs/schema/events/Event.schema.js +1 -0
- package/dist/cjs/types/company/Company.d.ts +1 -0
- package/dist/esm/constants/company/Company.js +9 -0
- package/dist/esm/constants/company/index.js +1 -0
- package/dist/esm/constants/index.js +1 -0
- package/dist/esm/schema/events/Event.schema.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CompanyStatusOptions = exports.COMPANY_STATUS = void 0;
|
|
4
|
+
exports.COMPANY_STATUS = {
|
|
5
|
+
PENDING: 'pending',
|
|
6
|
+
APPROVED: 'approved',
|
|
7
|
+
REJECTED: 'rejected',
|
|
8
|
+
};
|
|
9
|
+
exports.CompanyStatusOptions = Object.values(exports.COMPANY_STATUS).map((status) => ({
|
|
10
|
+
value: status,
|
|
11
|
+
label: status.charAt(0).toUpperCase() + status.slice(1),
|
|
12
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Company';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Company"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as Subject from "./common/Subject";
|
|
2
2
|
export * as COMMON from "./common";
|
|
3
3
|
export * as AD from "./ad";
|
|
4
|
+
export * as COMPANY from "./company";
|
|
4
5
|
export * as EVENTS from "./events";
|
|
5
6
|
export * as MOTOR from "./motor";
|
|
6
7
|
export * as PROPERTY from "./property";
|
|
@@ -33,10 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.USED_PRODUCT = exports.SERVICE = exports.ROUTES = exports.PROPERTY = exports.MOTOR = exports.EVENTS = exports.AD = exports.COMMON = exports.Subject = void 0;
|
|
36
|
+
exports.USED_PRODUCT = exports.SERVICE = exports.ROUTES = exports.PROPERTY = exports.MOTOR = exports.EVENTS = exports.COMPANY = exports.AD = exports.COMMON = exports.Subject = void 0;
|
|
37
37
|
exports.Subject = __importStar(require("./common/Subject"));
|
|
38
38
|
exports.COMMON = __importStar(require("./common"));
|
|
39
39
|
exports.AD = __importStar(require("./ad"));
|
|
40
|
+
exports.COMPANY = __importStar(require("./company"));
|
|
40
41
|
exports.EVENTS = __importStar(require("./events"));
|
|
41
42
|
exports.MOTOR = __importStar(require("./motor"));
|
|
42
43
|
exports.PROPERTY = __importStar(require("./property"));
|
|
@@ -25,6 +25,7 @@ export declare const eventBaseSchema: z.ZodObject<{
|
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
venue_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
28
29
|
}, z.core.$strip>;
|
|
29
30
|
export declare const createEventSchema: z.ZodObject<{
|
|
30
31
|
lat: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -52,6 +53,7 @@ export declare const createEventSchema: z.ZodObject<{
|
|
|
52
53
|
}, z.core.$strip>;
|
|
53
54
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
55
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
venue_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
55
57
|
}, z.core.$strip>;
|
|
56
58
|
export declare const updateEventSchema: z.ZodObject<{
|
|
57
59
|
lat: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -79,6 +81,7 @@ export declare const updateEventSchema: z.ZodObject<{
|
|
|
79
81
|
}, z.core.$strip>;
|
|
80
82
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
83
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
venue_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
82
85
|
id: z.ZodCoercedNumber<unknown>;
|
|
83
86
|
}, z.core.$strip>;
|
|
84
87
|
export declare const saveEventSchema: z.ZodObject<{
|
|
@@ -107,6 +110,7 @@ export declare const saveEventSchema: z.ZodObject<{
|
|
|
107
110
|
}, z.core.$strip>;
|
|
108
111
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
112
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
venue_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
110
114
|
id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
111
115
|
}, z.core.$strip>;
|
|
112
116
|
export declare const getEventsFilterSchema: z.ZodObject<{
|
|
@@ -15,6 +15,7 @@ exports.eventBaseSchema = zod_1.z.object({
|
|
|
15
15
|
timeline: EventTimeline_schema_1.saveEventTimelineSchema,
|
|
16
16
|
event_type: zod_1.z.string().trim().max(255).nullable().optional(),
|
|
17
17
|
event_template: zod_1.z.string().trim().max(255).nullable().optional(),
|
|
18
|
+
venue_id: zod_1.z.coerce.number().int().positive().nullable().optional(),
|
|
18
19
|
});
|
|
19
20
|
exports.createEventSchema = exports.eventBaseSchema;
|
|
20
21
|
exports.updateEventSchema = exports.eventBaseSchema.extend({
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const COMPANY_STATUS = {
|
|
2
|
+
PENDING: 'pending',
|
|
3
|
+
APPROVED: 'approved',
|
|
4
|
+
REJECTED: 'rejected',
|
|
5
|
+
};
|
|
6
|
+
export const CompanyStatusOptions = Object.values(COMPANY_STATUS).map((status) => ({
|
|
7
|
+
value: status,
|
|
8
|
+
label: status.charAt(0).toUpperCase() + status.slice(1),
|
|
9
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Company.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as Subject from "./common/Subject.js";
|
|
2
2
|
export * as COMMON from "./common/index.js";
|
|
3
3
|
export * as AD from "./ad/index.js";
|
|
4
|
+
export * as COMPANY from "./company/index.js";
|
|
4
5
|
export * as EVENTS from "./events/index.js";
|
|
5
6
|
export * as MOTOR from "./motor/index.js";
|
|
6
7
|
export * as PROPERTY from "./property/index.js";
|
|
@@ -12,6 +12,7 @@ export const eventBaseSchema = z.object({
|
|
|
12
12
|
timeline: saveEventTimelineSchema,
|
|
13
13
|
event_type: z.string().trim().max(255).nullable().optional(),
|
|
14
14
|
event_template: z.string().trim().max(255).nullable().optional(),
|
|
15
|
+
venue_id: z.coerce.number().int().positive().nullable().optional(),
|
|
15
16
|
});
|
|
16
17
|
export const createEventSchema = eventBaseSchema;
|
|
17
18
|
export const updateEventSchema = eventBaseSchema.extend({
|