@bernierllc/email-test-orchestrator 0.4.0 → 0.6.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.
@@ -0,0 +1,12 @@
1
+ export type EmailTestOrchestratorErrorCode = 'EMAIL_TEST_ORCHESTRATOR_ERROR' | 'INVALID_INPUT' | 'OPERATION_FAILED';
2
+ export interface EmailTestOrchestratorErrorOptions {
3
+ cause?: Error;
4
+ code?: EmailTestOrchestratorErrorCode;
5
+ context?: Record<string, unknown>;
6
+ }
7
+ export declare class EmailTestOrchestratorError extends Error {
8
+ readonly code: EmailTestOrchestratorErrorCode;
9
+ readonly context?: Record<string, unknown>;
10
+ constructor(message: string, options?: EmailTestOrchestratorErrorOptions);
11
+ }
12
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,8BAA8B,GACtC,+BAA+B,GAC/B,eAAe,GACf,kBAAkB,CAAC;AAEvB,MAAM,WAAW,iCAAiC;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,8BAA8B,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,qBAAa,0BAA2B,SAAQ,KAAK;IACnD,QAAQ,CAAC,IAAI,EAAE,8BAA8B,CAAC;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAE/B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iCAAiC;CASzE"}
package/dist/errors.js ADDED
@@ -0,0 +1,21 @@
1
+ /*
2
+ Copyright (c) 2025 Bernier LLC
3
+
4
+ This file is licensed to the client under a limited-use license.
5
+ The client may use and modify this code *only within the scope of the project it was delivered for*.
6
+ Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
7
+ */
8
+ export class EmailTestOrchestratorError extends Error {
9
+ code;
10
+ context;
11
+ constructor(message, options) {
12
+ super(message, options?.cause ? { cause: options.cause } : undefined);
13
+ this.name = 'EmailTestOrchestratorError';
14
+ this.code = options?.code ?? 'EMAIL_TEST_ORCHESTRATOR_ERROR';
15
+ if (options?.context !== undefined) {
16
+ this.context = options.context;
17
+ }
18
+ Error.captureStackTrace?.(this, this.constructor);
19
+ }
20
+ }
21
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAaF,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IAC1C,IAAI,CAAiC;IACrC,OAAO,CAA2B;IAE3C,YAAY,OAAe,EAAE,OAA2C;QACtE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,IAAI,IAAI,+BAA+B,CAAC;QAC7D,IAAI,OAAO,EAAE,OAAO,KAAK,SAAS,EAAE,CAAC;YACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QACjC,CAAC;QACD,KAAK,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { EmailTestOrchestrator } from './EmailTestOrchestrator.js';
2
+ export { EmailTestOrchestratorError, type EmailTestOrchestratorErrorCode, type EmailTestOrchestratorErrorOptions } from './errors.js';
2
3
  export type { Logger, OrchestratorConfig, EmailTestSpec, EmailTestResult, EmailTestSuiteResult, TestSetupConfig, TestContext, CapturedEmail, SendEmailOptions, WaitForEmailsOptions, ValidateEmailsOptions, ValidationResult, TestIssue, TestReport, EmailSender, EmailRecipient, EmailTemplate, EmailExpectation, ExpectationCriteria, ValidatorType, ReportFormat, } from './types.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EACV,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,KAAK,8BAA8B,EAAE,KAAK,iCAAiC,EAAE,MAAM,aAAa,CAAC;AACtI,YAAY,EACV,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -6,4 +6,5 @@ The client may use and modify this code *only within the scope of the project it
6
6
  Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
7
7
  */
8
8
  export { EmailTestOrchestrator } from './EmailTestOrchestrator.js';
9
+ export { EmailTestOrchestratorError } from './errors.js';
9
10
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAEF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAEF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAA+E,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@bernierllc/email-test-orchestrator",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Service package that orchestrates comprehensive email testing workflows",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [
9
- "dist"
9
+ "dist/**/*",
10
+ "README.md"
10
11
  ],
11
12
  "keywords": [
12
13
  "email",
@@ -19,13 +20,13 @@
19
20
  "author": "Bernier LLC",
20
21
  "license": "SEE LICENSE IN LICENSE",
21
22
  "dependencies": {
23
+ "@bernierllc/email-capture": "1.2.0",
22
24
  "@bernierllc/email-parser": "0.6.0",
23
25
  "@bernierllc/email-sender": "5.4.0",
24
- "@bernierllc/email-test-assertions": "1.3.0",
25
- "@bernierllc/logger": "1.6.0",
26
+ "@bernierllc/email-test-assertions": "1.5.0",
26
27
  "@bernierllc/email-validator": "3.3.0",
27
28
  "@bernierllc/mock-smtp-server": "1.3.0",
28
- "@bernierllc/email-capture": "1.2.0",
29
+ "@bernierllc/logger": "1.6.0",
29
30
  "@bernierllc/retry-policy": "0.6.0",
30
31
  "@bernierllc/template-engine": "0.6.0"
31
32
  },