@voyantjs/plugin-netopia 0.3.1 → 0.4.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.
- package/README.md +7 -0
- package/dist/checkout.d.ts +4 -0
- package/dist/checkout.d.ts.map +1 -0
- package/dist/checkout.js +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/plugin.d.ts +21 -21
- package/dist/validation.d.ts +44 -0
- package/dist/validation.d.ts.map +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -27,6 +27,13 @@ Mounted as a finance extension, the package exposes:
|
|
|
27
27
|
- `POST /providers/netopia/callback`
|
|
28
28
|
- `GET /providers/netopia/config`
|
|
29
29
|
|
|
30
|
+
## Checkout integration
|
|
31
|
+
|
|
32
|
+
If you use `@voyantjs/checkout`, the plugin now also exports
|
|
33
|
+
`createNetopiaCheckoutStarter()`. That lets checkout create the payment session
|
|
34
|
+
and start the Netopia redirect flow in one request while keeping provider
|
|
35
|
+
startup optional in core checkout.
|
|
36
|
+
|
|
30
37
|
Because this is a finance extension, these routes mount under the finance module path in the app.
|
|
31
38
|
|
|
32
39
|
## Usage
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CheckoutPaymentStarter } from "@voyantjs/checkout";
|
|
2
|
+
import type { NetopiaRuntimeOptions } from "./types.js";
|
|
3
|
+
export declare function createNetopiaCheckoutStarter(runtimeOptions?: NetopiaRuntimeOptions): CheckoutPaymentStarter;
|
|
4
|
+
//# sourceMappingURL=checkout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../src/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAGhE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAGvD,wBAAgB,4BAA4B,CAC1C,cAAc,GAAE,qBAA0B,GACzC,sBAAsB,CA0BxB"}
|
package/dist/checkout.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { startPaymentSession } from "./service-start.js";
|
|
2
|
+
import { netopiaStartPaymentSessionSchema } from "./validation.js";
|
|
3
|
+
export function createNetopiaCheckoutStarter(runtimeOptions = {}) {
|
|
4
|
+
return async ({ db, paymentSession, startProvider, bindings }) => {
|
|
5
|
+
const input = netopiaStartPaymentSessionSchema.parse(startProvider.payload ?? {});
|
|
6
|
+
const started = await startPaymentSession(db, paymentSession.id, input, runtimeOptions, undefined, bindings);
|
|
7
|
+
return {
|
|
8
|
+
provider: "netopia",
|
|
9
|
+
paymentSessionId: started.session.id,
|
|
10
|
+
redirectUrl: started.session.redirectUrl ?? started.providerResponse.payment?.paymentURL ?? null,
|
|
11
|
+
externalReference: started.session.externalReference ?? started.orderId,
|
|
12
|
+
providerSessionId: started.session.providerSessionId ?? null,
|
|
13
|
+
providerPaymentId: started.session.providerPaymentId ?? null,
|
|
14
|
+
response: {
|
|
15
|
+
orderId: started.orderId,
|
|
16
|
+
providerResponse: started.providerResponse,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { createNetopiaCheckoutStarter } from "./checkout.js";
|
|
1
2
|
export { createNetopiaClient, type NetopiaClientApi, type NetopiaClientOptions, resolveNetopiaRuntimeOptions, } from "./client.js";
|
|
2
3
|
export { createNetopiaFinanceExtension, createNetopiaFinanceRoutes, netopiaFinanceExtension, netopiaHonoPlugin, } from "./plugin.js";
|
|
3
4
|
export { deriveNetopiaOrderId, mapNetopiaPaymentStatus, type NetopiaCallbackResult, type NetopiaCollectPaymentResult, type NetopiaStartPaymentResult, netopiaService, } from "./service.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,4BAA4B,GAC7B,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,cAAc,GACf,MAAM,cAAc,CAAA;AACrB,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,oCAAoC,EACpC,mCAAmC,EACnC,2BAA2B,EAC3B,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC3B,wBAAwB,EACxB,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAA;AAC5D,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,4BAA4B,GAC7B,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,cAAc,GACf,MAAM,cAAc,CAAA;AACrB,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,oCAAoC,EACpC,mCAAmC,EACnC,2BAA2B,EAC3B,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC3B,wBAAwB,EACxB,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { createNetopiaCheckoutStarter } from "./checkout.js";
|
|
1
2
|
export { createNetopiaClient, resolveNetopiaRuntimeOptions, } from "./client.js";
|
|
2
3
|
export { createNetopiaFinanceExtension, createNetopiaFinanceRoutes, netopiaFinanceExtension, netopiaHonoPlugin, } from "./plugin.js";
|
|
3
4
|
export { deriveNetopiaOrderId, mapNetopiaPaymentStatus, netopiaService, } from "./service.js";
|
package/dist/plugin.d.ts
CHANGED
|
@@ -158,25 +158,25 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
158
158
|
} | null;
|
|
159
159
|
channel: "email" | "sms";
|
|
160
160
|
provider: string;
|
|
161
|
-
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "
|
|
161
|
+
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "organization" | "person" | "payment_session";
|
|
162
162
|
targetId: string | null;
|
|
163
163
|
templateId: string | null;
|
|
164
164
|
invoiceId: string | null;
|
|
165
165
|
failedAt: string | null;
|
|
166
166
|
errorMessage: string | null;
|
|
167
|
+
subject: string | null;
|
|
168
|
+
sentAt: string | null;
|
|
167
169
|
fromAddress: string | null;
|
|
168
170
|
templateSlug: string | null;
|
|
169
171
|
paymentSessionId: string | null;
|
|
170
172
|
providerMessageId: string | null;
|
|
171
173
|
toAddress: string;
|
|
172
|
-
subject: string | null;
|
|
173
174
|
htmlBody: string | null;
|
|
174
175
|
textBody: string | null;
|
|
175
176
|
payloadData: {
|
|
176
177
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
177
178
|
} | null;
|
|
178
179
|
scheduledFor: string | null;
|
|
179
|
-
sentAt: string | null;
|
|
180
180
|
} | null;
|
|
181
181
|
invoiceNotification: {
|
|
182
182
|
id: string;
|
|
@@ -191,25 +191,25 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
191
191
|
} | null;
|
|
192
192
|
channel: "email" | "sms";
|
|
193
193
|
provider: string;
|
|
194
|
-
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "
|
|
194
|
+
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "organization" | "person" | "payment_session";
|
|
195
195
|
targetId: string | null;
|
|
196
196
|
templateId: string | null;
|
|
197
197
|
invoiceId: string | null;
|
|
198
198
|
failedAt: string | null;
|
|
199
199
|
errorMessage: string | null;
|
|
200
|
+
subject: string | null;
|
|
201
|
+
sentAt: string | null;
|
|
200
202
|
fromAddress: string | null;
|
|
201
203
|
templateSlug: string | null;
|
|
202
204
|
paymentSessionId: string | null;
|
|
203
205
|
providerMessageId: string | null;
|
|
204
206
|
toAddress: string;
|
|
205
|
-
subject: string | null;
|
|
206
207
|
htmlBody: string | null;
|
|
207
208
|
textBody: string | null;
|
|
208
209
|
payloadData: {
|
|
209
210
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
210
211
|
} | null;
|
|
211
212
|
scheduledFor: string | null;
|
|
212
|
-
sentAt: string | null;
|
|
213
213
|
} | null;
|
|
214
214
|
session: {
|
|
215
215
|
id: string;
|
|
@@ -291,7 +291,7 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
291
291
|
error: string;
|
|
292
292
|
};
|
|
293
293
|
outputFormat: "json";
|
|
294
|
-
status:
|
|
294
|
+
status: 500 | 404 | 409 | 502;
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
297
|
} & {
|
|
@@ -319,25 +319,25 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
319
319
|
} | null;
|
|
320
320
|
channel: "email" | "sms";
|
|
321
321
|
provider: string;
|
|
322
|
-
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "
|
|
322
|
+
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "organization" | "person" | "payment_session";
|
|
323
323
|
targetId: string | null;
|
|
324
324
|
templateId: string | null;
|
|
325
325
|
invoiceId: string | null;
|
|
326
326
|
failedAt: string | null;
|
|
327
327
|
errorMessage: string | null;
|
|
328
|
+
subject: string | null;
|
|
329
|
+
sentAt: string | null;
|
|
328
330
|
fromAddress: string | null;
|
|
329
331
|
templateSlug: string | null;
|
|
330
332
|
paymentSessionId: string | null;
|
|
331
333
|
providerMessageId: string | null;
|
|
332
334
|
toAddress: string;
|
|
333
|
-
subject: string | null;
|
|
334
335
|
htmlBody: string | null;
|
|
335
336
|
textBody: string | null;
|
|
336
337
|
payloadData: {
|
|
337
338
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
338
339
|
} | null;
|
|
339
340
|
scheduledFor: string | null;
|
|
340
|
-
sentAt: string | null;
|
|
341
341
|
} | null;
|
|
342
342
|
invoiceNotification: {
|
|
343
343
|
id: string;
|
|
@@ -352,25 +352,25 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
352
352
|
} | null;
|
|
353
353
|
channel: "email" | "sms";
|
|
354
354
|
provider: string;
|
|
355
|
-
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "
|
|
355
|
+
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "organization" | "person" | "payment_session";
|
|
356
356
|
targetId: string | null;
|
|
357
357
|
templateId: string | null;
|
|
358
358
|
invoiceId: string | null;
|
|
359
359
|
failedAt: string | null;
|
|
360
360
|
errorMessage: string | null;
|
|
361
|
+
subject: string | null;
|
|
362
|
+
sentAt: string | null;
|
|
361
363
|
fromAddress: string | null;
|
|
362
364
|
templateSlug: string | null;
|
|
363
365
|
paymentSessionId: string | null;
|
|
364
366
|
providerMessageId: string | null;
|
|
365
367
|
toAddress: string;
|
|
366
|
-
subject: string | null;
|
|
367
368
|
htmlBody: string | null;
|
|
368
369
|
textBody: string | null;
|
|
369
370
|
payloadData: {
|
|
370
371
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
371
372
|
} | null;
|
|
372
373
|
scheduledFor: string | null;
|
|
373
|
-
sentAt: string | null;
|
|
374
374
|
} | null;
|
|
375
375
|
session: {
|
|
376
376
|
id: string;
|
|
@@ -452,7 +452,7 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
452
452
|
error: string;
|
|
453
453
|
};
|
|
454
454
|
outputFormat: "json";
|
|
455
|
-
status:
|
|
455
|
+
status: 500 | 404 | 409 | 502;
|
|
456
456
|
};
|
|
457
457
|
};
|
|
458
458
|
} & {
|
|
@@ -478,25 +478,25 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
478
478
|
} | null;
|
|
479
479
|
channel: "email" | "sms";
|
|
480
480
|
provider: string;
|
|
481
|
-
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "
|
|
481
|
+
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "organization" | "person" | "payment_session";
|
|
482
482
|
targetId: string | null;
|
|
483
483
|
templateId: string | null;
|
|
484
484
|
invoiceId: string | null;
|
|
485
485
|
failedAt: string | null;
|
|
486
486
|
errorMessage: string | null;
|
|
487
|
+
subject: string | null;
|
|
488
|
+
sentAt: string | null;
|
|
487
489
|
fromAddress: string | null;
|
|
488
490
|
templateSlug: string | null;
|
|
489
491
|
paymentSessionId: string | null;
|
|
490
492
|
providerMessageId: string | null;
|
|
491
493
|
toAddress: string;
|
|
492
|
-
subject: string | null;
|
|
493
494
|
htmlBody: string | null;
|
|
494
495
|
textBody: string | null;
|
|
495
496
|
payloadData: {
|
|
496
497
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
497
498
|
} | null;
|
|
498
499
|
scheduledFor: string | null;
|
|
499
|
-
sentAt: string | null;
|
|
500
500
|
} | null;
|
|
501
501
|
invoiceNotification: {
|
|
502
502
|
id: string;
|
|
@@ -511,25 +511,25 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
511
511
|
} | null;
|
|
512
512
|
channel: "email" | "sms";
|
|
513
513
|
provider: string;
|
|
514
|
-
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "
|
|
514
|
+
targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "organization" | "person" | "payment_session";
|
|
515
515
|
targetId: string | null;
|
|
516
516
|
templateId: string | null;
|
|
517
517
|
invoiceId: string | null;
|
|
518
518
|
failedAt: string | null;
|
|
519
519
|
errorMessage: string | null;
|
|
520
|
+
subject: string | null;
|
|
521
|
+
sentAt: string | null;
|
|
520
522
|
fromAddress: string | null;
|
|
521
523
|
templateSlug: string | null;
|
|
522
524
|
paymentSessionId: string | null;
|
|
523
525
|
providerMessageId: string | null;
|
|
524
526
|
toAddress: string;
|
|
525
|
-
subject: string | null;
|
|
526
527
|
htmlBody: string | null;
|
|
527
528
|
textBody: string | null;
|
|
528
529
|
payloadData: {
|
|
529
530
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
530
531
|
} | null;
|
|
531
532
|
scheduledFor: string | null;
|
|
532
|
-
sentAt: string | null;
|
|
533
533
|
} | null;
|
|
534
534
|
session: {
|
|
535
535
|
id: string;
|
|
@@ -609,7 +609,7 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
609
609
|
error: string;
|
|
610
610
|
};
|
|
611
611
|
outputFormat: "json";
|
|
612
|
-
status:
|
|
612
|
+
status: 500 | 404 | 409 | 502;
|
|
613
613
|
};
|
|
614
614
|
};
|
|
615
615
|
} & {
|
package/dist/validation.d.ts
CHANGED
|
@@ -213,6 +213,17 @@ export declare const netopiaCollectBookingScheduleSchema: z.ZodObject<{
|
|
|
213
213
|
subject: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
214
214
|
html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
215
215
|
text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
216
|
+
attachments: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
|
+
filename: z.ZodString;
|
|
218
|
+
contentBase64: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
219
|
+
path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
220
|
+
contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
221
|
+
disposition: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
222
|
+
attachment: "attachment";
|
|
223
|
+
inline: "inline";
|
|
224
|
+
}>>>;
|
|
225
|
+
contentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
226
|
+
}, z.core.$strip>>>>;
|
|
216
227
|
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
217
228
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
218
229
|
scheduledFor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -318,6 +329,17 @@ export declare const netopiaCollectBookingGuaranteeSchema: z.ZodObject<{
|
|
|
318
329
|
subject: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
319
330
|
html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
320
331
|
text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
332
|
+
attachments: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
333
|
+
filename: z.ZodString;
|
|
334
|
+
contentBase64: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
335
|
+
path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
336
|
+
contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
337
|
+
disposition: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
338
|
+
attachment: "attachment";
|
|
339
|
+
inline: "inline";
|
|
340
|
+
}>>>;
|
|
341
|
+
contentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
342
|
+
}, z.core.$strip>>>>;
|
|
321
343
|
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
322
344
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
323
345
|
scheduledFor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -423,6 +445,17 @@ export declare const netopiaCollectInvoiceSchema: z.ZodObject<{
|
|
|
423
445
|
subject: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
424
446
|
html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
425
447
|
text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
448
|
+
attachments: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
449
|
+
filename: z.ZodString;
|
|
450
|
+
contentBase64: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
451
|
+
path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
452
|
+
contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
453
|
+
disposition: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
454
|
+
attachment: "attachment";
|
|
455
|
+
inline: "inline";
|
|
456
|
+
}>>>;
|
|
457
|
+
contentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
458
|
+
}, z.core.$strip>>>>;
|
|
426
459
|
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
427
460
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
428
461
|
scheduledFor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -440,6 +473,17 @@ export declare const netopiaCollectInvoiceSchema: z.ZodObject<{
|
|
|
440
473
|
subject: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
441
474
|
html: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
442
475
|
text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
476
|
+
attachments: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
477
|
+
filename: z.ZodString;
|
|
478
|
+
contentBase64: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
479
|
+
path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
480
|
+
contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
481
|
+
disposition: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
482
|
+
attachment: "attachment";
|
|
483
|
+
inline: "inline";
|
|
484
|
+
}>>>;
|
|
485
|
+
contentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
486
|
+
}, z.core.$strip>>>>;
|
|
443
487
|
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
444
488
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
445
489
|
scheduledFor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
package/dist/validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAUtC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;;iBAOzC,CAAA;AAEF,eAAO,MAAM,wBAAwB,sDAA8C,CAAA;AAEnF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB3C,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;iBA4BtC,CAAA;AAEF,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAUtC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;;iBAOzC,CAAA;AAEF,eAAO,MAAM,wBAAwB,sDAA8C,CAAA;AAEnF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB3C,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;iBA4BtC,CAAA;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI9C,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI/C,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKtC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/plugin-netopia",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,10 +33,11 @@
|
|
|
33
33
|
"drizzle-orm": "^0.45.2",
|
|
34
34
|
"hono": "^4.12.10",
|
|
35
35
|
"zod": "^4.3.6",
|
|
36
|
-
"@voyantjs/
|
|
37
|
-
"@voyantjs/
|
|
38
|
-
"@voyantjs/
|
|
39
|
-
"@voyantjs/
|
|
36
|
+
"@voyantjs/checkout": "0.4.0",
|
|
37
|
+
"@voyantjs/core": "0.4.0",
|
|
38
|
+
"@voyantjs/finance": "0.4.0",
|
|
39
|
+
"@voyantjs/hono": "0.4.0",
|
|
40
|
+
"@voyantjs/notifications": "0.4.0"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"typescript": "^6.0.2",
|