controlresell 2.8.50 → 2.8.51
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/package.json +1 -1
- package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.d.ts +9 -0
- package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.d.ts.map +1 -1
- package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.js +4 -1
- package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.js.map +1 -1
- package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.ts +4 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.d.ts +3 -3
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.js +1 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.js.map +1 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.ts +1 -1
package/package.json
CHANGED
package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.d.ts
CHANGED
|
@@ -10,16 +10,25 @@ export declare const CreateSubscriptionPaymentLinkRequestSchema: z.ZodObject<{
|
|
|
10
10
|
levelId: number;
|
|
11
11
|
quantity: number;
|
|
12
12
|
}>, "many">;
|
|
13
|
+
trialDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
coupons: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
15
|
+
allowCustomPromoCode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
13
16
|
}, "strip", z.ZodTypeAny, {
|
|
14
17
|
levels: {
|
|
15
18
|
levelId: number;
|
|
16
19
|
quantity: number;
|
|
17
20
|
}[];
|
|
21
|
+
trialDays?: number | null | undefined;
|
|
22
|
+
coupons?: string[] | null | undefined;
|
|
23
|
+
allowCustomPromoCode?: boolean | null | undefined;
|
|
18
24
|
}, {
|
|
19
25
|
levels: {
|
|
20
26
|
levelId: number;
|
|
21
27
|
quantity: number;
|
|
22
28
|
}[];
|
|
29
|
+
trialDays?: number | null | undefined;
|
|
30
|
+
coupons?: string[] | null | undefined;
|
|
31
|
+
allowCustomPromoCode?: boolean | null | undefined;
|
|
23
32
|
}>;
|
|
24
33
|
export type CreateSubscriptionPaymentLinkRequest = z.infer<typeof CreateSubscriptionPaymentLinkRequestSchema>;
|
|
25
34
|
//# sourceMappingURL=CreateSubscriptionPaymentLinkRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSubscriptionPaymentLinkRequest.d.ts","sourceRoot":"","sources":["CreateSubscriptionPaymentLinkRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,0CAA0C
|
|
1
|
+
{"version":3,"file":"CreateSubscriptionPaymentLinkRequest.d.ts","sourceRoot":"","sources":["CreateSubscriptionPaymentLinkRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrD,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAA"}
|
package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.js
CHANGED
|
@@ -4,6 +4,9 @@ exports.CreateSubscriptionPaymentLinkRequestSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const SubscriptionLevelQuantity_1 = require("./SubscriptionLevelQuantity");
|
|
6
6
|
exports.CreateSubscriptionPaymentLinkRequestSchema = zod_1.z.object({
|
|
7
|
-
levels: zod_1.z.array(SubscriptionLevelQuantity_1.SubscriptionLevelQuantitySchema)
|
|
7
|
+
levels: zod_1.z.array(SubscriptionLevelQuantity_1.SubscriptionLevelQuantitySchema),
|
|
8
|
+
trialDays: zod_1.z.number().int().nullish(),
|
|
9
|
+
coupons: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
10
|
+
allowCustomPromoCode: zod_1.z.boolean().nullish()
|
|
8
11
|
});
|
|
9
12
|
//# sourceMappingURL=CreateSubscriptionPaymentLinkRequest.js.map
|
package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSubscriptionPaymentLinkRequest.js","sourceRoot":"","sources":["CreateSubscriptionPaymentLinkRequest.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,2EAA2E;AAE9D,QAAA,0CAA0C,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,2DAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateSubscriptionPaymentLinkRequest.js","sourceRoot":"","sources":["CreateSubscriptionPaymentLinkRequest.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,2EAA2E;AAE9D,QAAA,0CAA0C,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,2DAA+B,CAAC;IAChD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;IACrC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACtC,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAA"}
|
package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.ts
CHANGED
|
@@ -2,6 +2,9 @@ import {z} from "zod"
|
|
|
2
2
|
import {SubscriptionLevelQuantitySchema} from "./SubscriptionLevelQuantity"
|
|
3
3
|
|
|
4
4
|
export const CreateSubscriptionPaymentLinkRequestSchema = z.object({
|
|
5
|
-
levels: z.array(SubscriptionLevelQuantitySchema)
|
|
5
|
+
levels: z.array(SubscriptionLevelQuantitySchema),
|
|
6
|
+
trialDays: z.number().int().nullish(),
|
|
7
|
+
coupons: z.array(z.string()).nullish(),
|
|
8
|
+
allowCustomPromoCode: z.boolean().nullish()
|
|
6
9
|
})
|
|
7
10
|
export type CreateSubscriptionPaymentLinkRequest = z.infer<typeof CreateSubscriptionPaymentLinkRequestSchema>
|
package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const SubscriptionPaymentLinkResponseSchema: z.ZodObject<{
|
|
3
|
-
url: z.ZodString
|
|
3
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
url
|
|
5
|
+
url?: string | null | undefined;
|
|
6
6
|
}, {
|
|
7
|
-
url
|
|
7
|
+
url?: string | null | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export type SubscriptionPaymentLinkResponse = z.infer<typeof SubscriptionPaymentLinkResponseSchema>;
|
|
10
10
|
//# sourceMappingURL=SubscriptionPaymentLinkResponse.d.ts.map
|
package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SubscriptionPaymentLinkResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.SubscriptionPaymentLinkResponseSchema = zod_1.z.object({
|
|
6
|
-
url: zod_1.z.string()
|
|
6
|
+
url: zod_1.z.string().nullish()
|
|
7
7
|
});
|
|
8
8
|
//# sourceMappingURL=SubscriptionPaymentLinkResponse.js.map
|
package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionPaymentLinkResponse.js","sourceRoot":"","sources":["SubscriptionPaymentLinkResponse.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AAER,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"SubscriptionPaymentLinkResponse.js","sourceRoot":"","sources":["SubscriptionPaymentLinkResponse.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AAER,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CAC5B,CAAC,CAAA"}
|