@sortipei/api-contracts 0.1.29 → 0.1.31
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/ad.d.ts +60 -6
- package/dist/V1/api/ad.d.ts.map +1 -1
- package/dist/V1/api/event.d.ts +44 -44
- package/dist/V1/api/index.d.ts +1 -1
- package/dist/V1/api/index.d.ts.map +1 -1
- package/dist/V1/api/organizer.d.ts +6 -6
- package/dist/V1/api/stats.d.ts +4 -0
- package/dist/V1/api/stats.d.ts.map +1 -0
- package/dist/V1/external/partial-imported-event.d.ts +24 -24
- package/dist/api-contracts.js +39 -0
- package/dist/api-contracts.mjs +39 -0
- package/dist/flavors.d.ts +3 -0
- package/dist/flavors.d.ts.map +1 -1
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/stats.d.ts +957 -0
- package/dist/shared/stats.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/api-contracts.js
CHANGED
|
@@ -4082,6 +4082,37 @@ 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 MainAdIdSchema = UUIDSchema.brand("MainAdId");
|
|
4086
|
+
const createMainAdId = (id = crypto.randomUUID()) => MainAdIdSchema.parse(id);
|
|
4087
|
+
const RegionalAdIdSchema = UUIDSchema.brand("RegionalAdId");
|
|
4088
|
+
const createRegionalAdId = (id = crypto.randomUUID()) => RegionalAdIdSchema.parse(id);
|
|
4089
|
+
const MainAdDTOSchema = z.object({
|
|
4090
|
+
createdAt: StringSchema.datetime(),
|
|
4091
|
+
endTime: StringSchema,
|
|
4092
|
+
id: MainAdIdSchema,
|
|
4093
|
+
imageUrl: URLSchema,
|
|
4094
|
+
isEnabled: z.boolean(),
|
|
4095
|
+
link: URLSchema.nullable(),
|
|
4096
|
+
startTime: StringSchema
|
|
4097
|
+
});
|
|
4098
|
+
const UpdateMainAdDTOSchema = MainAdDTOSchema.omit({
|
|
4099
|
+
createdAt: true,
|
|
4100
|
+
id: true
|
|
4101
|
+
});
|
|
4102
|
+
const RegionalAdDTOSchema = z.object({
|
|
4103
|
+
createdAt: StringSchema.datetime(),
|
|
4104
|
+
endTime: StringSchema,
|
|
4105
|
+
id: RegionalAdIdSchema,
|
|
4106
|
+
imageUrl: URLSchema,
|
|
4107
|
+
isEnabled: z.boolean(),
|
|
4108
|
+
link: URLSchema.nullable(),
|
|
4109
|
+
regions: RegionSchema.array(),
|
|
4110
|
+
startTime: StringSchema
|
|
4111
|
+
});
|
|
4112
|
+
const UpdateRegionalAdDTOSchema = RegionalAdDTOSchema.omit({
|
|
4113
|
+
createdAt: true,
|
|
4114
|
+
id: true
|
|
4115
|
+
});
|
|
4085
4116
|
const AppConfigurationDTOSchema = z.object({
|
|
4086
4117
|
isInfoMessageEnabled: z.boolean(),
|
|
4087
4118
|
infoMessageContent: StringSchema
|
|
@@ -4221,11 +4252,15 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4221
4252
|
GlobalStatsDTOSchema,
|
|
4222
4253
|
ImportDTOSchema,
|
|
4223
4254
|
ImportFromUrlDTOSchema,
|
|
4255
|
+
MainAdDTOSchema,
|
|
4224
4256
|
OrganizerDTOSchema,
|
|
4225
4257
|
PromoteEventDTOSchema,
|
|
4258
|
+
RegionalAdDTOSchema,
|
|
4226
4259
|
UpdateAppConfigurationDTOSchema,
|
|
4227
4260
|
UpdateEventDTOSchema,
|
|
4261
|
+
UpdateMainAdDTOSchema,
|
|
4228
4262
|
UpdateOrganizerDTOSchema,
|
|
4263
|
+
UpdateRegionalAdDTOSchema,
|
|
4229
4264
|
constraints
|
|
4230
4265
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4231
4266
|
const CreatePartialImportedEventDTOSchema = z.object({
|
|
@@ -4250,9 +4285,11 @@ exports.CoerceDateSchema = CoerceDateSchema;
|
|
|
4250
4285
|
exports.CoerceNullableDateSchema = CoerceNullableDateSchema;
|
|
4251
4286
|
exports.ErrorCodes = ErrorCodes;
|
|
4252
4287
|
exports.EventIdSchema = EventIdSchema;
|
|
4288
|
+
exports.MainAdIdSchema = MainAdIdSchema;
|
|
4253
4289
|
exports.OrganizerIdSchema = OrganizerIdSchema;
|
|
4254
4290
|
exports.Region = Region;
|
|
4255
4291
|
exports.RegionSchema = RegionSchema;
|
|
4292
|
+
exports.RegionalAdIdSchema = RegionalAdIdSchema;
|
|
4256
4293
|
exports.SafeNonNegativeFloatSchema = SafeNonNegativeFloatSchema;
|
|
4257
4294
|
exports.SafeNonNegativeIntegerSchema = SafeNonNegativeIntegerSchema;
|
|
4258
4295
|
exports.StringSchema = StringSchema;
|
|
@@ -4261,5 +4298,7 @@ exports.UUIDSchema = UUIDSchema;
|
|
|
4261
4298
|
exports.UserIdSchema = UserIdSchema;
|
|
4262
4299
|
exports.V1 = index;
|
|
4263
4300
|
exports.createEventId = createEventId;
|
|
4301
|
+
exports.createMainAdId = createMainAdId;
|
|
4264
4302
|
exports.createOrganizerId = createOrganizerId;
|
|
4303
|
+
exports.createRegionalAdId = createRegionalAdId;
|
|
4265
4304
|
exports.createUserId = createUserId;
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4080,6 +4080,37 @@ 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 MainAdIdSchema = UUIDSchema.brand("MainAdId");
|
|
4084
|
+
const createMainAdId = (id = crypto.randomUUID()) => MainAdIdSchema.parse(id);
|
|
4085
|
+
const RegionalAdIdSchema = UUIDSchema.brand("RegionalAdId");
|
|
4086
|
+
const createRegionalAdId = (id = crypto.randomUUID()) => RegionalAdIdSchema.parse(id);
|
|
4087
|
+
const MainAdDTOSchema = z.object({
|
|
4088
|
+
createdAt: StringSchema.datetime(),
|
|
4089
|
+
endTime: StringSchema,
|
|
4090
|
+
id: MainAdIdSchema,
|
|
4091
|
+
imageUrl: URLSchema,
|
|
4092
|
+
isEnabled: z.boolean(),
|
|
4093
|
+
link: URLSchema.nullable(),
|
|
4094
|
+
startTime: StringSchema
|
|
4095
|
+
});
|
|
4096
|
+
const UpdateMainAdDTOSchema = MainAdDTOSchema.omit({
|
|
4097
|
+
createdAt: true,
|
|
4098
|
+
id: true
|
|
4099
|
+
});
|
|
4100
|
+
const RegionalAdDTOSchema = z.object({
|
|
4101
|
+
createdAt: StringSchema.datetime(),
|
|
4102
|
+
endTime: StringSchema,
|
|
4103
|
+
id: RegionalAdIdSchema,
|
|
4104
|
+
imageUrl: URLSchema,
|
|
4105
|
+
isEnabled: z.boolean(),
|
|
4106
|
+
link: URLSchema.nullable(),
|
|
4107
|
+
regions: RegionSchema.array(),
|
|
4108
|
+
startTime: StringSchema
|
|
4109
|
+
});
|
|
4110
|
+
const UpdateRegionalAdDTOSchema = RegionalAdDTOSchema.omit({
|
|
4111
|
+
createdAt: true,
|
|
4112
|
+
id: true
|
|
4113
|
+
});
|
|
4083
4114
|
const AppConfigurationDTOSchema = z.object({
|
|
4084
4115
|
isInfoMessageEnabled: z.boolean(),
|
|
4085
4116
|
infoMessageContent: StringSchema
|
|
@@ -4219,11 +4250,15 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4219
4250
|
GlobalStatsDTOSchema,
|
|
4220
4251
|
ImportDTOSchema,
|
|
4221
4252
|
ImportFromUrlDTOSchema,
|
|
4253
|
+
MainAdDTOSchema,
|
|
4222
4254
|
OrganizerDTOSchema,
|
|
4223
4255
|
PromoteEventDTOSchema,
|
|
4256
|
+
RegionalAdDTOSchema,
|
|
4224
4257
|
UpdateAppConfigurationDTOSchema,
|
|
4225
4258
|
UpdateEventDTOSchema,
|
|
4259
|
+
UpdateMainAdDTOSchema,
|
|
4226
4260
|
UpdateOrganizerDTOSchema,
|
|
4261
|
+
UpdateRegionalAdDTOSchema,
|
|
4227
4262
|
constraints
|
|
4228
4263
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4229
4264
|
const CreatePartialImportedEventDTOSchema = z.object({
|
|
@@ -4249,9 +4284,11 @@ export {
|
|
|
4249
4284
|
CoerceNullableDateSchema,
|
|
4250
4285
|
ErrorCodes,
|
|
4251
4286
|
EventIdSchema,
|
|
4287
|
+
MainAdIdSchema,
|
|
4252
4288
|
OrganizerIdSchema,
|
|
4253
4289
|
Region,
|
|
4254
4290
|
RegionSchema,
|
|
4291
|
+
RegionalAdIdSchema,
|
|
4255
4292
|
SafeNonNegativeFloatSchema,
|
|
4256
4293
|
SafeNonNegativeIntegerSchema,
|
|
4257
4294
|
StringSchema,
|
|
@@ -4260,6 +4297,8 @@ export {
|
|
|
4260
4297
|
UserIdSchema,
|
|
4261
4298
|
index as V1,
|
|
4262
4299
|
createEventId,
|
|
4300
|
+
createMainAdId,
|
|
4263
4301
|
createOrganizerId,
|
|
4302
|
+
createRegionalAdId,
|
|
4264
4303
|
createUserId
|
|
4265
4304
|
};
|
package/dist/flavors.d.ts
CHANGED
|
@@ -11,4 +11,7 @@ export declare const createUserId: (id?: string) => UserId;
|
|
|
11
11
|
export declare const MainAdIdSchema: z.ZodBranded<z.ZodString, "MainAdId">;
|
|
12
12
|
export type MainAdId = z.infer<typeof MainAdIdSchema>;
|
|
13
13
|
export declare const createMainAdId: (id?: string) => MainAdId;
|
|
14
|
+
export declare const RegionalAdIdSchema: z.ZodBranded<z.ZodString, "RegionalAdId">;
|
|
15
|
+
export type RegionalAdId = z.infer<typeof RegionalAdIdSchema>;
|
|
16
|
+
export declare const createRegionalAdId: (id?: string) => RegionalAdId;
|
|
14
17
|
//# sourceMappingURL=flavors.d.ts.map
|
package/dist/flavors.d.ts.map
CHANGED
|
@@ -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,sCAA8B,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,0CAAkC,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,qCAA6B,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,MAAM,cAAc,uCAA+B,CAAC;AAC3D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,cAAc,QAAQ,MAAM,KAAyB,QAAoC,CAAC"}
|
|
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,sCAA8B,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,0CAAkC,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,qCAA6B,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,MAAM,cAAc,uCAA+B,CAAC;AAC3D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,cAAc,QAAQ,MAAM,KAAyB,QAAoC,CAAC;AAEvG,eAAO,MAAM,kBAAkB,2CAAmC,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB,QAAQ,MAAM,KAAyB,YAA4C,CAAC"}
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|