@the-inkwell/shared 0.2.117 → 0.2.118

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,264 +1,27 @@
1
1
  import { z } from 'zod/v4';
2
2
  import { type ListResponse } from '../../../utils';
3
- export declare const AdminCampaignCreateSchema: import("drizzle-zod").BuildSchema<"insert", {
4
- id: import("drizzle-orm/pg-core").PgColumn<{
5
- name: "id";
6
- tableName: "campaigns";
7
- dataType: "string";
8
- columnType: "PgUUID";
9
- data: string;
10
- driverParam: string;
11
- notNull: true;
12
- hasDefault: true;
13
- isPrimaryKey: true;
14
- isAutoincrement: false;
15
- hasRuntimeDefault: false;
16
- enumValues: undefined;
17
- baseColumn: never;
18
- identity: undefined;
19
- generated: undefined;
20
- }, {}, {}>;
21
- idNano: import("drizzle-orm/pg-core").PgColumn<{
22
- name: "idNano";
23
- tableName: "campaigns";
24
- dataType: "string";
25
- columnType: "PgText";
26
- data: string;
27
- driverParam: string;
28
- notNull: true;
29
- hasDefault: false;
30
- isPrimaryKey: false;
31
- isAutoincrement: false;
32
- hasRuntimeDefault: false;
33
- enumValues: [string, ...string[]];
34
- baseColumn: never;
35
- identity: undefined;
36
- generated: undefined;
37
- }, {}, {}>;
38
- name: import("drizzle-orm/pg-core").PgColumn<{
39
- name: "name";
40
- tableName: "campaigns";
41
- dataType: "string";
42
- columnType: "PgText";
43
- data: string;
44
- driverParam: string;
45
- notNull: true;
46
- hasDefault: false;
47
- isPrimaryKey: false;
48
- isAutoincrement: false;
49
- hasRuntimeDefault: false;
50
- enumValues: [string, ...string[]];
51
- baseColumn: never;
52
- identity: undefined;
53
- generated: undefined;
54
- }, {}, {}>;
55
- senderId: import("drizzle-orm/pg-core").PgColumn<{
56
- name: "senderId";
57
- tableName: "campaigns";
58
- dataType: "string";
59
- columnType: "PgUUID";
60
- data: string;
61
- driverParam: string;
62
- notNull: false;
63
- hasDefault: false;
64
- isPrimaryKey: false;
65
- isAutoincrement: false;
66
- hasRuntimeDefault: false;
67
- enumValues: undefined;
68
- baseColumn: never;
69
- identity: undefined;
70
- generated: undefined;
71
- }, {}, {}>;
72
- messageChannel: import("drizzle-orm/pg-core").PgColumn<{
73
- name: "messageChannel";
74
- tableName: "campaigns";
75
- dataType: "string";
76
- columnType: "PgEnumColumn";
77
- data: "SMS" | "EMAIL";
78
- driverParam: string;
79
- notNull: true;
80
- hasDefault: false;
81
- isPrimaryKey: false;
82
- isAutoincrement: false;
83
- hasRuntimeDefault: false;
84
- enumValues: ["SMS" | "EMAIL"];
85
- baseColumn: never;
86
- identity: undefined;
87
- generated: undefined;
88
- }, {}, {}>;
89
- content: import("drizzle-orm/pg-core").PgColumn<{
90
- name: "content";
91
- tableName: "campaigns";
92
- dataType: "json";
93
- columnType: "PgJsonb";
94
- data: any;
95
- driverParam: unknown;
96
- notNull: false;
97
- hasDefault: false;
98
- isPrimaryKey: false;
99
- isAutoincrement: false;
100
- hasRuntimeDefault: false;
101
- enumValues: undefined;
102
- baseColumn: never;
103
- identity: undefined;
104
- generated: undefined;
105
- }, {}, {
106
- $type: any;
3
+ export declare const AdminCampaignCreateSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ id: z.ZodOptional<z.ZodUUID>;
6
+ positionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
7
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
+ createdAt: z.ZodOptional<z.ZodDate>;
9
+ updatedAt: z.ZodOptional<z.ZodDate>;
10
+ senderId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
11
+ messageChannel: z.ZodEnum<{
12
+ SMS: "SMS";
13
+ EMAIL: "EMAIL";
107
14
  }>;
108
- listViewId: import("drizzle-orm/pg-core").PgColumn<{
109
- name: "listViewId";
110
- tableName: "campaigns";
111
- dataType: "string";
112
- columnType: "PgUUID";
113
- data: string;
114
- driverParam: string;
115
- notNull: false;
116
- hasDefault: false;
117
- isPrimaryKey: false;
118
- isAutoincrement: false;
119
- hasRuntimeDefault: false;
120
- enumValues: undefined;
121
- baseColumn: never;
122
- identity: undefined;
123
- generated: undefined;
124
- }, {}, {}>;
125
- externalId: import("drizzle-orm/pg-core").PgColumn<{
126
- name: "externalId";
127
- tableName: "campaigns";
128
- dataType: "string";
129
- columnType: "PgText";
130
- data: string;
131
- driverParam: string;
132
- notNull: false;
133
- hasDefault: false;
134
- isPrimaryKey: false;
135
- isAutoincrement: false;
136
- hasRuntimeDefault: false;
137
- enumValues: [string, ...string[]];
138
- baseColumn: never;
139
- identity: undefined;
140
- generated: undefined;
141
- }, {}, {}>;
142
- positionId: import("drizzle-orm/pg-core").PgColumn<{
143
- name: "positionId";
144
- tableName: "campaigns";
145
- dataType: "string";
146
- columnType: "PgUUID";
147
- data: string;
148
- driverParam: string;
149
- notNull: false;
150
- hasDefault: false;
151
- isPrimaryKey: false;
152
- isAutoincrement: false;
153
- hasRuntimeDefault: false;
154
- enumValues: undefined;
155
- baseColumn: never;
156
- identity: undefined;
157
- generated: undefined;
158
- }, {}, {}>;
159
- sentRecipientCount: import("drizzle-orm/pg-core").PgColumn<{
160
- name: "sentRecipientCount";
161
- tableName: "campaigns";
162
- dataType: "number";
163
- columnType: "PgInteger";
164
- data: number;
165
- driverParam: string | number;
166
- notNull: false;
167
- hasDefault: false;
168
- isPrimaryKey: false;
169
- isAutoincrement: false;
170
- hasRuntimeDefault: false;
171
- enumValues: undefined;
172
- baseColumn: never;
173
- identity: undefined;
174
- generated: undefined;
175
- }, {}, {}>;
176
- sentOptOutCount: import("drizzle-orm/pg-core").PgColumn<{
177
- name: "sentOptOutCount";
178
- tableName: "campaigns";
179
- dataType: "number";
180
- columnType: "PgInteger";
181
- data: number;
182
- driverParam: string | number;
183
- notNull: false;
184
- hasDefault: false;
185
- isPrimaryKey: false;
186
- isAutoincrement: false;
187
- hasRuntimeDefault: false;
188
- enumValues: undefined;
189
- baseColumn: never;
190
- identity: undefined;
191
- generated: undefined;
192
- }, {}, {}>;
193
- sentAt: import("drizzle-orm/pg-core").PgColumn<{
194
- name: "sentAt";
195
- tableName: "campaigns";
196
- dataType: "date";
197
- columnType: "PgTimestamp";
198
- data: Date;
199
- driverParam: string;
200
- notNull: false;
201
- hasDefault: false;
202
- isPrimaryKey: false;
203
- isAutoincrement: false;
204
- hasRuntimeDefault: false;
205
- enumValues: undefined;
206
- baseColumn: never;
207
- identity: undefined;
208
- generated: undefined;
209
- }, {}, {}>;
210
- deletedAt: import("drizzle-orm/pg-core").PgColumn<{
211
- name: "deletedAt";
212
- tableName: "campaigns";
213
- dataType: "date";
214
- columnType: "PgTimestamp";
215
- data: Date;
216
- driverParam: string;
217
- notNull: false;
218
- hasDefault: false;
219
- isPrimaryKey: false;
220
- isAutoincrement: false;
221
- hasRuntimeDefault: false;
222
- enumValues: undefined;
223
- baseColumn: never;
224
- identity: undefined;
225
- generated: undefined;
226
- }, {}, {}>;
227
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
228
- name: "createdAt";
229
- tableName: "campaigns";
230
- dataType: "date";
231
- columnType: "PgTimestamp";
232
- data: Date;
233
- driverParam: string;
234
- notNull: true;
235
- hasDefault: true;
236
- isPrimaryKey: false;
237
- isAutoincrement: false;
238
- hasRuntimeDefault: false;
239
- enumValues: undefined;
240
- baseColumn: never;
241
- identity: undefined;
242
- generated: undefined;
243
- }, {}, {}>;
244
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
245
- name: "updatedAt";
246
- tableName: "campaigns";
247
- dataType: "date";
248
- columnType: "PgTimestamp";
249
- data: Date;
250
- driverParam: string;
251
- notNull: true;
252
- hasDefault: true;
253
- isPrimaryKey: false;
254
- isAutoincrement: false;
255
- hasRuntimeDefault: false;
256
- enumValues: undefined;
257
- baseColumn: never;
258
- identity: undefined;
259
- generated: undefined;
260
- }, {}, {}>;
261
- }, undefined, undefined>;
15
+ content: z.ZodOptional<z.ZodNullable<z.ZodDate | z.ZodType<Buffer<ArrayBufferLike>, unknown> | z.ZodType<any, any> | z.ZodType<any, unknown>>>;
16
+ listViewId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
17
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ sentRecipientCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
19
+ sentOptOutCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
20
+ sentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
21
+ }, {
22
+ out: {};
23
+ in: {};
24
+ }>;
262
25
  export declare const AdminCampaignSelectSchema: z.ZodObject<{
263
26
  id: z.ZodUUID;
264
27
  idNano: z.ZodString;
@@ -27,7 +27,9 @@ const ContentSchema = v4_1.z
27
27
  })
28
28
  .nullable()
29
29
  .optional();
30
- exports.AdminCampaignCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.campaign);
30
+ exports.AdminCampaignCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.campaign).omit({
31
+ idNano: true
32
+ });
31
33
  exports.AdminCampaignSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.campaign, {
32
34
  content: ContentSchema
33
35
  }).extend({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/campaigns/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,+BAA0B;AAC1B,0CAAmE;AACnE,qCAA+C;AAE/C,eAAe;AAEf,MAAM,oBAAoB,GAAG,MAAC,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,MAAC,CAAC,MAAM,CAAC;QACb,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACvC,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,MAAC,CAAC,MAAM,CAAC;IA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;QACN,MAAM,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,OAAO,EAAE;SACT,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,+BAA+B,GAAG,iCAAyB,CAAA;AAC3D,QAAA,+BAA+B,GAAG,iCAAyB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { z } from 'zod/v4'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { campaign, listView } from '../../core'\n\n//// validators\n\nconst PositionsEmailSchema = z.object({\n subject: z.string(),\n body: z.object({\n intro: z.string().nullable().optional(),\n outro: z.string().nullable().optional()\n })\n})\n\nconst PositionsSMSSchema = z.object({\n body: z.object({\n text: z.string()\n })\n})\n\nconst NewsletterEmailSchema = z.object({})\n\nconst ContentSchema = z\n .object({\n newsletterEmail: NewsletterEmailSchema.optional(),\n positionsEmail: PositionsEmailSchema.optional(),\n positionsSMS: PositionsSMSSchema.optional()\n })\n .nullable()\n .optional()\n\nexport const AdminCampaignCreateSchema = createInsertSchema(campaign)\nexport const AdminCampaignSelectSchema = createSelectSchema(campaign, {\n content: ContentSchema\n}).extend({\n listView: createSelectSchema(listView)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n _messagesCount: z.number(),\n _referralsCount: z.number()\n})\n\nexport const AdminCampaignUpdateSchema = createUpdateSchema(campaign, {\n content: ContentSchema\n})\n\nexport const AdminCampaignParamsSchema = AdminCampaignSelectSchema.pick({\n id: true\n})\n\nexport const AdminCampaignByExternalIdParamsSchema =\n AdminCampaignSelectSchema.pick({\n externalId: true\n })\n\nexport const AdminCampaignListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n isSent: z.boolean().optional()\n })\n .partial()\n .optional()\n})\nexport const AdminCampaignUpdateParamsSchema = AdminCampaignParamsSchema\nexport const AdminCampaignDeleteParamsSchema = AdminCampaignParamsSchema\n\n//// types\n\ntype AdminCampaign = z.infer<typeof AdminCampaignSelectSchema>\n\n// detail\nexport type AdminCampaignParams = z.infer<typeof AdminCampaignParamsSchema>\nexport type AdminCampaignByExternalIdParams = z.infer<\n typeof AdminCampaignByExternalIdParamsSchema\n>\nexport type AdminCampaignResult = AdminCampaign\n\n// list\nexport type AdminCampaignListQuery = z.infer<\n typeof AdminCampaignListQuerySchema\n>\nexport type AdminCampaignListResult = ListResponse<\n z.infer<typeof AdminCampaignSelectSchema>\n>\n\n// create\nexport type AdminCampaignCreateInput = z.infer<typeof AdminCampaignCreateSchema>\nexport type AdminCampaignCreateResult = Pick<AdminCampaign, 'id'>\n\n// update\nexport type AdminCampaignUpdateParams = z.infer<\n typeof AdminCampaignUpdateParamsSchema\n>\nexport type AdminCampaignUpdateInput = z.infer<typeof AdminCampaignUpdateSchema>\n\n// delete\nexport type AdminCampaignDeleteParams = z.infer<\n typeof AdminCampaignDeleteParamsSchema\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/campaigns/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,+BAA0B;AAC1B,0CAAmE;AACnE,qCAA+C;AAE/C,eAAe;AAEf,MAAM,oBAAoB,GAAG,MAAC,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,MAAC,CAAC,MAAM,CAAC;QACb,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACvC,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,MAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,MAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;KACjB,CAAC;CACH,CAAC,CAAA;AAEF,MAAM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CAAC;SACD,OAAO,EAAE;SACT,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,+BAA+B,GAAG,iCAAyB,CAAA;AAC3D,QAAA,+BAA+B,GAAG,iCAAyB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { z } from 'zod/v4'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { campaign, listView } from '../../core'\n\n//// validators\n\nconst PositionsEmailSchema = z.object({\n subject: z.string(),\n body: z.object({\n intro: z.string().nullable().optional(),\n outro: z.string().nullable().optional()\n })\n})\n\nconst PositionsSMSSchema = z.object({\n body: z.object({\n text: z.string()\n })\n})\n\nconst NewsletterEmailSchema = z.object({})\n\nconst ContentSchema = z\n .object({\n newsletterEmail: NewsletterEmailSchema.optional(),\n positionsEmail: PositionsEmailSchema.optional(),\n positionsSMS: PositionsSMSSchema.optional()\n })\n .nullable()\n .optional()\n\nexport const AdminCampaignCreateSchema = createInsertSchema(campaign).omit({\n idNano: true\n})\nexport const AdminCampaignSelectSchema = createSelectSchema(campaign, {\n content: ContentSchema\n}).extend({\n listView: createSelectSchema(listView)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n _messagesCount: z.number(),\n _referralsCount: z.number()\n})\n\nexport const AdminCampaignUpdateSchema = createUpdateSchema(campaign, {\n content: ContentSchema\n})\n\nexport const AdminCampaignParamsSchema = AdminCampaignSelectSchema.pick({\n id: true\n})\n\nexport const AdminCampaignByExternalIdParamsSchema =\n AdminCampaignSelectSchema.pick({\n externalId: true\n })\n\nexport const AdminCampaignListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n isSent: z.boolean().optional()\n })\n .partial()\n .optional()\n})\nexport const AdminCampaignUpdateParamsSchema = AdminCampaignParamsSchema\nexport const AdminCampaignDeleteParamsSchema = AdminCampaignParamsSchema\n\n//// types\n\ntype AdminCampaign = z.infer<typeof AdminCampaignSelectSchema>\n\n// detail\nexport type AdminCampaignParams = z.infer<typeof AdminCampaignParamsSchema>\nexport type AdminCampaignByExternalIdParams = z.infer<\n typeof AdminCampaignByExternalIdParamsSchema\n>\nexport type AdminCampaignResult = AdminCampaign\n\n// list\nexport type AdminCampaignListQuery = z.infer<\n typeof AdminCampaignListQuerySchema\n>\nexport type AdminCampaignListResult = ListResponse<\n z.infer<typeof AdminCampaignSelectSchema>\n>\n\n// create\nexport type AdminCampaignCreateInput = z.infer<typeof AdminCampaignCreateSchema>\nexport type AdminCampaignCreateResult = Pick<AdminCampaign, 'id'>\n\n// update\nexport type AdminCampaignUpdateParams = z.infer<\n typeof AdminCampaignUpdateParamsSchema\n>\nexport type AdminCampaignUpdateInput = z.infer<typeof AdminCampaignUpdateSchema>\n\n// delete\nexport type AdminCampaignDeleteParams = z.infer<\n typeof AdminCampaignDeleteParamsSchema\n>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.117",
3
+ "version": "0.2.118",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",