@lcas58/esmi-api-types 1.0.8 → 1.0.9

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.
Files changed (36) hide show
  1. package/dist/src/routes/events/events.index.d.ts +4 -4
  2. package/dist/src/routes/leagues/leagues.handlers.js +2 -1
  3. package/dist/src/routes/marketing/marketing.index.d.ts +1 -1
  4. package/dist/src/routes/organizations/organizations.index.d.ts +6 -6
  5. package/dist/src/routes/webhooks/webhooks.handlers.d.ts +3 -0
  6. package/dist/src/routes/webhooks/webhooks.handlers.js +14 -0
  7. package/dist/src/routes/webhooks/webhooks.index.d.ts +32 -0
  8. package/dist/src/routes/webhooks/webhooks.index.js +6 -0
  9. package/dist/src/routes/webhooks/webhooks.routes.d.ts +64 -0
  10. package/dist/src/routes/webhooks/webhooks.routes.js +24 -0
  11. package/dist/src/shared/client-types.d.ts +2 -13
  12. package/dist/src/shared/client-types.js +0 -12
  13. package/package.json +25 -32
  14. package/dist/src/app.d.ts +0 -2
  15. package/dist/src/app.js +0 -22
  16. package/dist/src/db/schema/event.d.ts +0 -264
  17. package/dist/src/db/schema/event.js +0 -38
  18. package/dist/src/db/schema/index.d.ts +0 -8
  19. package/dist/src/db/schema/index.js +0 -8
  20. package/dist/src/db/schema/league.d.ts +0 -261
  21. package/dist/src/db/schema/league.js +0 -27
  22. package/dist/src/db/schema/location.d.ts +0 -239
  23. package/dist/src/db/schema/location.js +0 -22
  24. package/dist/src/db/schema/marketing.d.ts +0 -77
  25. package/dist/src/db/schema/marketing.js +0 -16
  26. package/dist/src/db/schema/organization.d.ts +0 -882
  27. package/dist/src/db/schema/organization.js +0 -174
  28. package/dist/src/db/schema/pickup.d.ts +0 -417
  29. package/dist/src/db/schema/pickup.js +0 -42
  30. package/dist/src/db/schema/tag.d.ts +0 -261
  31. package/dist/src/db/schema/tag.js +0 -55
  32. package/dist/src/db/schema/user.d.ts +0 -597
  33. package/dist/src/db/schema/user.js +0 -45
  34. package/dist/src/lib/types.d.ts +0 -14
  35. package/dist/src/shared/index.d.ts +0 -7
  36. package/dist/src/shared/index.js +0 -28
@@ -1,239 +0,0 @@
1
- declare const location: import("drizzle-orm/pg-core").PgTableWithColumns<{
2
- name: "location";
3
- schema: undefined;
4
- columns: {
5
- id: import("drizzle-orm/pg-core").PgColumn<{
6
- name: "id";
7
- tableName: "location";
8
- dataType: "string";
9
- columnType: "PgVarchar";
10
- data: string;
11
- driverParam: string;
12
- notNull: true;
13
- hasDefault: false;
14
- isPrimaryKey: true;
15
- isAutoincrement: false;
16
- hasRuntimeDefault: false;
17
- enumValues: [string, ...string[]];
18
- baseColumn: never;
19
- generated: undefined;
20
- }, {}, {}>;
21
- provider: import("drizzle-orm/pg-core").PgColumn<{
22
- name: "provider";
23
- tableName: "location";
24
- dataType: "string";
25
- columnType: "PgVarchar";
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
- generated: undefined;
36
- }, {}, {}>;
37
- name: import("drizzle-orm/pg-core").PgColumn<{
38
- name: "name";
39
- tableName: "location";
40
- dataType: "string";
41
- columnType: "PgVarchar";
42
- data: string;
43
- driverParam: string;
44
- notNull: true;
45
- hasDefault: false;
46
- isPrimaryKey: false;
47
- isAutoincrement: false;
48
- hasRuntimeDefault: false;
49
- enumValues: [string, ...string[]];
50
- baseColumn: never;
51
- generated: undefined;
52
- }, {}, {}>;
53
- formattedAddress: import("drizzle-orm/pg-core").PgColumn<{
54
- name: "formattedAddress";
55
- tableName: "location";
56
- dataType: "string";
57
- columnType: "PgVarchar";
58
- data: string;
59
- driverParam: string;
60
- notNull: true;
61
- hasDefault: false;
62
- isPrimaryKey: false;
63
- isAutoincrement: false;
64
- hasRuntimeDefault: false;
65
- enumValues: [string, ...string[]];
66
- baseColumn: never;
67
- generated: undefined;
68
- }, {}, {}>;
69
- city: import("drizzle-orm/pg-core").PgColumn<{
70
- name: "city";
71
- tableName: "location";
72
- dataType: "string";
73
- columnType: "PgVarchar";
74
- data: string;
75
- driverParam: string;
76
- notNull: false;
77
- hasDefault: false;
78
- isPrimaryKey: false;
79
- isAutoincrement: false;
80
- hasRuntimeDefault: false;
81
- enumValues: [string, ...string[]];
82
- baseColumn: never;
83
- generated: undefined;
84
- }, {}, {}>;
85
- state: import("drizzle-orm/pg-core").PgColumn<{
86
- name: "state";
87
- tableName: "location";
88
- dataType: "string";
89
- columnType: "PgVarchar";
90
- data: string;
91
- driverParam: string;
92
- notNull: false;
93
- hasDefault: false;
94
- isPrimaryKey: false;
95
- isAutoincrement: false;
96
- hasRuntimeDefault: false;
97
- enumValues: [string, ...string[]];
98
- baseColumn: never;
99
- generated: undefined;
100
- }, {}, {}>;
101
- country: import("drizzle-orm/pg-core").PgColumn<{
102
- name: "country";
103
- tableName: "location";
104
- dataType: "string";
105
- columnType: "PgVarchar";
106
- data: string;
107
- driverParam: string;
108
- notNull: false;
109
- hasDefault: false;
110
- isPrimaryKey: false;
111
- isAutoincrement: false;
112
- hasRuntimeDefault: false;
113
- enumValues: [string, ...string[]];
114
- baseColumn: never;
115
- generated: undefined;
116
- }, {}, {}>;
117
- postalCode: import("drizzle-orm/pg-core").PgColumn<{
118
- name: "postalCode";
119
- tableName: "location";
120
- dataType: "string";
121
- columnType: "PgVarchar";
122
- data: string;
123
- driverParam: string;
124
- notNull: false;
125
- hasDefault: false;
126
- isPrimaryKey: false;
127
- isAutoincrement: false;
128
- hasRuntimeDefault: false;
129
- enumValues: [string, ...string[]];
130
- baseColumn: never;
131
- generated: undefined;
132
- }, {}, {}>;
133
- latitude: import("drizzle-orm/pg-core").PgColumn<{
134
- name: "latitude";
135
- tableName: "location";
136
- dataType: "string";
137
- columnType: "PgNumeric";
138
- data: number;
139
- driverParam: string;
140
- notNull: false;
141
- hasDefault: false;
142
- isPrimaryKey: false;
143
- isAutoincrement: false;
144
- hasRuntimeDefault: false;
145
- enumValues: undefined;
146
- baseColumn: never;
147
- generated: undefined;
148
- }, {}, {}>;
149
- longitude: import("drizzle-orm/pg-core").PgColumn<{
150
- name: "longitude";
151
- tableName: "location";
152
- dataType: "string";
153
- columnType: "PgNumeric";
154
- data: number;
155
- driverParam: string;
156
- notNull: false;
157
- hasDefault: false;
158
- isPrimaryKey: false;
159
- isAutoincrement: false;
160
- hasRuntimeDefault: false;
161
- enumValues: undefined;
162
- baseColumn: never;
163
- generated: undefined;
164
- }, {}, {}>;
165
- };
166
- dialect: "pg";
167
- }>;
168
- export declare const locationRelations: import("drizzle-orm").Relations<"location", {
169
- events: import("drizzle-orm").Many<"event">;
170
- }>;
171
- export declare const selectLocationSchema: import("zod").ZodObject<{
172
- id: import("zod").ZodString;
173
- provider: import("zod").ZodString;
174
- name: import("zod").ZodString;
175
- formattedAddress: import("zod").ZodString;
176
- city: import("zod").ZodNullable<import("zod").ZodString>;
177
- state: import("zod").ZodNullable<import("zod").ZodString>;
178
- country: import("zod").ZodNullable<import("zod").ZodString>;
179
- postalCode: import("zod").ZodNullable<import("zod").ZodString>;
180
- latitude: import("zod").ZodNullable<import("zod").ZodString>;
181
- longitude: import("zod").ZodNullable<import("zod").ZodString>;
182
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
183
- id: string;
184
- name: string;
185
- provider: string;
186
- formattedAddress: string;
187
- city: string | null;
188
- state: string | null;
189
- country: string | null;
190
- postalCode: string | null;
191
- latitude: string | null;
192
- longitude: string | null;
193
- }, {
194
- id: string;
195
- name: string;
196
- provider: string;
197
- formattedAddress: string;
198
- city: string | null;
199
- state: string | null;
200
- country: string | null;
201
- postalCode: string | null;
202
- latitude: string | null;
203
- longitude: string | null;
204
- }>;
205
- export declare const insertLocationSchema: import("zod").ZodObject<{
206
- id: import("zod").ZodString;
207
- name: import("zod").ZodString;
208
- provider: import("zod").ZodString;
209
- formattedAddress: import("zod").ZodString;
210
- city: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
211
- state: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
212
- country: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
213
- postalCode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
214
- latitude: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
215
- longitude: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
216
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
217
- id: string;
218
- name: string;
219
- provider: string;
220
- formattedAddress: string;
221
- city?: string | null | undefined;
222
- state?: string | null | undefined;
223
- country?: string | null | undefined;
224
- postalCode?: string | null | undefined;
225
- latitude?: string | null | undefined;
226
- longitude?: string | null | undefined;
227
- }, {
228
- id: string;
229
- name: string;
230
- provider: string;
231
- formattedAddress: string;
232
- city?: string | null | undefined;
233
- state?: string | null | undefined;
234
- country?: string | null | undefined;
235
- postalCode?: string | null | undefined;
236
- latitude?: string | null | undefined;
237
- longitude?: string | null | undefined;
238
- }>;
239
- export default location;
@@ -1,22 +0,0 @@
1
- import { relations } from "drizzle-orm";
2
- import { decimal, pgTable, varchar } from "drizzle-orm/pg-core";
3
- import { createInsertSchema, createSelectSchema } from "drizzle-zod";
4
- import event from "./event.js";
5
- const location = pgTable("location", {
6
- id: varchar("id").primaryKey(),
7
- provider: varchar("provider").notNull(),
8
- name: varchar("name").notNull(),
9
- formattedAddress: varchar("formattedAddress").notNull(),
10
- city: varchar("city"),
11
- state: varchar("state"),
12
- country: varchar("country"),
13
- postalCode: varchar("postalCode"),
14
- latitude: decimal("latitude", { precision: 11, scale: 8 }).$type(),
15
- longitude: decimal("longitude", { precision: 12, scale: 8 }).$type(),
16
- });
17
- export const locationRelations = relations(location, ({ many }) => ({
18
- events: many(event),
19
- }));
20
- export const selectLocationSchema = createSelectSchema(location);
21
- export const insertLocationSchema = createInsertSchema(location);
22
- export default location;
@@ -1,77 +0,0 @@
1
- export declare const emailCampaign: import("drizzle-orm/pg-core").PgTableWithColumns<{
2
- name: "email_campaign";
3
- schema: undefined;
4
- columns: {
5
- id: import("drizzle-orm/pg-core").PgColumn<{
6
- name: "id";
7
- tableName: "email_campaign";
8
- dataType: "number";
9
- columnType: "PgSerial";
10
- data: number;
11
- driverParam: number;
12
- notNull: true;
13
- hasDefault: true;
14
- isPrimaryKey: true;
15
- isAutoincrement: false;
16
- hasRuntimeDefault: false;
17
- enumValues: undefined;
18
- baseColumn: never;
19
- generated: undefined;
20
- }, {}, {}>;
21
- email: import("drizzle-orm/pg-core").PgColumn<{
22
- name: "email";
23
- tableName: "email_campaign";
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
- generated: undefined;
36
- }, {}, {}>;
37
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
38
- name: "created_at";
39
- tableName: "email_campaign";
40
- dataType: "date";
41
- columnType: "PgTimestamp";
42
- data: Date;
43
- driverParam: string;
44
- notNull: false;
45
- hasDefault: true;
46
- isPrimaryKey: false;
47
- isAutoincrement: false;
48
- hasRuntimeDefault: true;
49
- enumValues: undefined;
50
- baseColumn: never;
51
- generated: undefined;
52
- }, {}, {}>;
53
- };
54
- dialect: "pg";
55
- }>;
56
- export declare const insertEmailCampaignSchema: import("zod").ZodObject<Omit<{
57
- id: import("zod").ZodOptional<import("zod").ZodNumber>;
58
- email: import("zod").ZodString;
59
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
60
- }, "id" | "createdAt">, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
61
- email: string;
62
- }, {
63
- email: string;
64
- }>;
65
- export declare const selectEmailCampaignSchema: import("zod").ZodObject<{
66
- id: import("zod").ZodNumber;
67
- email: import("zod").ZodString;
68
- createdAt: import("zod").ZodNullable<import("zod").ZodDate>;
69
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
70
- id: number;
71
- email: string;
72
- createdAt: Date | null;
73
- }, {
74
- id: number;
75
- email: string;
76
- createdAt: Date | null;
77
- }>;
@@ -1,16 +0,0 @@
1
- import { pgTable, serial, text, timestamp } from "drizzle-orm/pg-core";
2
- import { createInsertSchema, createSelectSchema } from "drizzle-zod";
3
- export const emailCampaign = pgTable("email_campaign", {
4
- id: serial("id").primaryKey(),
5
- email: text("email").notNull(),
6
- createdAt: timestamp("created_at").$defaultFn(() => new Date()),
7
- });
8
- export const insertEmailCampaignSchema = createInsertSchema(emailCampaign, {
9
- email: schema => schema.email.email(),
10
- }).required({
11
- email: true,
12
- }).omit({
13
- id: true,
14
- createdAt: true,
15
- });
16
- export const selectEmailCampaignSchema = createSelectSchema(emailCampaign);