@marcoappio/marco-config 2.0.561 → 2.0.563
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/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.d.ts +1 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +6 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/account/createLabel.js +2 -1
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +5 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +2 -1
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -387,6 +387,7 @@ export declare const marcoSchemas: {
|
|
|
387
387
|
}, undefined>;
|
|
388
388
|
createLabel: import("valibot").ObjectSchema<{
|
|
389
389
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
390
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
390
391
|
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>;
|
|
391
392
|
}, undefined>;
|
|
392
393
|
deleteAccount: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,UAAU,CAAA;AAGpE,YAAY,EAAE,cAAc,EAAE,CAAA;AAE9B,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,UAAU,CAAA;AAGpE,YAAY,EAAE,cAAc,EAAE,CAAA;AAE9B,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAA"}
|
|
@@ -17,6 +17,7 @@ export declare const mutatorSchemas: {
|
|
|
17
17
|
}, undefined>;
|
|
18
18
|
createLabel: v.ObjectSchema<{
|
|
19
19
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
21
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
21
22
|
}, undefined>;
|
|
22
23
|
deleteAccount: v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyF5B,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyF5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyK1B,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const createLabel: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/labels/create", v.ObjectSchema<{
|
|
3
3
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
5
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
5
6
|
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
7
|
readonly data: v.ObjectSchema<{
|
|
@@ -22,6 +23,11 @@ export declare const createLabel: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
22
23
|
readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
|
|
23
24
|
}, undefined>;
|
|
24
25
|
readonly status: v.LiteralSchema<409, undefined>;
|
|
26
|
+
}, undefined>, v.ObjectSchema<{
|
|
27
|
+
readonly data: v.ObjectSchema<{
|
|
28
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
25
31
|
}, undefined>, v.ObjectSchema<{
|
|
26
32
|
readonly data: v.ObjectSchema<{
|
|
27
33
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/createLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"createLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/createLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAetB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
3
|
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { accountNotFoundErrorSchema, authFailedErrorSchema, labelAlreadyExistsErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
4
|
+
import { accountNotFoundErrorSchema, authFailedErrorSchema, labelAlreadyExistsErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
5
|
export const createLabel = createEndpoint({
|
|
6
6
|
body: mutatorSchemas.account.createLabel,
|
|
7
7
|
method: 'POST',
|
|
@@ -11,6 +11,7 @@ export const createLabel = createEndpoint({
|
|
|
11
11
|
userNotFoundErrorSchema,
|
|
12
12
|
accountNotFoundErrorSchema,
|
|
13
13
|
labelAlreadyExistsErrorSchema,
|
|
14
|
+
mutationRejectedErrorSchema,
|
|
14
15
|
validationFailedErrorSchema,
|
|
15
16
|
v.object({
|
|
16
17
|
status: v.literal(201),
|
|
@@ -28,6 +28,11 @@ export declare const renameLabel: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
28
28
|
readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
|
|
29
29
|
}, undefined>;
|
|
30
30
|
readonly status: v.LiteralSchema<409, undefined>;
|
|
31
|
+
}, undefined>, v.ObjectSchema<{
|
|
32
|
+
readonly data: v.ObjectSchema<{
|
|
33
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
31
36
|
}, undefined>, v.ObjectSchema<{
|
|
32
37
|
readonly data: v.ObjectSchema<{
|
|
33
38
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renameLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/renameLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"renameLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/renameLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgBtB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
3
|
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { accountNotFoundErrorSchema, authFailedErrorSchema, labelAlreadyExistsErrorSchema, labelNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
4
|
+
import { accountNotFoundErrorSchema, authFailedErrorSchema, labelAlreadyExistsErrorSchema, labelNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
5
|
export const renameLabel = createEndpoint({
|
|
6
6
|
body: mutatorSchemas.account.renameLabel,
|
|
7
7
|
method: 'PATCH',
|
|
@@ -12,6 +12,7 @@ export const renameLabel = createEndpoint({
|
|
|
12
12
|
accountNotFoundErrorSchema,
|
|
13
13
|
labelNotFoundErrorSchema,
|
|
14
14
|
labelAlreadyExistsErrorSchema,
|
|
15
|
+
mutationRejectedErrorSchema,
|
|
15
16
|
validationFailedErrorSchema,
|
|
16
17
|
v.object({
|
|
17
18
|
status: v.literal(200),
|