@shware/purchase 0.2.2 → 0.2.4
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/stripe/handler.cjs +56 -0
- package/dist/stripe/handler.cjs.map +1 -0
- package/dist/stripe/handler.d.cts +15 -0
- package/dist/stripe/handler.d.ts +15 -0
- package/dist/stripe/handler.mjs +31 -0
- package/dist/stripe/handler.mjs.map +1 -0
- package/dist/stripe/index.cjs +3 -0
- package/dist/stripe/index.cjs.map +1 -1
- package/dist/stripe/index.d.cts +1 -0
- package/dist/stripe/index.d.ts +1 -0
- package/dist/stripe/index.mjs +2 -0
- package/dist/stripe/index.mjs.map +1 -1
- package/dist/stripe/schema.d.cts +1 -1
- package/dist/stripe/schema.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/stripe/handler.ts
|
|
21
|
+
var handler_exports = {};
|
|
22
|
+
__export(handler_exports, {
|
|
23
|
+
StripeEventHandler: () => StripeEventHandler
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(handler_exports);
|
|
26
|
+
var StripeEventHandler = class _StripeEventHandler {
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
+
handlers;
|
|
29
|
+
constructor() {
|
|
30
|
+
this.handlers = /* @__PURE__ */ new Map();
|
|
31
|
+
}
|
|
32
|
+
static create() {
|
|
33
|
+
return new _StripeEventHandler();
|
|
34
|
+
}
|
|
35
|
+
on = (type, handler) => {
|
|
36
|
+
if (!this.handlers.has(type)) {
|
|
37
|
+
this.handlers.set(type, []);
|
|
38
|
+
}
|
|
39
|
+
this.handlers.get(type)?.push(handler);
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
process = async (event) => {
|
|
43
|
+
const eventHandlers = this.handlers.get(event.type);
|
|
44
|
+
if (eventHandlers) {
|
|
45
|
+
await Promise.all(eventHandlers.map((handler) => handler(event.data.object)));
|
|
46
|
+
} else {
|
|
47
|
+
console.error(`No stripe event handler found for event type: ${event.type}`);
|
|
48
|
+
throw new Error(`No stripe event handler found for event type: ${event.type}`);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
StripeEventHandler
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=handler.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/stripe/handler.ts"],"sourcesContent":["import type Stripe from 'stripe';\n\ntype StripeEventObject<T extends Stripe.Event.Type> = Extract<\n Stripe.Event,\n { type: T }\n>['data']['object'];\n\ntype EventHandlerFn<T extends Stripe.Event.Type = Stripe.Event.Type> = (\n object: StripeEventObject<T>\n) => Promise<void>;\n\nexport class StripeEventHandler {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private readonly handlers: Map<Stripe.Event.Type, Array<EventHandlerFn<any>>>;\n\n private constructor() {\n this.handlers = new Map();\n }\n\n static create() {\n return new StripeEventHandler();\n }\n\n on = <T extends Stripe.Event.Type>(type: T, handler: EventHandlerFn<T>) => {\n if (!this.handlers.has(type)) {\n this.handlers.set(type, []);\n }\n\n this.handlers.get(type)?.push(handler);\n return this;\n };\n\n process = async (event: Stripe.Event): Promise<void> => {\n const eventHandlers = this.handlers.get(event.type);\n if (eventHandlers) {\n await Promise.all(eventHandlers.map((handler) => handler(event.data.object)));\n } else {\n console.error(`No stripe event handler found for event type: ${event.type}`);\n throw new Error(`No stripe event handler found for event type: ${event.type}`);\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,IAAM,qBAAN,MAAM,oBAAmB;AAAA;AAAA,EAEb;AAAA,EAET,cAAc;AACpB,SAAK,WAAW,oBAAI,IAAI;AAAA,EAC1B;AAAA,EAEA,OAAO,SAAS;AACd,WAAO,IAAI,oBAAmB;AAAA,EAChC;AAAA,EAEA,KAAK,CAA8B,MAAS,YAA+B;AACzE,QAAI,CAAC,KAAK,SAAS,IAAI,IAAI,GAAG;AAC5B,WAAK,SAAS,IAAI,MAAM,CAAC,CAAC;AAAA,IAC5B;AAEA,SAAK,SAAS,IAAI,IAAI,GAAG,KAAK,OAAO;AACrC,WAAO;AAAA,EACT;AAAA,EAEA,UAAU,OAAO,UAAuC;AACtD,UAAM,gBAAgB,KAAK,SAAS,IAAI,MAAM,IAAI;AAClD,QAAI,eAAe;AACjB,YAAM,QAAQ,IAAI,cAAc,IAAI,CAAC,YAAY,QAAQ,MAAM,KAAK,MAAM,CAAC,CAAC;AAAA,IAC9E,OAAO;AACL,cAAQ,MAAM,iDAAiD,MAAM,IAAI,EAAE;AAC3E,YAAM,IAAI,MAAM,iDAAiD,MAAM,IAAI,EAAE;AAAA,IAC/E;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Stripe from 'stripe';
|
|
2
|
+
|
|
3
|
+
type StripeEventObject<T extends Stripe.Event.Type> = Extract<Stripe.Event, {
|
|
4
|
+
type: T;
|
|
5
|
+
}>['data']['object'];
|
|
6
|
+
type EventHandlerFn<T extends Stripe.Event.Type = Stripe.Event.Type> = (object: StripeEventObject<T>) => Promise<void>;
|
|
7
|
+
declare class StripeEventHandler {
|
|
8
|
+
private readonly handlers;
|
|
9
|
+
private constructor();
|
|
10
|
+
static create(): StripeEventHandler;
|
|
11
|
+
on: <T extends Stripe.Event.Type>(type: T, handler: EventHandlerFn<T>) => this;
|
|
12
|
+
process: (event: Stripe.Event) => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { StripeEventHandler };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Stripe from 'stripe';
|
|
2
|
+
|
|
3
|
+
type StripeEventObject<T extends Stripe.Event.Type> = Extract<Stripe.Event, {
|
|
4
|
+
type: T;
|
|
5
|
+
}>['data']['object'];
|
|
6
|
+
type EventHandlerFn<T extends Stripe.Event.Type = Stripe.Event.Type> = (object: StripeEventObject<T>) => Promise<void>;
|
|
7
|
+
declare class StripeEventHandler {
|
|
8
|
+
private readonly handlers;
|
|
9
|
+
private constructor();
|
|
10
|
+
static create(): StripeEventHandler;
|
|
11
|
+
on: <T extends Stripe.Event.Type>(type: T, handler: EventHandlerFn<T>) => this;
|
|
12
|
+
process: (event: Stripe.Event) => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { StripeEventHandler };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// src/stripe/handler.ts
|
|
2
|
+
var StripeEventHandler = class _StripeEventHandler {
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
+
handlers;
|
|
5
|
+
constructor() {
|
|
6
|
+
this.handlers = /* @__PURE__ */ new Map();
|
|
7
|
+
}
|
|
8
|
+
static create() {
|
|
9
|
+
return new _StripeEventHandler();
|
|
10
|
+
}
|
|
11
|
+
on = (type, handler) => {
|
|
12
|
+
if (!this.handlers.has(type)) {
|
|
13
|
+
this.handlers.set(type, []);
|
|
14
|
+
}
|
|
15
|
+
this.handlers.get(type)?.push(handler);
|
|
16
|
+
return this;
|
|
17
|
+
};
|
|
18
|
+
process = async (event) => {
|
|
19
|
+
const eventHandlers = this.handlers.get(event.type);
|
|
20
|
+
if (eventHandlers) {
|
|
21
|
+
await Promise.all(eventHandlers.map((handler) => handler(event.data.object)));
|
|
22
|
+
} else {
|
|
23
|
+
console.error(`No stripe event handler found for event type: ${event.type}`);
|
|
24
|
+
throw new Error(`No stripe event handler found for event type: ${event.type}`);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
StripeEventHandler
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=handler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/stripe/handler.ts"],"sourcesContent":["import type Stripe from 'stripe';\n\ntype StripeEventObject<T extends Stripe.Event.Type> = Extract<\n Stripe.Event,\n { type: T }\n>['data']['object'];\n\ntype EventHandlerFn<T extends Stripe.Event.Type = Stripe.Event.Type> = (\n object: StripeEventObject<T>\n) => Promise<void>;\n\nexport class StripeEventHandler {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private readonly handlers: Map<Stripe.Event.Type, Array<EventHandlerFn<any>>>;\n\n private constructor() {\n this.handlers = new Map();\n }\n\n static create() {\n return new StripeEventHandler();\n }\n\n on = <T extends Stripe.Event.Type>(type: T, handler: EventHandlerFn<T>) => {\n if (!this.handlers.has(type)) {\n this.handlers.set(type, []);\n }\n\n this.handlers.get(type)?.push(handler);\n return this;\n };\n\n process = async (event: Stripe.Event): Promise<void> => {\n const eventHandlers = this.handlers.get(event.type);\n if (eventHandlers) {\n await Promise.all(eventHandlers.map((handler) => handler(event.data.object)));\n } else {\n console.error(`No stripe event handler found for event type: ${event.type}`);\n throw new Error(`No stripe event handler found for event type: ${event.type}`);\n }\n };\n}\n"],"mappings":";AAWO,IAAM,qBAAN,MAAM,oBAAmB;AAAA;AAAA,EAEb;AAAA,EAET,cAAc;AACpB,SAAK,WAAW,oBAAI,IAAI;AAAA,EAC1B;AAAA,EAEA,OAAO,SAAS;AACd,WAAO,IAAI,oBAAmB;AAAA,EAChC;AAAA,EAEA,KAAK,CAA8B,MAAS,YAA+B;AACzE,QAAI,CAAC,KAAK,SAAS,IAAI,IAAI,GAAG;AAC5B,WAAK,SAAS,IAAI,MAAM,CAAC,CAAC;AAAA,IAC5B;AAEA,SAAK,SAAS,IAAI,IAAI,GAAG,KAAK,OAAO;AACrC,WAAO;AAAA,EACT;AAAA,EAEA,UAAU,OAAO,UAAuC;AACtD,UAAM,gBAAgB,KAAK,SAAS,IAAI,MAAM,IAAI;AAClD,QAAI,eAAe;AACjB,YAAM,QAAQ,IAAI,cAAc,IAAI,CAAC,YAAY,QAAQ,MAAM,KAAK,MAAM,CAAC,CAAC;AAAA,IAC9E,OAAO;AACL,cAAQ,MAAM,iDAAiD,MAAM,IAAI,EAAE;AAC3E,YAAM,IAAI,MAAM,iDAAiD,MAAM,IAAI,EAAE;AAAA,IAC/E;AAAA,EACF;AACF;","names":[]}
|
package/dist/stripe/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var stripe_exports = {};
|
|
22
22
|
__export(stripe_exports, {
|
|
23
23
|
METADATA_KEYS: () => import_metadata.METADATA_KEYS,
|
|
24
|
+
StripeEventHandler: () => import_handler.StripeEventHandler,
|
|
24
25
|
cancellationDetailsSchema: () => import_schema.cancellationDetailsSchema,
|
|
25
26
|
checkoutSessionSchema: () => import_schema.checkoutSessionSchema,
|
|
26
27
|
getBeginCheckoutProperties: () => import_mapper.getBeginCheckoutProperties,
|
|
@@ -37,11 +38,13 @@ __export(stripe_exports, {
|
|
|
37
38
|
});
|
|
38
39
|
module.exports = __toCommonJS(stripe_exports);
|
|
39
40
|
var import_mapper = require("./mapper.cjs");
|
|
41
|
+
var import_handler = require("./handler.cjs");
|
|
40
42
|
var import_schema = require("./schema.cjs");
|
|
41
43
|
var import_metadata = require("./metadata.cjs");
|
|
42
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
43
45
|
0 && (module.exports = {
|
|
44
46
|
METADATA_KEYS,
|
|
47
|
+
StripeEventHandler,
|
|
45
48
|
cancellationDetailsSchema,
|
|
46
49
|
checkoutSessionSchema,
|
|
47
50
|
getBeginCheckoutProperties,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/stripe/index.ts"],"sourcesContent":["export {\n mapTime,\n mapCharge,\n mapInvoice,\n mapLineItem,\n mapPaymentIntent,\n mapCheckoutSession,\n mapSubscriptionStatus,\n minorUnits,\n price,\n getPurchaseProperties,\n getBeginCheckoutProperties,\n type CheckoutSession,\n type PurchaseProperties,\n type ProductPrice,\n type BeginCheckoutProperties,\n} from './mapper';\nexport {\n cancellationDetailsSchema,\n checkoutSessionSchema,\n type CancellationDetails,\n} from './schema';\nexport type { ProductId, PriceId, Config, CreateCheckoutSessionDTO } from './types';\nexport { METADATA_KEYS } from './metadata';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAgBO;AACP,oBAIO;AAEP,sBAA8B;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/stripe/index.ts"],"sourcesContent":["export {\n mapTime,\n mapCharge,\n mapInvoice,\n mapLineItem,\n mapPaymentIntent,\n mapCheckoutSession,\n mapSubscriptionStatus,\n minorUnits,\n price,\n getPurchaseProperties,\n getBeginCheckoutProperties,\n type CheckoutSession,\n type PurchaseProperties,\n type ProductPrice,\n type BeginCheckoutProperties,\n} from './mapper';\nexport { StripeEventHandler } from './handler';\nexport {\n cancellationDetailsSchema,\n checkoutSessionSchema,\n type CancellationDetails,\n} from './schema';\nexport type { ProductId, PriceId, Config, CreateCheckoutSessionDTO } from './types';\nexport { METADATA_KEYS } from './metadata';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAgBO;AACP,qBAAmC;AACnC,oBAIO;AAEP,sBAA8B;","names":[]}
|
package/dist/stripe/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { BeginCheckoutProperties, CheckoutSession, ProductPrice, PurchaseProperties, getBeginCheckoutProperties, getPurchaseProperties, mapCharge, mapCheckoutSession, mapInvoice, mapLineItem, mapPaymentIntent, mapSubscriptionStatus, mapTime, minorUnits, price } from './mapper.cjs';
|
|
2
|
+
export { StripeEventHandler } from './handler.cjs';
|
|
2
3
|
export { CancellationDetails, cancellationDetailsSchema, checkoutSessionSchema } from './schema.cjs';
|
|
3
4
|
export { Config, CreateCheckoutSessionDTO, PriceId, ProductId } from './types.cjs';
|
|
4
5
|
export { METADATA_KEYS } from './metadata.cjs';
|
package/dist/stripe/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { BeginCheckoutProperties, CheckoutSession, ProductPrice, PurchaseProperties, getBeginCheckoutProperties, getPurchaseProperties, mapCharge, mapCheckoutSession, mapInvoice, mapLineItem, mapPaymentIntent, mapSubscriptionStatus, mapTime, minorUnits, price } from './mapper.js';
|
|
2
|
+
export { StripeEventHandler } from './handler.js';
|
|
2
3
|
export { CancellationDetails, cancellationDetailsSchema, checkoutSessionSchema } from './schema.js';
|
|
3
4
|
export { Config, CreateCheckoutSessionDTO, PriceId, ProductId } from './types.js';
|
|
4
5
|
export { METADATA_KEYS } from './metadata.js';
|
package/dist/stripe/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
getPurchaseProperties,
|
|
13
13
|
getBeginCheckoutProperties
|
|
14
14
|
} from "./mapper.mjs";
|
|
15
|
+
import { StripeEventHandler } from "./handler.mjs";
|
|
15
16
|
import {
|
|
16
17
|
cancellationDetailsSchema,
|
|
17
18
|
checkoutSessionSchema
|
|
@@ -19,6 +20,7 @@ import {
|
|
|
19
20
|
import { METADATA_KEYS } from "./metadata.mjs";
|
|
20
21
|
export {
|
|
21
22
|
METADATA_KEYS,
|
|
23
|
+
StripeEventHandler,
|
|
22
24
|
cancellationDetailsSchema,
|
|
23
25
|
checkoutSessionSchema,
|
|
24
26
|
getBeginCheckoutProperties,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/stripe/index.ts"],"sourcesContent":["export {\n mapTime,\n mapCharge,\n mapInvoice,\n mapLineItem,\n mapPaymentIntent,\n mapCheckoutSession,\n mapSubscriptionStatus,\n minorUnits,\n price,\n getPurchaseProperties,\n getBeginCheckoutProperties,\n type CheckoutSession,\n type PurchaseProperties,\n type ProductPrice,\n type BeginCheckoutProperties,\n} from './mapper';\nexport {\n cancellationDetailsSchema,\n checkoutSessionSchema,\n type CancellationDetails,\n} from './schema';\nexport type { ProductId, PriceId, Config, CreateCheckoutSessionDTO } from './types';\nexport { METADATA_KEYS } from './metadata';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AAEP,SAAS,qBAAqB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/stripe/index.ts"],"sourcesContent":["export {\n mapTime,\n mapCharge,\n mapInvoice,\n mapLineItem,\n mapPaymentIntent,\n mapCheckoutSession,\n mapSubscriptionStatus,\n minorUnits,\n price,\n getPurchaseProperties,\n getBeginCheckoutProperties,\n type CheckoutSession,\n type PurchaseProperties,\n type ProductPrice,\n type BeginCheckoutProperties,\n} from './mapper';\nexport { StripeEventHandler } from './handler';\nexport {\n cancellationDetailsSchema,\n checkoutSessionSchema,\n type CancellationDetails,\n} from './schema';\nexport type { ProductId, PriceId, Config, CreateCheckoutSessionDTO } from './types';\nexport { METADATA_KEYS } from './metadata';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AAEP,SAAS,qBAAqB;","names":[]}
|
package/dist/stripe/schema.d.cts
CHANGED
|
@@ -6,6 +6,7 @@ import { ProductId } from './types.cjs';
|
|
|
6
6
|
declare const cancellationDetailsSchema: zod_mini.ZodMiniObject<{
|
|
7
7
|
comment: zod_mini.ZodMiniOptional<zod_mini.ZodMiniNullable<zod_mini.ZodMiniString<string>>>;
|
|
8
8
|
feedback: zod_mini.ZodMiniOptional<zod_mini.ZodMiniNullable<zod_mini.ZodMiniEnum<{
|
|
9
|
+
other: "other";
|
|
9
10
|
customer_service: "customer_service";
|
|
10
11
|
low_quality: "low_quality";
|
|
11
12
|
missing_features: "missing_features";
|
|
@@ -13,7 +14,6 @@ declare const cancellationDetailsSchema: zod_mini.ZodMiniObject<{
|
|
|
13
14
|
too_complex: "too_complex";
|
|
14
15
|
too_expensive: "too_expensive";
|
|
15
16
|
unused: "unused";
|
|
16
|
-
other: "other";
|
|
17
17
|
}>>>;
|
|
18
18
|
}, zod_v4_core.$strip>;
|
|
19
19
|
declare function checkoutSessionSchema(productIds: [ProductId, ...ProductId[]]): zod_mini.ZodMiniObject<{
|
package/dist/stripe/schema.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ProductId } from './types.js';
|
|
|
6
6
|
declare const cancellationDetailsSchema: zod_mini.ZodMiniObject<{
|
|
7
7
|
comment: zod_mini.ZodMiniOptional<zod_mini.ZodMiniNullable<zod_mini.ZodMiniString<string>>>;
|
|
8
8
|
feedback: zod_mini.ZodMiniOptional<zod_mini.ZodMiniNullable<zod_mini.ZodMiniEnum<{
|
|
9
|
+
other: "other";
|
|
9
10
|
customer_service: "customer_service";
|
|
10
11
|
low_quality: "low_quality";
|
|
11
12
|
missing_features: "missing_features";
|
|
@@ -13,7 +14,6 @@ declare const cancellationDetailsSchema: zod_mini.ZodMiniObject<{
|
|
|
13
14
|
too_complex: "too_complex";
|
|
14
15
|
too_expensive: "too_expensive";
|
|
15
16
|
unused: "unused";
|
|
16
|
-
other: "other";
|
|
17
17
|
}>>>;
|
|
18
18
|
}, zod_v4_core.$strip>;
|
|
19
19
|
declare function checkoutSessionSchema(productIds: [ProductId, ...ProductId[]]): zod_mini.ZodMiniObject<{
|