controlresell 2.26.8 → 2.28.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/package.json +1 -1
- package/src/com/controlresell/api/requests/subscriptions/CancelSubscriptionRequest.d.ts +19 -0
- package/src/com/controlresell/api/requests/subscriptions/CancelSubscriptionRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/subscriptions/CancelSubscriptionRequest.js +9 -0
- package/src/com/controlresell/api/requests/subscriptions/CancelSubscriptionRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/subscriptions/CancelSubscriptionRequest.ts +10 -0
- package/src/com/controlresell/api/requests/subscriptions/ChangeSubscriptionPlanRequest.d.ts +3 -0
- package/src/com/controlresell/api/requests/subscriptions/ChangeSubscriptionPlanRequest.d.ts.map +1 -1
- package/src/com/controlresell/api/requests/subscriptions/ChangeSubscriptionPlanRequest.js +2 -1
- package/src/com/controlresell/api/requests/subscriptions/ChangeSubscriptionPlanRequest.js.map +1 -1
- package/src/com/controlresell/api/requests/subscriptions/ChangeSubscriptionPlanRequest.ts +2 -1
- package/src/com/controlresell/api/requests/subscriptions/PauseSubscriptionRequest.d.ts +10 -0
- package/src/com/controlresell/api/requests/subscriptions/PauseSubscriptionRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/subscriptions/PauseSubscriptionRequest.js +5 -0
- package/src/com/controlresell/api/requests/subscriptions/PauseSubscriptionRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/subscriptions/PauseSubscriptionRequest.ts +6 -0
- package/src/com/controlresell/api/requests/subscriptions/SubscriptionHelpRequest.d.ts +13 -0
- package/src/com/controlresell/api/requests/subscriptions/SubscriptionHelpRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/subscriptions/SubscriptionHelpRequest.js +7 -0
- package/src/com/controlresell/api/requests/subscriptions/SubscriptionHelpRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/subscriptions/SubscriptionHelpRequest.ts +8 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionAmount.d.ts +13 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionAmount.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionAmount.js +6 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionAmount.js.map +1 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionAmount.ts +7 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionChangePreview.d.ts +85 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionChangePreview.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionChangePreview.js +12 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionChangePreview.js.map +1 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionChangePreview.ts +13 -0
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +39 -3
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js +10 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js.map +1 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.ts +10 -1
- package/src/com/controlresell/models/discord/DiscordLinkCreatedEvent.d.ts +3 -3
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.d.ts +3 -0
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.js +2 -1
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.js.map +1 -1
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.ts +2 -1
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayloadWithUser.d.ts +5 -0
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayloadWithUser.d.ts.map +1 -1
- package/src/com/controlresell/models/notifications/NotificationToken.d.ts +3 -0
- package/src/com/controlresell/models/notifications/NotificationToken.d.ts.map +1 -1
- package/src/com/controlresell/models/notifications/NotificationToken.js +2 -1
- package/src/com/controlresell/models/notifications/NotificationToken.js.map +1 -1
- package/src/com/controlresell/models/notifications/NotificationToken.ts +2 -1
- package/src/com/controlresell/models/subscriptions/CancellationReason.d.ts +1 -1
- package/src/com/controlresell/models/subscriptions/CancellationReason.d.ts.map +1 -1
- package/src/com/controlresell/models/subscriptions/CancellationReason.js +2 -2
- package/src/com/controlresell/models/subscriptions/CancellationReason.js.map +1 -1
- package/src/com/controlresell/models/subscriptions/CancellationReason.ts +2 -2
- package/src/com/controlresell/models/subscriptions/SubscriptionChangedEvent.d.ts +3 -3
- package/src/com/controlresell/models/subscriptions/SubscriptionHistory.d.ts +48 -8
- package/src/com/controlresell/models/subscriptions/SubscriptionHistory.d.ts.map +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryMetadata.d.ts +56 -6
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryMetadata.d.ts.map +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryMetadata.js +10 -0
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryMetadata.js.map +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryMetadata.ts +12 -0
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryType.d.ts +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryType.d.ts.map +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryType.js +2 -2
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryType.js.map +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionHistoryType.ts +2 -2
- package/src/com/controlresell/models/subscriptions/SubscriptionState.d.ts +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionState.d.ts.map +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionState.js +2 -2
- package/src/com/controlresell/models/subscriptions/SubscriptionState.js.map +1 -1
- package/src/com/controlresell/models/subscriptions/SubscriptionState.ts +2 -2
- package/src/index.d.ts +5 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +5 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +5 -0
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CancelSubscriptionRequestSchema: z.ZodObject<{
|
|
3
|
+
reason: z.ZodCatch<z.ZodEnum<["USER_REQUESTED", "PAYMENT_FAILED", "DOWNGRADED", "SWITCHED_PLAN", "OTHER", "TOO_EXPENSIVE", "SEASONAL_PAUSE", "BUGS", "VINTED_ACCOUNT_BLOCKED", "SWITCHED_COMPETITOR", "CANT_USE_IT", "NOT_SELLING_ENOUGH", "MISSING_FEATURE", "UNKNOWN"]>>;
|
|
4
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
competitor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
missingFeature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
reason: "UNKNOWN" | "PAYMENT_FAILED" | "USER_REQUESTED" | "DOWNGRADED" | "SWITCHED_PLAN" | "OTHER" | "TOO_EXPENSIVE" | "SEASONAL_PAUSE" | "BUGS" | "VINTED_ACCOUNT_BLOCKED" | "SWITCHED_COMPETITOR" | "CANT_USE_IT" | "NOT_SELLING_ENOUGH" | "MISSING_FEATURE";
|
|
9
|
+
comment?: string | null | undefined;
|
|
10
|
+
competitor?: string | null | undefined;
|
|
11
|
+
missingFeature?: string | null | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
reason?: unknown;
|
|
14
|
+
comment?: string | null | undefined;
|
|
15
|
+
competitor?: string | null | undefined;
|
|
16
|
+
missingFeature?: string | null | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type CancelSubscriptionRequest = z.infer<typeof CancelSubscriptionRequestSchema>;
|
|
19
|
+
//# sourceMappingURL=CancelSubscriptionRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CancelSubscriptionRequest.d.ts","sourceRoot":"","sources":["CancelSubscriptionRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CancellationReasonSchema } from "../../../models/subscriptions/CancellationReason";
|
|
3
|
+
export const CancelSubscriptionRequestSchema = z.object({
|
|
4
|
+
reason: CancellationReasonSchema,
|
|
5
|
+
comment: z.string().nullish(),
|
|
6
|
+
competitor: z.string().nullish(),
|
|
7
|
+
missingFeature: z.string().nullish()
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=CancelSubscriptionRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CancelSubscriptionRequest.js","sourceRoot":"","sources":["CancelSubscriptionRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,wBAAwB,EAAC,MAAM,kDAAkD,CAAA;AAEzF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,wBAAwB;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAChC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CACvC,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {CancellationReasonSchema} from "../../../models/subscriptions/CancellationReason"
|
|
3
|
+
|
|
4
|
+
export const CancelSubscriptionRequestSchema = z.object({
|
|
5
|
+
reason: CancellationReasonSchema,
|
|
6
|
+
comment: z.string().nullish(),
|
|
7
|
+
competitor: z.string().nullish(),
|
|
8
|
+
missingFeature: z.string().nullish()
|
|
9
|
+
})
|
|
10
|
+
export type CancelSubscriptionRequest = z.infer<typeof CancelSubscriptionRequestSchema>
|
|
@@ -11,18 +11,21 @@ export declare const ChangeSubscriptionPlanRequestSchema: z.ZodObject<{
|
|
|
11
11
|
levelId: number;
|
|
12
12
|
}>, "many">;
|
|
13
13
|
billingInterval: z.ZodOptional<z.ZodNullable<z.ZodEnum<["MONTHLY", "ANNUAL"]>>>;
|
|
14
|
+
keepAccountIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
levels: {
|
|
16
17
|
quantity: number;
|
|
17
18
|
levelId: number;
|
|
18
19
|
}[];
|
|
19
20
|
billingInterval?: "MONTHLY" | "ANNUAL" | null | undefined;
|
|
21
|
+
keepAccountIds?: string[] | null | undefined;
|
|
20
22
|
}, {
|
|
21
23
|
levels: {
|
|
22
24
|
quantity: number;
|
|
23
25
|
levelId: number;
|
|
24
26
|
}[];
|
|
25
27
|
billingInterval?: "MONTHLY" | "ANNUAL" | null | undefined;
|
|
28
|
+
keepAccountIds?: string[] | null | undefined;
|
|
26
29
|
}>;
|
|
27
30
|
export type ChangeSubscriptionPlanRequest = z.infer<typeof ChangeSubscriptionPlanRequestSchema>;
|
|
28
31
|
//# sourceMappingURL=ChangeSubscriptionPlanRequest.d.ts.map
|
package/src/com/controlresell/api/requests/subscriptions/ChangeSubscriptionPlanRequest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSubscriptionPlanRequest.d.ts","sourceRoot":"","sources":["ChangeSubscriptionPlanRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"ChangeSubscriptionPlanRequest.d.ts","sourceRoot":"","sources":["ChangeSubscriptionPlanRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9C,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { SubscriptionLevelQuantitySchema } from "./SubscriptionLevelQuantity";
|
|
|
3
3
|
import { BillingIntervalSchema } from "./BillingInterval";
|
|
4
4
|
export const ChangeSubscriptionPlanRequestSchema = z.object({
|
|
5
5
|
levels: z.array(SubscriptionLevelQuantitySchema),
|
|
6
|
-
billingInterval: BillingIntervalSchema.nullish()
|
|
6
|
+
billingInterval: BillingIntervalSchema.nullish(),
|
|
7
|
+
keepAccountIds: z.array(z.string().uuid()).nullish()
|
|
7
8
|
});
|
|
8
9
|
//# sourceMappingURL=ChangeSubscriptionPlanRequest.js.map
|
package/src/com/controlresell/api/requests/subscriptions/ChangeSubscriptionPlanRequest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSubscriptionPlanRequest.js","sourceRoot":"","sources":["ChangeSubscriptionPlanRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,+BAA+B,EAAC,MAAM,6BAA6B,CAAA;AAC3E,OAAO,EAAC,qBAAqB,EAAC,MAAM,mBAAmB,CAAA;AAEvD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC;IAChD,eAAe,EAAE,qBAAqB,CAAC,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"ChangeSubscriptionPlanRequest.js","sourceRoot":"","sources":["ChangeSubscriptionPlanRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,+BAA+B,EAAC,MAAM,6BAA6B,CAAA;AAC3E,OAAO,EAAC,qBAAqB,EAAC,MAAM,mBAAmB,CAAA;AAEvD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC;IAChD,eAAe,EAAE,qBAAqB,CAAC,OAAO,EAAE;IAChD,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;CACvD,CAAC,CAAA"}
|
|
@@ -4,6 +4,7 @@ import {BillingIntervalSchema} from "./BillingInterval"
|
|
|
4
4
|
|
|
5
5
|
export const ChangeSubscriptionPlanRequestSchema = z.object({
|
|
6
6
|
levels: z.array(SubscriptionLevelQuantitySchema),
|
|
7
|
-
billingInterval: BillingIntervalSchema.nullish()
|
|
7
|
+
billingInterval: BillingIntervalSchema.nullish(),
|
|
8
|
+
keepAccountIds: z.array(z.string().uuid()).nullish()
|
|
8
9
|
})
|
|
9
10
|
export type ChangeSubscriptionPlanRequest = z.infer<typeof ChangeSubscriptionPlanRequestSchema>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PauseSubscriptionRequestSchema: z.ZodObject<{
|
|
3
|
+
months: z.ZodNumber;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
months: number;
|
|
6
|
+
}, {
|
|
7
|
+
months: number;
|
|
8
|
+
}>;
|
|
9
|
+
export type PauseSubscriptionRequest = z.infer<typeof PauseSubscriptionRequestSchema>;
|
|
10
|
+
//# sourceMappingURL=PauseSubscriptionRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PauseSubscriptionRequest.d.ts","sourceRoot":"","sources":["PauseSubscriptionRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,8BAA8B;;;;;;EAEzC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PauseSubscriptionRequest.js","sourceRoot":"","sources":["PauseSubscriptionRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC3B,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SubscriptionHelpRequestSchema: z.ZodObject<{
|
|
3
|
+
reason: z.ZodCatch<z.ZodEnum<["USER_REQUESTED", "PAYMENT_FAILED", "DOWNGRADED", "SWITCHED_PLAN", "OTHER", "TOO_EXPENSIVE", "SEASONAL_PAUSE", "BUGS", "VINTED_ACCOUNT_BLOCKED", "SWITCHED_COMPETITOR", "CANT_USE_IT", "NOT_SELLING_ENOUGH", "MISSING_FEATURE", "UNKNOWN"]>>;
|
|
4
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
reason: "UNKNOWN" | "PAYMENT_FAILED" | "USER_REQUESTED" | "DOWNGRADED" | "SWITCHED_PLAN" | "OTHER" | "TOO_EXPENSIVE" | "SEASONAL_PAUSE" | "BUGS" | "VINTED_ACCOUNT_BLOCKED" | "SWITCHED_COMPETITOR" | "CANT_USE_IT" | "NOT_SELLING_ENOUGH" | "MISSING_FEATURE";
|
|
7
|
+
comment?: string | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
reason?: unknown;
|
|
10
|
+
comment?: string | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type SubscriptionHelpRequest = z.infer<typeof SubscriptionHelpRequestSchema>;
|
|
13
|
+
//# sourceMappingURL=SubscriptionHelpRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionHelpRequest.d.ts","sourceRoot":"","sources":["SubscriptionHelpRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CancellationReasonSchema } from "../../../models/subscriptions/CancellationReason";
|
|
3
|
+
export const SubscriptionHelpRequestSchema = z.object({
|
|
4
|
+
reason: CancellationReasonSchema,
|
|
5
|
+
comment: z.string().nullish()
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=SubscriptionHelpRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionHelpRequest.js","sourceRoot":"","sources":["SubscriptionHelpRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,wBAAwB,EAAC,MAAM,kDAAkD,CAAA;AAEzF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,wBAAwB;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CAChC,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {CancellationReasonSchema} from "../../../models/subscriptions/CancellationReason"
|
|
3
|
+
|
|
4
|
+
export const SubscriptionHelpRequestSchema = z.object({
|
|
5
|
+
reason: CancellationReasonSchema,
|
|
6
|
+
comment: z.string().nullish()
|
|
7
|
+
})
|
|
8
|
+
export type SubscriptionHelpRequest = z.infer<typeof SubscriptionHelpRequestSchema>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SubscriptionAmountSchema: z.ZodObject<{
|
|
3
|
+
amountCents: z.ZodNumber;
|
|
4
|
+
currency: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
currency: string;
|
|
7
|
+
amountCents: number;
|
|
8
|
+
}, {
|
|
9
|
+
currency: string;
|
|
10
|
+
amountCents: number;
|
|
11
|
+
}>;
|
|
12
|
+
export type SubscriptionAmount = z.infer<typeof SubscriptionAmountSchema>;
|
|
13
|
+
//# sourceMappingURL=SubscriptionAmount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionAmount.d.ts","sourceRoot":"","sources":["SubscriptionAmount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionAmount.js","sourceRoot":"","sources":["SubscriptionAmount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SubscriptionChangePreviewSchema: z.ZodObject<{
|
|
3
|
+
dueNow: z.ZodObject<{
|
|
4
|
+
amountCents: z.ZodNumber;
|
|
5
|
+
currency: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
currency: string;
|
|
8
|
+
amountCents: number;
|
|
9
|
+
}, {
|
|
10
|
+
currency: string;
|
|
11
|
+
amountCents: number;
|
|
12
|
+
}>;
|
|
13
|
+
creditAfter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
+
amountCents: z.ZodNumber;
|
|
15
|
+
currency: z.ZodString;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
currency: string;
|
|
18
|
+
amountCents: number;
|
|
19
|
+
}, {
|
|
20
|
+
currency: string;
|
|
21
|
+
amountCents: number;
|
|
22
|
+
}>>>;
|
|
23
|
+
nextBillingAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
24
|
+
nextCycleAmount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
amountCents: z.ZodNumber;
|
|
26
|
+
currency: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
currency: string;
|
|
29
|
+
amountCents: number;
|
|
30
|
+
}, {
|
|
31
|
+
currency: string;
|
|
32
|
+
amountCents: number;
|
|
33
|
+
}>>>;
|
|
34
|
+
nextAmountDue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
|
+
amountCents: z.ZodNumber;
|
|
36
|
+
currency: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
currency: string;
|
|
39
|
+
amountCents: number;
|
|
40
|
+
}, {
|
|
41
|
+
currency: string;
|
|
42
|
+
amountCents: number;
|
|
43
|
+
}>>>;
|
|
44
|
+
billingInterval: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
billingInterval: "MONTHLY" | "ANNUAL";
|
|
47
|
+
dueNow: {
|
|
48
|
+
currency: string;
|
|
49
|
+
amountCents: number;
|
|
50
|
+
};
|
|
51
|
+
creditAfter?: {
|
|
52
|
+
currency: string;
|
|
53
|
+
amountCents: number;
|
|
54
|
+
} | null | undefined;
|
|
55
|
+
nextBillingAt?: Date | null | undefined;
|
|
56
|
+
nextCycleAmount?: {
|
|
57
|
+
currency: string;
|
|
58
|
+
amountCents: number;
|
|
59
|
+
} | null | undefined;
|
|
60
|
+
nextAmountDue?: {
|
|
61
|
+
currency: string;
|
|
62
|
+
amountCents: number;
|
|
63
|
+
} | null | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
billingInterval: "MONTHLY" | "ANNUAL";
|
|
66
|
+
dueNow: {
|
|
67
|
+
currency: string;
|
|
68
|
+
amountCents: number;
|
|
69
|
+
};
|
|
70
|
+
creditAfter?: {
|
|
71
|
+
currency: string;
|
|
72
|
+
amountCents: number;
|
|
73
|
+
} | null | undefined;
|
|
74
|
+
nextBillingAt?: Date | null | undefined;
|
|
75
|
+
nextCycleAmount?: {
|
|
76
|
+
currency: string;
|
|
77
|
+
amountCents: number;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
nextAmountDue?: {
|
|
80
|
+
currency: string;
|
|
81
|
+
amountCents: number;
|
|
82
|
+
} | null | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
export type SubscriptionChangePreview = z.infer<typeof SubscriptionChangePreviewSchema>;
|
|
85
|
+
//# sourceMappingURL=SubscriptionChangePreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionChangePreview.d.ts","sourceRoot":"","sources":["SubscriptionChangePreview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1C,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { SubscriptionAmountSchema } from "./SubscriptionAmount";
|
|
3
|
+
import { BillingIntervalSchema } from "../../requests/subscriptions/BillingInterval";
|
|
4
|
+
export const SubscriptionChangePreviewSchema = z.object({
|
|
5
|
+
dueNow: SubscriptionAmountSchema,
|
|
6
|
+
creditAfter: SubscriptionAmountSchema.nullish(),
|
|
7
|
+
nextBillingAt: z.coerce.date().nullish(),
|
|
8
|
+
nextCycleAmount: SubscriptionAmountSchema.nullish(),
|
|
9
|
+
nextAmountDue: SubscriptionAmountSchema.nullish(),
|
|
10
|
+
billingInterval: BillingIntervalSchema
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=SubscriptionChangePreview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionChangePreview.js","sourceRoot":"","sources":["SubscriptionChangePreview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAA;AAElF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,wBAAwB;IAChC,WAAW,EAAE,wBAAwB,CAAC,OAAO,EAAE;IAC/C,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IACxC,eAAe,EAAE,wBAAwB,CAAC,OAAO,EAAE;IACnD,aAAa,EAAE,wBAAwB,CAAC,OAAO,EAAE;IACjD,eAAe,EAAE,qBAAqB;CACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {SubscriptionAmountSchema} from "./SubscriptionAmount"
|
|
3
|
+
import {BillingIntervalSchema} from "../../requests/subscriptions/BillingInterval"
|
|
4
|
+
|
|
5
|
+
export const SubscriptionChangePreviewSchema = z.object({
|
|
6
|
+
dueNow: SubscriptionAmountSchema,
|
|
7
|
+
creditAfter: SubscriptionAmountSchema.nullish(),
|
|
8
|
+
nextBillingAt: z.coerce.date().nullish(),
|
|
9
|
+
nextCycleAmount: SubscriptionAmountSchema.nullish(),
|
|
10
|
+
nextAmountDue: SubscriptionAmountSchema.nullish(),
|
|
11
|
+
billingInterval: BillingIntervalSchema
|
|
12
|
+
})
|
|
13
|
+
export type SubscriptionChangePreview = z.infer<typeof SubscriptionChangePreviewSchema>
|
|
@@ -1,16 +1,52 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const SubscriptionStatusSchema: z.ZodObject<{
|
|
3
|
-
state: z.ZodEnum<["NONE", "TRIAL", "TRIAL_ENDED", "ACTIVE", "CANCELING", "GRACE_PERIOD", "EXPIRED"]
|
|
3
|
+
state: z.ZodCatch<z.ZodEnum<["NONE", "TRIAL", "TRIAL_ENDED", "ACTIVE", "CANCELING", "GRACE_PERIOD", "EXPIRED", "PAUSED", "UNKNOWN"]>>;
|
|
4
4
|
isEligibleToTrial: z.ZodBoolean;
|
|
5
5
|
trialDaysRemaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
resumesAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7
|
+
cancelAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
|
+
pauseStartsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9
|
+
currentPeriodEnd: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
+
billingInterval: z.ZodOptional<z.ZodNullable<z.ZodEnum<["MONTHLY", "ANNUAL"]>>>;
|
|
11
|
+
canPause: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
renewalAmount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
amountCents: z.ZodNumber;
|
|
14
|
+
currency: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
currency: string;
|
|
17
|
+
amountCents: number;
|
|
18
|
+
}, {
|
|
19
|
+
currency: string;
|
|
20
|
+
amountCents: number;
|
|
21
|
+
}>>>;
|
|
6
22
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
state: "NONE" | "ACTIVE" | "TRIAL" | "TRIAL_ENDED" | "CANCELING" | "GRACE_PERIOD" | "EXPIRED";
|
|
23
|
+
state: "UNKNOWN" | "NONE" | "ACTIVE" | "PAUSED" | "TRIAL" | "TRIAL_ENDED" | "CANCELING" | "GRACE_PERIOD" | "EXPIRED";
|
|
8
24
|
isEligibleToTrial: boolean;
|
|
25
|
+
resumesAt?: Date | null | undefined;
|
|
9
26
|
trialDaysRemaining?: number | null | undefined;
|
|
27
|
+
cancelAt?: Date | null | undefined;
|
|
28
|
+
pauseStartsAt?: Date | null | undefined;
|
|
29
|
+
currentPeriodEnd?: Date | null | undefined;
|
|
30
|
+
billingInterval?: "MONTHLY" | "ANNUAL" | null | undefined;
|
|
31
|
+
canPause?: boolean | null | undefined;
|
|
32
|
+
renewalAmount?: {
|
|
33
|
+
currency: string;
|
|
34
|
+
amountCents: number;
|
|
35
|
+
} | null | undefined;
|
|
10
36
|
}, {
|
|
11
|
-
state: "NONE" | "ACTIVE" | "TRIAL" | "TRIAL_ENDED" | "CANCELING" | "GRACE_PERIOD" | "EXPIRED";
|
|
12
37
|
isEligibleToTrial: boolean;
|
|
38
|
+
state?: unknown;
|
|
39
|
+
resumesAt?: Date | null | undefined;
|
|
13
40
|
trialDaysRemaining?: number | null | undefined;
|
|
41
|
+
cancelAt?: Date | null | undefined;
|
|
42
|
+
pauseStartsAt?: Date | null | undefined;
|
|
43
|
+
currentPeriodEnd?: Date | null | undefined;
|
|
44
|
+
billingInterval?: "MONTHLY" | "ANNUAL" | null | undefined;
|
|
45
|
+
canPause?: boolean | null | undefined;
|
|
46
|
+
renewalAmount?: {
|
|
47
|
+
currency: string;
|
|
48
|
+
amountCents: number;
|
|
49
|
+
} | null | undefined;
|
|
14
50
|
}>;
|
|
15
51
|
export type SubscriptionStatus = z.infer<typeof SubscriptionStatusSchema>;
|
|
16
52
|
//# sourceMappingURL=SubscriptionStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionStatus.d.ts","sourceRoot":"","sources":["SubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"SubscriptionStatus.d.ts","sourceRoot":"","sources":["SubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAKrB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { SubscriptionStateSchema } from "../../../models/subscriptions/SubscriptionState";
|
|
3
|
+
import { BillingIntervalSchema } from "../../requests/subscriptions/BillingInterval";
|
|
4
|
+
import { SubscriptionAmountSchema } from "./SubscriptionAmount";
|
|
3
5
|
export const SubscriptionStatusSchema = z.object({
|
|
4
6
|
state: SubscriptionStateSchema,
|
|
5
7
|
isEligibleToTrial: z.boolean(),
|
|
6
|
-
trialDaysRemaining: z.number().int().nullish()
|
|
8
|
+
trialDaysRemaining: z.number().int().nullish(),
|
|
9
|
+
resumesAt: z.coerce.date().nullish(),
|
|
10
|
+
cancelAt: z.coerce.date().nullish(),
|
|
11
|
+
pauseStartsAt: z.coerce.date().nullish(),
|
|
12
|
+
currentPeriodEnd: z.coerce.date().nullish(),
|
|
13
|
+
billingInterval: BillingIntervalSchema.nullish(),
|
|
14
|
+
canPause: z.boolean().nullish(),
|
|
15
|
+
renewalAmount: SubscriptionAmountSchema.nullish()
|
|
7
16
|
});
|
|
8
17
|
//# sourceMappingURL=SubscriptionStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionStatus.js","sourceRoot":"","sources":["SubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,uBAAuB,EAAC,MAAM,iDAAiD,CAAA;
|
|
1
|
+
{"version":3,"file":"SubscriptionStatus.js","sourceRoot":"","sources":["SubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,uBAAuB,EAAC,MAAM,iDAAiD,CAAA;AACvF,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAA;AAClF,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAA;AAE7D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,uBAAuB;IAC9B,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC9B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IACpC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IACxC,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IAC3C,eAAe,EAAE,qBAAqB,CAAC,OAAO,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;IAC/B,aAAa,EAAE,wBAAwB,CAAC,OAAO,EAAE;CACpD,CAAC,CAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
import {SubscriptionStateSchema} from "../../../models/subscriptions/SubscriptionState"
|
|
3
|
+
import {BillingIntervalSchema} from "../../requests/subscriptions/BillingInterval"
|
|
4
|
+
import {SubscriptionAmountSchema} from "./SubscriptionAmount"
|
|
3
5
|
|
|
4
6
|
export const SubscriptionStatusSchema = z.object({
|
|
5
7
|
state: SubscriptionStateSchema,
|
|
6
8
|
isEligibleToTrial: z.boolean(),
|
|
7
|
-
trialDaysRemaining: z.number().int().nullish()
|
|
9
|
+
trialDaysRemaining: z.number().int().nullish(),
|
|
10
|
+
resumesAt: z.coerce.date().nullish(),
|
|
11
|
+
cancelAt: z.coerce.date().nullish(),
|
|
12
|
+
pauseStartsAt: z.coerce.date().nullish(),
|
|
13
|
+
currentPeriodEnd: z.coerce.date().nullish(),
|
|
14
|
+
billingInterval: BillingIntervalSchema.nullish(),
|
|
15
|
+
canPause: z.boolean().nullish(),
|
|
16
|
+
renewalAmount: SubscriptionAmountSchema.nullish()
|
|
8
17
|
})
|
|
9
18
|
export type SubscriptionStatus = z.infer<typeof SubscriptionStatusSchema>
|
|
@@ -3,7 +3,7 @@ export declare const DiscordLinkCreatedEventSchema: z.ZodObject<{
|
|
|
3
3
|
userId: z.ZodNumber;
|
|
4
4
|
discordUserId: z.ZodString;
|
|
5
5
|
discordUsername: z.ZodString;
|
|
6
|
-
subscriptionState: z.ZodEnum<["NONE", "TRIAL", "TRIAL_ENDED", "ACTIVE", "CANCELING", "GRACE_PERIOD", "EXPIRED"]
|
|
6
|
+
subscriptionState: z.ZodCatch<z.ZodEnum<["NONE", "TRIAL", "TRIAL_ENDED", "ACTIVE", "CANCELING", "GRACE_PERIOD", "EXPIRED", "PAUSED", "UNKNOWN"]>>;
|
|
7
7
|
activeLevels: z.ZodArray<z.ZodObject<{
|
|
8
8
|
id: z.ZodNumber;
|
|
9
9
|
name: z.ZodString;
|
|
@@ -24,7 +24,7 @@ export declare const DiscordLinkCreatedEventSchema: z.ZodObject<{
|
|
|
24
24
|
userId: number;
|
|
25
25
|
discordUserId: string;
|
|
26
26
|
discordUsername: string;
|
|
27
|
-
subscriptionState: "NONE" | "ACTIVE" | "TRIAL" | "TRIAL_ENDED" | "CANCELING" | "GRACE_PERIOD" | "EXPIRED";
|
|
27
|
+
subscriptionState: "UNKNOWN" | "NONE" | "ACTIVE" | "PAUSED" | "TRIAL" | "TRIAL_ENDED" | "CANCELING" | "GRACE_PERIOD" | "EXPIRED";
|
|
28
28
|
activeLevels: {
|
|
29
29
|
name: string;
|
|
30
30
|
id: number;
|
|
@@ -35,13 +35,13 @@ export declare const DiscordLinkCreatedEventSchema: z.ZodObject<{
|
|
|
35
35
|
userId: number;
|
|
36
36
|
discordUserId: string;
|
|
37
37
|
discordUsername: string;
|
|
38
|
-
subscriptionState: "NONE" | "ACTIVE" | "TRIAL" | "TRIAL_ENDED" | "CANCELING" | "GRACE_PERIOD" | "EXPIRED";
|
|
39
38
|
activeLevels: {
|
|
40
39
|
name: string;
|
|
41
40
|
id: number;
|
|
42
41
|
multiplier: number;
|
|
43
42
|
discordRoleId?: string | null | undefined;
|
|
44
43
|
}[];
|
|
44
|
+
subscriptionState?: unknown;
|
|
45
45
|
}>;
|
|
46
46
|
export type DiscordLinkCreatedEvent = z.infer<typeof DiscordLinkCreatedEventSchema>;
|
|
47
47
|
//# sourceMappingURL=DiscordLinkCreatedEvent.d.ts.map
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreateNotificationTokenPayloadSchema: z.ZodObject<{
|
|
3
3
|
token: z.ZodString;
|
|
4
|
+
displaysDataMessages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
5
6
|
token: string;
|
|
7
|
+
displaysDataMessages?: boolean | null | undefined;
|
|
6
8
|
}, {
|
|
7
9
|
token: string;
|
|
10
|
+
displaysDataMessages?: boolean | null | undefined;
|
|
8
11
|
}>;
|
|
9
12
|
export type CreateNotificationTokenPayload = z.infer<typeof CreateNotificationTokenPayloadSchema>;
|
|
10
13
|
//# sourceMappingURL=CreateNotificationTokenPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateNotificationTokenPayload.d.ts","sourceRoot":"","sources":["CreateNotificationTokenPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"CreateNotificationTokenPayload.d.ts","sourceRoot":"","sources":["CreateNotificationTokenPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,oCAAoC;;;;;;;;;EAG/C,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateNotificationTokenPayload.js","sourceRoot":"","sources":["CreateNotificationTokenPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"CreateNotificationTokenPayload.js","sourceRoot":"","sources":["CreateNotificationTokenPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const CreateNotificationTokenPayloadSchema = z.object({
|
|
4
|
-
token: z.string()
|
|
4
|
+
token: z.string(),
|
|
5
|
+
displaysDataMessages: z.boolean().nullish()
|
|
5
6
|
})
|
|
6
7
|
export type CreateNotificationTokenPayload = z.infer<typeof CreateNotificationTokenPayloadSchema>
|
package/src/com/controlresell/models/notifications/CreateNotificationTokenPayloadWithUser.d.ts
CHANGED
|
@@ -3,20 +3,25 @@ export declare const CreateNotificationTokenPayloadWithUserSchema: z.ZodObject<{
|
|
|
3
3
|
userId: z.ZodNumber;
|
|
4
4
|
token: z.ZodObject<{
|
|
5
5
|
token: z.ZodString;
|
|
6
|
+
displaysDataMessages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
token: string;
|
|
9
|
+
displaysDataMessages?: boolean | null | undefined;
|
|
8
10
|
}, {
|
|
9
11
|
token: string;
|
|
12
|
+
displaysDataMessages?: boolean | null | undefined;
|
|
10
13
|
}>;
|
|
11
14
|
}, "strip", z.ZodTypeAny, {
|
|
12
15
|
userId: number;
|
|
13
16
|
token: {
|
|
14
17
|
token: string;
|
|
18
|
+
displaysDataMessages?: boolean | null | undefined;
|
|
15
19
|
};
|
|
16
20
|
}, {
|
|
17
21
|
userId: number;
|
|
18
22
|
token: {
|
|
19
23
|
token: string;
|
|
24
|
+
displaysDataMessages?: boolean | null | undefined;
|
|
20
25
|
};
|
|
21
26
|
}>;
|
|
22
27
|
export type CreateNotificationTokenPayloadWithUser = z.infer<typeof CreateNotificationTokenPayloadWithUserSchema>;
|
package/src/com/controlresell/models/notifications/CreateNotificationTokenPayloadWithUser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateNotificationTokenPayloadWithUser.d.ts","sourceRoot":"","sources":["CreateNotificationTokenPayloadWithUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,4CAA4C
|
|
1
|
+
{"version":3,"file":"CreateNotificationTokenPayloadWithUser.d.ts","sourceRoot":"","sources":["CreateNotificationTokenPayloadWithUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;EAGvD,CAAA;AACF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAA"}
|
|
@@ -3,14 +3,17 @@ export declare const NotificationTokenSchema: z.ZodObject<{
|
|
|
3
3
|
token: z.ZodString;
|
|
4
4
|
userId: z.ZodNumber;
|
|
5
5
|
expiresAt: z.ZodDate;
|
|
6
|
+
displaysDataMessages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
userId: number;
|
|
8
9
|
token: string;
|
|
9
10
|
expiresAt: Date;
|
|
11
|
+
displaysDataMessages?: boolean | null | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
userId: number;
|
|
12
14
|
token: string;
|
|
13
15
|
expiresAt: Date;
|
|
16
|
+
displaysDataMessages?: boolean | null | undefined;
|
|
14
17
|
}>;
|
|
15
18
|
export type NotificationToken = z.infer<typeof NotificationTokenSchema>;
|
|
16
19
|
//# sourceMappingURL=NotificationToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationToken.d.ts","sourceRoot":"","sources":["NotificationToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"NotificationToken.d.ts","sourceRoot":"","sources":["NotificationToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export const NotificationTokenSchema = z.object({
|
|
3
3
|
token: z.string(),
|
|
4
4
|
userId: z.number(),
|
|
5
|
-
expiresAt: z.coerce.date()
|
|
5
|
+
expiresAt: z.coerce.date(),
|
|
6
|
+
displaysDataMessages: z.boolean().nullish()
|
|
6
7
|
});
|
|
7
8
|
//# sourceMappingURL=NotificationToken.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationToken.js","sourceRoot":"","sources":["NotificationToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"NotificationToken.js","sourceRoot":"","sources":["NotificationToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE;IAC1B,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAA"}
|
|
@@ -3,6 +3,7 @@ import {z} from "zod"
|
|
|
3
3
|
export const NotificationTokenSchema = z.object({
|
|
4
4
|
token: z.string(),
|
|
5
5
|
userId: z.number(),
|
|
6
|
-
expiresAt: z.coerce.date()
|
|
6
|
+
expiresAt: z.coerce.date(),
|
|
7
|
+
displaysDataMessages: z.boolean().nullish()
|
|
7
8
|
})
|
|
8
9
|
export type NotificationToken = z.infer<typeof NotificationTokenSchema>
|