@atlantjs/backend 11.0.1 → 11.0.3

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.
@@ -4,6 +4,7 @@ export declare const APP_PORT: number;
4
4
  export declare const LOAD_MODULES: string[];
5
5
  export declare const CORS_ALLOWED_ORIGINS: string;
6
6
  export declare const ENVIRONMENT: EnvironmentPoint;
7
+ export declare const IS_EMAIL_DELIVERY_ENABLED: boolean;
7
8
  export declare const EMAIL_DELIVERY_SERVICE_PROVIDER: EmailDeliveryProviderPoint;
8
9
  export declare const EMAIL_DELIVERY_FALLBACK_PROVIDER: EmailDeliveryProviderPoint;
9
10
  export declare const RESEND_API_KEY: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AWS_REGION = exports.RESEND_API_KEY = exports.EMAIL_DELIVERY_FALLBACK_PROVIDER = exports.EMAIL_DELIVERY_SERVICE_PROVIDER = exports.ENVIRONMENT = exports.CORS_ALLOWED_ORIGINS = exports.LOAD_MODULES = exports.APP_PORT = void 0;
3
+ exports.AWS_REGION = exports.RESEND_API_KEY = exports.EMAIL_DELIVERY_FALLBACK_PROVIDER = exports.EMAIL_DELIVERY_SERVICE_PROVIDER = exports.IS_EMAIL_DELIVERY_ENABLED = exports.ENVIRONMENT = exports.CORS_ALLOWED_ORIGINS = exports.LOAD_MODULES = exports.APP_PORT = void 0;
4
4
  const arch_1 = require("@atlantjs/arch");
5
5
  const parchment_1 = require("@atlantjs/parchment");
6
6
  const email_delivery_provider_point_1 = require("../../../email-delivery/points/email-delivery-provider.point");
@@ -35,10 +35,16 @@ exports.ENVIRONMENT = parchment_1.Parchment.verse({
35
35
  ],
36
36
  description: "The current environment in which the application is running",
37
37
  });
38
+ exports.IS_EMAIL_DELIVERY_ENABLED = parchment_1.Parchment.verse({
39
+ name: "IS_EMAIL_DELIVERY_ENABLED",
40
+ type: "boolean",
41
+ isRequired: true,
42
+ description: "Indicates whether email delivery is enabled",
43
+ });
38
44
  exports.EMAIL_DELIVERY_SERVICE_PROVIDER = parchment_1.Parchment.verse({
39
45
  name: "EMAIL_DELIVERY_SERVICE_PROVIDER",
40
46
  type: "enum",
41
- isRequired: true,
47
+ isRequired: exports.IS_EMAIL_DELIVERY_ENABLED,
42
48
  values: [
43
49
  email_delivery_provider_point_1.EmailDeliveryProviderPoint.amazonSES,
44
50
  email_delivery_provider_point_1.EmailDeliveryProviderPoint.resend,
@@ -48,7 +54,7 @@ exports.EMAIL_DELIVERY_SERVICE_PROVIDER = parchment_1.Parchment.verse({
48
54
  exports.EMAIL_DELIVERY_FALLBACK_PROVIDER = parchment_1.Parchment.verse({
49
55
  name: "EMAIL_DELIVERY_FALLBACK_PROVIDER",
50
56
  type: "enum",
51
- isRequired: true,
57
+ isRequired: exports.IS_EMAIL_DELIVERY_ENABLED,
52
58
  values: [
53
59
  email_delivery_provider_point_1.EmailDeliveryProviderPoint.amazonSES,
54
60
  email_delivery_provider_point_1.EmailDeliveryProviderPoint.resend,
@@ -58,12 +64,13 @@ exports.EMAIL_DELIVERY_FALLBACK_PROVIDER = parchment_1.Parchment.verse({
58
64
  exports.RESEND_API_KEY = parchment_1.Parchment.verse({
59
65
  name: "RESEND_API_KEY",
60
66
  type: "text",
61
- isRequired: true,
67
+ isRequired: exports.IS_EMAIL_DELIVERY_ENABLED,
68
+ default: "",
62
69
  description: "API key used to authenticate requests to the Resend email delivery service",
63
70
  });
64
71
  exports.AWS_REGION = parchment_1.Parchment.verse({
65
72
  name: "AWS_REGION",
66
73
  type: "text",
67
- isRequired: true,
74
+ isRequired: exports.IS_EMAIL_DELIVERY_ENABLED,
68
75
  description: "Specifies the AWS region to be used by the application",
69
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlantjs/backend",
3
- "version": "11.0.1",
3
+ "version": "11.0.3",
4
4
  "main": "index.js",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {