@marcoappio/marco-config 11.0.3 → 11.0.4
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/constants/index.d.ts +5 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/tasks.d.ts +6 -0
- package/dist/constants/tasks.d.ts.map +1 -0
- package/dist/constants/tasks.js +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/id.d.ts +10 -0
- package/dist/schemas/id.d.ts.map +1 -1
- package/dist/schemas/id.js +2 -0
- package/dist/schemas/index.d.ts +91 -3
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -1
- package/dist/schemas/models/index.d.ts +1 -0
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +1 -0
- package/dist/schemas/models/task.d.ts +44 -0
- package/dist/schemas/models/task.d.ts.map +1 -0
- package/dist/schemas/models/task.js +38 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts +41 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +49 -0
- package/dist/schemas/websocket.d.ts +2 -2
- package/dist/sdk/endpoints/index.d.ts +2 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/index.js +2 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts +28 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.js +17 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.d.ts +52 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.js +23 -0
- package/dist/sdk/endpoints/private/models/task/index.d.ts +3 -0
- package/dist/sdk/endpoints/private/models/task/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/index.js +2 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/index.js +2 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts +54 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.js +20 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts +37 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts +37 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/index.d.ts +8 -0
- package/dist/sdk/endpoints/private/mutations/task/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/index.js +7 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.js +19 -0
- package/dist/sdk/index.d.ts +14 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +24 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +10 -0
- package/dist/sdk/validation/index.d.ts +12 -0
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/types/PokeEvent.d.ts +1 -1
- package/dist/types/PokeEvent.d.ts.map +1 -1
- package/dist/types/PokeEvent.js +1 -1
- package/dist/types/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateNote.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/updateNote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcrB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, mutationRejectedErrorSchema, taskNoteNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const updateNote = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.task.updateNote,
|
|
7
|
+
method: 'PATCH',
|
|
8
|
+
path: '/v1/pv/models/task-note/:taskNoteId/update',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
taskNoteNotFoundErrorSchema,
|
|
13
|
+
mutationRejectedErrorSchema,
|
|
14
|
+
validationFailedErrorSchema,
|
|
15
|
+
v.object({
|
|
16
|
+
status: v.literal(200),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const updateTask: import("../../../../..").EndpointConfig<"/v1/pv/models/task/:taskId/update", v.ObjectSchema<{
|
|
3
|
+
readonly dueAt: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
4
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
5
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
7
|
+
readonly data: v.ObjectSchema<{
|
|
8
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly data: v.ObjectSchema<{
|
|
13
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
16
|
+
}, undefined>, v.ObjectSchema<{
|
|
17
|
+
readonly data: v.ObjectSchema<{
|
|
18
|
+
readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
21
|
+
}, undefined>, v.ObjectSchema<{
|
|
22
|
+
readonly data: v.ObjectSchema<{
|
|
23
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
26
|
+
}, undefined>, v.ObjectSchema<{
|
|
27
|
+
readonly data: v.ObjectSchema<{
|
|
28
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
29
|
+
readonly issues: v.ObjectSchema<{
|
|
30
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
31
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
32
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
36
|
+
}, undefined>, v.ObjectSchema<{
|
|
37
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
38
|
+
}, undefined>], undefined>>;
|
|
39
|
+
//# sourceMappingURL=updateTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateTask.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/updateTask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcrB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, mutationRejectedErrorSchema, taskNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const updateTask = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.task.updateTask,
|
|
7
|
+
method: 'PATCH',
|
|
8
|
+
path: '/v1/pv/models/task/:taskId/update',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
taskNotFoundErrorSchema,
|
|
13
|
+
mutationRejectedErrorSchema,
|
|
14
|
+
validationFailedErrorSchema,
|
|
15
|
+
v.object({
|
|
16
|
+
status: v.literal(200),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -66,12 +66,14 @@ export declare const marcoSDK: {
|
|
|
66
66
|
account: typeof import("./endpoints/private/models/account");
|
|
67
67
|
contact: typeof import("./endpoints/private/models/contact");
|
|
68
68
|
draft: typeof import("./endpoints/private/models/draft");
|
|
69
|
+
task: typeof import("./endpoints/private/models/task");
|
|
69
70
|
thread: typeof import("./endpoints/private/models/thread");
|
|
70
71
|
user: typeof import("./endpoints/private/models/user");
|
|
71
72
|
};
|
|
72
73
|
mutations: {
|
|
73
74
|
account: typeof import("./endpoints/private/mutations/account");
|
|
74
75
|
draft: typeof import("./endpoints/private/mutations/draft");
|
|
76
|
+
task: typeof import("./endpoints/private/mutations/task");
|
|
75
77
|
thread: typeof import("./endpoints/private/mutations/thread");
|
|
76
78
|
user: typeof import("./endpoints/private/mutations/user");
|
|
77
79
|
};
|
|
@@ -565,6 +567,18 @@ export declare const marcoSDK: {
|
|
|
565
567
|
}, undefined>;
|
|
566
568
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
567
569
|
}, undefined>;
|
|
570
|
+
readonly taskNoteNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
571
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
572
|
+
readonly code: import("valibot").LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
573
|
+
}, undefined>;
|
|
574
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
575
|
+
}, undefined>;
|
|
576
|
+
readonly taskNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
577
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
578
|
+
readonly code: import("valibot").LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
579
|
+
}, undefined>;
|
|
580
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
581
|
+
}, undefined>;
|
|
568
582
|
readonly threadNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
569
583
|
readonly data: import("valibot").ObjectSchema<{
|
|
570
584
|
readonly code: import("valibot").LiteralSchema<"THREAD_NOT_FOUND", undefined>;
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
|
|
@@ -125,6 +125,18 @@ export declare const draftNotFoundErrorSchema: v.ObjectSchema<{
|
|
|
125
125
|
}, undefined>;
|
|
126
126
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
127
127
|
}, undefined>;
|
|
128
|
+
export declare const taskNotFoundErrorSchema: v.ObjectSchema<{
|
|
129
|
+
readonly data: v.ObjectSchema<{
|
|
130
|
+
readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
131
|
+
}, undefined>;
|
|
132
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
133
|
+
}, undefined>;
|
|
134
|
+
export declare const taskNoteNotFoundErrorSchema: v.ObjectSchema<{
|
|
135
|
+
readonly data: v.ObjectSchema<{
|
|
136
|
+
readonly code: v.LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
137
|
+
}, undefined>;
|
|
138
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
139
|
+
}, undefined>;
|
|
128
140
|
export declare const contactNotFoundErrorSchema: v.ObjectSchema<{
|
|
129
141
|
readonly data: v.ObjectSchema<{
|
|
130
142
|
readonly code: v.LiteralSchema<"CONTACT_NOT_FOUND", undefined>;
|
|
@@ -335,6 +347,18 @@ export declare const errors: {
|
|
|
335
347
|
}, undefined>;
|
|
336
348
|
readonly status: v.LiteralSchema<409, undefined>;
|
|
337
349
|
}, undefined>;
|
|
350
|
+
readonly taskNoteNotFoundErrorSchema: v.ObjectSchema<{
|
|
351
|
+
readonly data: v.ObjectSchema<{
|
|
352
|
+
readonly code: v.LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
353
|
+
}, undefined>;
|
|
354
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
355
|
+
}, undefined>;
|
|
356
|
+
readonly taskNotFoundErrorSchema: v.ObjectSchema<{
|
|
357
|
+
readonly data: v.ObjectSchema<{
|
|
358
|
+
readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
359
|
+
}, undefined>;
|
|
360
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
361
|
+
}, undefined>;
|
|
338
362
|
readonly threadNotFoundErrorSchema: v.ObjectSchema<{
|
|
339
363
|
readonly data: v.ObjectSchema<{
|
|
340
364
|
readonly code: v.LiteralSchema<"THREAD_NOT_FOUND", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA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;;;aAG5C,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCT,CAAA"}
|
|
@@ -83,6 +83,14 @@ export const draftNotFoundErrorSchema = v.object({
|
|
|
83
83
|
data: v.object({ code: v.literal('DRAFT_NOT_FOUND') }),
|
|
84
84
|
status: v.literal(404),
|
|
85
85
|
});
|
|
86
|
+
export const taskNotFoundErrorSchema = v.object({
|
|
87
|
+
data: v.object({ code: v.literal('TASK_NOT_FOUND') }),
|
|
88
|
+
status: v.literal(404),
|
|
89
|
+
});
|
|
90
|
+
export const taskNoteNotFoundErrorSchema = v.object({
|
|
91
|
+
data: v.object({ code: v.literal('TASK_NOTE_NOT_FOUND') }),
|
|
92
|
+
status: v.literal(404),
|
|
93
|
+
});
|
|
86
94
|
export const contactNotFoundErrorSchema = v.object({
|
|
87
95
|
data: v.object({ code: v.literal('CONTACT_NOT_FOUND') }),
|
|
88
96
|
status: v.literal(404),
|
|
@@ -152,6 +160,8 @@ export const errors = {
|
|
|
152
160
|
labelNotFoundErrorSchema,
|
|
153
161
|
messageNotFoundErrorSchema,
|
|
154
162
|
mutationRejectedErrorSchema,
|
|
163
|
+
taskNoteNotFoundErrorSchema,
|
|
164
|
+
taskNotFoundErrorSchema,
|
|
155
165
|
threadNotFoundErrorSchema,
|
|
156
166
|
userMarkedForDeletionErrorSchema,
|
|
157
167
|
userNotFoundErrorSchema,
|
|
@@ -150,6 +150,18 @@ export declare const validation: {
|
|
|
150
150
|
}, undefined>;
|
|
151
151
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
152
152
|
}, undefined>;
|
|
153
|
+
readonly taskNoteNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
154
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
155
|
+
readonly code: import("valibot").LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
156
|
+
}, undefined>;
|
|
157
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
158
|
+
}, undefined>;
|
|
159
|
+
readonly taskNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
160
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
161
|
+
readonly code: import("valibot").LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
162
|
+
}, undefined>;
|
|
163
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
164
|
+
}, undefined>;
|
|
153
165
|
readonly threadNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
154
166
|
readonly data: import("valibot").ObjectSchema<{
|
|
155
167
|
readonly code: import("valibot").LiteralSchema<"THREAD_NOT_FOUND", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as v from 'valibot';
|
|
2
2
|
import type { marcoSchemas } from '../schemas';
|
|
3
|
-
export declare const POKE_MODELS: readonly ["user", "account", "contact", "draft", "thread"];
|
|
3
|
+
export declare const POKE_MODELS: readonly ["user", "account", "contact", "draft", "thread", "task", "taskNote"];
|
|
4
4
|
export type PokeModel = (typeof POKE_MODELS)[number];
|
|
5
5
|
export type PokeEvent = v.InferOutput<typeof marcoSchemas.websocket.pokeEvent>;
|
|
6
6
|
//# sourceMappingURL=PokeEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PokeEvent.d.ts","sourceRoot":"","sources":["../../src/types/PokeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"PokeEvent.d.ts","sourceRoot":"","sources":["../../src/types/PokeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,WAAW,gFAAiF,CAAA;AAEzG,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA"}
|
package/dist/types/PokeEvent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const POKE_MODELS = ['user', 'account', 'contact', 'draft', 'thread'];
|
|
1
|
+
export const POKE_MODELS = ['user', 'account', 'contact', 'draft', 'thread', 'task', 'taskNote'];
|
package/dist/types/SDKError.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type * as v from 'valibot';
|
|
2
2
|
import type { errors } from '../sdk/validation/errors';
|
|
3
|
-
export type SDKError = v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.aliasNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentSizeMismatchErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema> | v.InferOutput<typeof errors.attachmentUploadFailedErrorSchema> | v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.contactNotFoundErrorSchema> | v.InferOutput<typeof errors.draftNotFoundErrorSchema> | v.InferOutput<typeof errors.fileTooLargeErrorSchema> | v.InferOutput<typeof errors.invalidFileTypeErrorSchema> | v.InferOutput<typeof errors.invalidImageDimensionsErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.labelAlreadyExistsErrorSchema> | v.InferOutput<typeof errors.labelMoveConflictErrorSchema> | v.InferOutput<typeof errors.labelMoveEvidenceUnavailableErrorSchema> | v.InferOutput<typeof errors.labelNotFoundErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.threadNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.viewNotFoundErrorSchema>;
|
|
3
|
+
export type SDKError = v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.aliasNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentSizeMismatchErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema> | v.InferOutput<typeof errors.attachmentUploadFailedErrorSchema> | v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.contactNotFoundErrorSchema> | v.InferOutput<typeof errors.draftNotFoundErrorSchema> | v.InferOutput<typeof errors.fileTooLargeErrorSchema> | v.InferOutput<typeof errors.invalidFileTypeErrorSchema> | v.InferOutput<typeof errors.invalidImageDimensionsErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.labelAlreadyExistsErrorSchema> | v.InferOutput<typeof errors.labelMoveConflictErrorSchema> | v.InferOutput<typeof errors.labelMoveEvidenceUnavailableErrorSchema> | v.InferOutput<typeof errors.labelNotFoundErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.taskNoteNotFoundErrorSchema> | v.InferOutput<typeof errors.taskNotFoundErrorSchema> | v.InferOutput<typeof errors.threadNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.viewNotFoundErrorSchema>;
|
|
4
4
|
//# sourceMappingURL=SDKError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO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