@paykit-sdk/polar 1.1.98 → 1.1.99
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/index.js +18 -8
- package/dist/index.mjs +18 -8
- package/dist/polar-provider.js +18 -8
- package/dist/polar-provider.mjs +18 -8
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4040,14 +4040,14 @@ var ostring = () => stringType().optional();
|
|
|
4040
4040
|
var onumber = () => numberType().optional();
|
|
4041
4041
|
var oboolean = () => booleanType().optional();
|
|
4042
4042
|
var coerce = {
|
|
4043
|
-
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
4044
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
4045
|
-
boolean: (arg) => ZodBoolean.create({
|
|
4043
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4044
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4045
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
4046
4046
|
...arg,
|
|
4047
4047
|
coerce: true
|
|
4048
|
-
}),
|
|
4049
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
4050
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
4048
|
+
})),
|
|
4049
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4050
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
|
|
4051
4051
|
};
|
|
4052
4052
|
var NEVER = INVALID;
|
|
4053
4053
|
var paykitCheckout$InboundSchema = (checkout) => {
|
|
@@ -4069,7 +4069,15 @@ var paykitCustomer$InboundSchema = (customer) => {
|
|
|
4069
4069
|
email: customer.email,
|
|
4070
4070
|
name: customer.name ?? "",
|
|
4071
4071
|
phone,
|
|
4072
|
-
metadata: core.omitInternalMetadata(customer.metadata ?? {})
|
|
4072
|
+
metadata: core.omitInternalMetadata(customer.metadata ?? {}),
|
|
4073
|
+
created_at: customer.createdAt,
|
|
4074
|
+
updated_at: customer.modifiedAt ?? null,
|
|
4075
|
+
custom_fields: {
|
|
4076
|
+
emailVerified: customer.emailVerified,
|
|
4077
|
+
taxId: customer.taxId,
|
|
4078
|
+
avatarUrl: customer.avatarUrl,
|
|
4079
|
+
billingAddress: customer.billingAddress
|
|
4080
|
+
}
|
|
4073
4081
|
};
|
|
4074
4082
|
};
|
|
4075
4083
|
var toPaykitSubscriptionStatus = (status) => {
|
|
@@ -4091,7 +4099,9 @@ var paykitSubscription$InboundSchema = (subscription) => {
|
|
|
4091
4099
|
item_id: subscription.productId,
|
|
4092
4100
|
billing_interval: subscription.recurringInterval,
|
|
4093
4101
|
currency: subscription.currency,
|
|
4094
|
-
amount: subscription.amount
|
|
4102
|
+
amount: subscription.amount,
|
|
4103
|
+
requires_action: false,
|
|
4104
|
+
payment_url: null
|
|
4095
4105
|
};
|
|
4096
4106
|
};
|
|
4097
4107
|
var paykitInvoice$InboundSchema = (invoice) => {
|
package/dist/index.mjs
CHANGED
|
@@ -4038,14 +4038,14 @@ var ostring = () => stringType().optional();
|
|
|
4038
4038
|
var onumber = () => numberType().optional();
|
|
4039
4039
|
var oboolean = () => booleanType().optional();
|
|
4040
4040
|
var coerce = {
|
|
4041
|
-
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
4042
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
4043
|
-
boolean: (arg) => ZodBoolean.create({
|
|
4041
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4042
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4043
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
4044
4044
|
...arg,
|
|
4045
4045
|
coerce: true
|
|
4046
|
-
}),
|
|
4047
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
4048
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
4046
|
+
})),
|
|
4047
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4048
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
|
|
4049
4049
|
};
|
|
4050
4050
|
var NEVER = INVALID;
|
|
4051
4051
|
var paykitCheckout$InboundSchema = (checkout) => {
|
|
@@ -4067,7 +4067,15 @@ var paykitCustomer$InboundSchema = (customer) => {
|
|
|
4067
4067
|
email: customer.email,
|
|
4068
4068
|
name: customer.name ?? "",
|
|
4069
4069
|
phone,
|
|
4070
|
-
metadata: omitInternalMetadata(customer.metadata ?? {})
|
|
4070
|
+
metadata: omitInternalMetadata(customer.metadata ?? {}),
|
|
4071
|
+
created_at: customer.createdAt,
|
|
4072
|
+
updated_at: customer.modifiedAt ?? null,
|
|
4073
|
+
custom_fields: {
|
|
4074
|
+
emailVerified: customer.emailVerified,
|
|
4075
|
+
taxId: customer.taxId,
|
|
4076
|
+
avatarUrl: customer.avatarUrl,
|
|
4077
|
+
billingAddress: customer.billingAddress
|
|
4078
|
+
}
|
|
4071
4079
|
};
|
|
4072
4080
|
};
|
|
4073
4081
|
var toPaykitSubscriptionStatus = (status) => {
|
|
@@ -4089,7 +4097,9 @@ var paykitSubscription$InboundSchema = (subscription) => {
|
|
|
4089
4097
|
item_id: subscription.productId,
|
|
4090
4098
|
billing_interval: subscription.recurringInterval,
|
|
4091
4099
|
currency: subscription.currency,
|
|
4092
|
-
amount: subscription.amount
|
|
4100
|
+
amount: subscription.amount,
|
|
4101
|
+
requires_action: false,
|
|
4102
|
+
payment_url: null
|
|
4093
4103
|
};
|
|
4094
4104
|
};
|
|
4095
4105
|
var paykitInvoice$InboundSchema = (invoice) => {
|
package/dist/polar-provider.js
CHANGED
|
@@ -4040,14 +4040,14 @@ var ostring = () => stringType().optional();
|
|
|
4040
4040
|
var onumber = () => numberType().optional();
|
|
4041
4041
|
var oboolean = () => booleanType().optional();
|
|
4042
4042
|
var coerce = {
|
|
4043
|
-
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
4044
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
4045
|
-
boolean: (arg) => ZodBoolean.create({
|
|
4043
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4044
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4045
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
4046
4046
|
...arg,
|
|
4047
4047
|
coerce: true
|
|
4048
|
-
}),
|
|
4049
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
4050
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
4048
|
+
})),
|
|
4049
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4050
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
|
|
4051
4051
|
};
|
|
4052
4052
|
var NEVER = INVALID;
|
|
4053
4053
|
var paykitCheckout$InboundSchema = (checkout) => {
|
|
@@ -4069,7 +4069,15 @@ var paykitCustomer$InboundSchema = (customer) => {
|
|
|
4069
4069
|
email: customer.email,
|
|
4070
4070
|
name: customer.name ?? "",
|
|
4071
4071
|
phone,
|
|
4072
|
-
metadata: core.omitInternalMetadata(customer.metadata ?? {})
|
|
4072
|
+
metadata: core.omitInternalMetadata(customer.metadata ?? {}),
|
|
4073
|
+
created_at: customer.createdAt,
|
|
4074
|
+
updated_at: customer.modifiedAt ?? null,
|
|
4075
|
+
custom_fields: {
|
|
4076
|
+
emailVerified: customer.emailVerified,
|
|
4077
|
+
taxId: customer.taxId,
|
|
4078
|
+
avatarUrl: customer.avatarUrl,
|
|
4079
|
+
billingAddress: customer.billingAddress
|
|
4080
|
+
}
|
|
4073
4081
|
};
|
|
4074
4082
|
};
|
|
4075
4083
|
var toPaykitSubscriptionStatus = (status) => {
|
|
@@ -4091,7 +4099,9 @@ var paykitSubscription$InboundSchema = (subscription) => {
|
|
|
4091
4099
|
item_id: subscription.productId,
|
|
4092
4100
|
billing_interval: subscription.recurringInterval,
|
|
4093
4101
|
currency: subscription.currency,
|
|
4094
|
-
amount: subscription.amount
|
|
4102
|
+
amount: subscription.amount,
|
|
4103
|
+
requires_action: false,
|
|
4104
|
+
payment_url: null
|
|
4095
4105
|
};
|
|
4096
4106
|
};
|
|
4097
4107
|
var paykitInvoice$InboundSchema = (invoice) => {
|
package/dist/polar-provider.mjs
CHANGED
|
@@ -4038,14 +4038,14 @@ var ostring = () => stringType().optional();
|
|
|
4038
4038
|
var onumber = () => numberType().optional();
|
|
4039
4039
|
var oboolean = () => booleanType().optional();
|
|
4040
4040
|
var coerce = {
|
|
4041
|
-
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
4042
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
4043
|
-
boolean: (arg) => ZodBoolean.create({
|
|
4041
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4042
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4043
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
4044
4044
|
...arg,
|
|
4045
4045
|
coerce: true
|
|
4046
|
-
}),
|
|
4047
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
4048
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
4046
|
+
})),
|
|
4047
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4048
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
|
|
4049
4049
|
};
|
|
4050
4050
|
var NEVER = INVALID;
|
|
4051
4051
|
var paykitCheckout$InboundSchema = (checkout) => {
|
|
@@ -4067,7 +4067,15 @@ var paykitCustomer$InboundSchema = (customer) => {
|
|
|
4067
4067
|
email: customer.email,
|
|
4068
4068
|
name: customer.name ?? "",
|
|
4069
4069
|
phone,
|
|
4070
|
-
metadata: omitInternalMetadata(customer.metadata ?? {})
|
|
4070
|
+
metadata: omitInternalMetadata(customer.metadata ?? {}),
|
|
4071
|
+
created_at: customer.createdAt,
|
|
4072
|
+
updated_at: customer.modifiedAt ?? null,
|
|
4073
|
+
custom_fields: {
|
|
4074
|
+
emailVerified: customer.emailVerified,
|
|
4075
|
+
taxId: customer.taxId,
|
|
4076
|
+
avatarUrl: customer.avatarUrl,
|
|
4077
|
+
billingAddress: customer.billingAddress
|
|
4078
|
+
}
|
|
4071
4079
|
};
|
|
4072
4080
|
};
|
|
4073
4081
|
var toPaykitSubscriptionStatus = (status) => {
|
|
@@ -4089,7 +4097,9 @@ var paykitSubscription$InboundSchema = (subscription) => {
|
|
|
4089
4097
|
item_id: subscription.productId,
|
|
4090
4098
|
billing_interval: subscription.recurringInterval,
|
|
4091
4099
|
currency: subscription.currency,
|
|
4092
|
-
amount: subscription.amount
|
|
4100
|
+
amount: subscription.amount,
|
|
4101
|
+
requires_action: false,
|
|
4102
|
+
payment_url: null
|
|
4093
4103
|
};
|
|
4094
4104
|
};
|
|
4095
4105
|
var paykitInvoice$InboundSchema = (invoice) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paykit-sdk/polar",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.99",
|
|
4
4
|
"description": "Polar provider for PayKit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"@polar-sh/sdk": "0.37.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@paykit-sdk/core": ">=1.1.
|
|
23
|
+
"@paykit-sdk/core": ">=1.1.102"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"tsup": "^8.0.0",
|
|
27
27
|
"typescript": "^5.0.0",
|
|
28
28
|
"zod": "^3.24.2",
|
|
29
|
-
"@paykit-sdk/core": "1.1.
|
|
29
|
+
"@paykit-sdk/core": "1.1.102"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|