@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
@@ -1,5 +1,6 @@
1
1
  import { ErrorMetadata } from '../../shared';
2
2
  export declare enum AIErrorCode {
3
+ ATTACHMENT_UNREADABLE = "ATTACHMENT_UNREADABLE",
3
4
  GENERATION_FAILED = "GENERATION_FAILED",
4
5
  GENERATION_TIMEOUT = "GENERATION_TIMEOUT",
5
6
  CONTENT_FILTERED = "CONTENT_FILTERED",
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AI_ERRORS = exports.AIErrorCode = void 0;
4
4
  var AIErrorCode;
5
5
  (function (AIErrorCode) {
6
+ AIErrorCode["ATTACHMENT_UNREADABLE"] = "ATTACHMENT_UNREADABLE";
6
7
  AIErrorCode["GENERATION_FAILED"] = "GENERATION_FAILED";
7
8
  AIErrorCode["GENERATION_TIMEOUT"] = "GENERATION_TIMEOUT";
8
9
  AIErrorCode["CONTENT_FILTERED"] = "CONTENT_FILTERED";
@@ -21,6 +22,10 @@ var AIErrorCode;
21
22
  AIErrorCode["PROMPT_GENERATOR_MODEL_NOT_FOUND"] = "PROMPT_GENERATOR_MODEL_NOT_FOUND";
22
23
  })(AIErrorCode || (exports.AIErrorCode = AIErrorCode = {}));
23
24
  exports.AI_ERRORS = {
25
+ [AIErrorCode.ATTACHMENT_UNREADABLE]: {
26
+ code: AIErrorCode.ATTACHMENT_UNREADABLE,
27
+ statusCode: 422,
28
+ },
24
29
  [AIErrorCode.GENERATION_FAILED]: {
25
30
  code: AIErrorCode.GENERATION_FAILED,
26
31
  statusCode: 500,
@@ -1 +1 @@
1
- {"version":3,"file":"ai.errors.js","sourceRoot":"","sources":["../../../v1/ai/ai.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,WA4BX;AA5BD,WAAY,WAAW;IAEnB,sDAAuC,CAAA;IACvC,wDAAyC,CAAA;IACzC,oDAAqC,CAAA;IACrC,oDAAqC,CAAA;IAGrC,kDAAmC,CAAA;IACnC,sDAAuC,CAAA;IACvC,sDAAuC,CAAA;IAGvC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W,CAAC,mBAAmB;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;QAC1B,IAAI,EAAE,WAAW,CAAC,cAAc;QAChC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAAE;QAC/B,IAAI,EAAE,WAAW,CAAC,mBAAmB;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE;QAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB;QAClC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE;QAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB;QAClC,UAAU,EAAE,GAAG;KAClB;IAED,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE;QAC7B,IAAI,EAAE,WAAW,CAAC,iBAAiB;QACnC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE;QACpC,IAAI,EAAE,WAAW,CAAC,wBAAwB;QAC1C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,WAAW,CAAC,gCAAgC,CAAC,EAAE;QAC5C,IAAI,EAAE,WAAW,CAAC,gCAAgC;QAClD,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
@@ -12,10 +12,6 @@ export declare enum LifecycleCampaign {
12
12
  STREAK_LOST = "STREAK_LOST",
13
13
  REENGAGE_LOW = "REENGAGE_LOW",
14
14
  WINBACK_1 = "WINBACK_1",
15
- CART_RECALL = "CART_RECALL",
16
- CART_T1 = "CART_T1",
17
- CART_T2 = "CART_T2",
18
- CART_T3 = "CART_T3",
19
15
  RENEWAL_NOTICE_3D = "RENEWAL_NOTICE_3D",
20
16
  PURCHASE_CONFIRMED = "PURCHASE_CONFIRMED",
21
17
  SUBSCRIPTION_CANCELLED_WINBACK = "SUBSCRIPTION_CANCELLED_WINBACK",
@@ -16,10 +16,6 @@ var LifecycleCampaign;
16
16
  LifecycleCampaign["STREAK_LOST"] = "STREAK_LOST";
17
17
  LifecycleCampaign["REENGAGE_LOW"] = "REENGAGE_LOW";
18
18
  LifecycleCampaign["WINBACK_1"] = "WINBACK_1";
19
- LifecycleCampaign["CART_RECALL"] = "CART_RECALL";
20
- LifecycleCampaign["CART_T1"] = "CART_T1";
21
- LifecycleCampaign["CART_T2"] = "CART_T2";
22
- LifecycleCampaign["CART_T3"] = "CART_T3";
23
19
  LifecycleCampaign["RENEWAL_NOTICE_3D"] = "RENEWAL_NOTICE_3D";
24
20
  LifecycleCampaign["PURCHASE_CONFIRMED"] = "PURCHASE_CONFIRMED";
25
21
  LifecycleCampaign["SUBSCRIPTION_CANCELLED_WINBACK"] = "SUBSCRIPTION_CANCELLED_WINBACK";
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle-campaign.enum.js","sourceRoot":"","sources":["../../../../v1/engagement/schemas/lifecycle-campaign.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,iBAqCX;AArCD,WAAY,iBAAiB;IAEzB,sDAAiC,CAAA;IACjC,sDAAiC,CAAA;IACjC,wCAAmB,CAAA;IACnB,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,8DAAyC,CAAA;IACzC,wDAAmC,CAAA;IACnC,8DAAyC,CAAA;IACzC,kEAA6C,CAAA;IAC7C,sDAAiC,CAAA;IACjC,gDAA2B,CAAA;IAG3B,kDAA6B,CAAA;IAC7B,4CAAuB,CAAA;IAGvB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IAGnB,4DAAuC,CAAA;IACvC,8DAAyC,CAAA;IACzC,sFAAiE,CAAA;IACjE,sDAAiC,CAAA;IACjC,kEAA6C,CAAA;IAC7C,gDAA2B,CAAA;IAG3B,kEAA6C,CAAA;IAG7C,oEAA+C,CAAA;AACnD,CAAC,EArCW,iBAAiB,iCAAjB,iBAAiB,QAqC5B"}
1
+ {"version":3,"file":"lifecycle-campaign.enum.js","sourceRoot":"","sources":["../../../../v1/engagement/schemas/lifecycle-campaign.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,iBAiCX;AAjCD,WAAY,iBAAiB;IAEzB,sDAAiC,CAAA;IACjC,sDAAiC,CAAA;IACjC,wCAAmB,CAAA;IACnB,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,8DAAyC,CAAA;IACzC,wDAAmC,CAAA;IACnC,8DAAyC,CAAA;IACzC,kEAA6C,CAAA;IAC7C,sDAAiC,CAAA;IACjC,gDAA2B,CAAA;IAG3B,kDAA6B,CAAA;IAC7B,4CAAuB,CAAA;IAKvB,4DAAuC,CAAA;IACvC,8DAAyC,CAAA;IACzC,sFAAiE,CAAA;IACjE,sDAAiC,CAAA;IACjC,kEAA6C,CAAA;IAC7C,gDAA2B,CAAA;IAG3B,kEAA6C,CAAA;IAG7C,oEAA+C,CAAA;AACnD,CAAC,EAjCW,iBAAiB,iCAAjB,iBAAiB,QAiC5B"}
@@ -3,5 +3,6 @@ export declare enum SuppressionChannel {
3
3
  EMAIL = "EMAIL",
4
4
  TELEGRAM = "TELEGRAM",
5
5
  WEB = "WEB",
6
- HOME = "HOME"
6
+ HOME = "HOME",
7
+ HEADER = "HEADER"
7
8
  }
@@ -8,5 +8,6 @@ var SuppressionChannel;
8
8
  SuppressionChannel["TELEGRAM"] = "TELEGRAM";
9
9
  SuppressionChannel["WEB"] = "WEB";
10
10
  SuppressionChannel["HOME"] = "HOME";
11
+ SuppressionChannel["HEADER"] = "HEADER";
11
12
  })(SuppressionChannel || (exports.SuppressionChannel = SuppressionChannel = {}));
12
13
  //# sourceMappingURL=suppression-channel.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"suppression-channel.enum.js","sourceRoot":"","sources":["../../../../v1/engagement/schemas/suppression-channel.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,iCAAW,CAAA;IACX,mCAAa,CAAA;AACjB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
1
+ {"version":3,"file":"suppression-channel.enum.js","sourceRoot":"","sources":["../../../../v1/engagement/schemas/suppression-channel.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,iCAAW,CAAA;IACX,mCAAa,CAAA;IACb,uCAAiB,CAAA;AACrB,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B"}
@@ -20,10 +20,6 @@ export declare enum EmailTemplate {
20
20
  ACTIVATION_STALLED = "ACTIVATION_STALLED",
21
21
  SPENT_ALL_DAY1_EDU = "SPENT_ALL_DAY1_EDU",
22
22
  SPENT_ALL_DAY1_PROMO = "SPENT_ALL_DAY1_PROMO",
23
- CART_RECALL = "CART_RECALL",
24
- CART_T1 = "CART_T1",
25
- CART_T2 = "CART_T2",
26
- CART_T3 = "CART_T3",
27
23
  WINBACK_1 = "WINBACK_1",
28
24
  RENEWAL_NOTICE_3D = "RENEWAL_NOTICE_3D",
29
25
  PURCHASE_CONFIRMED = "PURCHASE_CONFIRMED",
@@ -24,10 +24,6 @@ var EmailTemplate;
24
24
  EmailTemplate["ACTIVATION_STALLED"] = "ACTIVATION_STALLED";
25
25
  EmailTemplate["SPENT_ALL_DAY1_EDU"] = "SPENT_ALL_DAY1_EDU";
26
26
  EmailTemplate["SPENT_ALL_DAY1_PROMO"] = "SPENT_ALL_DAY1_PROMO";
27
- EmailTemplate["CART_RECALL"] = "CART_RECALL";
28
- EmailTemplate["CART_T1"] = "CART_T1";
29
- EmailTemplate["CART_T2"] = "CART_T2";
30
- EmailTemplate["CART_T3"] = "CART_T3";
31
27
  EmailTemplate["WINBACK_1"] = "WINBACK_1";
32
28
  EmailTemplate["RENEWAL_NOTICE_3D"] = "RENEWAL_NOTICE_3D";
33
29
  EmailTemplate["PURCHASE_CONFIRMED"] = "PURCHASE_CONFIRMED";
@@ -1 +1 @@
1
- {"version":3,"file":"email-template.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/email-template.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,aAwEX;AAxED,WAAY,aAAa;IAErB,oCAAmB,CAAA;IACnB,0DAAyC,CAAA;IACzC,wDAAuC,CAAA;IACvC,kDAAiC,CAAA;IACjC,sDAAqC,CAAA;IAGrC,gEAA+C,CAAA;IAC/C,gDAA+B,CAAA;IAC/B,gEAA+C,CAAA;IAG/C,8DAA6C,CAAA;IAC7C,kDAAiC,CAAA;IACjC,kEAAiD,CAAA;IACjD,4CAA2B,CAAA;IAG3B,4DAA2C,CAAA;IAC3C,gEAA+C,CAAA;IAG/C,kDAAiC,CAAA;IACjC,kDAAiC,CAAA;IAGjC,gEAA+C,CAAA;IAC/C,gEAA+C,CAAA;IAG/C,0DAAyC,CAAA;IAGzC,0DAAyC,CAAA;IACzC,8DAA6C,CAAA;IAG7C,4CAA2B,CAAA;IAC3B,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IAGnB,wCAAuB,CAAA;IAGvB,wDAAuC,CAAA;IACvC,0DAAyC,CAAA;IACzC,kDAAiC,CAAA;IACjC,8DAA6C,CAAA;IAC7C,4CAA2B,CAAA;IAM3B,kFAAiE,CAAA;IAIjE,8DAA6C,CAAA;IAI7C,gEAA+C,CAAA;IAK/C,kDAAiC,CAAA;AACrC,CAAC,EAxEW,aAAa,6BAAb,aAAa,QAwExB"}
1
+ {"version":3,"file":"email-template.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/email-template.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,aAoEX;AApED,WAAY,aAAa;IAErB,oCAAmB,CAAA;IACnB,0DAAyC,CAAA;IACzC,wDAAuC,CAAA;IACvC,kDAAiC,CAAA;IACjC,sDAAqC,CAAA;IAGrC,gEAA+C,CAAA;IAC/C,gDAA+B,CAAA;IAC/B,gEAA+C,CAAA;IAG/C,8DAA6C,CAAA;IAC7C,kDAAiC,CAAA;IACjC,kEAAiD,CAAA;IACjD,4CAA2B,CAAA;IAG3B,4DAA2C,CAAA;IAC3C,gEAA+C,CAAA;IAG/C,kDAAiC,CAAA;IACjC,kDAAiC,CAAA;IAGjC,gEAA+C,CAAA;IAC/C,gEAA+C,CAAA;IAG/C,0DAAyC,CAAA;IAGzC,0DAAyC,CAAA;IACzC,8DAA6C,CAAA;IAK7C,wCAAuB,CAAA;IAGvB,wDAAuC,CAAA;IACvC,0DAAyC,CAAA;IACzC,kDAAiC,CAAA;IACjC,8DAA6C,CAAA;IAC7C,4CAA2B,CAAA;IAM3B,kFAAiE,CAAA;IAIjE,8DAA6C,CAAA;IAI7C,gEAA+C,CAAA;IAK/C,kDAAiC,CAAA;AACrC,CAAC,EApEW,aAAa,6BAAb,aAAa,QAoExB"}
@@ -2,5 +2,6 @@ export declare enum NotificationChannel {
2
2
  EMAIL = "EMAIL",
3
3
  TELEGRAM = "TELEGRAM",
4
4
  WEB = "WEB",
5
- HOME = "HOME"
5
+ HOME = "HOME",
6
+ HEADER = "HEADER"
6
7
  }
@@ -7,5 +7,6 @@ var NotificationChannel;
7
7
  NotificationChannel["TELEGRAM"] = "TELEGRAM";
8
8
  NotificationChannel["WEB"] = "WEB";
9
9
  NotificationChannel["HOME"] = "HOME";
10
+ NotificationChannel["HEADER"] = "HEADER";
10
11
  })(NotificationChannel || (exports.NotificationChannel = NotificationChannel = {}));
11
12
  //# sourceMappingURL=notification-channel.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification-channel.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-channel.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,4CAAqB,CAAA;IACrB,kCAAW,CAAA;IAEX,oCAAa,CAAA;AACjB,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"notification-channel.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-channel.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,4CAAqB,CAAA;IACrB,kCAAW,CAAA;IAEX,oCAAa,CAAA;IAOb,wCAAiB,CAAA;AACrB,CAAC,EAbW,mBAAmB,mCAAnB,mBAAmB,QAa9B"}
@@ -36,6 +36,9 @@ export declare namespace AdminCreateOfferCampaignCommand {
36
36
  url: z.ZodOptional<z.ZodString>;
37
37
  }, z.core.$strip>;
38
38
  dismissible: z.ZodBoolean;
39
+ imageUrl: z.ZodOptional<z.ZodString>;
40
+ emailAsset: z.ZodOptional<z.ZodString>;
41
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("../schemas").OfferCountdownMode>>;
39
42
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
40
43
  delayMs: z.ZodNumber;
41
44
  title: z.ZodString;
@@ -90,6 +93,9 @@ export declare namespace AdminCreateOfferCampaignCommand {
90
93
  url: z.ZodOptional<z.ZodString>;
91
94
  }, z.core.$strip>;
92
95
  dismissible: z.ZodBoolean;
96
+ imageUrl: z.ZodOptional<z.ZodString>;
97
+ emailAsset: z.ZodOptional<z.ZodString>;
98
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("../schemas").OfferCountdownMode>>;
93
99
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
94
100
  delayMs: z.ZodNumber;
95
101
  title: z.ZodString;
@@ -35,6 +35,9 @@ export declare namespace AdminUpdateOfferCampaignCommand {
35
35
  url: z.ZodOptional<z.ZodString>;
36
36
  }, z.core.$strip>;
37
37
  dismissible: z.ZodBoolean;
38
+ imageUrl: z.ZodOptional<z.ZodString>;
39
+ emailAsset: z.ZodOptional<z.ZodString>;
40
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("../schemas").OfferCountdownMode>>;
38
41
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
39
42
  delayMs: z.ZodNumber;
40
43
  title: z.ZodString;
@@ -89,6 +92,9 @@ export declare namespace AdminUpdateOfferCampaignCommand {
89
92
  url: z.ZodOptional<z.ZodString>;
90
93
  }, z.core.$strip>;
91
94
  dismissible: z.ZodBoolean;
95
+ imageUrl: z.ZodOptional<z.ZodString>;
96
+ emailAsset: z.ZodOptional<z.ZodString>;
97
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("../schemas").OfferCountdownMode>>;
92
98
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
93
99
  delayMs: z.ZodNumber;
94
100
  title: z.ZodString;
@@ -3,3 +3,4 @@ export * from './admin-update-offer-campaign.command';
3
3
  export * from './admin-delete-offer-campaign.command';
4
4
  export * from './admin-issue-offer-campaign.command';
5
5
  export * from './admin-revoke-offer-campaign.command';
6
+ export { UnregTrackHeaderOfferCommand } from './unreg-track-header-offer.command';
@@ -14,9 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.UnregTrackHeaderOfferCommand = void 0;
17
18
  __exportStar(require("./admin-create-offer-campaign.command"), exports);
18
19
  __exportStar(require("./admin-update-offer-campaign.command"), exports);
19
20
  __exportStar(require("./admin-delete-offer-campaign.command"), exports);
20
21
  __exportStar(require("./admin-issue-offer-campaign.command"), exports);
21
22
  __exportStar(require("./admin-revoke-offer-campaign.command"), exports);
23
+ var unreg_track_header_offer_command_1 = require("./unreg-track-header-offer.command");
24
+ Object.defineProperty(exports, "UnregTrackHeaderOfferCommand", { enumerable: true, get: function () { return unreg_track_header_offer_command_1.UnregTrackHeaderOfferCommand; } });
22
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/offers/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,wEAAsD;AACtD,wEAAsD;AACtD,uEAAqD;AACrD,wEAAsD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/offers/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,wEAAsD;AACtD,wEAAsD;AACtD,uEAAqD;AACrD,wEAAsD;AACtD,uFAAkF;AAAzE,gJAAA,4BAA4B,OAAA"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace UnregTrackHeaderOfferCommand {
4
+ const Request: z.ZodObject<{
5
+ campaignKey: z.ZodString;
6
+ }, z.core.$strip>;
7
+ const Response: z.ZodVoid;
8
+ const URL: "/api/v1/unreg/offers/header/impression";
9
+ const METHOD = HttpMethod.POST;
10
+ type RequestType = z.infer<typeof Request>;
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnregTrackHeaderOfferCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const unreg_track_header_offer_request_schema_1 = require("../schemas/unreg-track-header-offer-request.schema");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
8
+ var UnregTrackHeaderOfferCommand;
9
+ (function (UnregTrackHeaderOfferCommand) {
10
+ UnregTrackHeaderOfferCommand.Request = unreg_track_header_offer_request_schema_1.UnregTrackHeaderOfferRequestSchema;
11
+ UnregTrackHeaderOfferCommand.Response = zod_1.z.void();
12
+ UnregTrackHeaderOfferCommand.URL = rest_api_1.REST_API.V1.OFFERS.UNREG.HEADER_IMPRESSION;
13
+ UnregTrackHeaderOfferCommand.METHOD = http_method_enum_1.HttpMethod.POST;
14
+ })(UnregTrackHeaderOfferCommand || (exports.UnregTrackHeaderOfferCommand = UnregTrackHeaderOfferCommand = {}));
15
+ //# sourceMappingURL=unreg-track-header-offer.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unreg-track-header-offer.command.js","sourceRoot":"","sources":["../../../../v1/offers/commands/unreg-track-header-offer.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gHAAwG;AACxG,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,4EAAkC,CAAC;IAC7C,qCAAQ,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACpB,gCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACjD,mCAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
@@ -38,6 +38,9 @@ export declare namespace AdminGetOfferCampaignByIdQuery {
38
38
  url: z.ZodOptional<z.ZodString>;
39
39
  }, z.core.$strip>;
40
40
  dismissible: z.ZodBoolean;
41
+ imageUrl: z.ZodOptional<z.ZodString>;
42
+ emailAsset: z.ZodOptional<z.ZodString>;
43
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("../schemas").OfferCountdownMode>>;
41
44
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
42
45
  delayMs: z.ZodNumber;
43
46
  title: z.ZodString;
@@ -49,6 +49,9 @@ export declare namespace AdminListOfferCampaignsQuery {
49
49
  url: z.ZodOptional<z.ZodString>;
50
50
  }, z.core.$strip>;
51
51
  dismissible: z.ZodBoolean;
52
+ imageUrl: z.ZodOptional<z.ZodString>;
53
+ emailAsset: z.ZodOptional<z.ZodString>;
54
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("../schemas").OfferCountdownMode>>;
52
55
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
53
56
  delayMs: z.ZodNumber;
54
57
  title: z.ZodString;
@@ -2,3 +2,4 @@ export * from './admin-list-offer-campaigns.query';
2
2
  export * from './admin-get-offer-campaign-by-id.query';
3
3
  export * from './admin-list-user-offers.query';
4
4
  export * from './admin-get-offer-campaign-stats.query';
5
+ export { UnregGetHeaderOfferQuery } from './unreg-get-header-offer.query';
@@ -14,8 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.UnregGetHeaderOfferQuery = void 0;
17
18
  __exportStar(require("./admin-list-offer-campaigns.query"), exports);
18
19
  __exportStar(require("./admin-get-offer-campaign-by-id.query"), exports);
19
20
  __exportStar(require("./admin-list-user-offers.query"), exports);
20
21
  __exportStar(require("./admin-get-offer-campaign-stats.query"), exports);
22
+ var unreg_get_header_offer_query_1 = require("./unreg-get-header-offer.query");
23
+ Object.defineProperty(exports, "UnregGetHeaderOfferQuery", { enumerable: true, get: function () { return unreg_get_header_offer_query_1.UnregGetHeaderOfferQuery; } });
21
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/offers/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,yEAAuD;AACvD,iEAA+C;AAC/C,yEAAuD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/offers/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,yEAAuD;AACvD,iEAA+C;AAC/C,yEAAuD;AACvD,+EAA0E;AAAjE,wIAAA,wBAAwB,OAAA"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace UnregGetHeaderOfferQuery {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ banner: z.ZodNullable<z.ZodObject<{
7
+ campaignKey: z.ZodString;
8
+ variant: z.ZodString;
9
+ badge: z.ZodNullable<z.ZodString>;
10
+ title: z.ZodString;
11
+ highlight: z.ZodNullable<z.ZodString>;
12
+ ctaLabel: z.ZodString;
13
+ ctaAction: z.ZodEnum<typeof import("..").OfferCtaAction>;
14
+ ctaUrl: z.ZodNullable<z.ZodString>;
15
+ dismissible: z.ZodBoolean;
16
+ countdownUntil: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>;
19
+ const URL: "/api/v1/unreg/offers/header";
20
+ const METHOD = HttpMethod.GET;
21
+ type RequestType = z.infer<typeof Request>;
22
+ type ResponseType = z.infer<typeof Response>;
23
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnregGetHeaderOfferQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const guest_offer_banner_schema_1 = require("../schemas/guest-offer-banner.schema");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
8
+ var UnregGetHeaderOfferQuery;
9
+ (function (UnregGetHeaderOfferQuery) {
10
+ UnregGetHeaderOfferQuery.Request = zod_1.z.object({});
11
+ UnregGetHeaderOfferQuery.Response = guest_offer_banner_schema_1.GuestOfferBannerResponseSchema;
12
+ UnregGetHeaderOfferQuery.URL = rest_api_1.REST_API.V1.OFFERS.UNREG.HEADER;
13
+ UnregGetHeaderOfferQuery.METHOD = http_method_enum_1.HttpMethod.GET;
14
+ })(UnregGetHeaderOfferQuery || (exports.UnregGetHeaderOfferQuery = UnregGetHeaderOfferQuery = {}));
15
+ //# sourceMappingURL=unreg-get-header-offer.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unreg-get-header-offer.query.js","sourceRoot":"","sources":["../../../../v1/offers/queries/unreg-get-header-offer.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oFAAsF;AACtF,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,wBAAwB,CAQxC;AARD,WAAiB,wBAAwB;IACxB,gCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,iCAAQ,GAAG,0DAA8B,CAAC;IAC1C,4BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;IACtC,+BAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EARgB,wBAAwB,wCAAxB,wBAAwB,QAQxC"}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ import { OfferCtaAction } from './offer-cta-action.enum';
3
+ export declare const GuestOfferBannerSchema: z.ZodObject<{
4
+ campaignKey: z.ZodString;
5
+ variant: z.ZodString;
6
+ badge: z.ZodNullable<z.ZodString>;
7
+ title: z.ZodString;
8
+ highlight: z.ZodNullable<z.ZodString>;
9
+ ctaLabel: z.ZodString;
10
+ ctaAction: z.ZodEnum<typeof OfferCtaAction>;
11
+ ctaUrl: z.ZodNullable<z.ZodString>;
12
+ dismissible: z.ZodBoolean;
13
+ countdownUntil: z.ZodNullable<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ export type GuestOfferBannerDto = z.infer<typeof GuestOfferBannerSchema>;
16
+ export declare const GuestOfferBannerResponseSchema: z.ZodObject<{
17
+ banner: z.ZodNullable<z.ZodObject<{
18
+ campaignKey: z.ZodString;
19
+ variant: z.ZodString;
20
+ badge: z.ZodNullable<z.ZodString>;
21
+ title: z.ZodString;
22
+ highlight: z.ZodNullable<z.ZodString>;
23
+ ctaLabel: z.ZodString;
24
+ ctaAction: z.ZodEnum<typeof OfferCtaAction>;
25
+ ctaUrl: z.ZodNullable<z.ZodString>;
26
+ dismissible: z.ZodBoolean;
27
+ countdownUntil: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>;
30
+ export type GuestOfferBannerResponseDto = z.infer<typeof GuestOfferBannerResponseSchema>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GuestOfferBannerResponseSchema = exports.GuestOfferBannerSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const offer_cta_action_enum_1 = require("./offer-cta-action.enum");
6
+ exports.GuestOfferBannerSchema = zod_1.z.object({
7
+ campaignKey: zod_1.z.string().min(1),
8
+ variant: zod_1.z.string().min(1),
9
+ badge: zod_1.z.string().nullable(),
10
+ title: zod_1.z.string().min(1),
11
+ highlight: zod_1.z.string().nullable(),
12
+ ctaLabel: zod_1.z.string().min(1),
13
+ ctaAction: zod_1.z.enum(offer_cta_action_enum_1.OfferCtaAction),
14
+ ctaUrl: zod_1.z.string().nullable(),
15
+ dismissible: zod_1.z.boolean(),
16
+ countdownUntil: zod_1.z.string().datetime().nullable(),
17
+ });
18
+ exports.GuestOfferBannerResponseSchema = zod_1.z.object({
19
+ banner: exports.GuestOfferBannerSchema.nullable(),
20
+ });
21
+ //# sourceMappingURL=guest-offer-banner.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guest-offer-banner.schema.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/guest-offer-banner.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAyD;AAS5C,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAE3C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,sCAAc,CAAC;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;IAKxB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC;AAIU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IAEnD,MAAM,EAAE,8BAAsB,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC"}
@@ -12,3 +12,7 @@ export * from './user-offer.schema';
12
12
  export * from './admin-list-offer-campaigns-filters.schema';
13
13
  export * from './admin-list-user-offers-filters.schema';
14
14
  export * from './offer-campaign-stats.schema';
15
+ export { OfferCountdownMode } from './offer-countdown-mode.enum';
16
+ export { GuestOfferBannerSchema, GuestOfferBannerResponseSchema, } from './guest-offer-banner.schema';
17
+ export type { GuestOfferBannerDto, GuestOfferBannerResponseDto, } from './guest-offer-banner.schema';
18
+ export { UnregTrackHeaderOfferRequestSchema } from './unreg-track-header-offer-request.schema';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.UnregTrackHeaderOfferRequestSchema = exports.GuestOfferBannerResponseSchema = exports.GuestOfferBannerSchema = exports.OfferCountdownMode = void 0;
17
18
  __exportStar(require("./offer-campaign-status.enum"), exports);
18
19
  __exportStar(require("./offer-trigger-type.enum"), exports);
19
20
  __exportStar(require("./user-offer-status.enum"), exports);
@@ -28,4 +29,11 @@ __exportStar(require("./user-offer.schema"), exports);
28
29
  __exportStar(require("./admin-list-offer-campaigns-filters.schema"), exports);
29
30
  __exportStar(require("./admin-list-user-offers-filters.schema"), exports);
30
31
  __exportStar(require("./offer-campaign-stats.schema"), exports);
32
+ var offer_countdown_mode_enum_1 = require("./offer-countdown-mode.enum");
33
+ Object.defineProperty(exports, "OfferCountdownMode", { enumerable: true, get: function () { return offer_countdown_mode_enum_1.OfferCountdownMode; } });
34
+ var guest_offer_banner_schema_1 = require("./guest-offer-banner.schema");
35
+ Object.defineProperty(exports, "GuestOfferBannerSchema", { enumerable: true, get: function () { return guest_offer_banner_schema_1.GuestOfferBannerSchema; } });
36
+ Object.defineProperty(exports, "GuestOfferBannerResponseSchema", { enumerable: true, get: function () { return guest_offer_banner_schema_1.GuestOfferBannerResponseSchema; } });
37
+ var unreg_track_header_offer_request_schema_1 = require("./unreg-track-header-offer-request.schema");
38
+ Object.defineProperty(exports, "UnregTrackHeaderOfferRequestSchema", { enumerable: true, get: function () { return unreg_track_header_offer_request_schema_1.UnregTrackHeaderOfferRequestSchema; } });
31
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAC7C,0DAAwC;AACxC,mEAAiD;AACjD,0DAAwC;AACxC,gEAA8C;AAC9C,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC;AACpC,8EAA4D;AAC5D,0EAAwD;AACxD,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAC7C,0DAAwC;AACxC,mEAAiD;AACjD,0DAAwC;AACxC,gEAA8C;AAC9C,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC;AACpC,8EAA4D;AAC5D,0EAAwD;AACxD,gEAA8C;AAC9C,yEAAiE;AAAxD,+HAAA,kBAAkB,OAAA;AAC3B,yEAGqC;AAFjC,mIAAA,sBAAsB,OAAA;AACtB,2IAAA,8BAA8B,OAAA;AAMlC,qGAA+F;AAAtF,6JAAA,kCAAkC,OAAA"}
@@ -41,6 +41,9 @@ export declare const OfferCampaignSchema: z.ZodObject<{
41
41
  url: z.ZodOptional<z.ZodString>;
42
42
  }, z.core.$strip>;
43
43
  dismissible: z.ZodBoolean;
44
+ imageUrl: z.ZodOptional<z.ZodString>;
45
+ emailAsset: z.ZodOptional<z.ZodString>;
46
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("./offer-countdown-mode.enum").OfferCountdownMode>>;
44
47
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
45
48
  delayMs: z.ZodNumber;
46
49
  title: z.ZodString;
@@ -101,6 +104,9 @@ export declare const OfferCampaignListResponseSchema: z.ZodObject<{
101
104
  url: z.ZodOptional<z.ZodString>;
102
105
  }, z.core.$strip>;
103
106
  dismissible: z.ZodBoolean;
107
+ imageUrl: z.ZodOptional<z.ZodString>;
108
+ emailAsset: z.ZodOptional<z.ZodString>;
109
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("./offer-countdown-mode.enum").OfferCountdownMode>>;
104
110
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
105
111
  delayMs: z.ZodNumber;
106
112
  title: z.ZodString;
@@ -161,6 +167,9 @@ export declare const AdminCreateOfferCampaignRequestSchema: z.ZodObject<{
161
167
  url: z.ZodOptional<z.ZodString>;
162
168
  }, z.core.$strip>;
163
169
  dismissible: z.ZodBoolean;
170
+ imageUrl: z.ZodOptional<z.ZodString>;
171
+ emailAsset: z.ZodOptional<z.ZodString>;
172
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("./offer-countdown-mode.enum").OfferCountdownMode>>;
164
173
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
165
174
  delayMs: z.ZodNumber;
166
175
  title: z.ZodString;
@@ -214,6 +223,9 @@ export declare const AdminUpdateOfferCampaignRequestSchema: z.ZodObject<{
214
223
  url: z.ZodOptional<z.ZodString>;
215
224
  }, z.core.$strip>;
216
225
  dismissible: z.ZodBoolean;
226
+ imageUrl: z.ZodOptional<z.ZodString>;
227
+ emailAsset: z.ZodOptional<z.ZodString>;
228
+ countdown: z.ZodDefault<z.ZodEnum<typeof import("./offer-countdown-mode.enum").OfferCountdownMode>>;
217
229
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
218
230
  delayMs: z.ZodNumber;
219
231
  title: z.ZodString;
@@ -0,0 +1,5 @@
1
+ export declare enum OfferCountdownMode {
2
+ NONE = "NONE",
3
+ OFFER_EXPIRES_AT = "OFFER_EXPIRES_AT",
4
+ WEEKLY_SUNDAY = "WEEKLY_SUNDAY"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OfferCountdownMode = void 0;
4
+ var OfferCountdownMode;
5
+ (function (OfferCountdownMode) {
6
+ OfferCountdownMode["NONE"] = "NONE";
7
+ OfferCountdownMode["OFFER_EXPIRES_AT"] = "OFFER_EXPIRES_AT";
8
+ OfferCountdownMode["WEEKLY_SUNDAY"] = "WEEKLY_SUNDAY";
9
+ })(OfferCountdownMode || (exports.OfferCountdownMode = OfferCountdownMode = {}));
10
+ //# sourceMappingURL=offer-countdown-mode.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer-countdown-mode.enum.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/offer-countdown-mode.enum.ts"],"names":[],"mappings":";;;AAOA,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAE1B,mCAAa,CAAA;IAEb,2DAAqC,CAAA;IAKrC,qDAA+B,CAAA;AACnC,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B"}
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { OfferCtaAction } from './offer-cta-action.enum';
3
+ import { OfferCountdownMode } from './offer-countdown-mode.enum';
3
4
  export declare const OfferPresentationCtaSchema: z.ZodObject<{
4
5
  label: z.ZodString;
5
6
  action: z.ZodEnum<typeof OfferCtaAction>;
@@ -29,6 +30,9 @@ export declare const OfferPresentationSchema: z.ZodObject<{
29
30
  url: z.ZodOptional<z.ZodString>;
30
31
  }, z.core.$strip>;
31
32
  dismissible: z.ZodBoolean;
33
+ imageUrl: z.ZodOptional<z.ZodString>;
34
+ emailAsset: z.ZodOptional<z.ZodString>;
35
+ countdown: z.ZodDefault<z.ZodEnum<typeof OfferCountdownMode>>;
32
36
  followUps: z.ZodDefault<z.ZodArray<z.ZodObject<{
33
37
  delayMs: z.ZodNumber;
34
38
  title: z.ZodString;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OfferPresentationSchema = exports.OfferFollowUpSchema = exports.OFFER_MAX_FOLLOW_UPS = exports.OfferPresentationCtaSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const offer_cta_action_enum_1 = require("./offer-cta-action.enum");
6
+ const offer_countdown_mode_enum_1 = require("./offer-countdown-mode.enum");
6
7
  const OFFER_CTA_URL_ALLOWED_PROTOCOLS = new Set(['http:', 'https:']);
7
8
  function isHttpOrHttpsUrl(value) {
8
9
  try {
@@ -72,6 +73,22 @@ exports.OfferPresentationSchema = zod_1.z.object({
72
73
  .optional(),
73
74
  cta: exports.OfferPresentationCtaSchema,
74
75
  dismissible: zod_1.z.boolean({ error: 'OfferPresentation.dismissible.invalid' }),
76
+ imageUrl: zod_1.z
77
+ .string({ error: 'OfferPresentation.imageUrl.invalid' })
78
+ .url({ message: 'OfferPresentation.imageUrl.invalid' })
79
+ .max(2048, { message: 'OfferPresentation.imageUrl.max' })
80
+ .refine((value) => /^https?:\/\//.test(value), {
81
+ message: 'OfferPresentation.imageUrl.protocolNotAllowed',
82
+ })
83
+ .optional(),
84
+ emailAsset: zod_1.z
85
+ .string({ error: 'OfferPresentation.emailAsset.invalid' })
86
+ .min(1, { message: 'OfferPresentation.emailAsset.min' })
87
+ .max(64, { message: 'OfferPresentation.emailAsset.max' })
88
+ .optional(),
89
+ countdown: zod_1.z
90
+ .enum(offer_countdown_mode_enum_1.OfferCountdownMode, { error: 'OfferPresentation.countdown.invalid' })
91
+ .default(offer_countdown_mode_enum_1.OfferCountdownMode.NONE),
75
92
  followUps: zod_1.z
76
93
  .array(exports.OfferFollowUpSchema)
77
94
  .max(exports.OFFER_MAX_FOLLOW_UPS, { message: 'OfferPresentation.followUps.max' })
@@ -1 +1 @@
1
- {"version":3,"file":"offer-presentation.schema.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/offer-presentation.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAyD;AAGzD,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAOrE,SAAS,gBAAgB,CAAC,KAAa;IACnC,IAAI,CAAC;QACD,OAAO,+BAA+B,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;IACxE,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC;AAEY,QAAA,0BAA0B,GAAG,OAAC;KACtC,MAAM,CAAC;IACJ,KAAK,EAAE,OAAC;SACH,MAAM,CAAC,EAAE,KAAK,EAAE,sCAAsC,EAAE,CAAC;SACzD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;SACtD,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IAC5D,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,sCAAc,EAAE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W,EAAE,OAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,uCAAuC,EAAE,CAAC;IAM1E,SAAS,EAAE,OAAC;SACP,KAAK,CAAC,2BAAmB,CAAC;SAC1B,GAAG,CAAC,4BAAoB,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;SACzE,OAAO,CAAC,EAAE,CAAC;CACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"offer-presentation.schema.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/offer-presentation.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAyD;AACzD,2EAAiE;AAGjE,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAOrE,SAAS,gBAAgB,CAAC,KAAa;IACnC,IAAI,CAAC;QACD,OAAO,+BAA+B,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;IACxE,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC;AAEY,QAAA,0BAA0B,GAAG,OAAC;KACtC,MAAM,CAAC;IACJ,KAAK,EAAE,OAAC;SACH,MAAM,CAAC,EAAE,KAAK,EAAE,sCAAsC,EAAE,CAAC;SACzD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;SACtD,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IAC5D,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,sCAAc,EAAE,EAAE,KAAK,EAAE,sCAAsC,EAAE,CAAC;IACvF,GAAG,EAAE,OAAC;SACD,MAAM,CAAC,EAAE,KAAK,EAAE,mCAAmC,EAAE,CAAC;SACtD,GAAG,CAAC,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;SACrD,MAAM,CAAC,gBAAgB,EAAE,EA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ACtD,GAAG,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;SACxD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QAC3C,OAAO,EAAE,+CAA+C;KAC3D,CAAC;SACD,QAAQ,EAAE;IAMf,UAAU,EAAE,OAAC;SACR,MAAM,CAAC,EAAE,KAAK,EAAE,sCAAsC,EAAE,CAAC;SACzD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;SACvD,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;SACxD,QAAQ,EAAE;IAEf,SAAS,EAAE,OAAC;SACP,IAAI,CAAC,8CAAkB,EAAE,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;SAC1E,OAAO,CAAC,8CAAkB,CAAC,IAAI,CAAC;IAMrC,SAAS,EAAE,OAAC;SACP,KAAK,CAAC,2BAAmB,CAAC;SAC1B,GAAG,CAAC,4BAAoB,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;SACzE,OAAO,CAAC,EAAE,CAAC;CACnB,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export declare enum OfferTriggerType {
2
2
  USER_REGISTERED = "USER_REGISTERED",
3
+ CHECKOUT_ABANDONED = "CHECKOUT_ABANDONED",
3
4
  MANUAL = "MANUAL"
4
5
  }
@@ -4,6 +4,7 @@ exports.OfferTriggerType = void 0;
4
4
  var OfferTriggerType;
5
5
  (function (OfferTriggerType) {
6
6
  OfferTriggerType["USER_REGISTERED"] = "USER_REGISTERED";
7
+ OfferTriggerType["CHECKOUT_ABANDONED"] = "CHECKOUT_ABANDONED";
7
8
  OfferTriggerType["MANUAL"] = "MANUAL";
8
9
  })(OfferTriggerType || (exports.OfferTriggerType = OfferTriggerType = {}));
9
10
  //# sourceMappingURL=offer-trigger-type.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"offer-trigger-type.enum.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/offer-trigger-type.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,uDAAmC,CAAA;IACnC,qCAAiB,CAAA;AACrB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
1
+ {"version":3,"file":"offer-trigger-type.enum.js","sourceRoot":"","sources":["../../../../v1/offers/schemas/offer-trigger-type.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IACxB,uDAAmC,CAAA;IAQnC,6DAAyC,CAAA;IACzC,qCAAiB,CAAA;AACrB,CAAC,EAXW,gBAAgB,gCAAhB,gBAAgB,QAW3B"}
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const UnregTrackHeaderOfferRequestSchema: z.ZodObject<{
3
+ campaignKey: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export type UnregTrackHeaderOfferRequestDto = z.infer<typeof UnregTrackHeaderOfferRequestSchema>;