@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
|
@@ -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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAGpF,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAsB;IAC3D,mBAAmB,CAAC,GAAG;IACvB,mBAAmB,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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAGpF,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAsB;IAC3D,mBAAmB,CAAC,GAAG;IACvB,mBAAmB,CAAC,IAAI;IACxB,mBAAmB,CAAC,MAAM;CAC7B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,CAAC;SACJ,UAAU,CAAC,2BAA2B,EAAE;QACrC,KAAK,EAAE,yCAAyC;KACnD,CAAC;SACD,QAAQ,EAAE;IACf,KAAK,EAAE,CAAC,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,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAEjF,OAAO,EAAE,CAAC;SACL,UAAU,CAAC,mBAAmB,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,CAAC;SACN,UAAU,CAAC,iBAAiB,EAAE;QAC3B,KAAK,EAAE,2CAA2C;KACrD,CAAC;SACD,QAAQ,EAAE;CAClB,CAAC,CAAC"}
|
|
@@ -10,6 +10,10 @@ export const WebNotificationSchema = z.object({
|
|
|
10
10
|
ctaLabel: z.string().nullable(),
|
|
11
11
|
ctaUrl: z.string().nullable(),
|
|
12
12
|
imageUrl: z.string().nullable(),
|
|
13
|
+
variant: z.string().nullable(),
|
|
14
|
+
badge: z.string().nullable(),
|
|
15
|
+
dismissible: z.boolean(),
|
|
16
|
+
countdownUntil: z.string().regex(DATETIME_REGEX).nullable(),
|
|
13
17
|
readAt: z.string().regex(DATETIME_REGEX).nullable(),
|
|
14
18
|
createdAt: z.string().regex(DATETIME_REGEX),
|
|
15
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AAExF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,I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