shred-api-client 1.14.3 → 1.14.4-rc.2
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/api/AppConfig.api.d.ts +2 -2
- package/dist/api/AppConfig.api.js +25 -2
- package/dist/api/Email.api.d.ts +3 -3
- package/dist/api/Email.api.js +25 -2
- package/dist/api/Goal.api.d.ts +10 -0
- package/dist/api/Goal.api.js +42 -0
- package/dist/api/Note.api.d.ts +0 -0
- package/dist/api/Note.api.js +1 -0
- package/dist/api/Notification.api.d.ts +8 -8
- package/dist/api/Notification.api.js +32 -9
- package/dist/api/Project.api.d.ts +8 -8
- package/dist/api/Project.api.js +38 -18
- package/dist/api/Prompt.api.d.ts +6 -6
- package/dist/api/Prompt.api.js +6 -6
- package/dist/api/Subscription.api.d.ts +6 -6
- package/dist/api/Subscription.api.js +12 -12
- package/dist/api/Tenant.api.d.ts +7 -7
- package/dist/api/Tenant.api.js +7 -7
- package/dist/api/Track.api.d.ts +3 -3
- package/dist/api/Track.api.js +2 -2
- package/dist/api/User.api.d.ts +6 -6
- package/dist/api/User.api.js +15 -15
- package/dist/index.d.ts +13 -5
- package/dist/index.js +26 -16
- package/dist/model/Api.d.ts +20 -39
- package/dist/model/Api.js +3 -1
- package/dist/model/app-config/AppConfig.api.d.ts +9 -0
- package/dist/model/{AppConfig.schema.js → app-config/AppConfig.api.js} +2 -3
- package/dist/model/app-config/index.d.ts +1 -0
- package/dist/model/app-config/index.js +17 -0
- package/dist/model/asset/index.d.ts +2 -0
- package/dist/model/asset/index.js +5 -0
- package/dist/model/core/APIResponse.d.ts +6 -0
- package/dist/model/core/APIResponse.js +2 -0
- package/dist/model/core/Query.d.ts +15 -0
- package/dist/model/core/Query.js +2 -0
- package/dist/model/core/index.d.ts +2 -0
- package/dist/model/core/index.js +18 -0
- package/dist/model/email/Email.api.d.ts +11 -0
- package/dist/model/{Email.schema.js → email/Email.api.js} +2 -3
- package/dist/model/email/Email.schema.d.ts +15 -0
- package/dist/model/email/Email.schema.js +9 -0
- package/dist/model/email/index.d.ts +3 -0
- package/dist/model/email/index.js +20 -0
- package/dist/model/exceptions/index.d.ts +3 -2
- package/dist/model/exceptions/index.js +2 -1
- package/dist/model/goal/Goal.api.d.ts +11 -0
- package/dist/model/goal/Goal.api.js +6 -0
- package/dist/model/goal/Goal.schema.d.ts +154 -0
- package/dist/model/goal/Goal.schema.js +26 -0
- package/dist/model/goal/index.d.ts +3 -0
- package/dist/model/goal/index.js +22 -0
- package/dist/model/note/Note.api.d.ts +26 -0
- package/dist/model/note/Note.api.js +21 -0
- package/dist/model/note/Note.schema.d.ts +141 -0
- package/dist/model/note/Note.schema.js +30 -0
- package/dist/model/note/index.d.ts +2 -0
- package/dist/model/note/index.js +6 -0
- package/dist/model/notification/Notification.api.d.ts +47 -0
- package/dist/model/notification/Notification.api.js +13 -0
- package/dist/model/notification/Notification.schema.d.ts +454 -0
- package/dist/model/notification/Notification.schema.js +111 -0
- package/dist/model/notification/index.d.ts +3 -0
- package/dist/model/notification/index.js +30 -0
- package/dist/model/project/Project.api.d.ts +66 -0
- package/dist/model/project/Project.api.js +20 -0
- package/dist/model/project/Project.schema.d.ts +206 -0
- package/dist/model/{Project.schema.js → project/Project.schema.js} +31 -52
- package/dist/model/project/index.d.ts +3 -0
- package/dist/model/project/index.js +24 -0
- package/dist/model/{Prompt.schema.d.ts → prompt/Prompt.api.d.ts} +4 -24
- package/dist/model/{Prompt.schema.js → prompt/Prompt.api.js} +2 -3
- package/dist/model/prompt/Prompt.schema.d.ts +165 -0
- package/dist/model/prompt/Prompt.schema.js +24 -0
- package/dist/model/prompt/index.d.ts +3 -0
- package/dist/model/prompt/index.js +22 -0
- package/dist/model/{Subscription.schema.d.ts → subscription/Subscription.api.d.ts} +4 -51
- package/dist/model/{Subscription.schema.js → subscription/Subscription.api.js} +2 -8
- package/dist/model/subscription/Subscription.schema.d.ts +314 -0
- package/dist/model/subscription/Subscription.schema.js +53 -0
- package/dist/model/subscription/index.d.ts +3 -0
- package/dist/model/subscription/index.js +25 -0
- package/dist/model/{Tenant.schema.d.ts → tenant/Tenant.api.d.ts} +4 -29
- package/dist/model/{Tenant.schema.js → tenant/Tenant.api.js} +2 -3
- package/dist/model/tenant/Tenant.schema.d.ts +342 -0
- package/dist/model/tenant/Tenant.schema.js +29 -0
- package/dist/model/tenant/index.d.ts +3 -0
- package/dist/model/tenant/index.js +21 -0
- package/dist/model/track/Track.api.d.ts +10 -0
- package/dist/model/{Track.schema.js → track/Track.api.js} +2 -3
- package/dist/model/track/Track.schema.d.ts +44 -0
- package/dist/model/track/Track.schema.js +14 -0
- package/dist/model/track/index.d.ts +3 -0
- package/dist/model/track/index.js +21 -0
- package/dist/model/user/User.api.d.ts +80 -0
- package/dist/model/user/User.api.js +20 -0
- package/dist/model/user/User.schema.d.ts +117 -0
- package/dist/model/user/User.schema.js +42 -0
- package/dist/model/user/index.d.ts +3 -0
- package/dist/model/user/index.js +23 -0
- package/dist/util/parseQuery.d.ts +2 -2
- package/package.json +1 -1
- package/dist/model/AppConfig.schema.d.ts +0 -10
- package/dist/model/Email.schema.d.ts +0 -17
- package/dist/model/Notification.schema.d.ts +0 -112
- package/dist/model/Notification.schema.js +0 -38
- package/dist/model/Project.schema.d.ts +0 -152
- package/dist/model/Track.schema.d.ts +0 -20
- package/dist/model/User.schema.d.ts +0 -253
- package/dist/model/User.schema.js +0 -97
- package/dist/namespace.d.ts +0 -259
- package/dist/namespace.js +0 -53
- package/dist/model/{Asset.schema.d.ts → asset/Asset.schema.d.ts} +4 -4
- /package/dist/model/{Asset.schema.js → asset/Asset.schema.js} +0 -0
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import Context from "./Context";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
export type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
|
|
4
|
-
interface UserAPISchema {
|
|
5
|
-
getUserInfo: (context: Context) => Promise<User>;
|
|
6
|
-
isEmailAvaliable: (email: string) => Promise<boolean>;
|
|
7
|
-
sendValidationCode: (email: string) => Promise<boolean>;
|
|
8
|
-
confirmCode: (email: string, code: number, keepCode?: boolean) => Promise<boolean>;
|
|
9
|
-
changePassword: (email: string, pass: string, passConfirm: string, code: number) => Promise<boolean>;
|
|
10
|
-
changeEmail: (ctx: Context, email: string, code: number) => Promise<boolean>;
|
|
11
|
-
authenticate: (email: string, password: string, system: System) => Promise<string>;
|
|
12
|
-
update: (context: Context, update: Partial<Update>) => Promise<boolean>;
|
|
13
|
-
setup: (context: Context) => Promise<boolean>;
|
|
14
|
-
getBindedUsers: (ctx: Context) => Promise<User[]>;
|
|
15
|
-
deleteAccount: (ctx: Context) => Promise<boolean>;
|
|
16
|
-
getIntegrationToken: (ctx: Context) => Promise<string | null>;
|
|
17
|
-
createIntegrationToken: (ctx: Context) => Promise<string>;
|
|
18
|
-
createUser: (email: string, name: string, password: string, passwordConfirmation: string, profession: string | null, invitationCode: string | null) => Promise<User>;
|
|
19
|
-
}
|
|
20
|
-
declare const UserEndpoints: {
|
|
21
|
-
ChangeEmail: {
|
|
22
|
-
uri: string;
|
|
23
|
-
method: string;
|
|
24
|
-
};
|
|
25
|
-
GetUserInfo: {
|
|
26
|
-
uri: string;
|
|
27
|
-
method: string;
|
|
28
|
-
};
|
|
29
|
-
GetBindedUsers: {
|
|
30
|
-
uri: string;
|
|
31
|
-
method: string;
|
|
32
|
-
};
|
|
33
|
-
EnableUser: {
|
|
34
|
-
uri: string;
|
|
35
|
-
method: string;
|
|
36
|
-
};
|
|
37
|
-
ChangePassword: {
|
|
38
|
-
uri: string;
|
|
39
|
-
method: string;
|
|
40
|
-
};
|
|
41
|
-
IsEmailAvaliable: {
|
|
42
|
-
uri: string;
|
|
43
|
-
method: string;
|
|
44
|
-
};
|
|
45
|
-
GetIntegrationToken: {
|
|
46
|
-
uri: string;
|
|
47
|
-
method: string;
|
|
48
|
-
};
|
|
49
|
-
CreateToken: {
|
|
50
|
-
uri: string;
|
|
51
|
-
method: string;
|
|
52
|
-
};
|
|
53
|
-
ConfirmCode: {
|
|
54
|
-
uri: string;
|
|
55
|
-
method: string;
|
|
56
|
-
};
|
|
57
|
-
DeleteAccount: {
|
|
58
|
-
uri: string;
|
|
59
|
-
method: string;
|
|
60
|
-
};
|
|
61
|
-
SendValidationCode: {
|
|
62
|
-
uri: string;
|
|
63
|
-
method: string;
|
|
64
|
-
};
|
|
65
|
-
Authenticate: {
|
|
66
|
-
uri: string;
|
|
67
|
-
method: string;
|
|
68
|
-
};
|
|
69
|
-
CreateUser: {
|
|
70
|
-
uri: string;
|
|
71
|
-
method: string;
|
|
72
|
-
};
|
|
73
|
-
UpdateUser: {
|
|
74
|
-
uri: string;
|
|
75
|
-
method: string;
|
|
76
|
-
};
|
|
77
|
-
Setup: {
|
|
78
|
-
uri: string;
|
|
79
|
-
method: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
declare enum Role {
|
|
83
|
-
USER = "User",
|
|
84
|
-
EDITOR = "Editor",
|
|
85
|
-
QA = "QA",
|
|
86
|
-
ADMIN = "ADMIN",
|
|
87
|
-
SYSTEM = "SYSTEM"
|
|
88
|
-
}
|
|
89
|
-
declare enum System {
|
|
90
|
-
APP = "APP",
|
|
91
|
-
EDITOR = "EDITOR",
|
|
92
|
-
QA = "QA",
|
|
93
|
-
ADMIN = "ADMIN"
|
|
94
|
-
}
|
|
95
|
-
type Preferences = {
|
|
96
|
-
primaryColor?: string;
|
|
97
|
-
secondaryColor?: string;
|
|
98
|
-
facebookLink?: string;
|
|
99
|
-
instagramLink?: string;
|
|
100
|
-
bRoll?: boolean;
|
|
101
|
-
logo?: string;
|
|
102
|
-
};
|
|
103
|
-
type User = {
|
|
104
|
-
id: string;
|
|
105
|
-
name: string;
|
|
106
|
-
email: string;
|
|
107
|
-
fcmToken?: string;
|
|
108
|
-
profession?: string;
|
|
109
|
-
photoUrl?: string;
|
|
110
|
-
preferences?: Preferences;
|
|
111
|
-
tenantId?: string;
|
|
112
|
-
editorId?: string;
|
|
113
|
-
timezone?: string;
|
|
114
|
-
experienceId?: string;
|
|
115
|
-
customerId: string;
|
|
116
|
-
role: Role;
|
|
117
|
-
};
|
|
118
|
-
export declare const NoteSchema: z.ZodObject<{
|
|
119
|
-
id: z.ZodString;
|
|
120
|
-
authorEmail: z.ZodString;
|
|
121
|
-
content: z.ZodString;
|
|
122
|
-
createdAt: z.ZodNumber;
|
|
123
|
-
modified: z.ZodNumber;
|
|
124
|
-
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
id: string;
|
|
126
|
-
authorEmail: string;
|
|
127
|
-
content: string;
|
|
128
|
-
createdAt: number;
|
|
129
|
-
modified: number;
|
|
130
|
-
}, {
|
|
131
|
-
id: string;
|
|
132
|
-
authorEmail: string;
|
|
133
|
-
content: string;
|
|
134
|
-
createdAt: number;
|
|
135
|
-
modified: number;
|
|
136
|
-
}>;
|
|
137
|
-
export declare const UserNoteSchema: z.ZodObject<{
|
|
138
|
-
userId: z.ZodString;
|
|
139
|
-
notes: z.ZodArray<z.ZodObject<{
|
|
140
|
-
id: z.ZodString;
|
|
141
|
-
authorEmail: z.ZodString;
|
|
142
|
-
content: z.ZodString;
|
|
143
|
-
createdAt: z.ZodNumber;
|
|
144
|
-
modified: z.ZodNumber;
|
|
145
|
-
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
id: string;
|
|
147
|
-
authorEmail: string;
|
|
148
|
-
content: string;
|
|
149
|
-
createdAt: number;
|
|
150
|
-
modified: number;
|
|
151
|
-
}, {
|
|
152
|
-
id: string;
|
|
153
|
-
authorEmail: string;
|
|
154
|
-
content: string;
|
|
155
|
-
createdAt: number;
|
|
156
|
-
modified: number;
|
|
157
|
-
}>, "many">;
|
|
158
|
-
assets: z.ZodArray<z.ZodObject<{
|
|
159
|
-
assetId: z.ZodString;
|
|
160
|
-
fileName: z.ZodString;
|
|
161
|
-
extension: z.ZodString;
|
|
162
|
-
fileSize: z.ZodNumber;
|
|
163
|
-
assetUrl: z.ZodString;
|
|
164
|
-
thumbnailUrl: z.ZodString;
|
|
165
|
-
type: z.ZodString;
|
|
166
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
progress: z.ZodOptional<z.ZodNumber>;
|
|
168
|
-
error: z.ZodOptional<z.ZodString>;
|
|
169
|
-
authorId: z.ZodString;
|
|
170
|
-
uploadedAt: z.ZodNumber;
|
|
171
|
-
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
assetId: string;
|
|
173
|
-
fileName: string;
|
|
174
|
-
extension: string;
|
|
175
|
-
fileSize: number;
|
|
176
|
-
assetUrl: string;
|
|
177
|
-
thumbnailUrl: string;
|
|
178
|
-
type: string;
|
|
179
|
-
authorId: string;
|
|
180
|
-
uploadedAt: number;
|
|
181
|
-
duration?: number | undefined;
|
|
182
|
-
progress?: number | undefined;
|
|
183
|
-
error?: string | undefined;
|
|
184
|
-
}, {
|
|
185
|
-
assetId: string;
|
|
186
|
-
fileName: string;
|
|
187
|
-
extension: string;
|
|
188
|
-
fileSize: number;
|
|
189
|
-
assetUrl: string;
|
|
190
|
-
thumbnailUrl: string;
|
|
191
|
-
type: string;
|
|
192
|
-
authorId: string;
|
|
193
|
-
uploadedAt: number;
|
|
194
|
-
duration?: number | undefined;
|
|
195
|
-
progress?: number | undefined;
|
|
196
|
-
error?: string | undefined;
|
|
197
|
-
}>, "many">;
|
|
198
|
-
createdAt: z.ZodNumber;
|
|
199
|
-
modified: z.ZodNumber;
|
|
200
|
-
}, "strip", z.ZodTypeAny, {
|
|
201
|
-
createdAt: number;
|
|
202
|
-
modified: number;
|
|
203
|
-
userId: string;
|
|
204
|
-
notes: {
|
|
205
|
-
id: string;
|
|
206
|
-
authorEmail: string;
|
|
207
|
-
content: string;
|
|
208
|
-
createdAt: number;
|
|
209
|
-
modified: number;
|
|
210
|
-
}[];
|
|
211
|
-
assets: {
|
|
212
|
-
assetId: string;
|
|
213
|
-
fileName: string;
|
|
214
|
-
extension: string;
|
|
215
|
-
fileSize: number;
|
|
216
|
-
assetUrl: string;
|
|
217
|
-
thumbnailUrl: string;
|
|
218
|
-
type: string;
|
|
219
|
-
authorId: string;
|
|
220
|
-
uploadedAt: number;
|
|
221
|
-
duration?: number | undefined;
|
|
222
|
-
progress?: number | undefined;
|
|
223
|
-
error?: string | undefined;
|
|
224
|
-
}[];
|
|
225
|
-
}, {
|
|
226
|
-
createdAt: number;
|
|
227
|
-
modified: number;
|
|
228
|
-
userId: string;
|
|
229
|
-
notes: {
|
|
230
|
-
id: string;
|
|
231
|
-
authorEmail: string;
|
|
232
|
-
content: string;
|
|
233
|
-
createdAt: number;
|
|
234
|
-
modified: number;
|
|
235
|
-
}[];
|
|
236
|
-
assets: {
|
|
237
|
-
assetId: string;
|
|
238
|
-
fileName: string;
|
|
239
|
-
extension: string;
|
|
240
|
-
fileSize: number;
|
|
241
|
-
assetUrl: string;
|
|
242
|
-
thumbnailUrl: string;
|
|
243
|
-
type: string;
|
|
244
|
-
authorId: string;
|
|
245
|
-
uploadedAt: number;
|
|
246
|
-
duration?: number | undefined;
|
|
247
|
-
progress?: number | undefined;
|
|
248
|
-
error?: string | undefined;
|
|
249
|
-
}[];
|
|
250
|
-
}>;
|
|
251
|
-
export type Note = z.infer<typeof NoteSchema>;
|
|
252
|
-
export type UserNote = z.infer<typeof UserNoteSchema>;
|
|
253
|
-
export { User, Preferences, UserAPISchema, UserEndpoints, Role, System };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.System = exports.Role = exports.UserEndpoints = exports.UserNoteSchema = exports.NoteSchema = void 0;
|
|
4
|
-
const Asset_schema_1 = require("./Asset.schema");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const UserEndpoints = {
|
|
7
|
-
ChangeEmail: {
|
|
8
|
-
uri: "/accounts/user/changeEmail",
|
|
9
|
-
method: "PUT",
|
|
10
|
-
},
|
|
11
|
-
GetUserInfo: {
|
|
12
|
-
uri: "/accounts/user/info",
|
|
13
|
-
method: "GET",
|
|
14
|
-
},
|
|
15
|
-
GetBindedUsers: {
|
|
16
|
-
uri: "/accounts/binded/list",
|
|
17
|
-
method: "GET",
|
|
18
|
-
},
|
|
19
|
-
EnableUser: {
|
|
20
|
-
uri: "/api/user/register",
|
|
21
|
-
method: "POST",
|
|
22
|
-
},
|
|
23
|
-
ChangePassword: {
|
|
24
|
-
uri: "/accounts/public/changePassword/",
|
|
25
|
-
method: "POST",
|
|
26
|
-
},
|
|
27
|
-
IsEmailAvaliable: {
|
|
28
|
-
uri: "/accounts/public/email/avaliable",
|
|
29
|
-
method: "GET",
|
|
30
|
-
},
|
|
31
|
-
GetIntegrationToken: {
|
|
32
|
-
uri: "/accounts/user/getToken/",
|
|
33
|
-
method: "GET",
|
|
34
|
-
},
|
|
35
|
-
CreateToken: {
|
|
36
|
-
uri: "/accounts/user/createToken/",
|
|
37
|
-
method: "POST",
|
|
38
|
-
},
|
|
39
|
-
ConfirmCode: {
|
|
40
|
-
uri: "/accounts/public/email/validate",
|
|
41
|
-
method: "POST",
|
|
42
|
-
},
|
|
43
|
-
DeleteAccount: {
|
|
44
|
-
uri: "/accounts/user/delete/",
|
|
45
|
-
method: "DELETE",
|
|
46
|
-
},
|
|
47
|
-
SendValidationCode: {
|
|
48
|
-
uri: "/accounts/public/email/send",
|
|
49
|
-
method: "POST",
|
|
50
|
-
},
|
|
51
|
-
Authenticate: {
|
|
52
|
-
uri: "/accounts/public/login",
|
|
53
|
-
method: "POST",
|
|
54
|
-
},
|
|
55
|
-
CreateUser: {
|
|
56
|
-
uri: "/accounts/public/create",
|
|
57
|
-
method: "POST",
|
|
58
|
-
},
|
|
59
|
-
UpdateUser: {
|
|
60
|
-
uri: "/accounts/user/update",
|
|
61
|
-
method: "PUT",
|
|
62
|
-
},
|
|
63
|
-
Setup: {
|
|
64
|
-
uri: "/accounts/user/setup/",
|
|
65
|
-
method: "POST",
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
exports.UserEndpoints = UserEndpoints;
|
|
69
|
-
var Role;
|
|
70
|
-
(function (Role) {
|
|
71
|
-
Role["USER"] = "User";
|
|
72
|
-
Role["EDITOR"] = "Editor";
|
|
73
|
-
Role["QA"] = "QA";
|
|
74
|
-
Role["ADMIN"] = "ADMIN";
|
|
75
|
-
Role["SYSTEM"] = "SYSTEM";
|
|
76
|
-
})(Role || (exports.Role = Role = {}));
|
|
77
|
-
var System;
|
|
78
|
-
(function (System) {
|
|
79
|
-
System["APP"] = "APP";
|
|
80
|
-
System["EDITOR"] = "EDITOR";
|
|
81
|
-
System["QA"] = "QA";
|
|
82
|
-
System["ADMIN"] = "ADMIN";
|
|
83
|
-
})(System || (exports.System = System = {}));
|
|
84
|
-
exports.NoteSchema = zod_1.z.object({
|
|
85
|
-
id: zod_1.z.string(),
|
|
86
|
-
authorEmail: zod_1.z.string().email(),
|
|
87
|
-
content: zod_1.z.string(),
|
|
88
|
-
createdAt: zod_1.z.number(),
|
|
89
|
-
modified: zod_1.z.number(),
|
|
90
|
-
});
|
|
91
|
-
exports.UserNoteSchema = zod_1.z.object({
|
|
92
|
-
userId: zod_1.z.string(),
|
|
93
|
-
notes: zod_1.z.array(exports.NoteSchema),
|
|
94
|
-
assets: zod_1.z.array(Asset_schema_1.AssetSchema),
|
|
95
|
-
createdAt: zod_1.z.number(),
|
|
96
|
-
modified: zod_1.z.number(),
|
|
97
|
-
});
|
package/dist/namespace.d.ts
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { Product as TProduct, Subscription as TSubscription, Charge as TCharge } from "./model/Subscription.schema";
|
|
2
|
-
import { Trigger as TTrigger, Criteria as TCriteria, NotificationDetail as TNContent, RecurrenceRule as TRRule, NotificationItem as TNotificaitonItem, History as THistory } from "./model/Notification.schema";
|
|
3
|
-
import { APIResponse } from "./model/Api";
|
|
4
|
-
import { System as TSystem, User as TUser, Preferences as UserPreferences, Role as TRole, UserNote as TUserNote } from "./model/User.schema";
|
|
5
|
-
import { Email as TEmail } from "./model/Email.schema";
|
|
6
|
-
import { Asset as TAsset } from "./model/Asset.schema";
|
|
7
|
-
import { Project as TProject, TimelineItem as TTimlineItem, WeeklyMilestone as TWeeklyMilestone, DailyMilestone as TDailyMilestone, Goal as TGoal } from "./model/Project.schema";
|
|
8
|
-
import { Tenant as TTenant } from "./model/Tenant.schema";
|
|
9
|
-
import { Track as TTrack } from "./model/Track.schema";
|
|
10
|
-
import { Prompt as TPrompt, Script as TScript, Category as TCategory } from "./model/Prompt.schema";
|
|
11
|
-
export declare namespace Permissions {
|
|
12
|
-
type Role = TRole;
|
|
13
|
-
}
|
|
14
|
-
export declare namespace Shred {
|
|
15
|
-
type Response<T> = APIResponse<T>;
|
|
16
|
-
type Tenant = TTenant;
|
|
17
|
-
type Product = TProduct;
|
|
18
|
-
type Subscription = TSubscription;
|
|
19
|
-
type Charge = TCharge;
|
|
20
|
-
type User = TUser;
|
|
21
|
-
type Email = TEmail;
|
|
22
|
-
type System = TSystem;
|
|
23
|
-
type Project = TProject;
|
|
24
|
-
type TimelineItem = TTimlineItem;
|
|
25
|
-
type Asset = TAsset;
|
|
26
|
-
type Track = TTrack;
|
|
27
|
-
namespace PromptTypes {
|
|
28
|
-
type Prompt = TPrompt;
|
|
29
|
-
type Script = TScript;
|
|
30
|
-
type Category = TCategory;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export declare namespace Schemas { }
|
|
34
|
-
export declare namespace Goal {
|
|
35
|
-
type WeeklyMilestone = TWeeklyMilestone;
|
|
36
|
-
type DailyMilestone = TDailyMilestone;
|
|
37
|
-
type Month = TGoal;
|
|
38
|
-
}
|
|
39
|
-
export declare namespace Notification {
|
|
40
|
-
enum Frequency {
|
|
41
|
-
DAILY = "daily",
|
|
42
|
-
WEEKLY = "weekly",
|
|
43
|
-
MONTHLY = "monthly"
|
|
44
|
-
}
|
|
45
|
-
enum WeekDay {
|
|
46
|
-
MONDAY = 1,
|
|
47
|
-
TUESDAY = 2,
|
|
48
|
-
WEDNESDAY = 3,
|
|
49
|
-
THURSDAY = 4,
|
|
50
|
-
FRIDAY = 5,
|
|
51
|
-
SATURDAY = 6,
|
|
52
|
-
SUNDAY = 7
|
|
53
|
-
}
|
|
54
|
-
enum CriteriaType {
|
|
55
|
-
AllUsers = "allUsers",
|
|
56
|
-
NoProjects = "noProjects",
|
|
57
|
-
NoSubscription = "noSubscription",
|
|
58
|
-
UsersFromTier = "usersFromTier"
|
|
59
|
-
}
|
|
60
|
-
enum TransportType {
|
|
61
|
-
Push = "push",
|
|
62
|
-
Email = "email"
|
|
63
|
-
}
|
|
64
|
-
enum Status {
|
|
65
|
-
SCHEDULED = "scheduled",
|
|
66
|
-
RUNNING = "running",
|
|
67
|
-
COMPLETED = "completed",
|
|
68
|
-
FAILED = "failed",
|
|
69
|
-
PAUSED = "paused",
|
|
70
|
-
CANCELLED = "cancelled",
|
|
71
|
-
ACTIVE = "active",
|
|
72
|
-
EXPIRED = "expired"
|
|
73
|
-
}
|
|
74
|
-
type RecurrenceRule = TRRule;
|
|
75
|
-
type Trigger = TTrigger;
|
|
76
|
-
type Criteria = TCriteria;
|
|
77
|
-
type History = THistory;
|
|
78
|
-
type Item = TNotificaitonItem;
|
|
79
|
-
type Detail = TNContent;
|
|
80
|
-
}
|
|
81
|
-
export declare namespace User {
|
|
82
|
-
type Preferences = UserPreferences;
|
|
83
|
-
type Note = TUserNote;
|
|
84
|
-
}
|
|
85
|
-
export declare const Schemas: {
|
|
86
|
-
Asset: import("zod").ZodObject<{
|
|
87
|
-
assetId: import("zod").ZodString;
|
|
88
|
-
fileName: import("zod").ZodString;
|
|
89
|
-
extension: import("zod").ZodString;
|
|
90
|
-
fileSize: import("zod").ZodNumber;
|
|
91
|
-
assetUrl: import("zod").ZodString;
|
|
92
|
-
thumbnailUrl: import("zod").ZodString;
|
|
93
|
-
type: import("zod").ZodString;
|
|
94
|
-
duration: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
95
|
-
progress: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
96
|
-
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
-
authorId: import("zod").ZodString;
|
|
98
|
-
uploadedAt: import("zod").ZodNumber;
|
|
99
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
100
|
-
assetId: string;
|
|
101
|
-
fileName: string;
|
|
102
|
-
extension: string;
|
|
103
|
-
fileSize: number;
|
|
104
|
-
assetUrl: string;
|
|
105
|
-
thumbnailUrl: string;
|
|
106
|
-
type: string;
|
|
107
|
-
authorId: string;
|
|
108
|
-
uploadedAt: number;
|
|
109
|
-
duration?: number | undefined;
|
|
110
|
-
progress?: number | undefined;
|
|
111
|
-
error?: string | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
assetId: string;
|
|
114
|
-
fileName: string;
|
|
115
|
-
extension: string;
|
|
116
|
-
fileSize: number;
|
|
117
|
-
assetUrl: string;
|
|
118
|
-
thumbnailUrl: string;
|
|
119
|
-
type: string;
|
|
120
|
-
authorId: string;
|
|
121
|
-
uploadedAt: number;
|
|
122
|
-
duration?: number | undefined;
|
|
123
|
-
progress?: number | undefined;
|
|
124
|
-
error?: string | undefined;
|
|
125
|
-
}>;
|
|
126
|
-
Note: import("zod").ZodObject<{
|
|
127
|
-
id: import("zod").ZodString;
|
|
128
|
-
authorEmail: import("zod").ZodString;
|
|
129
|
-
content: import("zod").ZodString;
|
|
130
|
-
createdAt: import("zod").ZodNumber;
|
|
131
|
-
modified: import("zod").ZodNumber;
|
|
132
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
133
|
-
id: string;
|
|
134
|
-
authorEmail: string;
|
|
135
|
-
content: string;
|
|
136
|
-
createdAt: number;
|
|
137
|
-
modified: number;
|
|
138
|
-
}, {
|
|
139
|
-
id: string;
|
|
140
|
-
authorEmail: string;
|
|
141
|
-
content: string;
|
|
142
|
-
createdAt: number;
|
|
143
|
-
modified: number;
|
|
144
|
-
}>;
|
|
145
|
-
UserNote: import("zod").ZodObject<{
|
|
146
|
-
userId: import("zod").ZodString;
|
|
147
|
-
notes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
148
|
-
id: import("zod").ZodString;
|
|
149
|
-
authorEmail: import("zod").ZodString;
|
|
150
|
-
content: import("zod").ZodString;
|
|
151
|
-
createdAt: import("zod").ZodNumber;
|
|
152
|
-
modified: import("zod").ZodNumber;
|
|
153
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
154
|
-
id: string;
|
|
155
|
-
authorEmail: string;
|
|
156
|
-
content: string;
|
|
157
|
-
createdAt: number;
|
|
158
|
-
modified: number;
|
|
159
|
-
}, {
|
|
160
|
-
id: string;
|
|
161
|
-
authorEmail: string;
|
|
162
|
-
content: string;
|
|
163
|
-
createdAt: number;
|
|
164
|
-
modified: number;
|
|
165
|
-
}>, "many">;
|
|
166
|
-
assets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
167
|
-
assetId: import("zod").ZodString;
|
|
168
|
-
fileName: import("zod").ZodString;
|
|
169
|
-
extension: import("zod").ZodString;
|
|
170
|
-
fileSize: import("zod").ZodNumber;
|
|
171
|
-
assetUrl: import("zod").ZodString;
|
|
172
|
-
thumbnailUrl: import("zod").ZodString;
|
|
173
|
-
type: import("zod").ZodString;
|
|
174
|
-
duration: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
175
|
-
progress: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
176
|
-
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
177
|
-
authorId: import("zod").ZodString;
|
|
178
|
-
uploadedAt: import("zod").ZodNumber;
|
|
179
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
180
|
-
assetId: string;
|
|
181
|
-
fileName: string;
|
|
182
|
-
extension: string;
|
|
183
|
-
fileSize: number;
|
|
184
|
-
assetUrl: string;
|
|
185
|
-
thumbnailUrl: string;
|
|
186
|
-
type: string;
|
|
187
|
-
authorId: string;
|
|
188
|
-
uploadedAt: number;
|
|
189
|
-
duration?: number | undefined;
|
|
190
|
-
progress?: number | undefined;
|
|
191
|
-
error?: string | undefined;
|
|
192
|
-
}, {
|
|
193
|
-
assetId: string;
|
|
194
|
-
fileName: string;
|
|
195
|
-
extension: string;
|
|
196
|
-
fileSize: number;
|
|
197
|
-
assetUrl: string;
|
|
198
|
-
thumbnailUrl: string;
|
|
199
|
-
type: string;
|
|
200
|
-
authorId: string;
|
|
201
|
-
uploadedAt: number;
|
|
202
|
-
duration?: number | undefined;
|
|
203
|
-
progress?: number | undefined;
|
|
204
|
-
error?: string | undefined;
|
|
205
|
-
}>, "many">;
|
|
206
|
-
createdAt: import("zod").ZodNumber;
|
|
207
|
-
modified: import("zod").ZodNumber;
|
|
208
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
209
|
-
createdAt: number;
|
|
210
|
-
modified: number;
|
|
211
|
-
userId: string;
|
|
212
|
-
notes: {
|
|
213
|
-
id: string;
|
|
214
|
-
authorEmail: string;
|
|
215
|
-
content: string;
|
|
216
|
-
createdAt: number;
|
|
217
|
-
modified: number;
|
|
218
|
-
}[];
|
|
219
|
-
assets: {
|
|
220
|
-
assetId: string;
|
|
221
|
-
fileName: string;
|
|
222
|
-
extension: string;
|
|
223
|
-
fileSize: number;
|
|
224
|
-
assetUrl: string;
|
|
225
|
-
thumbnailUrl: string;
|
|
226
|
-
type: string;
|
|
227
|
-
authorId: string;
|
|
228
|
-
uploadedAt: number;
|
|
229
|
-
duration?: number | undefined;
|
|
230
|
-
progress?: number | undefined;
|
|
231
|
-
error?: string | undefined;
|
|
232
|
-
}[];
|
|
233
|
-
}, {
|
|
234
|
-
createdAt: number;
|
|
235
|
-
modified: number;
|
|
236
|
-
userId: string;
|
|
237
|
-
notes: {
|
|
238
|
-
id: string;
|
|
239
|
-
authorEmail: string;
|
|
240
|
-
content: string;
|
|
241
|
-
createdAt: number;
|
|
242
|
-
modified: number;
|
|
243
|
-
}[];
|
|
244
|
-
assets: {
|
|
245
|
-
assetId: string;
|
|
246
|
-
fileName: string;
|
|
247
|
-
extension: string;
|
|
248
|
-
fileSize: number;
|
|
249
|
-
assetUrl: string;
|
|
250
|
-
thumbnailUrl: string;
|
|
251
|
-
type: string;
|
|
252
|
-
authorId: string;
|
|
253
|
-
uploadedAt: number;
|
|
254
|
-
duration?: number | undefined;
|
|
255
|
-
progress?: number | undefined;
|
|
256
|
-
error?: string | undefined;
|
|
257
|
-
}[];
|
|
258
|
-
}>;
|
|
259
|
-
};
|
package/dist/namespace.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Schemas = exports.Notification = void 0;
|
|
4
|
-
const User_schema_1 = require("./model/User.schema");
|
|
5
|
-
const Asset_schema_1 = require("./model/Asset.schema");
|
|
6
|
-
var Notification;
|
|
7
|
-
(function (Notification) {
|
|
8
|
-
let Frequency;
|
|
9
|
-
(function (Frequency) {
|
|
10
|
-
Frequency["DAILY"] = "daily";
|
|
11
|
-
Frequency["WEEKLY"] = "weekly";
|
|
12
|
-
Frequency["MONTHLY"] = "monthly";
|
|
13
|
-
})(Frequency = Notification.Frequency || (Notification.Frequency = {}));
|
|
14
|
-
let WeekDay;
|
|
15
|
-
(function (WeekDay) {
|
|
16
|
-
WeekDay[WeekDay["MONDAY"] = 1] = "MONDAY";
|
|
17
|
-
WeekDay[WeekDay["TUESDAY"] = 2] = "TUESDAY";
|
|
18
|
-
WeekDay[WeekDay["WEDNESDAY"] = 3] = "WEDNESDAY";
|
|
19
|
-
WeekDay[WeekDay["THURSDAY"] = 4] = "THURSDAY";
|
|
20
|
-
WeekDay[WeekDay["FRIDAY"] = 5] = "FRIDAY";
|
|
21
|
-
WeekDay[WeekDay["SATURDAY"] = 6] = "SATURDAY";
|
|
22
|
-
WeekDay[WeekDay["SUNDAY"] = 7] = "SUNDAY";
|
|
23
|
-
})(WeekDay = Notification.WeekDay || (Notification.WeekDay = {}));
|
|
24
|
-
let CriteriaType;
|
|
25
|
-
(function (CriteriaType) {
|
|
26
|
-
CriteriaType["AllUsers"] = "allUsers";
|
|
27
|
-
CriteriaType["NoProjects"] = "noProjects";
|
|
28
|
-
CriteriaType["NoSubscription"] = "noSubscription";
|
|
29
|
-
CriteriaType["UsersFromTier"] = "usersFromTier";
|
|
30
|
-
})(CriteriaType = Notification.CriteriaType || (Notification.CriteriaType = {}));
|
|
31
|
-
let TransportType;
|
|
32
|
-
(function (TransportType) {
|
|
33
|
-
TransportType["Push"] = "push";
|
|
34
|
-
TransportType["Email"] = "email";
|
|
35
|
-
})(TransportType = Notification.TransportType || (Notification.TransportType = {}));
|
|
36
|
-
let Status;
|
|
37
|
-
(function (Status) {
|
|
38
|
-
Status["SCHEDULED"] = "scheduled";
|
|
39
|
-
Status["RUNNING"] = "running";
|
|
40
|
-
Status["COMPLETED"] = "completed";
|
|
41
|
-
Status["FAILED"] = "failed";
|
|
42
|
-
Status["PAUSED"] = "paused";
|
|
43
|
-
Status["CANCELLED"] = "cancelled";
|
|
44
|
-
Status["ACTIVE"] = "active";
|
|
45
|
-
Status["EXPIRED"] = "expired";
|
|
46
|
-
})(Status = Notification.Status || (Notification.Status = {}));
|
|
47
|
-
})(Notification || (exports.Notification = Notification = {}));
|
|
48
|
-
//Schemas
|
|
49
|
-
exports.Schemas = {
|
|
50
|
-
Asset: Asset_schema_1.AssetSchema,
|
|
51
|
-
Note: User_schema_1.NoteSchema,
|
|
52
|
-
UserNote: User_schema_1.UserNoteSchema,
|
|
53
|
-
};
|
|
@@ -13,31 +13,31 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
13
13
|
authorId: z.ZodString;
|
|
14
14
|
uploadedAt: z.ZodNumber;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
type: string;
|
|
16
17
|
assetId: string;
|
|
17
18
|
fileName: string;
|
|
18
19
|
extension: string;
|
|
19
20
|
fileSize: number;
|
|
20
21
|
assetUrl: string;
|
|
21
22
|
thumbnailUrl: string;
|
|
22
|
-
type: string;
|
|
23
23
|
authorId: string;
|
|
24
24
|
uploadedAt: number;
|
|
25
|
+
error?: string | undefined;
|
|
25
26
|
duration?: number | undefined;
|
|
26
27
|
progress?: number | undefined;
|
|
27
|
-
error?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
+
type: string;
|
|
29
30
|
assetId: string;
|
|
30
31
|
fileName: string;
|
|
31
32
|
extension: string;
|
|
32
33
|
fileSize: number;
|
|
33
34
|
assetUrl: string;
|
|
34
35
|
thumbnailUrl: string;
|
|
35
|
-
type: string;
|
|
36
36
|
authorId: string;
|
|
37
37
|
uploadedAt: number;
|
|
38
|
+
error?: string | undefined;
|
|
38
39
|
duration?: number | undefined;
|
|
39
40
|
progress?: number | undefined;
|
|
40
|
-
error?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
type Asset = z.infer<typeof AssetSchema>;
|
|
43
43
|
export { Asset, AssetSchema };
|
|
File without changes
|