@voyantjs/plugin-netopia 0.6.9 → 0.8.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/dist/plugin.d.ts +10 -10
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +10 -1
- package/package.json +6 -6
package/dist/plugin.d.ts
CHANGED
|
@@ -37,19 +37,19 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
37
37
|
cancelledAt: string | null;
|
|
38
38
|
completedAt: string | null;
|
|
39
39
|
bookingId: string | null;
|
|
40
|
+
paymentId: string | null;
|
|
41
|
+
amountCents: number;
|
|
40
42
|
provider: string | null;
|
|
41
43
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
42
44
|
targetId: string | null;
|
|
43
45
|
orderId: string | null;
|
|
44
46
|
invoiceId: string | null;
|
|
45
|
-
amountCents: number;
|
|
46
47
|
bookingPaymentScheduleId: string | null;
|
|
47
48
|
paymentInstrumentId: string | null;
|
|
48
49
|
bookingGuaranteeId: string | null;
|
|
49
50
|
paymentAuthorizationId: string | null;
|
|
50
51
|
paymentCaptureId: string | null;
|
|
51
52
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
52
|
-
paymentId: string | null;
|
|
53
53
|
providerSessionId: string | null;
|
|
54
54
|
providerPaymentId: string | null;
|
|
55
55
|
externalReference: string | null;
|
|
@@ -229,19 +229,19 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
229
229
|
cancelledAt: string | null;
|
|
230
230
|
completedAt: string | null;
|
|
231
231
|
bookingId: string | null;
|
|
232
|
+
paymentId: string | null;
|
|
233
|
+
amountCents: number;
|
|
232
234
|
provider: string | null;
|
|
233
235
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
234
236
|
targetId: string | null;
|
|
235
237
|
orderId: string | null;
|
|
236
238
|
invoiceId: string | null;
|
|
237
|
-
amountCents: number;
|
|
238
239
|
bookingPaymentScheduleId: string | null;
|
|
239
240
|
paymentInstrumentId: string | null;
|
|
240
241
|
bookingGuaranteeId: string | null;
|
|
241
242
|
paymentAuthorizationId: string | null;
|
|
242
243
|
paymentCaptureId: string | null;
|
|
243
244
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
244
|
-
paymentId: string | null;
|
|
245
245
|
providerSessionId: string | null;
|
|
246
246
|
providerPaymentId: string | null;
|
|
247
247
|
externalReference: string | null;
|
|
@@ -390,19 +390,19 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
390
390
|
cancelledAt: string | null;
|
|
391
391
|
completedAt: string | null;
|
|
392
392
|
bookingId: string | null;
|
|
393
|
+
paymentId: string | null;
|
|
394
|
+
amountCents: number;
|
|
393
395
|
provider: string | null;
|
|
394
396
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
395
397
|
targetId: string | null;
|
|
396
398
|
orderId: string | null;
|
|
397
399
|
invoiceId: string | null;
|
|
398
|
-
amountCents: number;
|
|
399
400
|
bookingPaymentScheduleId: string | null;
|
|
400
401
|
paymentInstrumentId: string | null;
|
|
401
402
|
bookingGuaranteeId: string | null;
|
|
402
403
|
paymentAuthorizationId: string | null;
|
|
403
404
|
paymentCaptureId: string | null;
|
|
404
405
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
405
|
-
paymentId: string | null;
|
|
406
406
|
providerSessionId: string | null;
|
|
407
407
|
providerPaymentId: string | null;
|
|
408
408
|
externalReference: string | null;
|
|
@@ -549,19 +549,19 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
549
549
|
cancelledAt: string | null;
|
|
550
550
|
completedAt: string | null;
|
|
551
551
|
bookingId: string | null;
|
|
552
|
+
paymentId: string | null;
|
|
553
|
+
amountCents: number;
|
|
552
554
|
provider: string | null;
|
|
553
555
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
554
556
|
targetId: string | null;
|
|
555
557
|
orderId: string | null;
|
|
556
558
|
invoiceId: string | null;
|
|
557
|
-
amountCents: number;
|
|
558
559
|
bookingPaymentScheduleId: string | null;
|
|
559
560
|
paymentInstrumentId: string | null;
|
|
560
561
|
bookingGuaranteeId: string | null;
|
|
561
562
|
paymentAuthorizationId: string | null;
|
|
562
563
|
paymentCaptureId: string | null;
|
|
563
564
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
564
|
-
paymentId: string | null;
|
|
565
565
|
providerSessionId: string | null;
|
|
566
566
|
providerPaymentId: string | null;
|
|
567
567
|
externalReference: string | null;
|
|
@@ -638,19 +638,19 @@ export declare function createNetopiaFinanceRoutes(options?: NetopiaRuntimeOptio
|
|
|
638
638
|
cancelledAt: string | null;
|
|
639
639
|
completedAt: string | null;
|
|
640
640
|
bookingId: string | null;
|
|
641
|
+
paymentId: string | null;
|
|
642
|
+
amountCents: number;
|
|
641
643
|
provider: string | null;
|
|
642
644
|
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
|
|
643
645
|
targetId: string | null;
|
|
644
646
|
orderId: string | null;
|
|
645
647
|
invoiceId: string | null;
|
|
646
|
-
amountCents: number;
|
|
647
648
|
bookingPaymentScheduleId: string | null;
|
|
648
649
|
paymentInstrumentId: string | null;
|
|
649
650
|
bookingGuaranteeId: string | null;
|
|
650
651
|
paymentAuthorizationId: string | null;
|
|
651
652
|
paymentCaptureId: string | null;
|
|
652
653
|
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
653
|
-
paymentId: string | null;
|
|
654
654
|
providerSessionId: string | null;
|
|
655
655
|
providerPaymentId: string | null;
|
|
656
656
|
externalReference: string | null;
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAoB,KAAK,UAAU,EAAiB,MAAM,gBAAgB,CAAA;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAKjE,OAAO,KAAK,EAAE,qBAAqB,EAAiC,MAAM,YAAY,CAAA;AAStF,KAAK,GAAG,GAAG;IACT,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,SAAS,EAAE;QACT,SAAS,EAAE,eAAe,CAAA;QAC1B,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,6BAA6B,8BAA8B,CAAA;AAkBxE,wBAAgB,0BAA0B,CAAC,OAAO,GAAE,qBAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
141
141
|
version: "0.1.0",
|
|
142
142
|
bootstrap: ({ bindings, container }) => {
|
|
143
|
-
|
|
143
|
+
try {
|
|
144
|
+
container.register(NETOPIA_RUNTIME_CONTAINER_KEY, resolveNetopiaRuntimeOptions(bindings, options));
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
// Defer resolution to per-request handlers. Missing env should only fail
|
|
148
|
+
// Netopia-owned routes, not the whole app — `getNetopiaRuntime` will retry
|
|
149
|
+
// from bindings on each request and surface the same error on Netopia calls.
|
|
150
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
151
|
+
console.warn(`[netopia] Runtime bootstrap skipped: ${message}`);
|
|
152
|
+
}
|
|
144
153
|
},
|
|
145
154
|
extensions: [createNetopiaFinanceExtension(options)],
|
|
146
155
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/plugin-netopia",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"drizzle-orm": "^0.45.2",
|
|
34
34
|
"hono": "^4.12.10",
|
|
35
35
|
"zod": "^4.3.6",
|
|
36
|
-
"@voyantjs/checkout": "0.
|
|
37
|
-
"@voyantjs/core": "0.
|
|
38
|
-
"@voyantjs/finance": "0.
|
|
39
|
-
"@voyantjs/hono": "0.
|
|
40
|
-
"@voyantjs/notifications": "0.
|
|
36
|
+
"@voyantjs/checkout": "0.8.0",
|
|
37
|
+
"@voyantjs/core": "0.8.0",
|
|
38
|
+
"@voyantjs/finance": "0.8.0",
|
|
39
|
+
"@voyantjs/hono": "0.8.0",
|
|
40
|
+
"@voyantjs/notifications": "0.8.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "^6.0.2",
|