@sortipei/api-contracts 0.3.2 → 0.5.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.
@@ -25,20 +25,25 @@ export declare const EventDTOSchema: z.ZodObject<{
25
25
  isPriceRange: z.ZodBoolean;
26
26
  isPromoted: z.ZodBoolean;
27
27
  link: z.ZodNullable<z.ZodString>;
28
+ organizers: z.ZodArray<z.ZodObject<{
29
+ id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
30
+ imageUrl: z.ZodNullable<z.ZodString>;
31
+ name: z.ZodString;
32
+ }, z.core.$strip>>;
33
+ popularityScore: z.ZodFloat32;
28
34
  price: z.ZodNullable<z.ZodFloat32>;
29
35
  promotionEnd: z.ZodNullable<z.ZodISODateTime>;
30
36
  promotionStart: z.ZodNullable<z.ZodISODateTime>;
31
37
  regions: z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>;
32
38
  secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
33
39
  startTime: z.ZodISODateTime;
40
+ tags: z.ZodArray<z.ZodObject<{
41
+ id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
42
+ label: z.ZodString;
43
+ }, z.core.$strip>>;
34
44
  thumbnailUrl: z.ZodNullable<z.ZodString>;
35
45
  ticketsUrl: z.ZodNullable<z.ZodString>;
36
46
  title: z.ZodString;
37
- organizers: z.ZodArray<z.ZodObject<{
38
- id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
39
- name: z.ZodString;
40
- imageUrl: z.ZodNullable<z.ZodString>;
41
- }, z.core.$strip>>;
42
47
  }, z.core.$strip>;
43
48
  export declare const PublicEventDTOSchema: z.ZodObject<{
44
49
  regions: z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>;
@@ -54,6 +59,7 @@ export declare const PublicEventDTOSchema: z.ZodObject<{
54
59
  latitude: z.ZodNumber;
55
60
  longitude: z.ZodNumber;
56
61
  }, z.core.$strip>;
62
+ popularityScore: z.ZodFloat32;
57
63
  capacity: z.ZodNullable<z.ZodFloat32>;
58
64
  finishTime: z.ZodNullable<z.ZodISODateTime>;
59
65
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
@@ -64,15 +70,19 @@ export declare const PublicEventDTOSchema: z.ZodObject<{
64
70
  isOldTimes: z.ZodBoolean;
65
71
  isPriceRange: z.ZodBoolean;
66
72
  isPromoted: z.ZodBoolean;
67
- price: z.ZodNullable<z.ZodFloat32>;
68
- secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
69
- thumbnailUrl: z.ZodNullable<z.ZodString>;
70
- ticketsUrl: z.ZodNullable<z.ZodString>;
71
73
  organizers: z.ZodArray<z.ZodObject<{
72
74
  id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
73
- name: z.ZodString;
74
75
  imageUrl: z.ZodNullable<z.ZodString>;
76
+ name: z.ZodString;
75
77
  }, z.core.$strip>>;
78
+ price: z.ZodNullable<z.ZodFloat32>;
79
+ secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
80
+ tags: z.ZodArray<z.ZodObject<{
81
+ id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
82
+ label: z.ZodString;
83
+ }, z.core.$strip>>;
84
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
85
+ ticketsUrl: z.ZodNullable<z.ZodString>;
76
86
  }, z.core.$strip>;
77
87
  export declare const CreateEventDTOSchema: z.ZodObject<{
78
88
  adress: z.ZodString;
@@ -97,6 +107,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
97
107
  regions: z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>;
98
108
  secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
99
109
  startTime: z.ZodISODateTime;
110
+ tagIds: z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "TagId", "out">>;
100
111
  thumbnailUrl: z.ZodNullable<z.ZodString>;
101
112
  ticketsUrl: z.ZodNullable<z.ZodString>;
102
113
  title: z.ZodString;
@@ -126,6 +137,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<{
126
137
  thumbnailUrl: z.ZodNullable<z.ZodString>;
127
138
  ticketsUrl: z.ZodNullable<z.ZodString>;
128
139
  organizersIds: z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">>;
140
+ tagIds: z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "TagId", "out">>;
129
141
  }, z.core.$strip>;
130
142
  export declare const DisplayEventDTOSchema: z.ZodObject<{
131
143
  isDisplayed: z.ZodBoolean;
@@ -174,20 +186,25 @@ export declare const ImportDTOSchema: z.ZodObject<{
174
186
  isPriceRange: z.ZodOptional<z.ZodBoolean>;
175
187
  isPromoted: z.ZodOptional<z.ZodBoolean>;
176
188
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
+ organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
+ id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
191
+ imageUrl: z.ZodNullable<z.ZodString>;
192
+ name: z.ZodString;
193
+ }, z.core.$strip>>>;
194
+ popularityScore: z.ZodOptional<z.ZodFloat32>;
177
195
  price: z.ZodOptional<z.ZodNullable<z.ZodFloat32>>;
178
196
  promotionEnd: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
179
197
  promotionStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
180
198
  regions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>>;
181
199
  secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>>;
182
200
  startTime: z.ZodOptional<z.ZodISODateTime>;
201
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
202
+ id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
203
+ label: z.ZodString;
204
+ }, z.core.$strip>>>;
183
205
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
206
  ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
207
  title: z.ZodOptional<z.ZodString>;
186
- organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
187
- id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
188
- name: z.ZodString;
189
- imageUrl: z.ZodNullable<z.ZodString>;
190
- }, z.core.$strip>>>;
191
208
  }, z.core.$strip>;
192
209
  source: z.ZodString;
193
210
  userId: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqCzB,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI/B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0B/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iBAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,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,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,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AClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,wBAAwB;;;;;;;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -5,7 +5,9 @@ export * from './event';
5
5
  export * from './import-reminder';
6
6
  export * from './notification';
7
7
  export * from './organizer';
8
+ export * from './push-token';
8
9
  export * from './statistics';
10
+ export * from './tag';
9
11
  export declare const constraints: {
10
12
  events: {
11
13
  adress: {
@@ -27,5 +29,11 @@ export declare const constraints: {
27
29
  maxLength: number;
28
30
  };
29
31
  };
32
+ tags: {
33
+ label: {
34
+ maxLength: number;
35
+ minLength: number;
36
+ };
37
+ };
30
38
  };
31
39
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAK7B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AAMtB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC"}
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare const NotificationTagDTOSchema: z.ZodEnum<{
3
3
  cancelled: "cancelled";
4
4
  feature: "feature";
5
+ information: "information";
5
6
  postponed: "postponed";
6
7
  reminder: "reminder";
7
8
  }>;
@@ -29,10 +30,26 @@ export declare const NotificationDTOSchema: z.ZodObject<{
29
30
  tag: z.ZodNullable<z.ZodEnum<{
30
31
  cancelled: "cancelled";
31
32
  feature: "feature";
33
+ information: "information";
32
34
  postponed: "postponed";
33
35
  reminder: "reminder";
34
36
  }>>;
35
37
  title: z.ZodNullable<z.ZodString>;
36
38
  }, z.core.$strip>;
37
39
  export type NotificationDTO = z.infer<typeof NotificationDTOSchema>;
40
+ export declare const CreateNotificationDTOSchema: z.ZodObject<{
41
+ author: z.ZodNullable<z.ZodString>;
42
+ authorImageUrl: z.ZodNullable<z.ZodString>;
43
+ content: z.ZodNullable<z.ZodString>;
44
+ imageUrl: z.ZodNullable<z.ZodString>;
45
+ tag: z.ZodNullable<z.ZodEnum<{
46
+ cancelled: "cancelled";
47
+ feature: "feature";
48
+ information: "information";
49
+ postponed: "postponed";
50
+ reminder: "reminder";
51
+ }>>;
52
+ title: z.ZodNullable<z.ZodString>;
53
+ }, z.core.$strip>;
54
+ export type CreateNotificationDTO = z.infer<typeof CreateNotificationDTOSchema>;
38
55
  //# sourceMappingURL=notification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/V1/api/notification.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;EAA4D,CAAC;AAClG,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;8BAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;iBAUhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/V1/api/notification.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;EAA2E,CAAC;AACjH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;8BAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAUhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;iBAOtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare const PushTokenPlatformSchema: z.ZodEnum<{
3
+ android: "android";
4
+ ios: "ios";
5
+ }>;
6
+ export type PushTokenPlatform = z.infer<typeof PushTokenPlatformSchema>;
7
+ export declare const RegisterPushTokenDTOSchema: z.ZodObject<{
8
+ expoPushToken: z.ZodString;
9
+ platform: z.ZodEnum<{
10
+ android: "android";
11
+ ios: "ios";
12
+ }>;
13
+ }, z.core.$strip>;
14
+ export type RegisterPushTokenDTO = z.infer<typeof RegisterPushTokenDTOSchema>;
15
+ //# sourceMappingURL=push-token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push-token.d.ts","sourceRoot":"","sources":["../../../src/V1/api/push-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;EAA6B,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const TagDTOSchema: z.ZodObject<{
3
+ id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
4
+ label: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const CreateTagDTOSchema: z.ZodObject<{
7
+ id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
8
+ label: z.ZodString;
9
+ }, z.core.$strip>;
10
+ export type CreateTagDTO = z.infer<typeof CreateTagDTOSchema>;
11
+ export type TagDTO = z.infer<typeof TagDTOSchema>;
12
+ export declare const constraints: {
13
+ label: {
14
+ maxLength: number;
15
+ minLength: number;
16
+ };
17
+ };
18
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/V1/api/tag.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;iBAGvB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
@@ -22,20 +22,25 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
22
22
  isPriceRange: z.ZodOptional<z.ZodBoolean>;
23
23
  isPromoted: z.ZodOptional<z.ZodBoolean>;
24
24
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
+ id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
27
+ imageUrl: z.ZodNullable<z.ZodString>;
28
+ name: z.ZodString;
29
+ }, z.core.$strip>>>;
30
+ popularityScore: z.ZodOptional<z.ZodFloat32>;
25
31
  price: z.ZodOptional<z.ZodNullable<z.ZodFloat32>>;
26
32
  promotionEnd: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
27
33
  promotionStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
28
34
  regions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>>;
29
35
  secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>>;
30
36
  startTime: z.ZodOptional<z.ZodISODateTime>;
37
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
+ id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
39
+ label: z.ZodString;
40
+ }, z.core.$strip>>>;
31
41
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
42
  ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
43
  title: z.ZodOptional<z.ZodString>;
34
- organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
- id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
36
- name: z.ZodString;
37
- imageUrl: z.ZodNullable<z.ZodString>;
38
- }, z.core.$strip>>>;
39
44
  }, z.core.$strip>;
40
45
  token: z.ZodString;
41
46
  userId: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  var ErrorCodes = /* @__PURE__ */ ((ErrorCodes2) => {
4
4
  ErrorCodes2["OrganizerHasEvents"] = "60001";
5
+ ErrorCodes2["TagLabelAlreadyExists"] = "60002";
5
6
  return ErrorCodes2;
6
7
  })(ErrorCodes || {});
7
8
  function $constructor(name, initializer2, params) {
@@ -4538,6 +4539,8 @@ const EventIdSchema = UUIDSchema.brand("EventId");
4538
4539
  const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
4539
4540
  const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
4540
4541
  const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(id);
4542
+ const TagIdSchema = UUIDSchema.brand("TagId");
4543
+ const createTagId = (id = crypto.randomUUID()) => TagIdSchema.parse(id);
4541
4544
  const UserIdSchema = UUIDSchema.brand("UserId");
4542
4545
  const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
4543
4546
  const MainAdIdSchema = UUIDSchema.brand("MainAdId");
@@ -4548,6 +4551,8 @@ const ImportReminderIdSchema = UUIDSchema.brand("ImportReminderId");
4548
4551
  const createImportReminderId = (id = crypto.randomUUID()) => ImportReminderIdSchema.parse(id);
4549
4552
  const NotificationIdSchema = UUIDSchema.brand("NotificationId");
4550
4553
  const createNotificationId = (id = crypto.randomUUID()) => NotificationIdSchema.parse(id);
4554
+ const PushTokenIdSchema = UUIDSchema.brand("PushTokenId");
4555
+ const createPushTokenId = (id = crypto.randomUUID()) => PushTokenIdSchema.parse(id);
4551
4556
  const MainAdDTOSchema = object({
4552
4557
  createdAt: datetime(),
4553
4558
  endTime: StringSchema,
@@ -4589,6 +4594,20 @@ const FileUploadDTOSchema = object({
4589
4594
  publicUrl: URLSchema,
4590
4595
  uploadUrl: URLSchema
4591
4596
  });
4597
+ const TagDTOSchema = object({
4598
+ id: TagIdSchema,
4599
+ label: StringSchema
4600
+ });
4601
+ const CreateTagDTOSchema = object({
4602
+ id: TagIdSchema,
4603
+ label: StringSchema
4604
+ });
4605
+ const constraints$3 = {
4606
+ label: {
4607
+ maxLength: 80,
4608
+ minLength: 1
4609
+ }
4610
+ };
4592
4611
  const GPSCoordinatesSchema = object({
4593
4612
  latitude: number(),
4594
4613
  longitude: number()
@@ -4612,25 +4631,27 @@ const EventDTOSchema = object({
4612
4631
  isPriceRange: boolean(),
4613
4632
  isPromoted: boolean(),
4614
4633
  link: URLSchema.nullable(),
4634
+ organizers: object({
4635
+ id: OrganizerIdSchema,
4636
+ imageUrl: URLSchema.nullable(),
4637
+ name: StringSchema
4638
+ }).array().min(1),
4639
+ popularityScore: SafeNonNegativeFloatSchema,
4615
4640
  price: SafeNonNegativeFloatSchema.nullable(),
4616
4641
  promotionEnd: datetime().nullable(),
4617
4642
  promotionStart: datetime().nullable(),
4618
4643
  regions: RegionSchema.array(),
4619
4644
  secondaryCategory: CategorySchema.nullable(),
4620
4645
  startTime: datetime(),
4646
+ tags: TagDTOSchema.array(),
4621
4647
  thumbnailUrl: URLSchema.nullable(),
4622
4648
  ticketsUrl: URLSchema.nullable(),
4623
- title: StringSchema,
4624
- organizers: object({
4625
- id: OrganizerIdSchema,
4626
- name: StringSchema,
4627
- imageUrl: URLSchema.nullable()
4628
- }).array().min(1)
4649
+ title: StringSchema
4629
4650
  });
4630
4651
  const PublicEventDTOSchema = EventDTOSchema.omit({
4652
+ externalSourceId: true,
4631
4653
  promotionEnd: true,
4632
- promotionStart: true,
4633
- externalSourceId: true
4654
+ promotionStart: true
4634
4655
  });
4635
4656
  const CreateEventDTOSchema = object({
4636
4657
  adress: StringSchema,
@@ -4655,6 +4676,7 @@ const CreateEventDTOSchema = object({
4655
4676
  regions: RegionSchema.array(),
4656
4677
  secondaryCategory: CategorySchema.nullable(),
4657
4678
  startTime: datetime(),
4679
+ tagIds: TagIdSchema.array(),
4658
4680
  thumbnailUrl: URLSchema.nullable(),
4659
4681
  ticketsUrl: URLSchema.nullable(),
4660
4682
  title: StringSchema
@@ -4706,7 +4728,7 @@ const ImportReminderDTOSchema = object({
4706
4728
  });
4707
4729
  const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
4708
4730
  const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
4709
- const NotificationTagDTOSchema = _enum(["cancelled", "feature", "postponed", "reminder"]);
4731
+ const NotificationTagDTOSchema = _enum(["cancelled", "feature", "information", "postponed", "reminder"]);
4710
4732
  const NotificationLinkDTOSchema = union([
4711
4733
  object({ type: literal("event"), eventId: EventIdSchema }),
4712
4734
  object({ type: literal("favorites") }),
@@ -4723,6 +4745,14 @@ const NotificationDTOSchema = object({
4723
4745
  tag: NotificationTagDTOSchema.nullable(),
4724
4746
  title: StringSchema.nullable()
4725
4747
  });
4748
+ const CreateNotificationDTOSchema = object({
4749
+ author: StringSchema.nullable(),
4750
+ authorImageUrl: URLSchema.nullable(),
4751
+ content: StringSchema.nullable(),
4752
+ imageUrl: URLSchema.nullable(),
4753
+ tag: NotificationTagDTOSchema.nullable(),
4754
+ title: StringSchema.nullable()
4755
+ });
4726
4756
  const PublicOrganizerDTOSchema = object({
4727
4757
  id: OrganizerIdSchema,
4728
4758
  imageUrl: URLSchema.nullable(),
@@ -4760,6 +4790,11 @@ const constraints$1 = {
4760
4790
  maxLength: 100
4761
4791
  }
4762
4792
  };
4793
+ const PushTokenPlatformSchema = _enum(["android", "ios"]);
4794
+ const RegisterPushTokenDTOSchema = object({
4795
+ expoPushToken: string().regex(/^ExponentPushToken\[.+\]$/),
4796
+ platform: PushTokenPlatformSchema
4797
+ });
4763
4798
  const TopEventDTOSchema = object({
4764
4799
  count: number(),
4765
4800
  eventId: EventIdSchema,
@@ -4815,7 +4850,8 @@ const SaveStatisticDTOSchema = object({
4815
4850
  });
4816
4851
  const constraints = {
4817
4852
  events: constraints$2,
4818
- organizers: constraints$1
4853
+ organizers: constraints$1,
4854
+ tags: constraints$3
4819
4855
  };
4820
4856
  const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4821
4857
  __proto__: null,
@@ -4823,7 +4859,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4823
4859
  AppConfigurationDTOSchema,
4824
4860
  CreateEventDTOSchema,
4825
4861
  CreateImportReminderDTOSchema,
4862
+ CreateNotificationDTOSchema,
4826
4863
  CreateOrganizerDTOSchema,
4864
+ CreateTagDTOSchema,
4827
4865
  DisplayEventDTOSchema,
4828
4866
  EventDTOSchema,
4829
4867
  EventFileUploadDTOSchema,
@@ -4842,8 +4880,11 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4842
4880
  OrganizerDTOSchema,
4843
4881
  PublicEventDTOSchema,
4844
4882
  PublicOrganizerDTOSchema,
4883
+ PushTokenPlatformSchema,
4845
4884
  RegionalAdDTOSchema,
4885
+ RegisterPushTokenDTOSchema,
4846
4886
  SaveStatisticDTOSchema,
4887
+ TagDTOSchema,
4847
4888
  TemporalStatsDTOSchema,
4848
4889
  TemporalStatsWeekDTOSchema,
4849
4890
  TopEventDTOSchema,
@@ -4896,6 +4937,7 @@ exports.NotificationIdSchema = NotificationIdSchema;
4896
4937
  exports.OldTimesFilterAppliedStatisticSchema = OldTimesFilterAppliedStatisticSchema;
4897
4938
  exports.OrganizerDisplayedStatisticSchema = OrganizerDisplayedStatisticSchema;
4898
4939
  exports.OrganizerIdSchema = OrganizerIdSchema;
4940
+ exports.PushTokenIdSchema = PushTokenIdSchema;
4899
4941
  exports.Region = Region;
4900
4942
  exports.RegionFilterAppliedStatisticSchema = RegionFilterAppliedStatisticSchema;
4901
4943
  exports.RegionSchema = RegionSchema;
@@ -4904,6 +4946,7 @@ exports.SafeNonNegativeFloatSchema = SafeNonNegativeFloatSchema;
4904
4946
  exports.SafeNonNegativeIntegerSchema = SafeNonNegativeIntegerSchema;
4905
4947
  exports.StatisticSchema = StatisticSchema;
4906
4948
  exports.StringSchema = StringSchema;
4949
+ exports.TagIdSchema = TagIdSchema;
4907
4950
  exports.URLSchema = URLSchema;
4908
4951
  exports.UUIDSchema = UUIDSchema;
4909
4952
  exports.UserIdSchema = UserIdSchema;
@@ -4913,5 +4956,7 @@ exports.createImportReminderId = createImportReminderId;
4913
4956
  exports.createMainAdId = createMainAdId;
4914
4957
  exports.createNotificationId = createNotificationId;
4915
4958
  exports.createOrganizerId = createOrganizerId;
4959
+ exports.createPushTokenId = createPushTokenId;
4916
4960
  exports.createRegionalAdId = createRegionalAdId;
4961
+ exports.createTagId = createTagId;
4917
4962
  exports.createUserId = createUserId;
@@ -1,5 +1,6 @@
1
1
  var ErrorCodes = /* @__PURE__ */ ((ErrorCodes2) => {
2
2
  ErrorCodes2["OrganizerHasEvents"] = "60001";
3
+ ErrorCodes2["TagLabelAlreadyExists"] = "60002";
3
4
  return ErrorCodes2;
4
5
  })(ErrorCodes || {});
5
6
  function $constructor(name, initializer2, params) {
@@ -4536,6 +4537,8 @@ const EventIdSchema = UUIDSchema.brand("EventId");
4536
4537
  const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
4537
4538
  const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
4538
4539
  const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(id);
4540
+ const TagIdSchema = UUIDSchema.brand("TagId");
4541
+ const createTagId = (id = crypto.randomUUID()) => TagIdSchema.parse(id);
4539
4542
  const UserIdSchema = UUIDSchema.brand("UserId");
4540
4543
  const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
4541
4544
  const MainAdIdSchema = UUIDSchema.brand("MainAdId");
@@ -4546,6 +4549,8 @@ const ImportReminderIdSchema = UUIDSchema.brand("ImportReminderId");
4546
4549
  const createImportReminderId = (id = crypto.randomUUID()) => ImportReminderIdSchema.parse(id);
4547
4550
  const NotificationIdSchema = UUIDSchema.brand("NotificationId");
4548
4551
  const createNotificationId = (id = crypto.randomUUID()) => NotificationIdSchema.parse(id);
4552
+ const PushTokenIdSchema = UUIDSchema.brand("PushTokenId");
4553
+ const createPushTokenId = (id = crypto.randomUUID()) => PushTokenIdSchema.parse(id);
4549
4554
  const MainAdDTOSchema = object({
4550
4555
  createdAt: datetime(),
4551
4556
  endTime: StringSchema,
@@ -4587,6 +4592,20 @@ const FileUploadDTOSchema = object({
4587
4592
  publicUrl: URLSchema,
4588
4593
  uploadUrl: URLSchema
4589
4594
  });
4595
+ const TagDTOSchema = object({
4596
+ id: TagIdSchema,
4597
+ label: StringSchema
4598
+ });
4599
+ const CreateTagDTOSchema = object({
4600
+ id: TagIdSchema,
4601
+ label: StringSchema
4602
+ });
4603
+ const constraints$3 = {
4604
+ label: {
4605
+ maxLength: 80,
4606
+ minLength: 1
4607
+ }
4608
+ };
4590
4609
  const GPSCoordinatesSchema = object({
4591
4610
  latitude: number(),
4592
4611
  longitude: number()
@@ -4610,25 +4629,27 @@ const EventDTOSchema = object({
4610
4629
  isPriceRange: boolean(),
4611
4630
  isPromoted: boolean(),
4612
4631
  link: URLSchema.nullable(),
4632
+ organizers: object({
4633
+ id: OrganizerIdSchema,
4634
+ imageUrl: URLSchema.nullable(),
4635
+ name: StringSchema
4636
+ }).array().min(1),
4637
+ popularityScore: SafeNonNegativeFloatSchema,
4613
4638
  price: SafeNonNegativeFloatSchema.nullable(),
4614
4639
  promotionEnd: datetime().nullable(),
4615
4640
  promotionStart: datetime().nullable(),
4616
4641
  regions: RegionSchema.array(),
4617
4642
  secondaryCategory: CategorySchema.nullable(),
4618
4643
  startTime: datetime(),
4644
+ tags: TagDTOSchema.array(),
4619
4645
  thumbnailUrl: URLSchema.nullable(),
4620
4646
  ticketsUrl: URLSchema.nullable(),
4621
- title: StringSchema,
4622
- organizers: object({
4623
- id: OrganizerIdSchema,
4624
- name: StringSchema,
4625
- imageUrl: URLSchema.nullable()
4626
- }).array().min(1)
4647
+ title: StringSchema
4627
4648
  });
4628
4649
  const PublicEventDTOSchema = EventDTOSchema.omit({
4650
+ externalSourceId: true,
4629
4651
  promotionEnd: true,
4630
- promotionStart: true,
4631
- externalSourceId: true
4652
+ promotionStart: true
4632
4653
  });
4633
4654
  const CreateEventDTOSchema = object({
4634
4655
  adress: StringSchema,
@@ -4653,6 +4674,7 @@ const CreateEventDTOSchema = object({
4653
4674
  regions: RegionSchema.array(),
4654
4675
  secondaryCategory: CategorySchema.nullable(),
4655
4676
  startTime: datetime(),
4677
+ tagIds: TagIdSchema.array(),
4656
4678
  thumbnailUrl: URLSchema.nullable(),
4657
4679
  ticketsUrl: URLSchema.nullable(),
4658
4680
  title: StringSchema
@@ -4704,7 +4726,7 @@ const ImportReminderDTOSchema = object({
4704
4726
  });
4705
4727
  const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
4706
4728
  const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
4707
- const NotificationTagDTOSchema = _enum(["cancelled", "feature", "postponed", "reminder"]);
4729
+ const NotificationTagDTOSchema = _enum(["cancelled", "feature", "information", "postponed", "reminder"]);
4708
4730
  const NotificationLinkDTOSchema = union([
4709
4731
  object({ type: literal("event"), eventId: EventIdSchema }),
4710
4732
  object({ type: literal("favorites") }),
@@ -4721,6 +4743,14 @@ const NotificationDTOSchema = object({
4721
4743
  tag: NotificationTagDTOSchema.nullable(),
4722
4744
  title: StringSchema.nullable()
4723
4745
  });
4746
+ const CreateNotificationDTOSchema = object({
4747
+ author: StringSchema.nullable(),
4748
+ authorImageUrl: URLSchema.nullable(),
4749
+ content: StringSchema.nullable(),
4750
+ imageUrl: URLSchema.nullable(),
4751
+ tag: NotificationTagDTOSchema.nullable(),
4752
+ title: StringSchema.nullable()
4753
+ });
4724
4754
  const PublicOrganizerDTOSchema = object({
4725
4755
  id: OrganizerIdSchema,
4726
4756
  imageUrl: URLSchema.nullable(),
@@ -4758,6 +4788,11 @@ const constraints$1 = {
4758
4788
  maxLength: 100
4759
4789
  }
4760
4790
  };
4791
+ const PushTokenPlatformSchema = _enum(["android", "ios"]);
4792
+ const RegisterPushTokenDTOSchema = object({
4793
+ expoPushToken: string().regex(/^ExponentPushToken\[.+\]$/),
4794
+ platform: PushTokenPlatformSchema
4795
+ });
4761
4796
  const TopEventDTOSchema = object({
4762
4797
  count: number(),
4763
4798
  eventId: EventIdSchema,
@@ -4813,7 +4848,8 @@ const SaveStatisticDTOSchema = object({
4813
4848
  });
4814
4849
  const constraints = {
4815
4850
  events: constraints$2,
4816
- organizers: constraints$1
4851
+ organizers: constraints$1,
4852
+ tags: constraints$3
4817
4853
  };
4818
4854
  const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4819
4855
  __proto__: null,
@@ -4821,7 +4857,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4821
4857
  AppConfigurationDTOSchema,
4822
4858
  CreateEventDTOSchema,
4823
4859
  CreateImportReminderDTOSchema,
4860
+ CreateNotificationDTOSchema,
4824
4861
  CreateOrganizerDTOSchema,
4862
+ CreateTagDTOSchema,
4825
4863
  DisplayEventDTOSchema,
4826
4864
  EventDTOSchema,
4827
4865
  EventFileUploadDTOSchema,
@@ -4840,8 +4878,11 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4840
4878
  OrganizerDTOSchema,
4841
4879
  PublicEventDTOSchema,
4842
4880
  PublicOrganizerDTOSchema,
4881
+ PushTokenPlatformSchema,
4843
4882
  RegionalAdDTOSchema,
4883
+ RegisterPushTokenDTOSchema,
4844
4884
  SaveStatisticDTOSchema,
4885
+ TagDTOSchema,
4845
4886
  TemporalStatsDTOSchema,
4846
4887
  TemporalStatsWeekDTOSchema,
4847
4888
  TopEventDTOSchema,
@@ -4895,6 +4936,7 @@ export {
4895
4936
  OldTimesFilterAppliedStatisticSchema,
4896
4937
  OrganizerDisplayedStatisticSchema,
4897
4938
  OrganizerIdSchema,
4939
+ PushTokenIdSchema,
4898
4940
  Region,
4899
4941
  RegionFilterAppliedStatisticSchema,
4900
4942
  RegionSchema,
@@ -4903,6 +4945,7 @@ export {
4903
4945
  SafeNonNegativeIntegerSchema,
4904
4946
  StatisticSchema,
4905
4947
  StringSchema,
4948
+ TagIdSchema,
4906
4949
  URLSchema,
4907
4950
  UUIDSchema,
4908
4951
  UserIdSchema,
@@ -4912,6 +4955,8 @@ export {
4912
4955
  createMainAdId,
4913
4956
  createNotificationId,
4914
4957
  createOrganizerId,
4958
+ createPushTokenId,
4915
4959
  createRegionalAdId,
4960
+ createTagId,
4916
4961
  createUserId
4917
4962
  };
package/dist/errors.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export declare enum ErrorCodes {
2
- OrganizerHasEvents = "60001"
2
+ OrganizerHasEvents = "60001",
3
+ TagLabelAlreadyExists = "60002"
3
4
  }
4
5
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,kBAAkB,UAAU;CAC7B"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,kBAAkB,UAAU;IAC5B,qBAAqB,UAAU;CAChC"}
package/dist/flavors.d.ts CHANGED
@@ -5,6 +5,9 @@ export declare const createEventId: (id?: string) => EventId;
5
5
  export declare const OrganizerIdSchema: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
6
6
  export type OrganizerId = z.infer<typeof OrganizerIdSchema>;
7
7
  export declare const createOrganizerId: (id?: string) => OrganizerId;
8
+ export declare const TagIdSchema: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
9
+ export type TagId = z.infer<typeof TagIdSchema>;
10
+ export declare const createTagId: (id?: string) => TagId;
8
11
  export declare const UserIdSchema: z.core.$ZodBranded<z.ZodUUID, "UserId", "out">;
9
12
  export type UserId = z.infer<typeof UserIdSchema>;
10
13
  export declare const createUserId: (id?: string) => UserId;
@@ -20,4 +23,7 @@ export declare const createImportReminderId: (id?: string) => ImportReminderId;
20
23
  export declare const NotificationIdSchema: z.core.$ZodBranded<z.ZodUUID, "NotificationId", "out">;
21
24
  export type NotificationId = z.infer<typeof NotificationIdSchema>;
22
25
  export declare const createNotificationId: (id?: string) => NotificationId;
26
+ export declare const PushTokenIdSchema: z.core.$ZodBranded<z.ZodUUID, "PushTokenId", "out">;
27
+ export type PushTokenId = z.infer<typeof PushTokenIdSchema>;
28
+ export declare const createPushTokenId: (id?: string) => PushTokenId;
23
29
  //# sourceMappingURL=flavors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flavors.d.ts","sourceRoot":"","sources":["../src/flavors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,iDAA8B,CAAC;AACzD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,aAAa,QAAQ,MAAM,KAAyB,OAAkC,CAAC;AAEpG,eAAO,MAAM,iBAAiB,qDAAkC,CAAC;AACjE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,QAAQ,MAAM,KAAyB,WAA0C,CAAC;AAEhH,eAAO,MAAM,YAAY,gDAA6B,CAAC;AACvD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,YAAY,QAAQ,MAAM,KAAyB,MAAgC,CAAC;AAEjG,eAAO,M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AAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.3.2",
3
+ "version": "0.5.0",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",