api-arreya-types 1.0.44 → 1.0.48
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/dist/account.type.d.ts +0 -149
- package/dist/account.type.js +0 -61
- package/dist/auth.type.d.ts +0 -35
- package/dist/auth.type.js +0 -21
- package/dist/billing.type.d.ts +0 -113
- package/dist/billing.type.js +0 -34
- package/dist/device.type.d.ts +0 -242
- package/dist/device.type.js +0 -75
- package/dist/error-result.type.d.ts +0 -4
- package/dist/error-result.type.js +0 -2
- package/dist/file.type.d.ts +0 -298
- package/dist/file.type.js +0 -89
- package/dist/folder.type.d.ts +0 -66
- package/dist/folder.type.js +0 -32
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -29
- package/dist/organization.type.d.ts +0 -149
- package/dist/organization.type.js +0 -61
- package/dist/page.type.d.ts +0 -203
- package/dist/page.type.js +0 -73
- package/dist/presentation.type.d.ts +0 -551
- package/dist/presentation.type.js +0 -102
- package/dist/project.type.d.ts +0 -84
- package/dist/project.type.js +0 -39
- package/dist/schedule.type.d.ts +0 -521
- package/dist/schedule.type.js +0 -126
- package/dist/slide.type.d.ts +0 -319
- package/dist/slide.type.js +0 -79
- package/dist/slideshow.type.d.ts +0 -561
- package/dist/slideshow.type.js +0 -68
- package/dist/status.type.d.ts +0 -7
- package/dist/status.type.js +0 -11
- package/dist/stripe.type.d.ts +0 -105
- package/dist/stripe.type.js +0 -34
- package/dist/template.type.d.ts +0 -308
- package/dist/template.type.js +0 -36
- package/dist/user.type.d.ts +0 -714
- package/dist/user.type.js +0 -111
- package/dist/zod-utils.d.ts +0 -6
- package/dist/zod-utils.js +0 -44
package/package.json
CHANGED
package/dist/account.type.d.ts
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const Account: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
stripeCustomer: z.ZodNullable<z.ZodString>;
|
|
6
|
-
stripeSubscription: z.ZodNullable<z.ZodString>;
|
|
7
|
-
status: z.ZodEnum<[string, ...string[]]>;
|
|
8
|
-
deviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
9
|
-
mediaLimit: z.ZodNullable<z.ZodNumber>;
|
|
10
|
-
private: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
12
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
status: string;
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
stripeCustomer: string | null;
|
|
18
|
-
stripeSubscription: string | null;
|
|
19
|
-
deviceLimit: number | null;
|
|
20
|
-
mediaLimit: number | null;
|
|
21
|
-
private: boolean;
|
|
22
|
-
createdAt: Date;
|
|
23
|
-
updatedAt: Date;
|
|
24
|
-
}, {
|
|
25
|
-
status: string;
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
stripeCustomer: string | null;
|
|
29
|
-
stripeSubscription: string | null;
|
|
30
|
-
deviceLimit: number | null;
|
|
31
|
-
mediaLimit: number | null;
|
|
32
|
-
createdAt: string | Date;
|
|
33
|
-
updatedAt: string | Date;
|
|
34
|
-
private?: boolean | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
export declare const CreateAccount: z.ZodObject<{
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
stripeCustomer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
39
|
-
stripeSubscription: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
status: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
|
|
41
|
-
deviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
42
|
-
mediaLimit: z.ZodNullable<z.ZodNumber>;
|
|
43
|
-
private: z.ZodDefault<z.ZodBoolean>;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
status: string;
|
|
46
|
-
name: string;
|
|
47
|
-
stripeCustomer: string | null;
|
|
48
|
-
stripeSubscription: string | null;
|
|
49
|
-
deviceLimit: number | null;
|
|
50
|
-
mediaLimit: number | null;
|
|
51
|
-
private: boolean;
|
|
52
|
-
}, {
|
|
53
|
-
name: string;
|
|
54
|
-
deviceLimit: number | null;
|
|
55
|
-
mediaLimit: number | null;
|
|
56
|
-
status?: string | undefined;
|
|
57
|
-
stripeCustomer?: string | null | undefined;
|
|
58
|
-
stripeSubscription?: string | null | undefined;
|
|
59
|
-
private?: boolean | undefined;
|
|
60
|
-
}>;
|
|
61
|
-
export declare const UpdateAccount: z.ZodObject<{
|
|
62
|
-
id: z.ZodString;
|
|
63
|
-
stripeCustomer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
stripeSubscription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
|
|
66
|
-
deviceLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
67
|
-
mediaLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
-
private: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
id: string;
|
|
71
|
-
status?: string | undefined;
|
|
72
|
-
stripeCustomer?: string | null | undefined;
|
|
73
|
-
stripeSubscription?: string | null | undefined;
|
|
74
|
-
deviceLimit?: number | null | undefined;
|
|
75
|
-
mediaLimit?: number | null | undefined;
|
|
76
|
-
private?: boolean | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
id: string;
|
|
79
|
-
status?: string | undefined;
|
|
80
|
-
stripeCustomer?: string | null | undefined;
|
|
81
|
-
stripeSubscription?: string | null | undefined;
|
|
82
|
-
deviceLimit?: number | null | undefined;
|
|
83
|
-
mediaLimit?: number | null | undefined;
|
|
84
|
-
private?: boolean | undefined;
|
|
85
|
-
}>;
|
|
86
|
-
export type Account = z.infer<typeof Account>;
|
|
87
|
-
export type CreateAccount = z.infer<typeof CreateAccount>;
|
|
88
|
-
export type UpdateAccount = z.infer<typeof UpdateAccount>;
|
|
89
|
-
export declare const AccountIdRequestParams: z.ZodObject<{
|
|
90
|
-
id: z.ZodString;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
id: string;
|
|
93
|
-
}, {
|
|
94
|
-
id: string;
|
|
95
|
-
}>;
|
|
96
|
-
export declare const CreateAccountRequestBody: z.ZodObject<{
|
|
97
|
-
name: z.ZodString;
|
|
98
|
-
stripeCustomer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
99
|
-
status: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
|
|
100
|
-
deviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
101
|
-
mediaLimit: z.ZodNullable<z.ZodNumber>;
|
|
102
|
-
private: z.ZodDefault<z.ZodBoolean>;
|
|
103
|
-
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
status: string;
|
|
105
|
-
name: string;
|
|
106
|
-
stripeCustomer: string | null;
|
|
107
|
-
deviceLimit: number | null;
|
|
108
|
-
mediaLimit: number | null;
|
|
109
|
-
private: boolean;
|
|
110
|
-
}, {
|
|
111
|
-
name: string;
|
|
112
|
-
deviceLimit: number | null;
|
|
113
|
-
mediaLimit: number | null;
|
|
114
|
-
status?: string | undefined;
|
|
115
|
-
stripeCustomer?: string | null | undefined;
|
|
116
|
-
private?: boolean | undefined;
|
|
117
|
-
}>;
|
|
118
|
-
export type CreateAccountRequestBody = z.infer<typeof CreateAccountRequestBody>;
|
|
119
|
-
export declare const UpdateAccountDBRequestBody: z.ZodObject<{
|
|
120
|
-
email: z.ZodOptional<z.ZodString>;
|
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
email?: string | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
email?: string | undefined;
|
|
125
|
-
}>;
|
|
126
|
-
export declare const UpdateAccountSubscriptionRequestBody: z.ZodObject<{
|
|
127
|
-
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
128
|
-
id: z.ZodString;
|
|
129
|
-
quantity: z.ZodNumber;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
id: string;
|
|
132
|
-
quantity: number;
|
|
133
|
-
}, {
|
|
134
|
-
id: string;
|
|
135
|
-
quantity: number;
|
|
136
|
-
}>, "many">>;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
items?: {
|
|
139
|
-
id: string;
|
|
140
|
-
quantity: number;
|
|
141
|
-
}[] | undefined;
|
|
142
|
-
}, {
|
|
143
|
-
items?: {
|
|
144
|
-
id: string;
|
|
145
|
-
quantity: number;
|
|
146
|
-
}[] | undefined;
|
|
147
|
-
}>;
|
|
148
|
-
export type UpdateAccountDBRequestBody = z.infer<typeof UpdateAccountDBRequestBody>;
|
|
149
|
-
export type UpdateAccountSubscriptionRequestBody = z.infer<typeof UpdateAccountSubscriptionRequestBody>;
|
package/dist/account.type.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateAccountSubscriptionRequestBody = exports.UpdateAccountDBRequestBody = exports.CreateAccountRequestBody = exports.AccountIdRequestParams = exports.UpdateAccount = exports.CreateAccount = exports.Account = void 0;
|
|
4
|
-
var zod_1 = require("zod");
|
|
5
|
-
var status_type_1 = require("./status.type");
|
|
6
|
-
var zod_utils_1 = require("./zod-utils");
|
|
7
|
-
exports.Account = zod_1.z.object({
|
|
8
|
-
id: zod_1.z.string(),
|
|
9
|
-
name: zod_1.z.string(),
|
|
10
|
-
stripeCustomer: zod_1.z.string().nullable(),
|
|
11
|
-
stripeSubscription: zod_1.z.string().nullable(),
|
|
12
|
-
status: status_type_1.zStatus,
|
|
13
|
-
deviceLimit: zod_1.z.number().nullable(),
|
|
14
|
-
mediaLimit: zod_1.z.number().nullable(),
|
|
15
|
-
private: zod_1.z.boolean().default(true),
|
|
16
|
-
createdAt: zod_utils_1.zodDate,
|
|
17
|
-
updatedAt: zod_utils_1.zodDate,
|
|
18
|
-
});
|
|
19
|
-
exports.CreateAccount = zod_1.z.object({
|
|
20
|
-
name: zod_1.z.string(),
|
|
21
|
-
stripeCustomer: zod_1.z.string().nullable().default(null),
|
|
22
|
-
stripeSubscription: zod_1.z.string().nullable().default(null),
|
|
23
|
-
status: status_type_1.zStatus.default(status_type_1.Status.ACTIVE),
|
|
24
|
-
deviceLimit: zod_1.z.number().nullable(),
|
|
25
|
-
mediaLimit: zod_1.z.number().nullable(),
|
|
26
|
-
private: zod_1.z.boolean().default(true),
|
|
27
|
-
});
|
|
28
|
-
exports.UpdateAccount = zod_1.z.object({
|
|
29
|
-
id: zod_1.z.string(),
|
|
30
|
-
stripeCustomer: zod_1.z.string().nullable().optional(),
|
|
31
|
-
stripeSubscription: zod_1.z.string().nullable().optional(),
|
|
32
|
-
status: status_type_1.zStatus.default(status_type_1.Status.ACTIVE).optional(),
|
|
33
|
-
deviceLimit: zod_1.z.number().nullable().optional(),
|
|
34
|
-
mediaLimit: zod_1.z.number().nullable().optional(),
|
|
35
|
-
private: zod_1.z.boolean().optional(),
|
|
36
|
-
});
|
|
37
|
-
// Request
|
|
38
|
-
exports.AccountIdRequestParams = zod_1.z.object({
|
|
39
|
-
id: zod_1.z.string(),
|
|
40
|
-
});
|
|
41
|
-
// Create Account Request
|
|
42
|
-
exports.CreateAccountRequestBody = zod_1.z.object({
|
|
43
|
-
name: zod_1.z.string(),
|
|
44
|
-
stripeCustomer: zod_1.z.string().nullable().default(null),
|
|
45
|
-
status: status_type_1.zStatus.default(status_type_1.Status.ACTIVE),
|
|
46
|
-
deviceLimit: zod_1.z.number().nullable(),
|
|
47
|
-
mediaLimit: zod_1.z.number().nullable(),
|
|
48
|
-
private: zod_1.z.boolean().default(true),
|
|
49
|
-
});
|
|
50
|
-
// Update Account Request
|
|
51
|
-
exports.UpdateAccountDBRequestBody = zod_1.z.object({
|
|
52
|
-
email: zod_1.z.string().email().optional(),
|
|
53
|
-
});
|
|
54
|
-
exports.UpdateAccountSubscriptionRequestBody = zod_1.z.object({
|
|
55
|
-
items: zod_1.z
|
|
56
|
-
.array(zod_1.z.object({
|
|
57
|
-
id: zod_1.z.string(),
|
|
58
|
-
quantity: zod_1.z.number(),
|
|
59
|
-
}))
|
|
60
|
-
.optional(),
|
|
61
|
-
});
|
package/dist/auth.type.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const AuthorizationRequestQuery: z.ZodObject<{
|
|
3
|
-
organizationId: z.ZodString;
|
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
organizationId: string;
|
|
6
|
-
}, {
|
|
7
|
-
organizationId: string;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const AuthenticationRequestHeader: z.ZodObject<{
|
|
10
|
-
authorization: z.ZodString;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
authorization: string;
|
|
13
|
-
}, {
|
|
14
|
-
authorization: string;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const IdRequestParams: z.ZodObject<{
|
|
17
|
-
id: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
id?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
id?: string | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const RequestBody: z.ZodOptional<z.ZodObject<{
|
|
24
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
26
|
-
projectIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
ids?: string[] | undefined;
|
|
29
|
-
projectId?: string | undefined;
|
|
30
|
-
projectIds?: string[] | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
ids?: string[] | undefined;
|
|
33
|
-
projectId?: string | undefined;
|
|
34
|
-
projectIds?: string[] | undefined;
|
|
35
|
-
}>>;
|
package/dist/auth.type.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RequestBody = exports.IdRequestParams = exports.AuthenticationRequestHeader = exports.AuthorizationRequestQuery = void 0;
|
|
4
|
-
var zod_1 = require("zod");
|
|
5
|
-
exports.AuthorizationRequestQuery = zod_1.z.object({
|
|
6
|
-
organizationId: zod_1.z.string(),
|
|
7
|
-
});
|
|
8
|
-
exports.AuthenticationRequestHeader = zod_1.z.object({
|
|
9
|
-
// starts with Bearer
|
|
10
|
-
authorization: zod_1.z.string().regex(/^Bearer\s.+$/),
|
|
11
|
-
});
|
|
12
|
-
exports.IdRequestParams = zod_1.z.object({
|
|
13
|
-
id: zod_1.z.string().optional(),
|
|
14
|
-
});
|
|
15
|
-
exports.RequestBody = zod_1.z
|
|
16
|
-
.object({
|
|
17
|
-
ids: zod_1.z.array(zod_1.z.string()).optional(),
|
|
18
|
-
projectId: zod_1.z.string().optional(),
|
|
19
|
-
projectIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
20
|
-
})
|
|
21
|
-
.optional();
|
package/dist/billing.type.d.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import Stripe from 'stripe';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export type PaymentMethod = Stripe.PaymentMethod & {
|
|
4
|
-
isDefault?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const SubscriptionItem: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
price: z.ZodString;
|
|
9
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
id: string;
|
|
12
|
-
price: string;
|
|
13
|
-
quantity?: number | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
id: string;
|
|
16
|
-
price: string;
|
|
17
|
-
quantity?: number | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
export type SubscriptionItem = z.infer<typeof SubscriptionItem>;
|
|
20
|
-
export declare const UpdateCustomer: z.ZodObject<{
|
|
21
|
-
id: z.ZodString;
|
|
22
|
-
defaultPaymentMethod: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
id: string;
|
|
25
|
-
defaultPaymentMethod?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
id: string;
|
|
28
|
-
defaultPaymentMethod?: string | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export type UpdateCustomer = z.infer<typeof UpdateCustomer>;
|
|
31
|
-
export declare const ConfirmSetupIntentRequestBody: z.ZodObject<{
|
|
32
|
-
setupIntentId: z.ZodString;
|
|
33
|
-
paymentMethodId: z.ZodString;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
setupIntentId: string;
|
|
36
|
-
paymentMethodId: string;
|
|
37
|
-
}, {
|
|
38
|
-
setupIntentId: string;
|
|
39
|
-
paymentMethodId: string;
|
|
40
|
-
}>;
|
|
41
|
-
export type ConfirmSetupIntentRequestBody = z.infer<typeof ConfirmSetupIntentRequestBody>;
|
|
42
|
-
export declare const CreatePreviewRequestBody: z.ZodObject<{
|
|
43
|
-
items: z.ZodArray<z.ZodObject<{
|
|
44
|
-
id: z.ZodString;
|
|
45
|
-
price: z.ZodString;
|
|
46
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
id: string;
|
|
49
|
-
price: string;
|
|
50
|
-
quantity?: number | undefined;
|
|
51
|
-
}, {
|
|
52
|
-
id: string;
|
|
53
|
-
price: string;
|
|
54
|
-
quantity?: number | undefined;
|
|
55
|
-
}>, "many">;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
items: {
|
|
58
|
-
id: string;
|
|
59
|
-
price: string;
|
|
60
|
-
quantity?: number | undefined;
|
|
61
|
-
}[];
|
|
62
|
-
}, {
|
|
63
|
-
items: {
|
|
64
|
-
id: string;
|
|
65
|
-
price: string;
|
|
66
|
-
quantity?: number | undefined;
|
|
67
|
-
}[];
|
|
68
|
-
}>;
|
|
69
|
-
export type CreatePreviewRequestBody = z.infer<typeof CreatePreviewRequestBody>;
|
|
70
|
-
export declare const DeletePaymentMethodRequestBody: z.ZodObject<{
|
|
71
|
-
paymentMethodId: z.ZodString;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
paymentMethodId: string;
|
|
74
|
-
}, {
|
|
75
|
-
paymentMethodId: string;
|
|
76
|
-
}>;
|
|
77
|
-
export type DeletePaymentMethodRequestBody = z.infer<typeof DeletePaymentMethodRequestBody>;
|
|
78
|
-
export declare const PaymentMethodIdRequestParams: z.ZodObject<{
|
|
79
|
-
id: z.ZodString;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
id: string;
|
|
82
|
-
}, {
|
|
83
|
-
id: string;
|
|
84
|
-
}>;
|
|
85
|
-
export type PaymentMethodIdRequestParams = z.infer<typeof PaymentMethodIdRequestParams>;
|
|
86
|
-
export declare const UpdateSubscriptionRequestBody: z.ZodObject<{
|
|
87
|
-
items: z.ZodArray<z.ZodObject<{
|
|
88
|
-
id: z.ZodString;
|
|
89
|
-
price: z.ZodString;
|
|
90
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
id: string;
|
|
93
|
-
price: string;
|
|
94
|
-
quantity?: number | undefined;
|
|
95
|
-
}, {
|
|
96
|
-
id: string;
|
|
97
|
-
price: string;
|
|
98
|
-
quantity?: number | undefined;
|
|
99
|
-
}>, "many">;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
items: {
|
|
102
|
-
id: string;
|
|
103
|
-
price: string;
|
|
104
|
-
quantity?: number | undefined;
|
|
105
|
-
}[];
|
|
106
|
-
}, {
|
|
107
|
-
items: {
|
|
108
|
-
id: string;
|
|
109
|
-
price: string;
|
|
110
|
-
quantity?: number | undefined;
|
|
111
|
-
}[];
|
|
112
|
-
}>;
|
|
113
|
-
export type UpdateSubscriptionRequestBody = z.infer<typeof UpdateSubscriptionRequestBody>;
|
package/dist/billing.type.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateSubscriptionRequestBody = exports.PaymentMethodIdRequestParams = exports.DeletePaymentMethodRequestBody = exports.CreatePreviewRequestBody = exports.ConfirmSetupIntentRequestBody = exports.UpdateCustomer = exports.SubscriptionItem = void 0;
|
|
4
|
-
var zod_1 = require("zod");
|
|
5
|
-
exports.SubscriptionItem = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string(),
|
|
7
|
-
price: zod_1.z.string(),
|
|
8
|
-
quantity: zod_1.z.number().optional(),
|
|
9
|
-
});
|
|
10
|
-
exports.UpdateCustomer = zod_1.z.object({
|
|
11
|
-
id: zod_1.z.string(),
|
|
12
|
-
defaultPaymentMethod: zod_1.z.string().optional(),
|
|
13
|
-
});
|
|
14
|
-
// Setup Intent Request Types
|
|
15
|
-
exports.ConfirmSetupIntentRequestBody = zod_1.z.object({
|
|
16
|
-
setupIntentId: zod_1.z.string(),
|
|
17
|
-
paymentMethodId: zod_1.z.string(),
|
|
18
|
-
});
|
|
19
|
-
// Create Preview Request Types
|
|
20
|
-
exports.CreatePreviewRequestBody = zod_1.z.object({
|
|
21
|
-
items: zod_1.z.array(exports.SubscriptionItem),
|
|
22
|
-
});
|
|
23
|
-
// Delete Payment Method Request Types
|
|
24
|
-
exports.DeletePaymentMethodRequestBody = zod_1.z.object({
|
|
25
|
-
paymentMethodId: zod_1.z.string(),
|
|
26
|
-
});
|
|
27
|
-
// Route param types
|
|
28
|
-
exports.PaymentMethodIdRequestParams = zod_1.z.object({
|
|
29
|
-
id: zod_1.z.string(),
|
|
30
|
-
});
|
|
31
|
-
// Update Subscription Request Types
|
|
32
|
-
exports.UpdateSubscriptionRequestBody = zod_1.z.object({
|
|
33
|
-
items: zod_1.z.array(exports.SubscriptionItem),
|
|
34
|
-
});
|
package/dist/device.type.d.ts
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const Device: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
name: z.ZodNullable<z.ZodString>;
|
|
5
|
-
projectId: z.ZodNullable<z.ZodString>;
|
|
6
|
-
code: z.ZodNullable<z.ZodString>;
|
|
7
|
-
ip: z.ZodString;
|
|
8
|
-
userAgent: z.ZodString;
|
|
9
|
-
online: z.ZodBoolean;
|
|
10
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
11
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
code: string | null;
|
|
14
|
-
id: string;
|
|
15
|
-
projectId: string | null;
|
|
16
|
-
name: string | null;
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
|
-
ip: string;
|
|
20
|
-
userAgent: string;
|
|
21
|
-
online: boolean;
|
|
22
|
-
}, {
|
|
23
|
-
code: string | null;
|
|
24
|
-
id: string;
|
|
25
|
-
projectId: string | null;
|
|
26
|
-
name: string | null;
|
|
27
|
-
createdAt: string | Date;
|
|
28
|
-
updatedAt: string | Date;
|
|
29
|
-
ip: string;
|
|
30
|
-
userAgent: string;
|
|
31
|
-
online: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
export declare const DeviceExtended: z.ZodObject<z.objectUtil.extendShape<{
|
|
34
|
-
id: z.ZodString;
|
|
35
|
-
name: z.ZodNullable<z.ZodString>;
|
|
36
|
-
projectId: z.ZodNullable<z.ZodString>;
|
|
37
|
-
code: z.ZodNullable<z.ZodString>;
|
|
38
|
-
ip: z.ZodString;
|
|
39
|
-
userAgent: z.ZodString;
|
|
40
|
-
online: z.ZodBoolean;
|
|
41
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
42
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
43
|
-
}, {
|
|
44
|
-
project: z.ZodNullable<z.ZodObject<{
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
name: z.ZodString;
|
|
47
|
-
organizationId: z.ZodString;
|
|
48
|
-
status: z.ZodString;
|
|
49
|
-
private: z.ZodBoolean;
|
|
50
|
-
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
51
|
-
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
organizationId: string;
|
|
54
|
-
status: string;
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
private: boolean;
|
|
58
|
-
createdAt: Date;
|
|
59
|
-
updatedAt: Date;
|
|
60
|
-
}, {
|
|
61
|
-
organizationId: string;
|
|
62
|
-
status: string;
|
|
63
|
-
id: string;
|
|
64
|
-
name: string;
|
|
65
|
-
private: boolean;
|
|
66
|
-
createdAt: string | Date;
|
|
67
|
-
updatedAt: string | Date;
|
|
68
|
-
}>>;
|
|
69
|
-
}>, "strip", z.ZodTypeAny, {
|
|
70
|
-
code: string | null;
|
|
71
|
-
id: string;
|
|
72
|
-
projectId: string | null;
|
|
73
|
-
name: string | null;
|
|
74
|
-
createdAt: Date;
|
|
75
|
-
updatedAt: Date;
|
|
76
|
-
ip: string;
|
|
77
|
-
userAgent: string;
|
|
78
|
-
online: boolean;
|
|
79
|
-
project: {
|
|
80
|
-
organizationId: string;
|
|
81
|
-
status: string;
|
|
82
|
-
id: string;
|
|
83
|
-
name: string;
|
|
84
|
-
private: boolean;
|
|
85
|
-
createdAt: Date;
|
|
86
|
-
updatedAt: Date;
|
|
87
|
-
} | null;
|
|
88
|
-
}, {
|
|
89
|
-
code: string | null;
|
|
90
|
-
id: string;
|
|
91
|
-
projectId: string | null;
|
|
92
|
-
name: string | null;
|
|
93
|
-
createdAt: string | Date;
|
|
94
|
-
updatedAt: string | Date;
|
|
95
|
-
ip: string;
|
|
96
|
-
userAgent: string;
|
|
97
|
-
online: boolean;
|
|
98
|
-
project: {
|
|
99
|
-
organizationId: string;
|
|
100
|
-
status: string;
|
|
101
|
-
id: string;
|
|
102
|
-
name: string;
|
|
103
|
-
private: boolean;
|
|
104
|
-
createdAt: string | Date;
|
|
105
|
-
updatedAt: string | Date;
|
|
106
|
-
} | null;
|
|
107
|
-
}>;
|
|
108
|
-
export declare const CreateDevice: z.ZodObject<{
|
|
109
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
-
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
-
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
-
ip: z.ZodString;
|
|
113
|
-
userAgent: z.ZodString;
|
|
114
|
-
online: z.ZodBoolean;
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
ip: string;
|
|
117
|
-
userAgent: string;
|
|
118
|
-
online: boolean;
|
|
119
|
-
code?: string | null | undefined;
|
|
120
|
-
projectId?: string | null | undefined;
|
|
121
|
-
name?: string | null | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
ip: string;
|
|
124
|
-
userAgent: string;
|
|
125
|
-
online: boolean;
|
|
126
|
-
code?: string | null | undefined;
|
|
127
|
-
projectId?: string | null | undefined;
|
|
128
|
-
name?: string | null | undefined;
|
|
129
|
-
}>;
|
|
130
|
-
export declare const UpdateDevice: z.ZodObject<{
|
|
131
|
-
id: z.ZodString;
|
|
132
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
-
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
-
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
-
ip: z.ZodOptional<z.ZodString>;
|
|
136
|
-
userAgent: z.ZodOptional<z.ZodString>;
|
|
137
|
-
online: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
-
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
id: string;
|
|
140
|
-
code?: string | null | undefined;
|
|
141
|
-
projectId?: string | null | undefined;
|
|
142
|
-
name?: string | null | undefined;
|
|
143
|
-
ip?: string | undefined;
|
|
144
|
-
userAgent?: string | undefined;
|
|
145
|
-
online?: boolean | undefined;
|
|
146
|
-
}, {
|
|
147
|
-
id: string;
|
|
148
|
-
code?: string | null | undefined;
|
|
149
|
-
projectId?: string | null | undefined;
|
|
150
|
-
name?: string | null | undefined;
|
|
151
|
-
ip?: string | undefined;
|
|
152
|
-
userAgent?: string | undefined;
|
|
153
|
-
online?: boolean | undefined;
|
|
154
|
-
}>;
|
|
155
|
-
export declare const PairDevice: z.ZodObject<{
|
|
156
|
-
id: z.ZodString;
|
|
157
|
-
name: z.ZodString;
|
|
158
|
-
projectId: z.ZodString;
|
|
159
|
-
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
id: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
name: string;
|
|
163
|
-
}, {
|
|
164
|
-
id: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
name: string;
|
|
167
|
-
}>;
|
|
168
|
-
export type Device = z.infer<typeof Device>;
|
|
169
|
-
export type DeviceExtended = z.infer<typeof DeviceExtended>;
|
|
170
|
-
export type CreateDevice = z.infer<typeof CreateDevice>;
|
|
171
|
-
export type UpdateDevice = z.infer<typeof UpdateDevice>;
|
|
172
|
-
export type PairDevice = z.infer<typeof PairDevice>;
|
|
173
|
-
export declare const DeviceIdRequestParams: z.ZodObject<{
|
|
174
|
-
id: z.ZodString;
|
|
175
|
-
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
id: string;
|
|
177
|
-
}, {
|
|
178
|
-
id: string;
|
|
179
|
-
}>;
|
|
180
|
-
export type DeviceIdRequestParams = z.infer<typeof DeviceIdRequestParams>;
|
|
181
|
-
export declare const DeviceIdsRequestBody: z.ZodObject<{
|
|
182
|
-
ids: z.ZodArray<z.ZodString, "many">;
|
|
183
|
-
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
ids: string[];
|
|
185
|
-
}, {
|
|
186
|
-
ids: string[];
|
|
187
|
-
}>;
|
|
188
|
-
export type DeviceIdsRequestBody = z.infer<typeof DeviceIdsRequestBody>;
|
|
189
|
-
export declare const MoveDevicesRequestBody: z.ZodObject<{
|
|
190
|
-
ids: z.ZodArray<z.ZodString, "many">;
|
|
191
|
-
projectId: z.ZodString;
|
|
192
|
-
}, "strip", z.ZodTypeAny, {
|
|
193
|
-
ids: string[];
|
|
194
|
-
projectId: string;
|
|
195
|
-
}, {
|
|
196
|
-
ids: string[];
|
|
197
|
-
projectId: string;
|
|
198
|
-
}>;
|
|
199
|
-
export type MoveDevicesRequestBody = z.infer<typeof MoveDevicesRequestBody>;
|
|
200
|
-
export declare const CreateDeviceRequestBody: z.ZodObject<{
|
|
201
|
-
name: z.ZodString;
|
|
202
|
-
project: z.ZodNullable<z.ZodString>;
|
|
203
|
-
}, "strip", z.ZodTypeAny, {
|
|
204
|
-
name: string;
|
|
205
|
-
project: string | null;
|
|
206
|
-
}, {
|
|
207
|
-
name: string;
|
|
208
|
-
project: string | null;
|
|
209
|
-
}>;
|
|
210
|
-
export type CreateDeviceRequestBody = z.infer<typeof CreateDeviceRequestBody>;
|
|
211
|
-
export declare const UpdateDeviceRequestBody: z.ZodObject<{
|
|
212
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
-
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
-
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
projectId?: string | null | undefined;
|
|
216
|
-
name?: string | null | undefined;
|
|
217
|
-
}, {
|
|
218
|
-
projectId?: string | null | undefined;
|
|
219
|
-
name?: string | null | undefined;
|
|
220
|
-
}>;
|
|
221
|
-
export type UpdateDeviceRequestBody = z.infer<typeof UpdateDeviceRequestBody>;
|
|
222
|
-
export declare const PairDeviceRequestBody: z.ZodObject<{
|
|
223
|
-
name: z.ZodString;
|
|
224
|
-
code: z.ZodString;
|
|
225
|
-
projectId: z.ZodString;
|
|
226
|
-
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
code: string;
|
|
228
|
-
projectId: string;
|
|
229
|
-
name: string;
|
|
230
|
-
}, {
|
|
231
|
-
code: string;
|
|
232
|
-
projectId: string;
|
|
233
|
-
name: string;
|
|
234
|
-
}>;
|
|
235
|
-
export type PairDeviceRequestBody = z.infer<typeof PairDeviceRequestBody>;
|
|
236
|
-
export declare const AddDeviceTagRequestBody: z.ZodObject<{
|
|
237
|
-
names: z.ZodArray<z.ZodString, "many">;
|
|
238
|
-
}, "strip", z.ZodTypeAny, {
|
|
239
|
-
names: string[];
|
|
240
|
-
}, {
|
|
241
|
-
names: string[];
|
|
242
|
-
}>;
|