alepha 0.11.12 → 0.12.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,8 +1,8 @@
1
1
  import * as alepha1 from "alepha";
2
2
  import { Alepha, Descriptor, KIND, Static, StaticEncode, TObject } from "alepha";
3
3
  import * as alepha_logger0 from "alepha/logger";
4
- import * as typebox91 from "typebox";
5
- import * as alepha_orm67 from "alepha/orm";
4
+ import * as typebox0 from "typebox";
5
+ import * as alepha_orm0 from "alepha/orm";
6
6
  import * as alepha_batch0 from "alepha/batch";
7
7
  import { DateTimeProvider } from "alepha/datetime";
8
8
  import * as alepha_queue0 from "alepha/queue";
@@ -12,24 +12,24 @@ import { EmailProvider } from "alepha/email";
12
12
  declare class NotificationController {}
13
13
  //#endregion
14
14
  //#region src/api-notifications/entities/notifications.d.ts
15
- declare const notifications: alepha_orm67.EntityDescriptor<typebox91.TObject<{
16
- id: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_PRIMARY_KEY>, typeof alepha_orm67.PG_DEFAULT>;
17
- version: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TInteger, typeof alepha_orm67.PG_VERSION>, typeof alepha_orm67.PG_DEFAULT>;
18
- createdAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_CREATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
19
- updatedAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_UPDATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
20
- type: typebox91.TUnsafe<"email" | "sms">;
21
- template: typebox91.TString;
22
- category: typebox91.TOptional<typebox91.TString>;
23
- critical: typebox91.TOptional<typebox91.TBoolean>;
24
- sensitive: typebox91.TOptional<typebox91.TBoolean>;
25
- contact: typebox91.TString;
26
- variables: typebox91.TOptional<typebox91.TRecord<"^.*$", typebox91.TAny>>;
27
- scheduledAt: typebox91.TOptional<typebox91.TString>;
28
- sentAt: typebox91.TOptional<typebox91.TString>;
29
- error: typebox91.TOptional<typebox91.TObject<{
30
- at: typebox91.TString;
31
- name: typebox91.TString;
32
- message: typebox91.TString;
15
+ declare const notifications: alepha_orm0.EntityDescriptor<typebox0.TObject<{
16
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
17
+ version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
18
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
19
+ updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
20
+ type: typebox0.TUnsafe<"email" | "sms">;
21
+ template: typebox0.TString;
22
+ category: typebox0.TOptional<typebox0.TString>;
23
+ critical: typebox0.TOptional<typebox0.TBoolean>;
24
+ sensitive: typebox0.TOptional<typebox0.TBoolean>;
25
+ contact: typebox0.TString;
26
+ variables: typebox0.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
27
+ scheduledAt: typebox0.TOptional<typebox0.TString>;
28
+ sentAt: typebox0.TOptional<typebox0.TString>;
29
+ error: typebox0.TOptional<typebox0.TObject<{
30
+ at: typebox0.TString;
31
+ name: typebox0.TString;
32
+ message: typebox0.TString;
33
33
  }>>;
34
34
  }>>;
35
35
  type NotificationEntity = Static<typeof notifications.schema>;
@@ -47,24 +47,24 @@ interface SmsSendOptions {
47
47
  declare class NotificationSenderService {
48
48
  protected readonly alepha: Alepha;
49
49
  protected readonly log: alepha_logger0.Logger;
50
- protected readonly notificationRepository: alepha_orm67.Repository<typebox91.TObject<{
51
- id: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_PRIMARY_KEY>, typeof alepha_orm67.PG_DEFAULT>;
52
- version: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TInteger, typeof alepha_orm67.PG_VERSION>, typeof alepha_orm67.PG_DEFAULT>;
53
- createdAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_CREATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
54
- updatedAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_UPDATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
55
- type: typebox91.TUnsafe<"email" | "sms">;
56
- template: typebox91.TString;
57
- category: typebox91.TOptional<typebox91.TString>;
58
- critical: typebox91.TOptional<typebox91.TBoolean>;
59
- sensitive: typebox91.TOptional<typebox91.TBoolean>;
60
- contact: typebox91.TString;
61
- variables: typebox91.TOptional<typebox91.TRecord<"^.*$", typebox91.TAny>>;
62
- scheduledAt: typebox91.TOptional<typebox91.TString>;
63
- sentAt: typebox91.TOptional<typebox91.TString>;
64
- error: typebox91.TOptional<typebox91.TObject<{
65
- at: typebox91.TString;
66
- name: typebox91.TString;
67
- message: typebox91.TString;
50
+ protected readonly notificationRepository: alepha_orm0.Repository<typebox0.TObject<{
51
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
52
+ version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
53
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
54
+ updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
55
+ type: typebox0.TUnsafe<"email" | "sms">;
56
+ template: typebox0.TString;
57
+ category: typebox0.TOptional<typebox0.TString>;
58
+ critical: typebox0.TOptional<typebox0.TBoolean>;
59
+ sensitive: typebox0.TOptional<typebox0.TBoolean>;
60
+ contact: typebox0.TString;
61
+ variables: typebox0.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
62
+ scheduledAt: typebox0.TOptional<typebox0.TString>;
63
+ sentAt: typebox0.TOptional<typebox0.TString>;
64
+ error: typebox0.TOptional<typebox0.TObject<{
65
+ at: typebox0.TString;
66
+ name: typebox0.TString;
67
+ message: typebox0.TString;
68
68
  }>>;
69
69
  }>>;
70
70
  protected readonly dateTimeProvider: DateTimeProvider;
@@ -81,7 +81,7 @@ declare class NotificationSenderService {
81
81
  body: string;
82
82
  };
83
83
  protected load(notification: NotificationEntity): {
84
- template: NotificationDescriptor<typebox91.TObject<typebox91.TProperties>>;
84
+ template: NotificationDescriptor<typebox0.TObject<typebox0.TProperties>>;
85
85
  variables: Record<string, any>;
86
86
  contact: string;
87
87
  };
@@ -90,17 +90,17 @@ declare class NotificationSenderService {
90
90
  //#region src/api-notifications/queues/NotificationQueues.d.ts
91
91
  declare class NotificationQueues {
92
92
  protected readonly notificationSenderService: NotificationSenderService;
93
- readonly processNotification: alepha_queue0.QueueDescriptor<typebox91.TObject<{
94
- notificationId: typebox91.TString;
93
+ readonly processNotification: alepha_queue0.QueueDescriptor<typebox0.TObject<{
94
+ notificationId: typebox0.TString;
95
95
  }>>;
96
96
  }
97
97
  //#endregion
98
98
  //#region src/api-notifications/schemas/notificationCreateSchema.d.ts
99
- declare const notificationCreateSchema: typebox91.TObject<{
100
- type: typebox91.TUnsafe<"email" | "sms">;
101
- template: typebox91.TString;
102
- contact: typebox91.TString;
103
- variables: typebox91.TOptional<typebox91.TRecord<"^.*$", typebox91.TAny>>;
99
+ declare const notificationCreateSchema: typebox0.TObject<{
100
+ type: typebox0.TUnsafe<"email" | "sms">;
101
+ template: typebox0.TString;
102
+ contact: typebox0.TString;
103
+ variables: typebox0.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
104
104
  }>;
105
105
  type NotificationCreate = Static<typeof notificationCreateSchema>;
106
106
  //#endregion
@@ -117,72 +117,72 @@ declare class NotificationService {
117
117
  protected readonly env: {
118
118
  NOTIFICATION_IMMEDIATE?: boolean | undefined;
119
119
  };
120
- protected readonly notificationRepository: alepha_orm67.Repository<alepha1.TObject<{
121
- id: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_PRIMARY_KEY>, typeof alepha_orm67.PG_DEFAULT>;
122
- version: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TInteger, typeof alepha_orm67.PG_VERSION>, typeof alepha_orm67.PG_DEFAULT>;
123
- createdAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_CREATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
124
- updatedAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_UPDATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
125
- type: typebox91.TUnsafe<"email" | "sms">;
126
- template: typebox91.TString;
127
- category: alepha1.TOptional<typebox91.TString>;
120
+ protected readonly notificationRepository: alepha_orm0.Repository<alepha1.TObject<{
121
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
122
+ version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
123
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
124
+ updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
125
+ type: typebox0.TUnsafe<"email" | "sms">;
126
+ template: typebox0.TString;
127
+ category: alepha1.TOptional<typebox0.TString>;
128
128
  critical: alepha1.TOptional<alepha1.TBoolean>;
129
129
  sensitive: alepha1.TOptional<alepha1.TBoolean>;
130
- contact: typebox91.TString;
131
- variables: alepha1.TOptional<typebox91.TRecord<"^.*$", typebox91.TAny>>;
132
- scheduledAt: alepha1.TOptional<typebox91.TString>;
133
- sentAt: alepha1.TOptional<typebox91.TString>;
130
+ contact: typebox0.TString;
131
+ variables: alepha1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
132
+ scheduledAt: alepha1.TOptional<typebox0.TString>;
133
+ sentAt: alepha1.TOptional<typebox0.TString>;
134
134
  error: alepha1.TOptional<alepha1.TObject<{
135
- at: typebox91.TString;
136
- name: typebox91.TString;
137
- message: typebox91.TString;
135
+ at: typebox0.TString;
136
+ name: typebox0.TString;
137
+ message: typebox0.TString;
138
138
  }>>;
139
139
  }>>;
140
140
  protected readonly dateTimeProvider: DateTimeProvider;
141
141
  protected readonly notificationQueues: NotificationQueues;
142
142
  protected readonly notificationSenderService: NotificationSenderService;
143
143
  readonly notificationBatch: alepha_batch0.BatchDescriptor<alepha1.TObject<{
144
- type: typebox91.TUnsafe<"email" | "sms">;
145
- template: typebox91.TString;
146
- contact: typebox91.TString;
147
- variables: alepha1.TOptional<typebox91.TRecord<"^.*$", typebox91.TAny>>;
144
+ type: typebox0.TUnsafe<"email" | "sms">;
145
+ template: typebox0.TString;
146
+ contact: typebox0.TString;
147
+ variables: alepha1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
148
148
  }>, Promise<void>>;
149
- findNotificationById(id: string): Promise<alepha_orm67.PgStatic<alepha1.TObject<{
150
- id: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_PRIMARY_KEY>, typeof alepha_orm67.PG_DEFAULT>;
151
- version: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TInteger, typeof alepha_orm67.PG_VERSION>, typeof alepha_orm67.PG_DEFAULT>;
152
- createdAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_CREATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
153
- updatedAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_UPDATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
154
- type: typebox91.TUnsafe<"email" | "sms">;
155
- template: typebox91.TString;
156
- category: alepha1.TOptional<typebox91.TString>;
149
+ findNotificationById(id: string): Promise<alepha_orm0.PgStatic<alepha1.TObject<{
150
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
151
+ version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
152
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
153
+ updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
154
+ type: typebox0.TUnsafe<"email" | "sms">;
155
+ template: typebox0.TString;
156
+ category: alepha1.TOptional<typebox0.TString>;
157
157
  critical: alepha1.TOptional<alepha1.TBoolean>;
158
158
  sensitive: alepha1.TOptional<alepha1.TBoolean>;
159
- contact: typebox91.TString;
160
- variables: alepha1.TOptional<typebox91.TRecord<"^.*$", typebox91.TAny>>;
161
- scheduledAt: alepha1.TOptional<typebox91.TString>;
162
- sentAt: alepha1.TOptional<typebox91.TString>;
159
+ contact: typebox0.TString;
160
+ variables: alepha1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
161
+ scheduledAt: alepha1.TOptional<typebox0.TString>;
162
+ sentAt: alepha1.TOptional<typebox0.TString>;
163
163
  error: alepha1.TOptional<alepha1.TObject<{
164
- at: typebox91.TString;
165
- name: typebox91.TString;
166
- message: typebox91.TString;
164
+ at: typebox0.TString;
165
+ name: typebox0.TString;
166
+ message: typebox0.TString;
167
167
  }>>;
168
- }>, alepha_orm67.PgRelationMap<alepha1.TObject<{
169
- id: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_PRIMARY_KEY>, typeof alepha_orm67.PG_DEFAULT>;
170
- version: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TInteger, typeof alepha_orm67.PG_VERSION>, typeof alepha_orm67.PG_DEFAULT>;
171
- createdAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_CREATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
172
- updatedAt: alepha_orm67.PgAttr<alepha_orm67.PgAttr<typebox91.TString, typeof alepha_orm67.PG_UPDATED_AT>, typeof alepha_orm67.PG_DEFAULT>;
173
- type: typebox91.TUnsafe<"email" | "sms">;
174
- template: typebox91.TString;
175
- category: alepha1.TOptional<typebox91.TString>;
168
+ }>, alepha_orm0.PgRelationMap<alepha1.TObject<{
169
+ id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
170
+ version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
171
+ createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
172
+ updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
173
+ type: typebox0.TUnsafe<"email" | "sms">;
174
+ template: typebox0.TString;
175
+ category: alepha1.TOptional<typebox0.TString>;
176
176
  critical: alepha1.TOptional<alepha1.TBoolean>;
177
177
  sensitive: alepha1.TOptional<alepha1.TBoolean>;
178
- contact: typebox91.TString;
179
- variables: alepha1.TOptional<typebox91.TRecord<"^.*$", typebox91.TAny>>;
180
- scheduledAt: alepha1.TOptional<typebox91.TString>;
181
- sentAt: alepha1.TOptional<typebox91.TString>;
178
+ contact: typebox0.TString;
179
+ variables: alepha1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
180
+ scheduledAt: alepha1.TOptional<typebox0.TString>;
181
+ sentAt: alepha1.TOptional<typebox0.TString>;
182
182
  error: alepha1.TOptional<alepha1.TObject<{
183
- at: typebox91.TString;
184
- name: typebox91.TString;
185
- message: typebox91.TString;
183
+ at: typebox0.TString;
184
+ name: typebox0.TString;
185
+ message: typebox0.TString;
186
186
  }>>;
187
187
  }>>>>;
188
188
  /**
@@ -270,9 +270,9 @@ declare class MemorySmsProvider extends SmsProvider {
270
270
  }
271
271
  //#endregion
272
272
  //#region src/api-notifications/schemas/notificationContactPreferencesSchema.d.ts
273
- declare const notificationContactPreferencesSchema: typebox91.TObject<{
274
- language: typebox91.TOptional<typebox91.TString>;
275
- exclude: typebox91.TArray<typebox91.TString>;
273
+ declare const notificationContactPreferencesSchema: typebox0.TObject<{
274
+ language: typebox0.TOptional<typebox0.TString>;
275
+ exclude: typebox0.TArray<typebox0.TString>;
276
276
  }>;
277
277
  type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
278
278
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/api-notifications/controllers/NotificationController.ts","../../src/api-notifications/entities/notifications.ts","../../src/api-notifications/providers/SmsProvider.ts","../../src/api-notifications/services/NotificationSenderService.ts","../../src/api-notifications/queues/NotificationQueues.ts","../../src/api-notifications/schemas/notificationCreateSchema.ts","../../src/api-notifications/services/NotificationService.ts","../../src/api-notifications/descriptors/$notification.ts","../../src/api-notifications/jobs/NotificationJobs.ts","../../src/api-notifications/providers/MemorySmsProvider.ts","../../src/api-notifications/schemas/notificationContactPreferencesSchema.ts","../../src/api-notifications/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAAa,sBAAA;;;cCGA,eAAa,YAAA,CAAA,2BAAA;8CAiExB,SAAA,CAAA,OAAA;;;;;;;;;EDpEW,OAAA,mBAAsB;;;;ECGtB,KAAA,qBAiEX,kBAAA,CAAA;IAAA,EAAA,mBAAA;;;;;KAEU,kBAAA,GAAqB,cAAc,aAAA,CAAc;;;uBCtEvC,WAAA;yBACU,iBAAiB;;UAGhC,cAAA;;;;;;cCQJ,yBAAA;6BACc;0BAAA,cAAA,CACH;6CACmB,YAAA,CAAA,qBAAA;gDADnB,SAAA,CAAA,OAAA;;IHdX,SAAA,qBAAsB,oBAAA,oBAAA,iCAAA,CAAA,EAAA,8BAAA,CAAA;;;;ICGtB,QAAA,qBAiEX,mBAAA;IAAA,QAAA,qBAAA,oBAAA;;;;;;;;;;;;uCEpDmC;oCACH;kCACF;gCAEa,qBAAkB;0BAmC9B;;;;4BA0BE;;;;;+BA6BJ;uDAAkB,SAAA,CAAA,WAAA;;;;;;;cC1GpC,kBAAA;gDACiC;gCAIT,aAAA,CAAA,0BAAA;oBAJS,SAAA,CAAA;;;;;cCFjC,oCAAwB;QAKnC,SAAA,CAAA;;;;;KAEU,kBAAA,GAAqB,cAAc;;;cCGzC,mBAAS;4CAOb,OAAA,CAAA,QAAA;;;wBAGsB,QAAQ,cAAc;ANvB9C;cM0Ba,mBAAA;6BACc;0BAAA,cAAA,CACH;ELzBX,mBAiEX,GAAA,EAAA;IAAA,sBAAA,CAAA,EAAA,OAAA,GAAA,SAAA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AG/C,SAAA,CAAA,OAAA;;;KAEU,8BAAA,GAAiC,cACpC;;;AVRT;;;;ACGA;;;;cU+Ba,wBAAsB,OAAA,CAAA,QA0BjC,OAAA,CA1BiC,MAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/api-notifications/controllers/NotificationController.ts","../../src/api-notifications/entities/notifications.ts","../../src/api-notifications/providers/SmsProvider.ts","../../src/api-notifications/services/NotificationSenderService.ts","../../src/api-notifications/queues/NotificationQueues.ts","../../src/api-notifications/schemas/notificationCreateSchema.ts","../../src/api-notifications/services/NotificationService.ts","../../src/api-notifications/descriptors/$notification.ts","../../src/api-notifications/jobs/NotificationJobs.ts","../../src/api-notifications/providers/MemorySmsProvider.ts","../../src/api-notifications/schemas/notificationContactPreferencesSchema.ts","../../src/api-notifications/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAAa,sBAAA;;;cCGA,eAAa,WAAA,CAAA,0BAAA;4CAiExB,QAAA,CAAA,OAAA;;;;;;;;;EDpEW,OAAA,kBAAsB;;;;ECGtB,KAAA,oBAiEX,iBAAA,CAAA;IAAA,EAAA,kBAAA;;;;;KAEU,kBAAA,GAAqB,cAAc,aAAA,CAAc;;;uBCtEvC,WAAA;yBACU,iBAAiB;;UAGhC,cAAA;;;;;;cCQJ,yBAAA;6BACc;0BAAA,cAAA,CACH;6CACmB,WAAA,CAAA,oBAAA;8CADnB,QAAA,CAAA,OAAA;;IHdX,SAAA,oBAAsB,mBAAA,mBAAA,gCAAA,CAAA,EAAA,6BAAA,CAAA;;;;ICGtB,QAAA,oBAiEX,kBAAA;IAAA,QAAA,oBAAA,mBAAA;;;;;;;;;;;;uCEpDmC;oCACH;kCACF;gCAEa,qBAAkB;0BAmC9B;;;;4BA0BE;;;;;+BA6BJ;sDAAkB,QAAA,CAAA,WAAA;;;;;;;cC1GpC,kBAAA;gDACiC;gCAIT,aAAA,CAAA,yBAAA;oBAJS,QAAA,CAAA;;;;;cCFjC,mCAAwB;QAKn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M8FM,MN9FN,CM8Fa,CN9Fb,CAAA,EAAA,GAAA,MAAA,CAAA;EAAA,CAAA;EAmEd,GAAA,CAAA,EAAA;mCM8BuB,OAAO;;;;;cCpG7B,gBAAA;;;UCEI,SAAA;;;UAGP;;cAGG,iBAAA,SAA0B,WAAA;qBAClB;gBAEQ,iBAAiB;;;;cCTjC,+CAAoC;+BAG/C,QAAA,CAAA,OAAA;;;KAEU,8BAAA,GAAiC,cACpC;;;AVRT;;;;ACGA;;;;cU+Ba,wBAAsB,OAAA,CAAA,QA0BjC,OAAA,CA1BiC,MAAA"}
@@ -3,33 +3,33 @@ import { Alepha, Descriptor, KIND, Static, StaticEncode, TObject } from "alepha"
3
3
  import * as alepha_batch0 from "alepha/batch";
4
4
  import { DateTimeProvider } from "alepha/datetime";
5
5
  import * as alepha_logger0 from "alepha/logger";
6
- import * as alepha_orm0 from "alepha/orm";
6
+ import * as alepha_orm50 from "alepha/orm";
7
7
  import * as alepha_queue0 from "alepha/queue";
8
8
  import { EmailProvider } from "alepha/email";
9
- import * as typebox0 from "typebox";
9
+ import * as typebox49 from "typebox";
10
10
 
11
11
  //#region src/api-notifications/controllers/NotificationController.d.ts
12
12
  declare class NotificationController {}
13
13
  //#endregion
14
14
  //#region src/api-notifications/entities/notifications.d.ts
15
- declare const notifications: alepha_orm0.EntityDescriptor<typebox0.TObject<{
16
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
17
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
18
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
19
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
20
- type: typebox0.TUnsafe<"email" | "sms">;
21
- template: typebox0.TString;
22
- category: typebox0.TOptional<typebox0.TString>;
23
- critical: typebox0.TOptional<typebox0.TBoolean>;
24
- sensitive: typebox0.TOptional<typebox0.TBoolean>;
25
- contact: typebox0.TString;
26
- variables: typebox0.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
27
- scheduledAt: typebox0.TOptional<typebox0.TString>;
28
- sentAt: typebox0.TOptional<typebox0.TString>;
29
- error: typebox0.TOptional<typebox0.TObject<{
30
- at: typebox0.TString;
31
- name: typebox0.TString;
32
- message: typebox0.TString;
15
+ declare const notifications: alepha_orm50.EntityDescriptor<typebox49.TObject<{
16
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
17
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
18
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
19
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
20
+ type: typebox49.TUnsafe<"email" | "sms">;
21
+ template: typebox49.TString;
22
+ category: typebox49.TOptional<typebox49.TString>;
23
+ critical: typebox49.TOptional<typebox49.TBoolean>;
24
+ sensitive: typebox49.TOptional<typebox49.TBoolean>;
25
+ contact: typebox49.TString;
26
+ variables: typebox49.TOptional<typebox49.TRecord<"^.*$", typebox49.TAny>>;
27
+ scheduledAt: typebox49.TOptional<typebox49.TString>;
28
+ sentAt: typebox49.TOptional<typebox49.TString>;
29
+ error: typebox49.TOptional<typebox49.TObject<{
30
+ at: typebox49.TString;
31
+ name: typebox49.TString;
32
+ message: typebox49.TString;
33
33
  }>>;
34
34
  }>>;
35
35
  type NotificationEntity = Static<typeof notifications.schema>;
@@ -47,24 +47,24 @@ interface SmsSendOptions {
47
47
  declare class NotificationSenderService {
48
48
  protected readonly alepha: Alepha;
49
49
  protected readonly log: alepha_logger0.Logger;
50
- protected readonly notificationRepository: alepha_orm0.Repository<typebox0.TObject<{
51
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
52
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
53
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
54
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
55
- type: typebox0.TUnsafe<"email" | "sms">;
56
- template: typebox0.TString;
57
- category: typebox0.TOptional<typebox0.TString>;
58
- critical: typebox0.TOptional<typebox0.TBoolean>;
59
- sensitive: typebox0.TOptional<typebox0.TBoolean>;
60
- contact: typebox0.TString;
61
- variables: typebox0.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
62
- scheduledAt: typebox0.TOptional<typebox0.TString>;
63
- sentAt: typebox0.TOptional<typebox0.TString>;
64
- error: typebox0.TOptional<typebox0.TObject<{
65
- at: typebox0.TString;
66
- name: typebox0.TString;
67
- message: typebox0.TString;
50
+ protected readonly notificationRepository: alepha_orm50.Repository<typebox49.TObject<{
51
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
52
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
53
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
54
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
55
+ type: typebox49.TUnsafe<"email" | "sms">;
56
+ template: typebox49.TString;
57
+ category: typebox49.TOptional<typebox49.TString>;
58
+ critical: typebox49.TOptional<typebox49.TBoolean>;
59
+ sensitive: typebox49.TOptional<typebox49.TBoolean>;
60
+ contact: typebox49.TString;
61
+ variables: typebox49.TOptional<typebox49.TRecord<"^.*$", typebox49.TAny>>;
62
+ scheduledAt: typebox49.TOptional<typebox49.TString>;
63
+ sentAt: typebox49.TOptional<typebox49.TString>;
64
+ error: typebox49.TOptional<typebox49.TObject<{
65
+ at: typebox49.TString;
66
+ name: typebox49.TString;
67
+ message: typebox49.TString;
68
68
  }>>;
69
69
  }>>;
70
70
  protected readonly dateTimeProvider: DateTimeProvider;
@@ -81,7 +81,7 @@ declare class NotificationSenderService {
81
81
  body: string;
82
82
  };
83
83
  protected load(notification: NotificationEntity): {
84
- template: NotificationDescriptor<typebox0.TObject<typebox0.TProperties>>;
84
+ template: NotificationDescriptor<typebox49.TObject<typebox49.TProperties>>;
85
85
  variables: Record<string, any>;
86
86
  contact: string;
87
87
  };
@@ -90,17 +90,17 @@ declare class NotificationSenderService {
90
90
  //#region src/api-notifications/queues/NotificationQueues.d.ts
91
91
  declare class NotificationQueues {
92
92
  protected readonly notificationSenderService: NotificationSenderService;
93
- readonly processNotification: alepha_queue0.QueueDescriptor<typebox0.TObject<{
94
- notificationId: typebox0.TString;
93
+ readonly processNotification: alepha_queue0.QueueDescriptor<typebox49.TObject<{
94
+ notificationId: typebox49.TString;
95
95
  }>>;
96
96
  }
97
97
  //#endregion
98
98
  //#region src/api-notifications/schemas/notificationCreateSchema.d.ts
99
- declare const notificationCreateSchema: typebox0.TObject<{
100
- type: typebox0.TUnsafe<"email" | "sms">;
101
- template: typebox0.TString;
102
- contact: typebox0.TString;
103
- variables: typebox0.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
99
+ declare const notificationCreateSchema: typebox49.TObject<{
100
+ type: typebox49.TUnsafe<"email" | "sms">;
101
+ template: typebox49.TString;
102
+ contact: typebox49.TString;
103
+ variables: typebox49.TOptional<typebox49.TRecord<"^.*$", typebox49.TAny>>;
104
104
  }>;
105
105
  type NotificationCreate = Static<typeof notificationCreateSchema>;
106
106
  //#endregion
@@ -117,72 +117,72 @@ declare class NotificationService {
117
117
  protected readonly env: {
118
118
  NOTIFICATION_IMMEDIATE?: boolean | undefined;
119
119
  };
120
- protected readonly notificationRepository: alepha_orm0.Repository<alepha1.TObject<{
121
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
122
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
123
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
124
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
125
- type: typebox0.TUnsafe<"email" | "sms">;
126
- template: typebox0.TString;
127
- category: alepha1.TOptional<typebox0.TString>;
120
+ protected readonly notificationRepository: alepha_orm50.Repository<alepha1.TObject<{
121
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
122
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
123
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
124
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
125
+ type: typebox49.TUnsafe<"email" | "sms">;
126
+ template: typebox49.TString;
127
+ category: alepha1.TOptional<typebox49.TString>;
128
128
  critical: alepha1.TOptional<alepha1.TBoolean>;
129
129
  sensitive: alepha1.TOptional<alepha1.TBoolean>;
130
- contact: typebox0.TString;
131
- variables: alepha1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
132
- scheduledAt: alepha1.TOptional<typebox0.TString>;
133
- sentAt: alepha1.TOptional<typebox0.TString>;
130
+ contact: typebox49.TString;
131
+ variables: alepha1.TOptional<typebox49.TRecord<"^.*$", typebox49.TAny>>;
132
+ scheduledAt: alepha1.TOptional<typebox49.TString>;
133
+ sentAt: alepha1.TOptional<typebox49.TString>;
134
134
  error: alepha1.TOptional<alepha1.TObject<{
135
- at: typebox0.TString;
136
- name: typebox0.TString;
137
- message: typebox0.TString;
135
+ at: typebox49.TString;
136
+ name: typebox49.TString;
137
+ message: typebox49.TString;
138
138
  }>>;
139
139
  }>>;
140
140
  protected readonly dateTimeProvider: DateTimeProvider;
141
141
  protected readonly notificationQueues: NotificationQueues;
142
142
  protected readonly notificationSenderService: NotificationSenderService;
143
143
  readonly notificationBatch: alepha_batch0.BatchDescriptor<alepha1.TObject<{
144
- type: typebox0.TUnsafe<"email" | "sms">;
145
- template: typebox0.TString;
146
- contact: typebox0.TString;
147
- variables: alepha1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
144
+ type: typebox49.TUnsafe<"email" | "sms">;
145
+ template: typebox49.TString;
146
+ contact: typebox49.TString;
147
+ variables: alepha1.TOptional<typebox49.TRecord<"^.*$", typebox49.TAny>>;
148
148
  }>, Promise<void>>;
149
- findNotificationById(id: string): Promise<alepha_orm0.PgStatic<alepha1.TObject<{
150
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
151
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
152
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
153
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
154
- type: typebox0.TUnsafe<"email" | "sms">;
155
- template: typebox0.TString;
156
- category: alepha1.TOptional<typebox0.TString>;
149
+ findNotificationById(id: string): Promise<alepha_orm50.PgStatic<alepha1.TObject<{
150
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
151
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
152
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
153
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
154
+ type: typebox49.TUnsafe<"email" | "sms">;
155
+ template: typebox49.TString;
156
+ category: alepha1.TOptional<typebox49.TString>;
157
157
  critical: alepha1.TOptional<alepha1.TBoolean>;
158
158
  sensitive: alepha1.TOptional<alepha1.TBoolean>;
159
- contact: typebox0.TString;
160
- variables: alepha1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
161
- scheduledAt: alepha1.TOptional<typebox0.TString>;
162
- sentAt: alepha1.TOptional<typebox0.TString>;
159
+ contact: typebox49.TString;
160
+ variables: alepha1.TOptional<typebox49.TRecord<"^.*$", typebox49.TAny>>;
161
+ scheduledAt: alepha1.TOptional<typebox49.TString>;
162
+ sentAt: alepha1.TOptional<typebox49.TString>;
163
163
  error: alepha1.TOptional<alepha1.TObject<{
164
- at: typebox0.TString;
165
- name: typebox0.TString;
166
- message: typebox0.TString;
164
+ at: typebox49.TString;
165
+ name: typebox49.TString;
166
+ message: typebox49.TString;
167
167
  }>>;
168
- }>, alepha_orm0.PgRelationMap<alepha1.TObject<{
169
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
170
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
171
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
172
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<typebox0.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
173
- type: typebox0.TUnsafe<"email" | "sms">;
174
- template: typebox0.TString;
175
- category: alepha1.TOptional<typebox0.TString>;
168
+ }>, alepha_orm50.PgRelationMap<alepha1.TObject<{
169
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
170
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
171
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
172
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<typebox49.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
173
+ type: typebox49.TUnsafe<"email" | "sms">;
174
+ template: typebox49.TString;
175
+ category: alepha1.TOptional<typebox49.TString>;
176
176
  critical: alepha1.TOptional<alepha1.TBoolean>;
177
177
  sensitive: alepha1.TOptional<alepha1.TBoolean>;
178
- contact: typebox0.TString;
179
- variables: alepha1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
180
- scheduledAt: alepha1.TOptional<typebox0.TString>;
181
- sentAt: alepha1.TOptional<typebox0.TString>;
178
+ contact: typebox49.TString;
179
+ variables: alepha1.TOptional<typebox49.TRecord<"^.*$", typebox49.TAny>>;
180
+ scheduledAt: alepha1.TOptional<typebox49.TString>;
181
+ sentAt: alepha1.TOptional<typebox49.TString>;
182
182
  error: alepha1.TOptional<alepha1.TObject<{
183
- at: typebox0.TString;
184
- name: typebox0.TString;
185
- message: typebox0.TString;
183
+ at: typebox49.TString;
184
+ name: typebox49.TString;
185
+ message: typebox49.TString;
186
186
  }>>;
187
187
  }>>>>;
188
188
  /**
@@ -270,9 +270,9 @@ declare class MemorySmsProvider extends SmsProvider {
270
270
  }
271
271
  //#endregion
272
272
  //#region src/api-notifications/schemas/notificationContactPreferencesSchema.d.ts
273
- declare const notificationContactPreferencesSchema: typebox0.TObject<{
274
- language: typebox0.TOptional<typebox0.TString>;
275
- exclude: typebox0.TArray<typebox0.TString>;
273
+ declare const notificationContactPreferencesSchema: typebox49.TObject<{
274
+ language: typebox49.TOptional<typebox49.TString>;
275
+ exclude: typebox49.TArray<typebox49.TString>;
276
276
  }>;
277
277
  type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
278
278
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/api-notifications/controllers/NotificationController.ts","../../src/api-notifications/entities/notifications.ts","../../src/api-notifications/providers/SmsProvider.ts","../../src/api-notifications/services/NotificationSenderService.ts","../../src/api-notifications/queues/NotificationQueues.ts","../../src/api-notifications/schemas/notificationCreateSchema.ts","../../src/api-notifications/services/NotificationService.ts","../../src/api-notifications/descriptors/$notification.ts","../../src/api-notifications/jobs/NotificationJobs.ts","../../src/api-notifications/providers/MemorySmsProvider.ts","../../src/api-notifications/schemas/notificationContactPreferencesSchema.ts","../../src/api-notifications/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAAa,sBAAA;;;cCGA,eAAa,WAAA,CAAA,0BAAA;4CAiExB,QAAA,CAAA,OAAA;;;;;;;;;EDpEW,OAAA,kBAAsB;;;;ECGtB,KAAA,oBAiEX,iBAAA,CAAA;IAAA,EAAA,kBAAA;;;;;KAEU,kBAAA,GAAqB,cAAc,aAAA,CAAc;;;uBCtEvC,WAAA;yBACU,iBAAiB;;UAGhC,cAAA;;;;;;cCQJ,yBAAA;6BACc;0BAAA,cAAA,CACH;6CACmB,WAAA,CAAA,oBAAA;8CADnB,QAAA,CAAA,OAAA;;IHdX,SAAA,oBAAsB,mBAAA,mBAAA,gCAAA,CAAA,EAAA,6BAAA,CAAA;;;;ICGtB,QAAA,oBAiEX,kBAAA;IAAA,QAAA,oBAAA,mBAAA;;;;;;;;;;;;uCEpDmC;oCACH;kCACF;gCAEa,qBAAkB;0BAmC9B;;;;4BA0BE;;;;;+BA6BJ;sDAAkB,QAAA,CAAA,WAAA;;;;;;;cC1GpC,kBAAA;gDACiC;gCAIT,aAAA,CAAA,yBAAA;oBAJS,QAAA,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MAAA,GAAA,CAAA,CAAA,SAAA,EM8FM,MN9FN,CM8Fa,CN9Fb,CAAA,EAAA,GAAA,MAAA,CAAA;EAAA,CAAA;EAmEd,GAAA,CAAA,EAAA;mCM8BuB,OAAO;;;;;cCpG7B,gBAAA;;;UCEI,SAAA;;;UAGP;;cAGG,iBAAA,SAA0B,WAAA;qBAClB;gBAEQ,iBAAiB;;;;cCTjC,+CAAoC;+BAG/C,QAAA,CAAA,OAAA;;;KAEU,8BAAA,GAAiC,cACpC;;;AVRT;;;;ACGA;;;;cU+Ba,wBAAsB,OAAA,CAAA,QA0BjC,OAAA,CA1BiC,MAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/api-notifications/controllers/NotificationController.ts","../../src/api-notifications/entities/notifications.ts","../../src/api-notifications/providers/SmsProvider.ts","../../src/api-notifications/services/NotificationSenderService.ts","../../src/api-notifications/queues/NotificationQueues.ts","../../src/api-notifications/schemas/notificationCreateSchema.ts","../../src/api-notifications/services/NotificationService.ts","../../src/api-notifications/descriptors/$notification.ts","../../src/api-notifications/jobs/NotificationJobs.ts","../../src/api-notifications/providers/MemorySmsProvider.ts","../../src/api-notifications/schemas/notificationContactPreferencesSchema.ts","../../src/api-notifications/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAAa,sBAAA;;;cCGA,eAAa,YAAA,CAAA,2BAAA;8CAiExB,SAAA,CAAA,OAAA;;;;;;;;;EDpEW,OAAA,mBAAsB;;;;ECGtB,KAAA,qBAiEX,kBAAA,CAAA;IAAA,EAAA,mBAAA;;;;;KAEU,kBAAA,GAAqB,cAAc,aAAA,CAAc;;;uBCtEvC,WAAA;yBACU,iBAAiB;;UAGhC,cAAA;;;;;;cCQJ,yBAAA;6BACc;0BAAA,cAAA,CACH;6CACmB,YAAA,CAAA,qBAAA;gDADnB,SAAA,CAAA,OAAA;;IHdX,SAAA,qBAAsB,oBAAA,oBAAA,iCAAA,CAAA,EAAA,8BAAA,CAAA;;;;ICGtB,Q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