@veruna/api-contracts 16.0.0 → 17.0.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.
- package/build/controllers/index.d.ts +1 -0
- package/build/controllers/index.js +3 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/offers-unreg.controllers.d.ts +1 -0
- package/build/controllers/offers-unreg.controllers.js +5 -0
- package/build/controllers/offers-unreg.controllers.js.map +1 -0
- package/build/rest-api.d.ts +5 -0
- package/build/rest-api.js +5 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +1 -0
- package/build/routes/index.js +3 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/offers.routes.d.ts +5 -0
- package/build/routes/offers.routes.js +6 -1
- package/build/routes/offers.routes.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/ai.errors.d.ts +1 -0
- package/build/v1/ai/ai.errors.js +5 -0
- package/build/v1/ai/ai.errors.js.map +1 -1
- package/build/v1/engagement/schemas/lifecycle-campaign.enum.d.ts +0 -4
- package/build/v1/engagement/schemas/lifecycle-campaign.enum.js +0 -4
- package/build/v1/engagement/schemas/lifecycle-campaign.enum.js.map +1 -1
- package/build/v1/engagement/schemas/suppression-channel.enum.d.ts +2 -1
- package/build/v1/engagement/schemas/suppression-channel.enum.js +1 -0
- package/build/v1/engagement/schemas/suppression-channel.enum.js.map +1 -1
- package/build/v1/notifications/schemas/email-template.enum.d.ts +0 -4
- package/build/v1/notifications/schemas/email-template.enum.js +0 -4
- package/build/v1/notifications/schemas/email-template.enum.js.map +1 -1
- package/build/v1/notifications/schemas/notification-channel.enum.d.ts +2 -1
- package/build/v1/notifications/schemas/notification-channel.enum.js +1 -0
- package/build/v1/notifications/schemas/notification-channel.enum.js.map +1 -1
- package/build/v1/offers/commands/admin-create-offer-campaign.command.d.ts +6 -0
- package/build/v1/offers/commands/admin-update-offer-campaign.command.d.ts +6 -0
- package/build/v1/offers/commands/index.d.ts +1 -0
- package/build/v1/offers/commands/index.js +3 -0
- package/build/v1/offers/commands/index.js.map +1 -1
- package/build/v1/offers/commands/unreg-track-header-offer.command.d.ts +11 -0
- package/build/v1/offers/commands/unreg-track-header-offer.command.js +15 -0
- package/build/v1/offers/commands/unreg-track-header-offer.command.js.map +1 -0
- package/build/v1/offers/queries/admin-get-offer-campaign-by-id.query.d.ts +3 -0
- package/build/v1/offers/queries/admin-list-offer-campaigns.query.d.ts +3 -0
- package/build/v1/offers/queries/index.d.ts +1 -0
- package/build/v1/offers/queries/index.js +3 -0
- package/build/v1/offers/queries/index.js.map +1 -1
- package/build/v1/offers/queries/unreg-get-header-offer.query.d.ts +23 -0
- package/build/v1/offers/queries/unreg-get-header-offer.query.js +15 -0
- package/build/v1/offers/queries/unreg-get-header-offer.query.js.map +1 -0
- package/build/v1/offers/schemas/guest-offer-banner.schema.d.ts +30 -0
- package/build/v1/offers/schemas/guest-offer-banner.schema.js +21 -0
- package/build/v1/offers/schemas/guest-offer-banner.schema.js.map +1 -0
- package/build/v1/offers/schemas/index.d.ts +4 -0
- package/build/v1/offers/schemas/index.js +8 -0
- package/build/v1/offers/schemas/index.js.map +1 -1
- package/build/v1/offers/schemas/offer-campaign.schema.d.ts +12 -0
- package/build/v1/offers/schemas/offer-countdown-mode.enum.d.ts +5 -0
- package/build/v1/offers/schemas/offer-countdown-mode.enum.js +10 -0
- package/build/v1/offers/schemas/offer-countdown-mode.enum.js.map +1 -0
- package/build/v1/offers/schemas/offer-presentation.schema.d.ts +4 -0
- package/build/v1/offers/schemas/offer-presentation.schema.js +17 -0
- package/build/v1/offers/schemas/offer-presentation.schema.js.map +1 -1
- package/build/v1/offers/schemas/offer-trigger-type.enum.d.ts +1 -0
- package/build/v1/offers/schemas/offer-trigger-type.enum.js +1 -0
- package/build/v1/offers/schemas/offer-trigger-type.enum.js.map +1 -1
- package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.d.ts +5 -0
- package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.js +11 -0
- package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.js.map +1 -0
- package/build/v1/web-notifications/queries/get-web-notifications.query.d.ts +4 -0
- package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js +1 -0
- package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -1
- package/build/v1/web-notifications/schemas/web-notification.schema.d.ts +4 -0
- package/build/v1/web-notifications/schemas/web-notification.schema.js +4 -0
- package/build/v1/web-notifications/schemas/web-notification.schema.js.map +1 -1
- package/build/v1/web-notifications/schemas/web-notifications-response.schema.d.ts +4 -0
- package/build-esm/.tsbuildinfo +1 -1
- package/build-esm/controllers/index.js +1 -0
- package/build-esm/controllers/index.js.map +1 -1
- package/build-esm/controllers/offers-unreg.controllers.js +2 -0
- package/build-esm/controllers/offers-unreg.controllers.js.map +1 -0
- package/build-esm/rest-api.js +7 -2
- package/build-esm/rest-api.js.map +1 -1
- package/build-esm/routes/index.js +1 -0
- package/build-esm/routes/index.js.map +1 -1
- package/build-esm/routes/offers.routes.js +5 -0
- package/build-esm/routes/offers.routes.js.map +1 -1
- package/build-esm/v1/ai/ai.errors.js +5 -0
- package/build-esm/v1/ai/ai.errors.js.map +1 -1
- package/build-esm/v1/engagement/schemas/lifecycle-campaign.enum.js +0 -4
- package/build-esm/v1/engagement/schemas/lifecycle-campaign.enum.js.map +1 -1
- package/build-esm/v1/engagement/schemas/suppression-channel.enum.js +1 -0
- package/build-esm/v1/engagement/schemas/suppression-channel.enum.js.map +1 -1
- package/build-esm/v1/notifications/schemas/email-template.enum.js +0 -4
- package/build-esm/v1/notifications/schemas/email-template.enum.js.map +1 -1
- package/build-esm/v1/notifications/schemas/notification-channel.enum.js +1 -0
- package/build-esm/v1/notifications/schemas/notification-channel.enum.js.map +1 -1
- package/build-esm/v1/offers/commands/index.js +1 -0
- package/build-esm/v1/offers/commands/index.js.map +1 -1
- package/build-esm/v1/offers/commands/unreg-track-header-offer.command.js +12 -0
- package/build-esm/v1/offers/commands/unreg-track-header-offer.command.js.map +1 -0
- package/build-esm/v1/offers/queries/index.js +1 -0
- package/build-esm/v1/offers/queries/index.js.map +1 -1
- package/build-esm/v1/offers/queries/unreg-get-header-offer.query.js +12 -0
- package/build-esm/v1/offers/queries/unreg-get-header-offer.query.js.map +1 -0
- package/build-esm/v1/offers/schemas/guest-offer-banner.schema.js +18 -0
- package/build-esm/v1/offers/schemas/guest-offer-banner.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/index.js +3 -0
- package/build-esm/v1/offers/schemas/index.js.map +1 -1
- package/build-esm/v1/offers/schemas/offer-countdown-mode.enum.js +7 -0
- package/build-esm/v1/offers/schemas/offer-countdown-mode.enum.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-presentation.schema.js +17 -0
- package/build-esm/v1/offers/schemas/offer-presentation.schema.js.map +1 -1
- package/build-esm/v1/offers/schemas/offer-trigger-type.enum.js +1 -0
- package/build-esm/v1/offers/schemas/offer-trigger-type.enum.js.map +1 -1
- package/build-esm/v1/offers/schemas/unreg-track-header-offer-request.schema.js +8 -0
- package/build-esm/v1/offers/schemas/unreg-track-header-offer-request.schema.js.map +1 -0
- package/build-esm/v1/web-notifications/schemas/get-web-notifications-query.schema.js +1 -0
- package/build-esm/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -1
- package/build-esm/v1/web-notifications/schemas/web-notification.schema.js +4 -0
- package/build-esm/v1/web-notifications/schemas/web-notification.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnregTrackHeaderOfferRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.UnregTrackHeaderOfferRequestSchema = zod_1.z.object({
|
|
6
|
+
campaignKey: zod_1.z
|
|
7
|
+
.string({ error: 'UnregTrackHeaderOffer.campaignKey.required' })
|
|
8
|
+
.min(1, { message: 'UnregTrackHeaderOffer.campaignKey.min' })
|
|
9
|
+
.max(100, { message: 'UnregTrackHeaderOffer.campaignKey.max' }),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=unreg-track-header-offer-request.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unreg-track-header-offer-request.schema.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/unreg-track-header-offer-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC5D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;CACtE,CAAC,CAAC"}
|
|
@@ -18,6 +18,10 @@ export declare namespace GetWebNotificationsQuery {
|
|
|
18
18
|
ctaLabel: z.ZodNullable<z.ZodString>;
|
|
19
19
|
ctaUrl: z.ZodNullable<z.ZodString>;
|
|
20
20
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
21
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
22
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
23
|
+
dismissible: z.ZodBoolean;
|
|
24
|
+
countdownUntil: z.ZodNullable<z.ZodString>;
|
|
21
25
|
readAt: z.ZodNullable<z.ZodString>;
|
|
22
26
|
createdAt: z.ZodString;
|
|
23
27
|
}, z.core.$strip>>;
|
|
@@ -8,6 +8,7 @@ const web_notification_status_filter_enum_1 = require("./web-notification-status
|
|
|
8
8
|
const WEB_NOTIFICATION_CHANNELS = new Set([
|
|
9
9
|
notification_channel_enum_1.NotificationChannel.WEB,
|
|
10
10
|
notification_channel_enum_1.NotificationChannel.HOME,
|
|
11
|
+
notification_channel_enum_1.NotificationChannel.HEADER,
|
|
11
12
|
]);
|
|
12
13
|
exports.GetWebNotificationsQuerySchema = zod_1.z.object({
|
|
13
14
|
status: zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-web-notifications-query.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/get-web-notifications-query.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qGAA4F;AAC5F,iGAAwF;AACxF,+FAAoF;AAGpF,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAsB;IAC3D,+CAAmB,CAAC,GAAG;IACvB,+CAAmB,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"get-web-notifications-query.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/get-web-notifications-query.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qGAA4F;AAC5F,iGAAwF;AACxF,+FAAoF;AAGpF,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAsB;IAC3D,+CAAmB,CAAC,GAAG;IACvB,+CAAmB,CAAC,IAAI;IACxB,+CAAmB,CAAC,MAAM;CAC7B,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC;SACJ,UAAU,CAAC,iEAA2B,EAAE;QACrC,KAAK,EAAE,yCAAyC;KACnD,CAAC;SACD,QAAQ,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM;SACV,MAAM,CAAC;QACJ,KAAK,EAAE,wCAAwC;KAClD,CAAC;SACD,GAAG,CAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;SAC1D,QAAQ,CAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;SAChE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;SAC3D,QAAQ,EAAE;IACf,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAEjF,OAAO,EAAE,OAAC;SACL,UAAU,CAAC,+CAAmB,EAAE;QAC7B,KAAK,EAAE,0CAA0C;KACpD,CAAC;SACD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,yBAAyB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QACrD,OAAO,EAAE,0CAA0C;KACtD,CAAC;SACD,QAAQ,EAAE;IAEf,QAAQ,EAAE,OAAC;SACN,UAAU,CAAC,2CAAiB,EAAE;QAC3B,KAAK,EAAE,2CAA2C;KACrD,CAAC;SACD,QAAQ,EAAE;CAClB,CAAC,CAAC"}
|
|
@@ -9,6 +9,10 @@ export declare const WebNotificationSchema: z.ZodObject<{
|
|
|
9
9
|
ctaLabel: z.ZodNullable<z.ZodString>;
|
|
10
10
|
ctaUrl: z.ZodNullable<z.ZodString>;
|
|
11
11
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
12
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
13
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
14
|
+
dismissible: z.ZodBoolean;
|
|
15
|
+
countdownUntil: z.ZodNullable<z.ZodString>;
|
|
12
16
|
readAt: z.ZodNullable<z.ZodString>;
|
|
13
17
|
createdAt: z.ZodString;
|
|
14
18
|
}, z.core.$strip>;
|
|
@@ -13,6 +13,10 @@ exports.WebNotificationSchema = zod_1.z.object({
|
|
|
13
13
|
ctaLabel: zod_1.z.string().nullable(),
|
|
14
14
|
ctaUrl: zod_1.z.string().nullable(),
|
|
15
15
|
imageUrl: zod_1.z.string().nullable(),
|
|
16
|
+
variant: zod_1.z.string().nullable(),
|
|
17
|
+
badge: zod_1.z.string().nullable(),
|
|
18
|
+
dismissible: zod_1.z.boolean(),
|
|
19
|
+
countdownUntil: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
|
|
16
20
|
readAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
|
|
17
21
|
createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
|
|
18
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmE;AACnE,iGAAwF;AAE3E,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IACvC,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,2CAAiB,CAAC;IACnC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmE;AACnE,iGAAwF;AAE3E,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IACvC,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,2CAAiB,CAAC;IACnC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAO/B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAE5B,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;IAKxB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC;CAC9C,CAAC,CAAC"}
|
|
@@ -9,6 +9,10 @@ export declare const WebNotificationsResponseSchema: z.ZodObject<{
|
|
|
9
9
|
ctaLabel: z.ZodNullable<z.ZodString>;
|
|
10
10
|
ctaUrl: z.ZodNullable<z.ZodString>;
|
|
11
11
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
12
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
13
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
14
|
+
dismissible: z.ZodBoolean;
|
|
15
|
+
countdownUntil: z.ZodNullable<z.ZodString>;
|
|
12
16
|
readAt: z.ZodNullable<z.ZodString>;
|
|
13
17
|
createdAt: z.ZodString;
|
|
14
18
|
}, z.core.$strip>>;
|