@marcoappio/marco-config 2.0.452 → 2.0.454
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/sdk/endpoints/createEndpointConfig.d.ts +2 -1
- package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
- package/dist/sdk/endpoints/createEndpointConfig.js +1 -0
- package/dist/sdk/endpoints/index.d.ts +30 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +31 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.js +4 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +30 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +18 -0
- package/dist/sdk/endpoints/private/index.d.ts +30 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.js +2 -0
- package/dist/sdk/index.d.ts +30 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/types/DraftAttachmentUploadStatus.d.ts +3 -0
- package/dist/types/DraftAttachmentUploadStatus.d.ts.map +1 -0
- package/dist/types/DraftAttachmentUploadStatus.js +1 -0
- package/dist/types/Endpoint.d.ts +2 -0
- package/dist/types/Endpoint.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/zero/index.d.ts +30 -90
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutatorSchemas/draft.d.ts +2 -12
- package/dist/zero/mutatorSchemas/draft.d.ts.map +1 -1
- package/dist/zero/mutatorSchemas/draft.js +2 -11
- package/dist/zero/mutatorSchemas/index.d.ts +2 -12
- package/dist/zero/mutatorSchemas/index.d.ts.map +1 -1
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
- package/dist/zero/mutators/draftMutators/draftMutators.js +2 -16
- package/dist/zero/mutators/draftMutators/draftMutators.test.js +2 -41
- package/dist/zero/queries/getAccounts.d.ts +4 -11
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +4 -11
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +5 -13
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.d.ts +4 -11
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +4 -11
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +4 -11
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +7 -21
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -2
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { GenericSchema } from 'valibot';
|
|
2
|
-
import type { EndpointConfig, HTTPMethod, SDKResponse, URLPattern } from '../../types/Endpoint';
|
|
2
|
+
import type { BodyType, EndpointConfig, HTTPMethod, SDKResponse, URLPattern } from '../../types/Endpoint';
|
|
3
3
|
export declare const createURLPattern: <T extends string>(pattern: T) => (params: URLPattern<T>) => string;
|
|
4
4
|
export declare const createEndpoint: <TPath extends string, TRequestBody extends GenericSchema | undefined, TRequestQuery extends GenericSchema | undefined, TResponse extends GenericSchema<SDKResponse>>(params: {
|
|
5
5
|
body?: TRequestBody;
|
|
6
|
+
bodyType?: BodyType;
|
|
6
7
|
method: HTTPMethod;
|
|
7
8
|
path: TPath;
|
|
8
9
|
query?: TRequestQuery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEndpointConfig.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/createEndpointConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"createEndpointConfig.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/createEndpointConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAEjH,eAAO,MAAM,gBAAgB,GAC1B,CAAC,SAAS,MAAM,WAAW,CAAC,cACpB,UAAU,CAAC,CAAC,CAAC,KAAG,MAWxB,CAAA;AAEH,eAAO,MAAM,cAAc,GACzB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,aAAa,GAAG,SAAS,EAC9C,aAAa,SAAS,aAAa,GAAG,SAAS,EAC/C,SAAS,SAAS,aAAa,CAAC,WAAW,CAAC,UACpC;IACR,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB,KAAG,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,CAQ9D,CAAA"}
|
|
@@ -12,6 +12,7 @@ export const createURLPattern = (pattern) => (params) => {
|
|
|
12
12
|
};
|
|
13
13
|
export const createEndpoint = (params) => ({
|
|
14
14
|
body: params.body,
|
|
15
|
+
bodyType: params.bodyType ?? 'json',
|
|
15
16
|
buildPath: createURLPattern(params.path),
|
|
16
17
|
method: params.method,
|
|
17
18
|
path: params.path,
|
|
@@ -2,6 +2,36 @@ import type { GenericSchema } from 'valibot';
|
|
|
2
2
|
import type { EndpointConfig } from '../../types';
|
|
3
3
|
export declare const endpoints: {
|
|
4
4
|
private: {
|
|
5
|
+
draftAttachment: {
|
|
6
|
+
upload: EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
8
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
13
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
18
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
21
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
23
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
24
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
26
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
31
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
32
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
33
|
+
}, undefined>], undefined>>;
|
|
34
|
+
};
|
|
5
35
|
user: {
|
|
6
36
|
deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
37
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const draftAttachment: {
|
|
2
|
+
upload: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
4
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
7
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
18
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
19
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
20
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
21
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
22
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
23
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
27
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
28
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
29
|
+
}, undefined>], undefined>>;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3B,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const uploadDraftAttachment: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", v.BlobSchema<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<"ATTACHMENT_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<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly data: v.ObjectSchema<{
|
|
19
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
20
|
+
readonly issues: v.ObjectSchema<{
|
|
21
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
22
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
23
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
27
|
+
}, undefined>, v.ObjectSchema<{
|
|
28
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
29
|
+
}, undefined>], undefined>>;
|
|
30
|
+
//# sourceMappingURL=uploadDraftAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadDraftAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAchC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
+
import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema, validationFailedErrorSchema, } from '../../../../sdk/validation/errors';
|
|
4
|
+
export const uploadDraftAttachment = createEndpoint({
|
|
5
|
+
body: v.blob(),
|
|
6
|
+
bodyType: 'blob',
|
|
7
|
+
method: 'POST',
|
|
8
|
+
path: '/v1/pv/drafts/:attachmentId/upload',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
attachmentNotFoundErrorSchema,
|
|
12
|
+
attachmentStateInvalidErrorSchema,
|
|
13
|
+
validationFailedErrorSchema,
|
|
14
|
+
v.object({
|
|
15
|
+
status: v.literal(200),
|
|
16
|
+
}),
|
|
17
|
+
]),
|
|
18
|
+
});
|
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
export declare const privateGroup: {
|
|
2
|
+
draftAttachment: {
|
|
3
|
+
upload: import("../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
4
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
5
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
6
|
+
}, undefined>;
|
|
7
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
8
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
10
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
13
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
15
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
18
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
19
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
20
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
21
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
22
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
23
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
24
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
}, undefined>;
|
|
27
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
28
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
29
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
30
|
+
}, undefined>], undefined>>;
|
|
31
|
+
};
|
|
2
32
|
user: {
|
|
3
33
|
deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
4
34
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
export declare const marcoSDK: {
|
|
2
2
|
endpoints: {
|
|
3
3
|
private: {
|
|
4
|
+
draftAttachment: {
|
|
5
|
+
upload: import("..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
7
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
10
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
11
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
12
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
15
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
17
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
20
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
22
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
23
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
24
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
25
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
26
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
30
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
31
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
32
|
+
}, undefined>], undefined>>;
|
|
33
|
+
};
|
|
4
34
|
user: {
|
|
5
35
|
deleteUser: import("..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
36
|
readonly data: import("valibot").ObjectSchema<{
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DraftAttachmentUploadStatus.d.ts","sourceRoot":"","sources":["../../src/types/DraftAttachmentUploadStatus.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,4CAA6C,CAAA;AAE1F,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DRAFT_ATTACHMENT_UPLOAD_STATUSES = ['PENDING', 'COMPLETE', 'FAILED'];
|
package/dist/types/Endpoint.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ export type SDKResponse = {
|
|
|
11
11
|
data?: any;
|
|
12
12
|
status: HTTPSuccessStatusCode;
|
|
13
13
|
} | SDKError;
|
|
14
|
+
export type BodyType = 'blob' | 'json';
|
|
14
15
|
export type EndpointConfig<TPath extends string, TRequestBody extends GenericSchema | undefined, TRequestQuery extends GenericSchema | undefined, TResponse extends GenericSchema<SDKResponse>> = {
|
|
15
16
|
body: TRequestBody;
|
|
17
|
+
bodyType: BodyType;
|
|
16
18
|
buildPath: (params: URLPattern<TPath>) => string;
|
|
17
19
|
method: HTTPMethod;
|
|
18
20
|
path: TPath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoint.d.ts","sourceRoot":"","sources":["../../src/types/Endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAE5D,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AAEzF,KAAK,SAAS,CAAC,QAAQ,SAAS,SAAS,MAAM,EAAE,IAAI;KAClD,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,GAAG,SAAS,IAAI,MAAM,KAAK,EAAE,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM;CACnF,CAAA;AAED,MAAM,MAAM,qBAAqB,GAC7B,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAE9D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAA;AAEpE,MAAM,MAAM,WAAW,GACnB;IACE,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,MAAM,EAAE,qBAAqB,CAAA;CAC9B,GACD,QAAQ,CAAA;AAEZ,MAAM,MAAM,cAAc,CACxB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,aAAa,GAAG,SAAS,EAC9C,aAAa,SAAS,aAAa,GAAG,SAAS,EAC/C,SAAS,SAAS,aAAa,CAAC,WAAW,CAAC,IAC1C;IACF,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,MAAM,CAAA;IAChD,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,EAAE,aAAa,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA"}
|
|
1
|
+
{"version":3,"file":"Endpoint.d.ts","sourceRoot":"","sources":["../../src/types/Endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAE5D,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AAEzF,KAAK,SAAS,CAAC,QAAQ,SAAS,SAAS,MAAM,EAAE,IAAI;KAClD,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,GAAG,SAAS,IAAI,MAAM,KAAK,EAAE,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM;CACnF,CAAA;AAED,MAAM,MAAM,qBAAqB,GAC7B,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAE9D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAA;AAEpE,MAAM,MAAM,WAAW,GACnB;IACE,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,MAAM,EAAE,qBAAqB,CAAA;CAC9B,GACD,QAAQ,CAAA;AAEZ,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;AAEtC,MAAM,MAAM,cAAc,CACxB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,aAAa,GAAG,SAAS,EAC9C,aAAa,SAAS,aAAa,GAAG,SAAS,EAC/C,SAAS,SAAS,aAAa,CAAC,WAAW,CAAC,IAC1C;IACF,IAAI,EAAE,YAAY,CAAA;IAClB,QAAQ,EAAE,QAAQ,CAAA;IAClB,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,MAAM,CAAA;IAChD,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,EAAE,aAAa,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA"}
|
package/dist/types/index.js
CHANGED
package/dist/zero/index.d.ts
CHANGED
|
@@ -93,9 +93,8 @@ export declare const marcoZero: {
|
|
|
93
93
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
94
94
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
95
95
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
96
|
-
readonly
|
|
96
|
+
readonly status: import("valibot").PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
97
97
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
98
|
-
readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
99
98
|
}, undefined>;
|
|
100
99
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
101
100
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -109,9 +108,8 @@ export declare const marcoZero: {
|
|
|
109
108
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
110
109
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
111
110
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
112
|
-
readonly
|
|
111
|
+
readonly status: import("valibot").PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
113
112
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
114
|
-
readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
115
113
|
}, undefined>, undefined>;
|
|
116
114
|
readonly body: import("valibot").ObjectSchema<{
|
|
117
115
|
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -230,14 +228,6 @@ export declare const marcoZero: {
|
|
|
230
228
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
231
229
|
}, undefined>;
|
|
232
230
|
};
|
|
233
|
-
readonly uploadAttachmentChunk: {
|
|
234
|
-
readonly delta: import("valibot").ObjectSchema<{
|
|
235
|
-
readonly attachmentId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
236
|
-
readonly chunk: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").Base64Action<string, undefined>]>;
|
|
237
|
-
readonly chunkIndex: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
238
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
239
|
-
}, undefined>;
|
|
240
|
-
};
|
|
241
231
|
};
|
|
242
232
|
readonly thread: {
|
|
243
233
|
readonly addLabel: {
|
|
@@ -785,10 +775,10 @@ export declare const marcoZero: {
|
|
|
785
775
|
} & {
|
|
786
776
|
serverName: string;
|
|
787
777
|
};
|
|
788
|
-
readonly
|
|
789
|
-
type: "
|
|
778
|
+
readonly status: {
|
|
779
|
+
type: "string";
|
|
790
780
|
optional: false;
|
|
791
|
-
customType:
|
|
781
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
792
782
|
} & {
|
|
793
783
|
serverName: string;
|
|
794
784
|
};
|
|
@@ -799,13 +789,6 @@ export declare const marcoZero: {
|
|
|
799
789
|
} & {
|
|
800
790
|
serverName: string;
|
|
801
791
|
};
|
|
802
|
-
readonly uploadedChunks: {
|
|
803
|
-
type: "number";
|
|
804
|
-
optional: false;
|
|
805
|
-
customType: number;
|
|
806
|
-
} & {
|
|
807
|
-
serverName: string;
|
|
808
|
-
};
|
|
809
792
|
};
|
|
810
793
|
primaryKey: readonly [string, ...string[]];
|
|
811
794
|
} & {
|
|
@@ -1188,7 +1171,7 @@ export declare const marcoZero: {
|
|
|
1188
1171
|
}];
|
|
1189
1172
|
attachments: [{
|
|
1190
1173
|
readonly sourceField: string[];
|
|
1191
|
-
readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "
|
|
1174
|
+
readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
|
|
1192
1175
|
readonly destSchema: "draftAttachment";
|
|
1193
1176
|
readonly cardinality: "many";
|
|
1194
1177
|
}];
|
|
@@ -1791,10 +1774,10 @@ export declare const marcoZero: {
|
|
|
1791
1774
|
} & {
|
|
1792
1775
|
serverName: string;
|
|
1793
1776
|
};
|
|
1794
|
-
readonly
|
|
1795
|
-
type: "
|
|
1777
|
+
readonly status: {
|
|
1778
|
+
type: "string";
|
|
1796
1779
|
optional: false;
|
|
1797
|
-
customType:
|
|
1780
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
1798
1781
|
} & {
|
|
1799
1782
|
serverName: string;
|
|
1800
1783
|
};
|
|
@@ -1805,13 +1788,6 @@ export declare const marcoZero: {
|
|
|
1805
1788
|
} & {
|
|
1806
1789
|
serverName: string;
|
|
1807
1790
|
};
|
|
1808
|
-
readonly uploadedChunks: {
|
|
1809
|
-
type: "number";
|
|
1810
|
-
optional: false;
|
|
1811
|
-
customType: number;
|
|
1812
|
-
} & {
|
|
1813
|
-
serverName: string;
|
|
1814
|
-
};
|
|
1815
1791
|
};
|
|
1816
1792
|
primaryKey: readonly [string, ...string[]];
|
|
1817
1793
|
} & {
|
|
@@ -2194,7 +2170,7 @@ export declare const marcoZero: {
|
|
|
2194
2170
|
}];
|
|
2195
2171
|
attachments: [{
|
|
2196
2172
|
readonly sourceField: string[];
|
|
2197
|
-
readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "
|
|
2173
|
+
readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
|
|
2198
2174
|
readonly destSchema: "draftAttachment";
|
|
2199
2175
|
readonly cardinality: "many";
|
|
2200
2176
|
}];
|
|
@@ -2765,10 +2741,10 @@ export declare const marcoZero: {
|
|
|
2765
2741
|
} & {
|
|
2766
2742
|
serverName: string;
|
|
2767
2743
|
};
|
|
2768
|
-
readonly
|
|
2769
|
-
type: "
|
|
2744
|
+
readonly status: {
|
|
2745
|
+
type: "string";
|
|
2770
2746
|
optional: false;
|
|
2771
|
-
customType:
|
|
2747
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
2772
2748
|
} & {
|
|
2773
2749
|
serverName: string;
|
|
2774
2750
|
};
|
|
@@ -2779,13 +2755,6 @@ export declare const marcoZero: {
|
|
|
2779
2755
|
} & {
|
|
2780
2756
|
serverName: string;
|
|
2781
2757
|
};
|
|
2782
|
-
readonly uploadedChunks: {
|
|
2783
|
-
type: "number";
|
|
2784
|
-
optional: false;
|
|
2785
|
-
customType: number;
|
|
2786
|
-
} & {
|
|
2787
|
-
serverName: string;
|
|
2788
|
-
};
|
|
2789
2758
|
};
|
|
2790
2759
|
primaryKey: readonly [string, ...string[]];
|
|
2791
2760
|
} & {
|
|
@@ -3168,7 +3137,7 @@ export declare const marcoZero: {
|
|
|
3168
3137
|
}];
|
|
3169
3138
|
attachments: [{
|
|
3170
3139
|
readonly sourceField: string[];
|
|
3171
|
-
readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "
|
|
3140
|
+
readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
|
|
3172
3141
|
readonly destSchema: "draftAttachment";
|
|
3173
3142
|
readonly cardinality: "many";
|
|
3174
3143
|
}];
|
|
@@ -3336,9 +3305,8 @@ export declare const marcoZero: {
|
|
|
3336
3305
|
readonly fileName: string;
|
|
3337
3306
|
readonly id: string;
|
|
3338
3307
|
readonly mimeType: string;
|
|
3339
|
-
readonly
|
|
3308
|
+
readonly status: "PENDING" | "COMPLETE" | "FAILED";
|
|
3340
3309
|
readonly totalSize: number;
|
|
3341
|
-
readonly uploadedChunks: number;
|
|
3342
3310
|
}[];
|
|
3343
3311
|
}>>;
|
|
3344
3312
|
readonly getThreads: import("@rocicorp/zero").SyncedQuery<"getThreads", import("..").MarcoSyncedQueryContext, true, [{
|
|
@@ -3779,10 +3747,10 @@ export declare const marcoZero: {
|
|
|
3779
3747
|
} & {
|
|
3780
3748
|
serverName: string;
|
|
3781
3749
|
};
|
|
3782
|
-
readonly
|
|
3783
|
-
type: "
|
|
3750
|
+
readonly status: {
|
|
3751
|
+
type: "string";
|
|
3784
3752
|
optional: false;
|
|
3785
|
-
customType:
|
|
3753
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
3786
3754
|
} & {
|
|
3787
3755
|
serverName: string;
|
|
3788
3756
|
};
|
|
@@ -3793,13 +3761,6 @@ export declare const marcoZero: {
|
|
|
3793
3761
|
} & {
|
|
3794
3762
|
serverName: string;
|
|
3795
3763
|
};
|
|
3796
|
-
readonly uploadedChunks: {
|
|
3797
|
-
type: "number";
|
|
3798
|
-
optional: false;
|
|
3799
|
-
customType: number;
|
|
3800
|
-
} & {
|
|
3801
|
-
serverName: string;
|
|
3802
|
-
};
|
|
3803
3764
|
};
|
|
3804
3765
|
primaryKey: readonly [string, ...string[]];
|
|
3805
3766
|
} & {
|
|
@@ -4182,7 +4143,7 @@ export declare const marcoZero: {
|
|
|
4182
4143
|
}];
|
|
4183
4144
|
attachments: [{
|
|
4184
4145
|
readonly sourceField: string[];
|
|
4185
|
-
readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "
|
|
4146
|
+
readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
|
|
4186
4147
|
readonly destSchema: "draftAttachment";
|
|
4187
4148
|
readonly cardinality: "many";
|
|
4188
4149
|
}];
|
|
@@ -4788,10 +4749,10 @@ export declare const marcoZero: {
|
|
|
4788
4749
|
} & {
|
|
4789
4750
|
serverName: string;
|
|
4790
4751
|
};
|
|
4791
|
-
readonly
|
|
4792
|
-
type: "
|
|
4752
|
+
readonly status: {
|
|
4753
|
+
type: "string";
|
|
4793
4754
|
optional: false;
|
|
4794
|
-
customType:
|
|
4755
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
4795
4756
|
} & {
|
|
4796
4757
|
serverName: string;
|
|
4797
4758
|
};
|
|
@@ -4802,13 +4763,6 @@ export declare const marcoZero: {
|
|
|
4802
4763
|
} & {
|
|
4803
4764
|
serverName: string;
|
|
4804
4765
|
};
|
|
4805
|
-
readonly uploadedChunks: {
|
|
4806
|
-
type: "number";
|
|
4807
|
-
optional: false;
|
|
4808
|
-
customType: number;
|
|
4809
|
-
} & {
|
|
4810
|
-
serverName: string;
|
|
4811
|
-
};
|
|
4812
4766
|
};
|
|
4813
4767
|
primaryKey: readonly [string, ...string[]];
|
|
4814
4768
|
} & {
|
|
@@ -5191,7 +5145,7 @@ export declare const marcoZero: {
|
|
|
5191
5145
|
}];
|
|
5192
5146
|
attachments: [{
|
|
5193
5147
|
readonly sourceField: string[];
|
|
5194
|
-
readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "
|
|
5148
|
+
readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
|
|
5195
5149
|
readonly destSchema: "draftAttachment";
|
|
5196
5150
|
readonly cardinality: "many";
|
|
5197
5151
|
}];
|
|
@@ -5801,10 +5755,10 @@ export declare const marcoZero: {
|
|
|
5801
5755
|
} & {
|
|
5802
5756
|
serverName: string;
|
|
5803
5757
|
};
|
|
5804
|
-
readonly
|
|
5805
|
-
type: "
|
|
5758
|
+
readonly status: {
|
|
5759
|
+
type: "string";
|
|
5806
5760
|
optional: false;
|
|
5807
|
-
customType:
|
|
5761
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
5808
5762
|
} & {
|
|
5809
5763
|
serverName: string;
|
|
5810
5764
|
};
|
|
@@ -5815,13 +5769,6 @@ export declare const marcoZero: {
|
|
|
5815
5769
|
} & {
|
|
5816
5770
|
serverName: string;
|
|
5817
5771
|
};
|
|
5818
|
-
readonly uploadedChunks: {
|
|
5819
|
-
type: "number";
|
|
5820
|
-
optional: false;
|
|
5821
|
-
customType: number;
|
|
5822
|
-
} & {
|
|
5823
|
-
serverName: string;
|
|
5824
|
-
};
|
|
5825
5772
|
};
|
|
5826
5773
|
primaryKey: readonly [string, ...string[]];
|
|
5827
5774
|
} & {
|
|
@@ -6204,7 +6151,7 @@ export declare const marcoZero: {
|
|
|
6204
6151
|
}];
|
|
6205
6152
|
attachments: [{
|
|
6206
6153
|
readonly sourceField: string[];
|
|
6207
|
-
readonly destField: ("id" | "draftId" | "failed" | "fileName" | "mimeType" | "
|
|
6154
|
+
readonly destField: ("status" | "id" | "draftId" | "failed" | "fileName" | "mimeType" | "totalSize")[];
|
|
6208
6155
|
readonly destSchema: "draftAttachment";
|
|
6209
6156
|
readonly cardinality: "many";
|
|
6210
6157
|
}];
|
|
@@ -6665,10 +6612,10 @@ export declare const marcoZero: {
|
|
|
6665
6612
|
} & {
|
|
6666
6613
|
serverName: string;
|
|
6667
6614
|
};
|
|
6668
|
-
readonly
|
|
6669
|
-
type: "
|
|
6615
|
+
readonly status: {
|
|
6616
|
+
type: "string";
|
|
6670
6617
|
optional: false;
|
|
6671
|
-
customType:
|
|
6618
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
6672
6619
|
} & {
|
|
6673
6620
|
serverName: string;
|
|
6674
6621
|
};
|
|
@@ -6679,13 +6626,6 @@ export declare const marcoZero: {
|
|
|
6679
6626
|
} & {
|
|
6680
6627
|
serverName: string;
|
|
6681
6628
|
};
|
|
6682
|
-
readonly uploadedChunks: {
|
|
6683
|
-
type: "number";
|
|
6684
|
-
optional: false;
|
|
6685
|
-
customType: number;
|
|
6686
|
-
} & {
|
|
6687
|
-
serverName: string;
|
|
6688
|
-
};
|
|
6689
6629
|
};
|
|
6690
6630
|
primaryKey: readonly [string, ...string[]];
|
|
6691
6631
|
} & {
|