@marcoappio/marco-config 2.0.568 → 2.0.570

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.
@@ -6,16 +6,16 @@ import { string } from './string';
6
6
  export const socketTypeSchema = v.union([v.literal('STARTTLS'), v.literal('SSL')]);
7
7
  export const emailAccount = {
8
8
  connectionConfigImapRaw: () => v.object({
9
- imapHost: string.required(),
10
- imapPassword: string.required(),
9
+ imapHost: string.required(4096),
10
+ imapPassword: string.required(4096),
11
11
  imapPort: number.minMax(1, 65535),
12
12
  imapSocketType: socketTypeSchema,
13
- imapUser: string.required(),
14
- smtpHost: string.required(),
15
- smtpPassword: string.required(),
13
+ imapUser: string.required(4096),
14
+ smtpHost: string.required(4096),
15
+ smtpPassword: string.required(4096),
16
16
  smtpPort: number.minMax(1, 65535),
17
17
  smtpSocketType: socketTypeSchema,
18
- smtpUser: string.required(),
18
+ smtpUser: string.required(4096),
19
19
  }),
20
20
  connectionConfigOauth: () => v.object({
21
21
  code: string.required(4096),
@@ -358,6 +358,7 @@ export declare const marcoSchemas: {
358
358
  readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
359
359
  }, undefined>;
360
360
  userSchema: import("valibot").ObjectSchema<{
361
+ readonly feedbackModalShown: import("valibot").BooleanSchema<undefined>;
361
362
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
362
363
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
363
364
  readonly profilePicture: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -687,6 +688,11 @@ export declare const marcoSchemas: {
687
688
  }, undefined>;
688
689
  };
689
690
  user: {
691
+ createFeedback: import("valibot").ObjectSchema<{
692
+ readonly feedbackText: import("valibot").UndefinedableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
693
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
694
+ readonly rating: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 5, undefined>]>, undefined>;
695
+ }, undefined>;
690
696
  createView: import("valibot").ObjectSchema<{
691
697
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
692
698
  readonly view: import("valibot").ObjectSchema<{
@@ -704,6 +710,9 @@ export declare const marcoSchemas: {
704
710
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
705
711
  readonly viewId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ViewId">]>, undefined>;
706
712
  }, undefined>;
713
+ setFeedbackModalShown: import("valibot").ObjectSchema<{
714
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
715
+ }, undefined>;
707
716
  setSettingsName: import("valibot").ObjectSchema<{
708
717
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
709
718
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,UAAU,CAAA;AAGpE,YAAY,EAAE,cAAc,EAAE,CAAA;AAE9B,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,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,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxB,CAAA"}
@@ -12,6 +12,7 @@ export declare const userPushNotificationTokenSchema: v.ObjectSchema<{
12
12
  readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
13
13
  }, undefined>;
14
14
  export declare const userSchema: v.ObjectSchema<{
15
+ readonly feedbackModalShown: v.BooleanSchema<undefined>;
15
16
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
16
17
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
18
  readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,cAAc;;;;;aAKzB,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;aAK1C,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aASrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,UAAU,CAAC,CAAA;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAC3D,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,cAAc;;;;;aAKzB,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;aAK1C,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAUrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,UAAU,CAAC,CAAA;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAC3D,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
@@ -17,6 +17,7 @@ export const userPushNotificationTokenSchema = v.object({
17
17
  userId: id.userId.required(),
18
18
  });
19
19
  export const userSchema = v.object({
20
+ feedbackModalShown: v.boolean(),
20
21
  id: id.userId.required(),
21
22
  name: string.nullable(),
22
23
  profilePicture: string.nullable(),
@@ -263,6 +263,11 @@ export declare const mutatorSchemas: {
263
263
  }, undefined>;
264
264
  };
265
265
  user: {
266
+ createFeedback: v.ObjectSchema<{
267
+ readonly feedbackText: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
268
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
269
+ readonly rating: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
270
+ }, undefined>;
266
271
  createView: v.ObjectSchema<{
267
272
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
268
273
  readonly view: v.ObjectSchema<{
@@ -280,6 +285,9 @@ export declare const mutatorSchemas: {
280
285
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
281
286
  readonly viewId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ViewId">]>, undefined>;
282
287
  }, undefined>;
288
+ setFeedbackModalShown: v.ObjectSchema<{
289
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
290
+ }, undefined>;
283
291
  setSettingsName: v.ObjectSchema<{
284
292
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
285
293
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -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;AA0F5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6K1B,CAAA"}
1
+ {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsE5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqL1B,CAAA"}
@@ -1,10 +1,9 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoConstants } from '../../constants';
3
3
  import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES, USER_SETTINGS_CUSTOM_VIEW_ICONS, } from '../../types';
4
- import { socketTypeSchema } from '../emailAccount';
4
+ import { emailAccount } from '../emailAccount';
5
5
  import { id } from '../id';
6
6
  import { number } from '../number';
7
- import { oauth } from '../oauth';
8
7
  import { string } from '../string';
9
8
  const accountAliasSchema = v.object({
10
9
  emailAddress: string.email(),
@@ -40,23 +39,6 @@ const userPushNotificationTokenSchema = v.object({
40
39
  id: id.pushNotificationTokenId.required(),
41
40
  token: string.required(),
42
41
  });
43
- const connectionConfigOauthSchema = v.object({
44
- code: string.required(),
45
- provider: oauth.provider(),
46
- user: string.required(),
47
- });
48
- const connectionConfigImapRawSchema = v.object({
49
- imapHost: string.required(),
50
- imapPassword: string.required(),
51
- imapPort: number.minMax(1, 65535),
52
- imapSocketType: socketTypeSchema,
53
- imapUser: string.required(),
54
- smtpHost: string.required(),
55
- smtpPassword: string.required(),
56
- smtpPort: number.minMax(1, 65535),
57
- smtpSocketType: socketTypeSchema,
58
- smtpUser: string.required(),
59
- });
60
42
  const userViewSchema = v.object({
61
43
  aliasEmails: v.pipe(v.array(string.email()), v.minLength(2), v.maxLength(marcoConstants.user.views.maxAliasEmailsPerView)),
62
44
  icon: v.picklist(USER_SETTINGS_CUSTOM_VIEW_ICONS),
@@ -111,11 +93,11 @@ export const mutatorSchemas = {
111
93
  signature: v.nullable(v.pipe(v.string(), v.maxLength(50000))),
112
94
  }),
113
95
  setConnectionConfigImapRaw: v.object({
114
- connectionConfig: connectionConfigImapRawSchema,
96
+ connectionConfig: emailAccount.connectionConfigImapRaw(),
115
97
  id: id.accountId.required(),
116
98
  }),
117
99
  setConnectionConfigOauth: v.object({
118
- connectionConfig: connectionConfigOauthSchema,
100
+ connectionConfig: emailAccount.connectionConfigOauth(),
119
101
  id: id.accountId.required(),
120
102
  }),
121
103
  setSettings: v.object({
@@ -211,6 +193,11 @@ export const mutatorSchemas = {
211
193
  setTrash: baseThreadSchema,
212
194
  },
213
195
  user: {
196
+ createFeedback: v.object({
197
+ feedbackText: string.optional(4000),
198
+ id: id.userId.required(),
199
+ rating: v.nonOptional(v.pipe(v.number(), v.integer(), v.minValue(1), v.maxValue(5))),
200
+ }),
214
201
  createView: v.object({
215
202
  id: id.userId.required(),
216
203
  view: userViewSchema,
@@ -223,6 +210,9 @@ export const mutatorSchemas = {
223
210
  id: id.userId.required(),
224
211
  viewId: id.viewId.required(),
225
212
  }),
213
+ setFeedbackModalShown: v.object({
214
+ id: id.userId.required(),
215
+ }),
226
216
  setSettingsName: v.object({
227
217
  id: id.userId.required(),
228
218
  name: string.nullable(),
@@ -11,6 +11,7 @@ export declare const getUser: import("../../../../..").EndpointConfig<"/v1/pv/mo
11
11
  readonly status: v.LiteralSchema<404, undefined>;
12
12
  }, undefined>, v.ObjectSchema<{
13
13
  readonly data: v.ObjectSchema<{
14
+ readonly feedbackModalShown: v.BooleanSchema<undefined>;
14
15
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
15
16
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
17
  readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAWlB,CAAA"}
1
+ {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAWlB,CAAA"}
@@ -0,0 +1,34 @@
1
+ import * as v from 'valibot';
2
+ export declare const createFeedback: import("../../../../..").EndpointConfig<"/v1/pv/models/user/feedback/create", v.ObjectSchema<{
3
+ readonly feedbackText: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, 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, "UserId">]>, undefined>;
5
+ readonly rating: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, 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<"MUTATION_REJECTED", undefined>;
19
+ }, undefined>;
20
+ readonly status: v.LiteralSchema<409, undefined>;
21
+ }, undefined>, v.ObjectSchema<{
22
+ readonly data: v.ObjectSchema<{
23
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
24
+ readonly issues: v.ObjectSchema<{
25
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
26
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
27
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
28
+ }, undefined>;
29
+ }, undefined>;
30
+ readonly status: v.LiteralSchema<400, undefined>;
31
+ }, undefined>, v.ObjectSchema<{
32
+ readonly status: v.LiteralSchema<201, undefined>;
33
+ }, undefined>], undefined>>;
34
+ //# sourceMappingURL=createFeedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFeedback.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/user/createFeedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAazB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
5
+ export const createFeedback = createEndpoint({
6
+ body: mutatorSchemas.user.createFeedback,
7
+ method: 'POST',
8
+ path: '/v1/pv/models/user/feedback/create',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ mutationRejectedErrorSchema,
13
+ validationFailedErrorSchema,
14
+ v.object({
15
+ status: v.literal(201),
16
+ }),
17
+ ]),
18
+ });
@@ -1,6 +1,8 @@
1
+ export { createFeedback } from './createFeedback';
1
2
  export { createView } from './createView';
2
3
  export { deletePushToken } from './deletePushToken';
3
4
  export { deleteView } from './deleteView';
5
+ export { setFeedbackModalShown } from './setFeedbackModalShown';
4
6
  export { setPushToken } from './setPushToken';
5
7
  export { setSettingsName } from './setSettingsName';
6
8
  export { updateView } from './updateView';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -1,6 +1,8 @@
1
+ export { createFeedback } from './createFeedback';
1
2
  export { createView } from './createView';
2
3
  export { deletePushToken } from './deletePushToken';
3
4
  export { deleteView } from './deleteView';
5
+ export { setFeedbackModalShown } from './setFeedbackModalShown';
4
6
  export { setPushToken } from './setPushToken';
5
7
  export { setSettingsName } from './setSettingsName';
6
8
  export { updateView } from './updateView';
@@ -0,0 +1,32 @@
1
+ import * as v from 'valibot';
2
+ export declare const setFeedbackModalShown: import("../../../../..").EndpointConfig<"/v1/pv/models/user/feedback-modal-shown", 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, "UserId">]>, 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<"MUTATION_REJECTED", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<409, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
22
+ readonly issues: v.ObjectSchema<{
23
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
24
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
25
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
26
+ }, undefined>;
27
+ }, undefined>;
28
+ readonly status: v.LiteralSchema<400, undefined>;
29
+ }, undefined>, v.ObjectSchema<{
30
+ readonly status: v.LiteralSchema<200, undefined>;
31
+ }, undefined>], undefined>>;
32
+ //# sourceMappingURL=setFeedbackModalShown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setFeedbackModalShown.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/user/setFeedbackModalShown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAahC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
5
+ export const setFeedbackModalShown = createEndpoint({
6
+ body: mutatorSchemas.user.setFeedbackModalShown,
7
+ method: 'PATCH',
8
+ path: '/v1/pv/models/user/feedback-modal-shown',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ mutationRejectedErrorSchema,
13
+ validationFailedErrorSchema,
14
+ v.object({
15
+ status: v.literal(200),
16
+ }),
17
+ ]),
18
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.568",
3
+ "version": "2.0.570",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",