mailery 0.17.1 → 0.19.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.
@@ -1,6 +1,6 @@
1
1
  import { Db } from 'mongodb';
2
- import { C as ContactAdapter, a as Contact, A as AdapterFilter, M as MailProvider, S as SendArgs, b as SendResult, N as NormalizedEvent, F as FlowStep, a3 as FlowTrigger, n as FlowGoal, V as TemplateKind, T as TemplateDoc, f as FlowDoc, D as DeliveryWindow, R as RunnerContext, d as Mailer, a4 as QueueDriverConfig } from './null-DhkTG7mq.cjs';
3
- export { t as NullProvider } from './null-DhkTG7mq.cjs';
2
+ import { C as ContactAdapter, a as Contact, A as AdapterFilter, b as AdapterSort, M as MailProvider, S as SendArgs, c as SendResult, N as NormalizedEvent, F as FlowStep, a6 as FlowTrigger, q as FlowGoal, Y as TemplateKind, T as TemplateDoc, g as FlowDoc, D as DeliveryWindow, R as RunnerContext, e as Mailer, a7 as QueueDriverConfig } from './null-DxTHQSrJ.cjs';
3
+ export { w as NullProvider } from './null-DxTHQSrJ.cjs';
4
4
  import 'zod';
5
5
  import 'handlebars';
6
6
  import 'ioredis';
@@ -18,9 +18,12 @@ declare class MemoryContactAdapter implements ContactAdapter {
18
18
  getById(externalId: string): Promise<Contact | null>;
19
19
  getByEmail(email: string): Promise<Contact | null>;
20
20
  getBatch(externalIds: string[]): Promise<Map<string, Contact>>;
21
+ /** `query` honours `opts.sort` over `contact.fields` (dotted paths), like MongoContactAdapter over documents. */
22
+ readonly supportsSort: boolean;
21
23
  query(filter: AdapterFilter, opts: {
22
24
  limit: number;
23
25
  cursor?: string;
26
+ sort?: AdapterSort;
24
27
  }): Promise<{
25
28
  contacts: Contact[];
26
29
  nextCursor?: string;
package/dist/testing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Db } from 'mongodb';
2
- import { C as ContactAdapter, a as Contact, A as AdapterFilter, M as MailProvider, S as SendArgs, b as SendResult, N as NormalizedEvent, F as FlowStep, a3 as FlowTrigger, n as FlowGoal, V as TemplateKind, T as TemplateDoc, f as FlowDoc, D as DeliveryWindow, R as RunnerContext, d as Mailer, a4 as QueueDriverConfig } from './null-DhkTG7mq.js';
3
- export { t as NullProvider } from './null-DhkTG7mq.js';
2
+ import { C as ContactAdapter, a as Contact, A as AdapterFilter, b as AdapterSort, M as MailProvider, S as SendArgs, c as SendResult, N as NormalizedEvent, F as FlowStep, a6 as FlowTrigger, q as FlowGoal, Y as TemplateKind, T as TemplateDoc, g as FlowDoc, D as DeliveryWindow, R as RunnerContext, e as Mailer, a7 as QueueDriverConfig } from './null-DxTHQSrJ.js';
3
+ export { w as NullProvider } from './null-DxTHQSrJ.js';
4
4
  import 'zod';
5
5
  import 'handlebars';
6
6
  import 'ioredis';
@@ -18,9 +18,12 @@ declare class MemoryContactAdapter implements ContactAdapter {
18
18
  getById(externalId: string): Promise<Contact | null>;
19
19
  getByEmail(email: string): Promise<Contact | null>;
20
20
  getBatch(externalIds: string[]): Promise<Map<string, Contact>>;
21
+ /** `query` honours `opts.sort` over `contact.fields` (dotted paths), like MongoContactAdapter over documents. */
22
+ readonly supportsSort: boolean;
21
23
  query(filter: AdapterFilter, opts: {
22
24
  limit: number;
23
25
  cursor?: string;
26
+ sort?: AdapterSort;
24
27
  }): Promise<{
25
28
  contacts: Contact[];
26
29
  nextCursor?: string;