@sortipei/api-contracts 0.1.21 → 0.1.23
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/V1/api/app-configuration.d.ts +24 -0
- package/dist/V1/api/app-configuration.d.ts.map +1 -0
- package/dist/V1/api/event.d.ts +14 -14
- package/dist/V1/api/index.d.ts +2 -1
- package/dist/V1/api/index.d.ts.map +1 -1
- package/dist/V1/external/partial-imported-event.d.ts +5 -5
- package/dist/api-contracts.js +12 -2
- package/dist/api-contracts.mjs +12 -2
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AppConfigurationDTOSchema: z.ZodObject<{
|
|
3
|
+
isInfoMessageEnabled: z.ZodBoolean;
|
|
4
|
+
infoMessageContent: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
isInfoMessageEnabled: boolean;
|
|
7
|
+
infoMessageContent: string;
|
|
8
|
+
}, {
|
|
9
|
+
isInfoMessageEnabled: boolean;
|
|
10
|
+
infoMessageContent: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const UpdateAppConfigurationDTOSchema: z.ZodObject<{
|
|
13
|
+
isInfoMessageEnabled: z.ZodBoolean;
|
|
14
|
+
infoMessageContent: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
isInfoMessageEnabled: boolean;
|
|
17
|
+
infoMessageContent: string;
|
|
18
|
+
}, {
|
|
19
|
+
isInfoMessageEnabled: boolean;
|
|
20
|
+
infoMessageContent: string;
|
|
21
|
+
}>;
|
|
22
|
+
export type AppConfigurationDTO = z.infer<typeof AppConfigurationDTOSchema>;
|
|
23
|
+
export type UpdateAppConfigurationDTO = z.infer<typeof UpdateAppConfigurationDTOSchema>;
|
|
24
|
+
//# sourceMappingURL=app-configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-configuration.d.ts","sourceRoot":"","sources":["../../../src/V1/api/app-configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;EAG1C,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
package/dist/V1/api/event.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
13
13
|
isPromoted: z.ZodBoolean;
|
|
14
14
|
link: z.ZodNullable<z.ZodString>;
|
|
15
15
|
price: z.ZodNullable<z.ZodNumber>;
|
|
16
|
-
|
|
16
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
|
|
17
17
|
startTime: z.ZodString;
|
|
18
18
|
title: z.ZodString;
|
|
19
19
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -44,7 +44,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
44
44
|
isPromoted: boolean;
|
|
45
45
|
link: string | null;
|
|
46
46
|
price: number | null;
|
|
47
|
-
|
|
47
|
+
regions: import('../../shared').Region[];
|
|
48
48
|
startTime: string;
|
|
49
49
|
title: string;
|
|
50
50
|
thumbnailUrl: string | null;
|
|
@@ -67,7 +67,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
67
67
|
isPromoted: boolean;
|
|
68
68
|
link: string | null;
|
|
69
69
|
price: number | null;
|
|
70
|
-
|
|
70
|
+
regions: import('../../shared').Region[];
|
|
71
71
|
startTime: string;
|
|
72
72
|
title: string;
|
|
73
73
|
thumbnailUrl: string | null;
|
|
@@ -91,7 +91,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
91
91
|
link: z.ZodNullable<z.ZodString>;
|
|
92
92
|
organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
|
|
93
93
|
price: z.ZodNullable<z.ZodNumber>;
|
|
94
|
-
|
|
94
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
|
|
95
95
|
startTime: z.ZodString;
|
|
96
96
|
title: z.ZodString;
|
|
97
97
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -108,7 +108,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
108
108
|
isDisplayed: boolean;
|
|
109
109
|
link: string | null;
|
|
110
110
|
price: number | null;
|
|
111
|
-
|
|
111
|
+
regions: import('../../shared').Region[];
|
|
112
112
|
startTime: string;
|
|
113
113
|
title: string;
|
|
114
114
|
thumbnailUrl: string | null;
|
|
@@ -126,7 +126,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
126
126
|
isDisplayed: boolean;
|
|
127
127
|
link: string | null;
|
|
128
128
|
price: number | null;
|
|
129
|
-
|
|
129
|
+
regions: import('../../shared').Region[];
|
|
130
130
|
startTime: string;
|
|
131
131
|
title: string;
|
|
132
132
|
thumbnailUrl: string | null;
|
|
@@ -146,7 +146,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
146
146
|
link: z.ZodNullable<z.ZodString>;
|
|
147
147
|
organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
|
|
148
148
|
price: z.ZodNullable<z.ZodNumber>;
|
|
149
|
-
|
|
149
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
|
|
150
150
|
startTime: z.ZodString;
|
|
151
151
|
title: z.ZodString;
|
|
152
152
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -162,7 +162,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
162
162
|
isDisplayed: boolean;
|
|
163
163
|
link: string | null;
|
|
164
164
|
price: number | null;
|
|
165
|
-
|
|
165
|
+
regions: import('../../shared').Region[];
|
|
166
166
|
startTime: string;
|
|
167
167
|
title: string;
|
|
168
168
|
thumbnailUrl: string | null;
|
|
@@ -179,7 +179,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
179
179
|
isDisplayed: boolean;
|
|
180
180
|
link: string | null;
|
|
181
181
|
price: number | null;
|
|
182
|
-
|
|
182
|
+
regions: import('../../shared').Region[];
|
|
183
183
|
startTime: string;
|
|
184
184
|
title: string;
|
|
185
185
|
thumbnailUrl: string | null;
|
|
@@ -236,7 +236,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
236
236
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
237
237
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
238
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
239
|
-
|
|
239
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
|
|
240
240
|
startTime: z.ZodOptional<z.ZodString>;
|
|
241
241
|
title: z.ZodOptional<z.ZodString>;
|
|
242
242
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -267,7 +267,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
267
267
|
isPromoted?: boolean | undefined;
|
|
268
268
|
link?: string | null | undefined;
|
|
269
269
|
price?: number | null | undefined;
|
|
270
|
-
|
|
270
|
+
regions?: import('../../shared').Region[] | undefined;
|
|
271
271
|
startTime?: string | undefined;
|
|
272
272
|
title?: string | undefined;
|
|
273
273
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -290,7 +290,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
290
290
|
isPromoted?: boolean | undefined;
|
|
291
291
|
link?: string | null | undefined;
|
|
292
292
|
price?: number | null | undefined;
|
|
293
|
-
|
|
293
|
+
regions?: import('../../shared').Region[] | undefined;
|
|
294
294
|
startTime?: string | undefined;
|
|
295
295
|
title?: string | undefined;
|
|
296
296
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -320,7 +320,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
320
320
|
isPromoted?: boolean | undefined;
|
|
321
321
|
link?: string | null | undefined;
|
|
322
322
|
price?: number | null | undefined;
|
|
323
|
-
|
|
323
|
+
regions?: import('../../shared').Region[] | undefined;
|
|
324
324
|
startTime?: string | undefined;
|
|
325
325
|
title?: string | undefined;
|
|
326
326
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -350,7 +350,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
350
350
|
isPromoted?: boolean | undefined;
|
|
351
351
|
link?: string | null | undefined;
|
|
352
352
|
price?: number | null | undefined;
|
|
353
|
-
|
|
353
|
+
regions?: import('../../shared').Region[] | undefined;
|
|
354
354
|
startTime?: string | undefined;
|
|
355
355
|
title?: string | undefined;
|
|
356
356
|
thumbnailUrl?: string | null | undefined;
|
package/dist/V1/api/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAK5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
14
14
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
-
|
|
17
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
|
|
18
18
|
startTime: z.ZodOptional<z.ZodString>;
|
|
19
19
|
title: z.ZodOptional<z.ZodString>;
|
|
20
20
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -45,7 +45,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
45
45
|
isPromoted?: boolean | undefined;
|
|
46
46
|
link?: string | null | undefined;
|
|
47
47
|
price?: number | null | undefined;
|
|
48
|
-
|
|
48
|
+
regions?: import('../../shared').Region[] | undefined;
|
|
49
49
|
startTime?: string | undefined;
|
|
50
50
|
title?: string | undefined;
|
|
51
51
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -68,7 +68,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
68
68
|
isPromoted?: boolean | undefined;
|
|
69
69
|
link?: string | null | undefined;
|
|
70
70
|
price?: number | null | undefined;
|
|
71
|
-
|
|
71
|
+
regions?: import('../../shared').Region[] | undefined;
|
|
72
72
|
startTime?: string | undefined;
|
|
73
73
|
title?: string | undefined;
|
|
74
74
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -98,7 +98,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
98
98
|
isPromoted?: boolean | undefined;
|
|
99
99
|
link?: string | null | undefined;
|
|
100
100
|
price?: number | null | undefined;
|
|
101
|
-
|
|
101
|
+
regions?: import('../../shared').Region[] | undefined;
|
|
102
102
|
startTime?: string | undefined;
|
|
103
103
|
title?: string | undefined;
|
|
104
104
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -127,7 +127,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
127
127
|
isPromoted?: boolean | undefined;
|
|
128
128
|
link?: string | null | undefined;
|
|
129
129
|
price?: number | null | undefined;
|
|
130
|
-
|
|
130
|
+
regions?: import('../../shared').Region[] | undefined;
|
|
131
131
|
startTime?: string | undefined;
|
|
132
132
|
title?: string | undefined;
|
|
133
133
|
thumbnailUrl?: string | null | undefined;
|
package/dist/api-contracts.js
CHANGED
|
@@ -4082,6 +4082,14 @@ const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
|
4082
4082
|
const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(id);
|
|
4083
4083
|
const UserIdSchema = UUIDSchema.brand("UserId");
|
|
4084
4084
|
const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
4085
|
+
const AppConfigurationDTOSchema = z.object({
|
|
4086
|
+
isInfoMessageEnabled: z.boolean(),
|
|
4087
|
+
infoMessageContent: StringSchema
|
|
4088
|
+
});
|
|
4089
|
+
const UpdateAppConfigurationDTOSchema = z.object({
|
|
4090
|
+
isInfoMessageEnabled: z.boolean(),
|
|
4091
|
+
infoMessageContent: StringSchema
|
|
4092
|
+
});
|
|
4085
4093
|
const FileUploadDTOSchema = z.object({
|
|
4086
4094
|
publicUrl: URLSchema,
|
|
4087
4095
|
uploadUrl: URLSchema
|
|
@@ -4100,7 +4108,7 @@ const EventDTOSchema = z.object({
|
|
|
4100
4108
|
isPromoted: z.boolean(),
|
|
4101
4109
|
link: URLSchema.nullable(),
|
|
4102
4110
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4103
|
-
|
|
4111
|
+
regions: RegionSchema.array(),
|
|
4104
4112
|
startTime: z.string().datetime(),
|
|
4105
4113
|
title: StringSchema,
|
|
4106
4114
|
thumbnailUrl: URLSchema.nullable(),
|
|
@@ -4124,7 +4132,7 @@ const CreateEventDTOSchema = z.object({
|
|
|
4124
4132
|
link: URLSchema.nullable(),
|
|
4125
4133
|
organizersIds: OrganizerIdSchema.array().min(1),
|
|
4126
4134
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4127
|
-
|
|
4135
|
+
regions: RegionSchema.array(),
|
|
4128
4136
|
startTime: z.string().datetime(),
|
|
4129
4137
|
title: StringSchema,
|
|
4130
4138
|
thumbnailUrl: URLSchema.nullable()
|
|
@@ -4190,6 +4198,7 @@ const constraints = {
|
|
|
4190
4198
|
};
|
|
4191
4199
|
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4192
4200
|
__proto__: null,
|
|
4201
|
+
AppConfigurationDTOSchema,
|
|
4193
4202
|
CreateEventDTOSchema,
|
|
4194
4203
|
CreateOrganizerDTOSchema,
|
|
4195
4204
|
DisplayEventDTOSchema,
|
|
@@ -4199,6 +4208,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4199
4208
|
ImportDTOSchema,
|
|
4200
4209
|
OrganizerDTOSchema,
|
|
4201
4210
|
PromoteEventDTOSchema,
|
|
4211
|
+
UpdateAppConfigurationDTOSchema,
|
|
4202
4212
|
UpdateEventDTOSchema,
|
|
4203
4213
|
UpdateOrganizerDTOSchema,
|
|
4204
4214
|
constraints
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4080,6 +4080,14 @@ const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
|
4080
4080
|
const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(id);
|
|
4081
4081
|
const UserIdSchema = UUIDSchema.brand("UserId");
|
|
4082
4082
|
const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
4083
|
+
const AppConfigurationDTOSchema = z.object({
|
|
4084
|
+
isInfoMessageEnabled: z.boolean(),
|
|
4085
|
+
infoMessageContent: StringSchema
|
|
4086
|
+
});
|
|
4087
|
+
const UpdateAppConfigurationDTOSchema = z.object({
|
|
4088
|
+
isInfoMessageEnabled: z.boolean(),
|
|
4089
|
+
infoMessageContent: StringSchema
|
|
4090
|
+
});
|
|
4083
4091
|
const FileUploadDTOSchema = z.object({
|
|
4084
4092
|
publicUrl: URLSchema,
|
|
4085
4093
|
uploadUrl: URLSchema
|
|
@@ -4098,7 +4106,7 @@ const EventDTOSchema = z.object({
|
|
|
4098
4106
|
isPromoted: z.boolean(),
|
|
4099
4107
|
link: URLSchema.nullable(),
|
|
4100
4108
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4101
|
-
|
|
4109
|
+
regions: RegionSchema.array(),
|
|
4102
4110
|
startTime: z.string().datetime(),
|
|
4103
4111
|
title: StringSchema,
|
|
4104
4112
|
thumbnailUrl: URLSchema.nullable(),
|
|
@@ -4122,7 +4130,7 @@ const CreateEventDTOSchema = z.object({
|
|
|
4122
4130
|
link: URLSchema.nullable(),
|
|
4123
4131
|
organizersIds: OrganizerIdSchema.array().min(1),
|
|
4124
4132
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4125
|
-
|
|
4133
|
+
regions: RegionSchema.array(),
|
|
4126
4134
|
startTime: z.string().datetime(),
|
|
4127
4135
|
title: StringSchema,
|
|
4128
4136
|
thumbnailUrl: URLSchema.nullable()
|
|
@@ -4188,6 +4196,7 @@ const constraints = {
|
|
|
4188
4196
|
};
|
|
4189
4197
|
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4190
4198
|
__proto__: null,
|
|
4199
|
+
AppConfigurationDTOSchema,
|
|
4191
4200
|
CreateEventDTOSchema,
|
|
4192
4201
|
CreateOrganizerDTOSchema,
|
|
4193
4202
|
DisplayEventDTOSchema,
|
|
@@ -4197,6 +4206,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4197
4206
|
ImportDTOSchema,
|
|
4198
4207
|
OrganizerDTOSchema,
|
|
4199
4208
|
PromoteEventDTOSchema,
|
|
4209
|
+
UpdateAppConfigurationDTOSchema,
|
|
4200
4210
|
UpdateEventDTOSchema,
|
|
4201
4211
|
UpdateOrganizerDTOSchema,
|
|
4202
4212
|
constraints
|