@marcoappio/marco-config 2.0.561 → 2.0.562

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.
@@ -22,6 +22,11 @@ export declare const createLabel: import("../../../../..").EndpointConfig<"/v1/p
22
22
  readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
23
23
  }, undefined>;
24
24
  readonly status: v.LiteralSchema<409, undefined>;
25
+ }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<409, undefined>;
25
30
  }, undefined>, v.ObjectSchema<{
26
31
  readonly data: v.ObjectSchema<{
27
32
  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;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,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;AAa5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAetB,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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.561",
3
+ "version": "2.0.562",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",