@sortipei/api-contracts 0.1.11 → 0.1.12

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.
@@ -63,72 +63,6 @@ export declare const EventDTOSchema: z.ZodObject<{
63
63
  name: string;
64
64
  }[];
65
65
  }>;
66
- export declare const EventPublicDTOSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
67
- adress: z.ZodString;
68
- capacity: z.ZodNullable<z.ZodNumber>;
69
- description: z.ZodString;
70
- finishTime: z.ZodNullable<z.ZodString>;
71
- hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
72
- id: z.ZodBranded<z.ZodString, "EventId">;
73
- imageUrls: z.ZodArray<z.ZodString, "many">;
74
- isDisplayed: z.ZodBoolean;
75
- isPromoted: z.ZodBoolean;
76
- link: z.ZodNullable<z.ZodString>;
77
- price: z.ZodNullable<z.ZodNumber>;
78
- region: z.ZodNativeEnum<typeof import('../../shared').Region>;
79
- startTime: z.ZodString;
80
- title: z.ZodString;
81
- organizers: z.ZodArray<z.ZodObject<{
82
- id: z.ZodBranded<z.ZodString, "OrganizerId">;
83
- name: z.ZodString;
84
- }, "strip", z.ZodTypeAny, {
85
- id: string & z.BRAND<"OrganizerId">;
86
- name: string;
87
- }, {
88
- id: string;
89
- name: string;
90
- }>, "many">;
91
- }, "isDisplayed">, {
92
- isFavorite: z.ZodBoolean;
93
- }>, "strip", z.ZodTypeAny, {
94
- adress: string;
95
- capacity: number | null;
96
- description: string;
97
- finishTime: string | null;
98
- hasHandicapAccess: boolean | null;
99
- id: string & z.BRAND<"EventId">;
100
- imageUrls: string[];
101
- isPromoted: boolean;
102
- link: string | null;
103
- price: number | null;
104
- region: import('../../shared').Region;
105
- startTime: string;
106
- title: string;
107
- organizers: {
108
- id: string & z.BRAND<"OrganizerId">;
109
- name: string;
110
- }[];
111
- isFavorite: boolean;
112
- }, {
113
- adress: string;
114
- capacity: number | null;
115
- description: string;
116
- finishTime: string | null;
117
- hasHandicapAccess: boolean | null;
118
- id: string;
119
- imageUrls: string[];
120
- isPromoted: boolean;
121
- link: string | null;
122
- price: number | null;
123
- region: import('../../shared').Region;
124
- startTime: string;
125
- title: string;
126
- organizers: {
127
- id: string;
128
- name: string;
129
- }[];
130
- isFavorite: boolean;
131
- }>;
132
66
  export declare const CreateEventDTOSchema: z.ZodObject<{
133
67
  adress: z.ZodString;
134
68
  capacity: z.ZodNullable<z.ZodNumber>;
@@ -249,7 +183,6 @@ export type DisplayEventDTO = z.infer<typeof DisplayEventDTOSchema>;
249
183
  export type PromoteEventDTO = z.infer<typeof PromoteEventDTOSchema>;
250
184
  export type EventFileUploadsDTO = z.infer<typeof EventFileUploadsDTOSchema>;
251
185
  export type EventDTO = z.infer<typeof EventDTOSchema>;
252
- export type EventPublicDTO = z.infer<typeof EventPublicDTOSchema>;
253
186
  export declare const constraints: {
254
187
  adress: {
255
188
  minLength: number;
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,yBAAy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eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;WAK5B,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -4091,11 +4091,6 @@ const EventDTOSchema = z.object({
4091
4091
  name: StringSchema
4092
4092
  }).array().min(1)
4093
4093
  });
4094
- const EventPublicDTOSchema = EventDTOSchema.omit({
4095
- isDisplayed: true
4096
- }).extend({
4097
- isFavorite: z.boolean()
4098
- });
4099
4094
  const CreateEventDTOSchema = z.object({
4100
4095
  adress: StringSchema,
4101
4096
  capacity: SafeNonNegativeIntegerSchema.nullable(),
@@ -4172,7 +4167,6 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4172
4167
  DisplayEventDTOSchema,
4173
4168
  EventDTOSchema,
4174
4169
  EventFileUploadsDTOSchema,
4175
- EventPublicDTOSchema,
4176
4170
  ImportDTOSchema,
4177
4171
  OrganizerDTOSchema,
4178
4172
  PromoteEventDTOSchema,
@@ -4089,11 +4089,6 @@ const EventDTOSchema = z.object({
4089
4089
  name: StringSchema
4090
4090
  }).array().min(1)
4091
4091
  });
4092
- const EventPublicDTOSchema = EventDTOSchema.omit({
4093
- isDisplayed: true
4094
- }).extend({
4095
- isFavorite: z.boolean()
4096
- });
4097
4092
  const CreateEventDTOSchema = z.object({
4098
4093
  adress: StringSchema,
4099
4094
  capacity: SafeNonNegativeIntegerSchema.nullable(),
@@ -4170,7 +4165,6 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4170
4165
  DisplayEventDTOSchema,
4171
4166
  EventDTOSchema,
4172
4167
  EventFileUploadsDTOSchema,
4173
- EventPublicDTOSchema,
4174
4168
  ImportDTOSchema,
4175
4169
  OrganizerDTOSchema,
4176
4170
  PromoteEventDTOSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",