@marcoappio/marco-config 11.0.3 → 11.0.5

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.
Files changed (86) hide show
  1. package/dist/constants/index.d.ts +5 -0
  2. package/dist/constants/index.d.ts.map +1 -1
  3. package/dist/constants/index.js +2 -0
  4. package/dist/constants/tasks.d.ts +6 -0
  5. package/dist/constants/tasks.d.ts.map +1 -0
  6. package/dist/constants/tasks.js +5 -0
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/schemas/id.d.ts +10 -0
  10. package/dist/schemas/id.d.ts.map +1 -1
  11. package/dist/schemas/id.js +2 -0
  12. package/dist/schemas/index.d.ts +91 -3
  13. package/dist/schemas/index.d.ts.map +1 -1
  14. package/dist/schemas/index.js +4 -1
  15. package/dist/schemas/models/index.d.ts +1 -0
  16. package/dist/schemas/models/index.d.ts.map +1 -1
  17. package/dist/schemas/models/index.js +1 -0
  18. package/dist/schemas/models/task.d.ts +44 -0
  19. package/dist/schemas/models/task.d.ts.map +1 -0
  20. package/dist/schemas/models/task.js +38 -0
  21. package/dist/schemas/mutators/mutatorSchemas.d.ts +41 -0
  22. package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
  23. package/dist/schemas/mutators/mutatorSchemas.js +49 -0
  24. package/dist/schemas/websocket.d.ts +2 -2
  25. package/dist/sdk/endpoints/index.d.ts +2 -0
  26. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/index.d.ts +2 -0
  28. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/models/index.d.ts +2 -0
  30. package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -1
  31. package/dist/sdk/endpoints/private/models/index.js +2 -0
  32. package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts +28 -0
  33. package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts.map +1 -0
  34. package/dist/sdk/endpoints/private/models/task/getTaskNotes.js +17 -0
  35. package/dist/sdk/endpoints/private/models/task/getTasks.d.ts +52 -0
  36. package/dist/sdk/endpoints/private/models/task/getTasks.d.ts.map +1 -0
  37. package/dist/sdk/endpoints/private/models/task/getTasks.js +23 -0
  38. package/dist/sdk/endpoints/private/models/task/index.d.ts +3 -0
  39. package/dist/sdk/endpoints/private/models/task/index.d.ts.map +1 -0
  40. package/dist/sdk/endpoints/private/models/task/index.js +2 -0
  41. package/dist/sdk/endpoints/private/mutations/index.d.ts +2 -0
  42. package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -1
  43. package/dist/sdk/endpoints/private/mutations/index.js +2 -0
  44. package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts +39 -0
  45. package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts.map +1 -0
  46. package/dist/sdk/endpoints/private/mutations/task/createNote.js +19 -0
  47. package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts +54 -0
  48. package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts.map +1 -0
  49. package/dist/sdk/endpoints/private/mutations/task/createTask.js +20 -0
  50. package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts +37 -0
  51. package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts.map +1 -0
  52. package/dist/sdk/endpoints/private/mutations/task/deleteNote.js +19 -0
  53. package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts +37 -0
  54. package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts.map +1 -0
  55. package/dist/sdk/endpoints/private/mutations/task/deleteTask.js +19 -0
  56. package/dist/sdk/endpoints/private/mutations/task/index.d.ts +8 -0
  57. package/dist/sdk/endpoints/private/mutations/task/index.d.ts.map +1 -0
  58. package/dist/sdk/endpoints/private/mutations/task/index.js +7 -0
  59. package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts +38 -0
  60. package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts.map +1 -0
  61. package/dist/sdk/endpoints/private/mutations/task/setCompleted.js +19 -0
  62. package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts +38 -0
  63. package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts.map +1 -0
  64. package/dist/sdk/endpoints/private/mutations/task/updateNote.js +19 -0
  65. package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts +39 -0
  66. package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts.map +1 -0
  67. package/dist/sdk/endpoints/private/mutations/task/updateTask.js +19 -0
  68. package/dist/sdk/index.d.ts +14 -0
  69. package/dist/sdk/index.d.ts.map +1 -1
  70. package/dist/sdk/validation/errors.d.ts +24 -0
  71. package/dist/sdk/validation/errors.d.ts.map +1 -1
  72. package/dist/sdk/validation/errors.js +10 -0
  73. package/dist/sdk/validation/index.d.ts +12 -0
  74. package/dist/sdk/validation/index.d.ts.map +1 -1
  75. package/dist/types/PokeEvent.d.ts +1 -1
  76. package/dist/types/PokeEvent.d.ts.map +1 -1
  77. package/dist/types/PokeEvent.js +1 -1
  78. package/dist/types/SDKError.d.ts +1 -1
  79. package/dist/types/SDKError.d.ts.map +1 -1
  80. package/dist/types/TaskSourceKind.d.ts +3 -0
  81. package/dist/types/TaskSourceKind.d.ts.map +1 -0
  82. package/dist/types/TaskSourceKind.js +1 -0
  83. package/dist/types/index.d.ts +1 -0
  84. package/dist/types/index.d.ts.map +1 -1
  85. package/dist/types/index.js +1 -0
  86. package/package.json +1 -1
@@ -1,12 +1,14 @@
1
1
  import * as account from './account';
2
2
  import * as contact from './contact';
3
3
  import * as draft from './draft';
4
+ import * as task from './task';
4
5
  import * as thread from './thread';
5
6
  import * as user from './user';
6
7
  export declare const models: {
7
8
  account: typeof account;
8
9
  contact: typeof contact;
9
10
  draft: typeof draft;
11
+ task: typeof task;
10
12
  thread: typeof thread;
11
13
  user: typeof user;
12
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAA"}
@@ -1,12 +1,14 @@
1
1
  import * as account from './account';
2
2
  import * as contact from './contact';
3
3
  import * as draft from './draft';
4
+ import * as task from './task';
4
5
  import * as thread from './thread';
5
6
  import * as user from './user';
6
7
  export const models = {
7
8
  account,
8
9
  contact,
9
10
  draft,
11
+ task,
10
12
  thread,
11
13
  user,
12
14
  };
@@ -0,0 +1,28 @@
1
+ import * as v from 'valibot';
2
+ export declare const getTaskNotes: import("../../../../..").EndpointConfig<"/v1/pv/models/task/:taskId/notes", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
3
+ readonly data: v.ObjectSchema<{
4
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
+ }, undefined>;
6
+ readonly status: v.LiteralSchema<401, undefined>;
7
+ }, undefined>, v.ObjectSchema<{
8
+ readonly data: v.ObjectSchema<{
9
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
10
+ }, undefined>;
11
+ readonly status: v.LiteralSchema<404, undefined>;
12
+ }, undefined>, v.ObjectSchema<{
13
+ readonly data: v.ObjectSchema<{
14
+ readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
15
+ }, undefined>;
16
+ readonly status: v.LiteralSchema<404, undefined>;
17
+ }, undefined>, v.ObjectSchema<{
18
+ readonly data: v.ArraySchema<v.ObjectSchema<{
19
+ readonly body: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
20
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
21
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
22
+ readonly taskId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
23
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
24
+ readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
25
+ }, undefined>, undefined>;
26
+ readonly status: v.LiteralSchema<200, undefined>;
27
+ }, undefined>], undefined>>;
28
+ //# sourceMappingURL=getTaskNotes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTaskNotes.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/task/getTaskNotes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;2BAYvB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { authFailedErrorSchema, taskNotFoundErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
5
+ export const getTaskNotes = createEndpoint({
6
+ method: 'GET',
7
+ path: '/v1/pv/models/task/:taskId/notes',
8
+ response: v.union([
9
+ authFailedErrorSchema,
10
+ userNotFoundErrorSchema,
11
+ taskNotFoundErrorSchema,
12
+ v.object({
13
+ data: v.array(marcoSchemas.models.taskNoteSchema),
14
+ status: v.literal(200),
15
+ }),
16
+ ]),
17
+ });
@@ -0,0 +1,52 @@
1
+ import * as v from 'valibot';
2
+ export declare const getTasks: import("../../../../..").EndpointConfig<"/v1/pv/models/tasks/list", v.GenericSchema | undefined, v.ObjectSchema<{
3
+ readonly completed: v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>;
4
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
6
+ }, 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<"VALIDATION_FAILED", undefined>;
19
+ readonly issues: v.ObjectSchema<{
20
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
21
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
22
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
23
+ }, undefined>;
24
+ }, undefined>;
25
+ readonly status: v.LiteralSchema<400, undefined>;
26
+ }, undefined>, v.ObjectSchema<{
27
+ readonly data: v.ObjectSchema<{
28
+ readonly items: v.ArraySchema<v.ObjectSchema<{
29
+ readonly completedAt: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
30
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
31
+ readonly dueAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
32
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
33
+ readonly source: v.VariantSchema<"kind", [v.ObjectSchema<{
34
+ readonly kind: v.LiteralSchema<"thread", undefined>;
35
+ readonly threadId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
36
+ }, undefined>, v.ObjectSchema<{
37
+ readonly kind: v.LiteralSchema<"excerpt", undefined>;
38
+ readonly messageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
39
+ readonly text: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
+ readonly threadId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
41
+ }, undefined>, v.ObjectSchema<{
42
+ readonly kind: v.LiteralSchema<"none", undefined>;
43
+ }, undefined>], undefined>;
44
+ readonly title: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
46
+ readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
47
+ }, undefined>, undefined>;
48
+ readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
49
+ }, undefined>;
50
+ readonly status: v.LiteralSchema<200, undefined>;
51
+ }, undefined>], undefined>>;
52
+ //# sourceMappingURL=getTasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTasks.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/task/getTasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiBnB,CAAA"}
@@ -0,0 +1,23 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
+ import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
+ export const getTasks = createEndpoint({
7
+ method: 'GET',
8
+ path: '/v1/pv/models/tasks/list',
9
+ query: v.object({
10
+ completed: marcoSchemas.boolean.fromString(),
11
+ cursor: v.optional(v.string()),
12
+ limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
13
+ }),
14
+ response: v.union([
15
+ authFailedErrorSchema,
16
+ userNotFoundErrorSchema,
17
+ validationFailedErrorSchema,
18
+ v.object({
19
+ data: paginatedResponseSchema(marcoSchemas.models.taskSchema),
20
+ status: v.literal(200),
21
+ }),
22
+ ]),
23
+ });
@@ -0,0 +1,3 @@
1
+ export { getTaskNotes } from './getTaskNotes';
2
+ export { getTasks } from './getTasks';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/task/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { getTaskNotes } from './getTaskNotes';
2
+ export { getTasks } from './getTasks';
@@ -1,10 +1,12 @@
1
1
  import * as account from './account';
2
2
  import * as draft from './draft';
3
+ import * as task from './task';
3
4
  import * as thread from './thread';
4
5
  import * as user from './user';
5
6
  export declare const mutations: {
6
7
  account: typeof account;
7
8
  draft: typeof draft;
9
+ task: typeof task;
8
10
  thread: typeof thread;
9
11
  user: typeof user;
10
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/mutations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,eAAO,MAAM,SAAS;;;;;CAKrB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/mutations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAA"}
@@ -1,10 +1,12 @@
1
1
  import * as account from './account';
2
2
  import * as draft from './draft';
3
+ import * as task from './task';
3
4
  import * as thread from './thread';
4
5
  import * as user from './user';
5
6
  export const mutations = {
6
7
  account,
7
8
  draft,
9
+ task,
8
10
  thread,
9
11
  user,
10
12
  };
@@ -0,0 +1,39 @@
1
+ import * as v from 'valibot';
2
+ export declare const createNote: import("../../../../..").EndpointConfig<"/v1/pv/models/task/:taskId/notes/create", v.ObjectSchema<{
3
+ readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
4
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
5
+ readonly taskId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, 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<201, undefined>;
38
+ }, undefined>], undefined>>;
39
+ //# sourceMappingURL=createNote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createNote.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/createNote.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 createNote = createEndpoint({
6
+ body: mutatorSchemas.task.createNote,
7
+ method: 'POST',
8
+ path: '/v1/pv/models/task/:taskId/notes/create',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ taskNotFoundErrorSchema,
13
+ mutationRejectedErrorSchema,
14
+ validationFailedErrorSchema,
15
+ v.object({
16
+ status: v.literal(201),
17
+ }),
18
+ ]),
19
+ });
@@ -0,0 +1,54 @@
1
+ import * as v from 'valibot';
2
+ export declare const createTask: import("../../../../..").EndpointConfig<"/v1/pv/models/tasks/create", v.ObjectSchema<{
3
+ readonly dueAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, 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 source: v.VariantSchema<"kind", [v.ObjectSchema<{
6
+ readonly kind: v.LiteralSchema<"thread", undefined>;
7
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
8
+ }, undefined>, v.ObjectSchema<{
9
+ readonly kind: v.LiteralSchema<"excerpt", undefined>;
10
+ readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
11
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
12
+ }, undefined>, v.ObjectSchema<{
13
+ readonly kind: v.LiteralSchema<"none", undefined>;
14
+ }, undefined>], undefined>;
15
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
16
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
17
+ readonly data: v.ObjectSchema<{
18
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
19
+ }, undefined>;
20
+ readonly status: v.LiteralSchema<401, undefined>;
21
+ }, undefined>, v.ObjectSchema<{
22
+ readonly data: v.ObjectSchema<{
23
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
24
+ }, undefined>;
25
+ readonly status: v.LiteralSchema<404, undefined>;
26
+ }, undefined>, v.ObjectSchema<{
27
+ readonly data: v.ObjectSchema<{
28
+ readonly code: v.LiteralSchema<"THREAD_NOT_FOUND", undefined>;
29
+ }, undefined>;
30
+ readonly status: v.LiteralSchema<404, undefined>;
31
+ }, undefined>, v.ObjectSchema<{
32
+ readonly data: v.ObjectSchema<{
33
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
34
+ }, undefined>;
35
+ readonly status: v.LiteralSchema<404, undefined>;
36
+ }, undefined>, v.ObjectSchema<{
37
+ readonly data: v.ObjectSchema<{
38
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
39
+ }, undefined>;
40
+ readonly status: v.LiteralSchema<409, undefined>;
41
+ }, undefined>, v.ObjectSchema<{
42
+ readonly data: v.ObjectSchema<{
43
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
44
+ readonly issues: v.ObjectSchema<{
45
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
46
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
47
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
48
+ }, undefined>;
49
+ }, undefined>;
50
+ readonly status: v.LiteralSchema<400, undefined>;
51
+ }, undefined>, v.ObjectSchema<{
52
+ readonly status: v.LiteralSchema<201, undefined>;
53
+ }, undefined>], undefined>>;
54
+ //# sourceMappingURL=createTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createTask.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/createTask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAerB,CAAA"}
@@ -0,0 +1,20 @@
1
+ import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { authFailedErrorSchema, messageNotFoundErrorSchema, mutationRejectedErrorSchema, threadNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
5
+ export const createTask = createEndpoint({
6
+ body: mutatorSchemas.task.createTask,
7
+ method: 'POST',
8
+ path: '/v1/pv/models/tasks/create',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ threadNotFoundErrorSchema,
13
+ messageNotFoundErrorSchema,
14
+ mutationRejectedErrorSchema,
15
+ validationFailedErrorSchema,
16
+ v.object({
17
+ status: v.literal(201),
18
+ }),
19
+ ]),
20
+ });
@@ -0,0 +1,37 @@
1
+ import * as v from 'valibot';
2
+ export declare const deleteNote: import("../../../../..").EndpointConfig<"/v1/pv/models/task-note/:taskNoteId/delete", v.ObjectSchema<{
3
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
4
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ readonly data: v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
7
+ }, undefined>;
8
+ readonly status: v.LiteralSchema<401, undefined>;
9
+ }, undefined>, v.ObjectSchema<{
10
+ readonly data: v.ObjectSchema<{
11
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
12
+ }, undefined>;
13
+ readonly status: v.LiteralSchema<404, undefined>;
14
+ }, undefined>, v.ObjectSchema<{
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<404, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
22
+ }, undefined>;
23
+ readonly status: v.LiteralSchema<409, undefined>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly data: v.ObjectSchema<{
26
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
27
+ readonly issues: v.ObjectSchema<{
28
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
29
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
30
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
31
+ }, undefined>;
32
+ }, undefined>;
33
+ readonly status: v.LiteralSchema<400, undefined>;
34
+ }, undefined>, v.ObjectSchema<{
35
+ readonly status: v.LiteralSchema<204, undefined>;
36
+ }, undefined>], undefined>>;
37
+ //# sourceMappingURL=deleteNote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteNote.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/deleteNote.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 deleteNote = createEndpoint({
6
+ body: mutatorSchemas.task.deleteNote,
7
+ method: 'DELETE',
8
+ path: '/v1/pv/models/task-note/:taskNoteId/delete',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ taskNoteNotFoundErrorSchema,
13
+ mutationRejectedErrorSchema,
14
+ validationFailedErrorSchema,
15
+ v.object({
16
+ status: v.literal(204),
17
+ }),
18
+ ]),
19
+ });
@@ -0,0 +1,37 @@
1
+ import * as v from 'valibot';
2
+ export declare const deleteTask: import("../../../../..").EndpointConfig<"/v1/pv/models/task/:taskId/delete", v.ObjectSchema<{
3
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
4
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ readonly data: v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
7
+ }, undefined>;
8
+ readonly status: v.LiteralSchema<401, undefined>;
9
+ }, undefined>, v.ObjectSchema<{
10
+ readonly data: v.ObjectSchema<{
11
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
12
+ }, undefined>;
13
+ readonly status: v.LiteralSchema<404, undefined>;
14
+ }, undefined>, v.ObjectSchema<{
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<404, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
22
+ }, undefined>;
23
+ readonly status: v.LiteralSchema<409, undefined>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly data: v.ObjectSchema<{
26
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
27
+ readonly issues: v.ObjectSchema<{
28
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
29
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
30
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
31
+ }, undefined>;
32
+ }, undefined>;
33
+ readonly status: v.LiteralSchema<400, undefined>;
34
+ }, undefined>, v.ObjectSchema<{
35
+ readonly status: v.LiteralSchema<204, undefined>;
36
+ }, undefined>], undefined>>;
37
+ //# sourceMappingURL=deleteTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteTask.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/deleteTask.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 deleteTask = createEndpoint({
6
+ body: mutatorSchemas.task.deleteTask,
7
+ method: 'DELETE',
8
+ path: '/v1/pv/models/task/:taskId/delete',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ taskNotFoundErrorSchema,
13
+ mutationRejectedErrorSchema,
14
+ validationFailedErrorSchema,
15
+ v.object({
16
+ status: v.literal(204),
17
+ }),
18
+ ]),
19
+ });
@@ -0,0 +1,8 @@
1
+ export { createNote } from './createNote';
2
+ export { createTask } from './createTask';
3
+ export { deleteNote } from './deleteNote';
4
+ export { deleteTask } from './deleteTask';
5
+ export { setCompleted } from './setCompleted';
6
+ export { updateNote } from './updateNote';
7
+ export { updateTask } from './updateTask';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,7 @@
1
+ export { createNote } from './createNote';
2
+ export { createTask } from './createTask';
3
+ export { deleteNote } from './deleteNote';
4
+ export { deleteTask } from './deleteTask';
5
+ export { setCompleted } from './setCompleted';
6
+ export { updateNote } from './updateNote';
7
+ export { updateTask } from './updateTask';
@@ -0,0 +1,38 @@
1
+ import * as v from 'valibot';
2
+ export declare const setCompleted: import("../../../../..").EndpointConfig<"/v1/pv/models/task/:taskId/set-completed", v.ObjectSchema<{
3
+ readonly completed: v.BooleanSchema<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
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ readonly data: v.ObjectSchema<{
7
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
9
+ readonly status: v.LiteralSchema<401, undefined>;
10
+ }, undefined>, v.ObjectSchema<{
11
+ readonly data: v.ObjectSchema<{
12
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
13
+ }, undefined>;
14
+ readonly status: v.LiteralSchema<404, undefined>;
15
+ }, undefined>, v.ObjectSchema<{
16
+ readonly data: v.ObjectSchema<{
17
+ readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
18
+ }, undefined>;
19
+ readonly status: v.LiteralSchema<404, undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<409, undefined>;
25
+ }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
28
+ readonly issues: v.ObjectSchema<{
29
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
30
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
31
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
32
+ }, undefined>;
33
+ }, undefined>;
34
+ readonly status: v.LiteralSchema<400, undefined>;
35
+ }, undefined>, v.ObjectSchema<{
36
+ readonly status: v.LiteralSchema<200, undefined>;
37
+ }, undefined>], undefined>>;
38
+ //# sourceMappingURL=setCompleted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setCompleted.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/setCompleted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcvB,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 setCompleted = createEndpoint({
6
+ body: mutatorSchemas.task.setCompleted,
7
+ method: 'PATCH',
8
+ path: '/v1/pv/models/task/:taskId/set-completed',
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
+ });
@@ -0,0 +1,38 @@
1
+ import * as v from 'valibot';
2
+ export declare const updateNote: import("../../../../..").EndpointConfig<"/v1/pv/models/task-note/:taskNoteId/update", v.ObjectSchema<{
3
+ readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
4
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
5
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ readonly data: v.ObjectSchema<{
7
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
9
+ readonly status: v.LiteralSchema<401, undefined>;
10
+ }, undefined>, v.ObjectSchema<{
11
+ readonly data: v.ObjectSchema<{
12
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
13
+ }, undefined>;
14
+ readonly status: v.LiteralSchema<404, undefined>;
15
+ }, undefined>, v.ObjectSchema<{
16
+ readonly data: v.ObjectSchema<{
17
+ readonly code: v.LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
18
+ }, undefined>;
19
+ readonly status: v.LiteralSchema<404, undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<409, undefined>;
25
+ }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
28
+ readonly issues: v.ObjectSchema<{
29
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
30
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
31
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
32
+ }, undefined>;
33
+ }, undefined>;
34
+ readonly status: v.LiteralSchema<400, undefined>;
35
+ }, undefined>, v.ObjectSchema<{
36
+ readonly status: v.LiteralSchema<200, undefined>;
37
+ }, undefined>], undefined>>;
38
+ //# sourceMappingURL=updateNote.d.ts.map