@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.
Files changed (119) hide show
  1. package/build/controllers/index.d.ts +1 -0
  2. package/build/controllers/index.js +3 -1
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/controllers/offers-unreg.controllers.d.ts +1 -0
  5. package/build/controllers/offers-unreg.controllers.js +5 -0
  6. package/build/controllers/offers-unreg.controllers.js.map +1 -0
  7. package/build/rest-api.d.ts +5 -0
  8. package/build/rest-api.js +5 -0
  9. package/build/rest-api.js.map +1 -1
  10. package/build/routes/index.d.ts +1 -0
  11. package/build/routes/index.js +3 -1
  12. package/build/routes/index.js.map +1 -1
  13. package/build/routes/offers.routes.d.ts +5 -0
  14. package/build/routes/offers.routes.js +6 -1
  15. package/build/routes/offers.routes.js.map +1 -1
  16. package/build/tsconfig.tsbuildinfo +1 -1
  17. package/build/v1/ai/ai.errors.d.ts +1 -0
  18. package/build/v1/ai/ai.errors.js +5 -0
  19. package/build/v1/ai/ai.errors.js.map +1 -1
  20. package/build/v1/engagement/schemas/lifecycle-campaign.enum.d.ts +0 -4
  21. package/build/v1/engagement/schemas/lifecycle-campaign.enum.js +0 -4
  22. package/build/v1/engagement/schemas/lifecycle-campaign.enum.js.map +1 -1
  23. package/build/v1/engagement/schemas/suppression-channel.enum.d.ts +2 -1
  24. package/build/v1/engagement/schemas/suppression-channel.enum.js +1 -0
  25. package/build/v1/engagement/schemas/suppression-channel.enum.js.map +1 -1
  26. package/build/v1/notifications/schemas/email-template.enum.d.ts +0 -4
  27. package/build/v1/notifications/schemas/email-template.enum.js +0 -4
  28. package/build/v1/notifications/schemas/email-template.enum.js.map +1 -1
  29. package/build/v1/notifications/schemas/notification-channel.enum.d.ts +2 -1
  30. package/build/v1/notifications/schemas/notification-channel.enum.js +1 -0
  31. package/build/v1/notifications/schemas/notification-channel.enum.js.map +1 -1
  32. package/build/v1/offers/commands/admin-create-offer-campaign.command.d.ts +6 -0
  33. package/build/v1/offers/commands/admin-update-offer-campaign.command.d.ts +6 -0
  34. package/build/v1/offers/commands/index.d.ts +1 -0
  35. package/build/v1/offers/commands/index.js +3 -0
  36. package/build/v1/offers/commands/index.js.map +1 -1
  37. package/build/v1/offers/commands/unreg-track-header-offer.command.d.ts +11 -0
  38. package/build/v1/offers/commands/unreg-track-header-offer.command.js +15 -0
  39. package/build/v1/offers/commands/unreg-track-header-offer.command.js.map +1 -0
  40. package/build/v1/offers/queries/admin-get-offer-campaign-by-id.query.d.ts +3 -0
  41. package/build/v1/offers/queries/admin-list-offer-campaigns.query.d.ts +3 -0
  42. package/build/v1/offers/queries/index.d.ts +1 -0
  43. package/build/v1/offers/queries/index.js +3 -0
  44. package/build/v1/offers/queries/index.js.map +1 -1
  45. package/build/v1/offers/queries/unreg-get-header-offer.query.d.ts +23 -0
  46. package/build/v1/offers/queries/unreg-get-header-offer.query.js +15 -0
  47. package/build/v1/offers/queries/unreg-get-header-offer.query.js.map +1 -0
  48. package/build/v1/offers/schemas/guest-offer-banner.schema.d.ts +30 -0
  49. package/build/v1/offers/schemas/guest-offer-banner.schema.js +21 -0
  50. package/build/v1/offers/schemas/guest-offer-banner.schema.js.map +1 -0
  51. package/build/v1/offers/schemas/index.d.ts +4 -0
  52. package/build/v1/offers/schemas/index.js +8 -0
  53. package/build/v1/offers/schemas/index.js.map +1 -1
  54. package/build/v1/offers/schemas/offer-campaign.schema.d.ts +12 -0
  55. package/build/v1/offers/schemas/offer-countdown-mode.enum.d.ts +5 -0
  56. package/build/v1/offers/schemas/offer-countdown-mode.enum.js +10 -0
  57. package/build/v1/offers/schemas/offer-countdown-mode.enum.js.map +1 -0
  58. package/build/v1/offers/schemas/offer-presentation.schema.d.ts +4 -0
  59. package/build/v1/offers/schemas/offer-presentation.schema.js +17 -0
  60. package/build/v1/offers/schemas/offer-presentation.schema.js.map +1 -1
  61. package/build/v1/offers/schemas/offer-trigger-type.enum.d.ts +1 -0
  62. package/build/v1/offers/schemas/offer-trigger-type.enum.js +1 -0
  63. package/build/v1/offers/schemas/offer-trigger-type.enum.js.map +1 -1
  64. package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.d.ts +5 -0
  65. package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.js +11 -0
  66. package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.js.map +1 -0
  67. package/build/v1/web-notifications/queries/get-web-notifications.query.d.ts +4 -0
  68. package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js +1 -0
  69. package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -1
  70. package/build/v1/web-notifications/schemas/web-notification.schema.d.ts +4 -0
  71. package/build/v1/web-notifications/schemas/web-notification.schema.js +4 -0
  72. package/build/v1/web-notifications/schemas/web-notification.schema.js.map +1 -1
  73. package/build/v1/web-notifications/schemas/web-notifications-response.schema.d.ts +4 -0
  74. package/build-esm/.tsbuildinfo +1 -1
  75. package/build-esm/controllers/index.js +1 -0
  76. package/build-esm/controllers/index.js.map +1 -1
  77. package/build-esm/controllers/offers-unreg.controllers.js +2 -0
  78. package/build-esm/controllers/offers-unreg.controllers.js.map +1 -0
  79. package/build-esm/rest-api.js +7 -2
  80. package/build-esm/rest-api.js.map +1 -1
  81. package/build-esm/routes/index.js +1 -0
  82. package/build-esm/routes/index.js.map +1 -1
  83. package/build-esm/routes/offers.routes.js +5 -0
  84. package/build-esm/routes/offers.routes.js.map +1 -1
  85. package/build-esm/v1/ai/ai.errors.js +5 -0
  86. package/build-esm/v1/ai/ai.errors.js.map +1 -1
  87. package/build-esm/v1/engagement/schemas/lifecycle-campaign.enum.js +0 -4
  88. package/build-esm/v1/engagement/schemas/lifecycle-campaign.enum.js.map +1 -1
  89. package/build-esm/v1/engagement/schemas/suppression-channel.enum.js +1 -0
  90. package/build-esm/v1/engagement/schemas/suppression-channel.enum.js.map +1 -1
  91. package/build-esm/v1/notifications/schemas/email-template.enum.js +0 -4
  92. package/build-esm/v1/notifications/schemas/email-template.enum.js.map +1 -1
  93. package/build-esm/v1/notifications/schemas/notification-channel.enum.js +1 -0
  94. package/build-esm/v1/notifications/schemas/notification-channel.enum.js.map +1 -1
  95. package/build-esm/v1/offers/commands/index.js +1 -0
  96. package/build-esm/v1/offers/commands/index.js.map +1 -1
  97. package/build-esm/v1/offers/commands/unreg-track-header-offer.command.js +12 -0
  98. package/build-esm/v1/offers/commands/unreg-track-header-offer.command.js.map +1 -0
  99. package/build-esm/v1/offers/queries/index.js +1 -0
  100. package/build-esm/v1/offers/queries/index.js.map +1 -1
  101. package/build-esm/v1/offers/queries/unreg-get-header-offer.query.js +12 -0
  102. package/build-esm/v1/offers/queries/unreg-get-header-offer.query.js.map +1 -0
  103. package/build-esm/v1/offers/schemas/guest-offer-banner.schema.js +18 -0
  104. package/build-esm/v1/offers/schemas/guest-offer-banner.schema.js.map +1 -0
  105. package/build-esm/v1/offers/schemas/index.js +3 -0
  106. package/build-esm/v1/offers/schemas/index.js.map +1 -1
  107. package/build-esm/v1/offers/schemas/offer-countdown-mode.enum.js +7 -0
  108. package/build-esm/v1/offers/schemas/offer-countdown-mode.enum.js.map +1 -0
  109. package/build-esm/v1/offers/schemas/offer-presentation.schema.js +17 -0
  110. package/build-esm/v1/offers/schemas/offer-presentation.schema.js.map +1 -1
  111. package/build-esm/v1/offers/schemas/offer-trigger-type.enum.js +1 -0
  112. package/build-esm/v1/offers/schemas/offer-trigger-type.enum.js.map +1 -1
  113. package/build-esm/v1/offers/schemas/unreg-track-header-offer-request.schema.js +8 -0
  114. package/build-esm/v1/offers/schemas/unreg-track-header-offer-request.schema.js.map +1 -0
  115. package/build-esm/v1/web-notifications/schemas/get-web-notifications-query.schema.js +1 -0
  116. package/build-esm/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -1
  117. package/build-esm/v1/web-notifications/schemas/web-notification.schema.js +4 -0
  118. package/build-esm/v1/web-notifications/schemas/web-notification.schema.js.map +1 -1
  119. 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;CAC3B,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"}
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,EAA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,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>>;