@rossum/api-client 0.1.20 → 0.1.21
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/package.json +1 -1
- package/src/documents/endpoints/downloads.schema.js +1 -1
- package/src/documents/endpoints/downloads.schema.js.map +1 -1
- package/src/uploads/endpoints/get.js +13 -0
- package/src/uploads/endpoints/get.js.map +1 -0
- package/src/uploads/endpoints/index.js +2 -0
- package/src/uploads/endpoints/index.js.map +1 -1
- package/src/uploads/models/index.js +18 -0
- package/src/uploads/models/index.js.map +1 -0
- package/src/uploads/models/upload.js +3 -0
- package/src/uploads/models/upload.js.map +1 -0
- package/src/uploads/models/upload.schema.js +18 -0
- package/src/uploads/models/upload.schema.js.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/src/documents/endpoints/downloads.d.ts +1 -1
- package/types/src/documents/endpoints/downloads.schema.d.ts +3 -3
- package/types/src/uploads/endpoints/get.d.ts +3 -0
- package/types/src/uploads/endpoints/index.d.ts +1 -0
- package/types/src/uploads/models/index.d.ts +1 -0
- package/types/src/uploads/models/upload.d.ts +13 -0
- package/types/src/uploads/models/upload.schema.d.ts +35 -0
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ exports.documentsDownloadsPayloadSchema = zod_1.z.union([
|
|
|
21
21
|
type: exports.documentsDownloadsTypeSchema.optional(),
|
|
22
22
|
}),
|
|
23
23
|
zod_1.z.object({
|
|
24
|
-
documents: zod_1.z.
|
|
24
|
+
documents: zod_1.z.tuple([codecUtils_schema_1.urlSchema]),
|
|
25
25
|
zip: zod_1.z.literal(false),
|
|
26
26
|
type: exports.documentsDownloadsTypeSchema.optional(),
|
|
27
27
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downloads.schema.js","sourceRoot":"","sources":["../../../../src/documents/endpoints/downloads.schema.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,qEAA0D;AAE7C,QAAA,gCAAgC,GAAG,OAAC,CA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,OAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAC5B,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;CACtB,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,OAAC,CAAC,KAAK,CAAC;IACrD,OAAC,CAAC,MAAM,CAAC;QACP,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;QACpB,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAS,CAAC;QAC7B,IAAI,EAAE,oCAA4B,CAAC,QAAQ,EAAE;KAC9C,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,6BAAS,CAAC,CAAC;QAC/B,GAAG,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QACrB,IAAI,EAAE,oCAA4B,CAAC,QAAQ,EAAE;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.get = void 0;
|
|
4
|
+
const upload_schema_1 = require("../models/upload.schema");
|
|
5
|
+
const get = (uploadId) => {
|
|
6
|
+
return {
|
|
7
|
+
endpoint: `/uploads/${uploadId}`,
|
|
8
|
+
method: 'GET',
|
|
9
|
+
responseSchema: upload_schema_1.uploadSchema,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
exports.get = get;
|
|
13
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/uploads/endpoints/get.ts"],"names":[],"mappings":";;;AAEA,2DAAuD;AAEhD,MAAM,GAAG,GAAG,CACjB,QAAgB,EACyB,EAAE;IAC3C,OAAO;QACL,QAAQ,EAAE,YAAY,QAAQ,EAAE;QAChC,MAAM,EAAE,KAAK;QACb,cAAc,EAAE,4BAAY;KAC7B,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,GAAG,OAQd"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.uploads = void 0;
|
|
4
|
+
const get_1 = require("./get");
|
|
4
5
|
const post_1 = require("./post");
|
|
5
6
|
exports.uploads = {
|
|
7
|
+
get: get_1.get,
|
|
6
8
|
post: post_1.post,
|
|
7
9
|
};
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/uploads/endpoints/index.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAEjB,QAAA,OAAO,GAAG;IACrB,IAAI,EAAJ,WAAI;CACL,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/uploads/endpoints/index.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAC5B,iCAA8B;AAEjB,QAAA,OAAO,GAAG;IACrB,GAAG,EAAH,SAAG;IACH,IAAI,EAAJ,WAAI;CACL,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./upload"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/uploads/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../../src/uploads/models/upload.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uploadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const codecUtils_schema_1 = require("../../utils/codecUtils.schema");
|
|
6
|
+
exports.uploadSchema = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.number(),
|
|
8
|
+
url: codecUtils_schema_1.urlSchema,
|
|
9
|
+
organization: codecUtils_schema_1.urlSchema,
|
|
10
|
+
creator: codecUtils_schema_1.urlSchema.nullable(),
|
|
11
|
+
createdAt: zod_1.z.string(),
|
|
12
|
+
queue: codecUtils_schema_1.urlSchema,
|
|
13
|
+
email: codecUtils_schema_1.urlSchema.nullable(),
|
|
14
|
+
documents: zod_1.z.array(codecUtils_schema_1.urlSchema),
|
|
15
|
+
additionalDocuments: zod_1.z.array(codecUtils_schema_1.urlSchema),
|
|
16
|
+
annotations: zod_1.z.array(codecUtils_schema_1.urlSchema),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=upload.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.schema.js","sourceRoot":"","sources":["../../../../src/uploads/models/upload.schema.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,qEAA0D;AAE7C,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,GAAG,EAAE,6BAAS;IACd,YAAY,EAAE,6BAAS;IACvB,OAAO,EAAE,6BAAS,CAAC,QAAQ,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,6BAAS;IAChB,KAAK,EAAE,6BAAS,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAS,CAAC;IAC7B,mBAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAS,CAAC;IACvC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAS,CAAC;CAChC,CAAC,CAAC"}
|
package/types/index.d.ts
CHANGED
|
@@ -444,6 +444,7 @@ export declare const endpoints: {
|
|
|
444
444
|
get: (userId: string) => ElisRequestConfig<import("./src/users/models").User, never, never>;
|
|
445
445
|
};
|
|
446
446
|
uploads: {
|
|
447
|
+
get: (uploadId: number) => ElisRequestConfig<import("./src/uploads/models").Upload, never, never>;
|
|
447
448
|
post: (queueId: number, data: unknown, name?: string, signal?: AbortSignal | undefined) => ElisRequestConfig<import("./src/uploads/endpoints/post").UploadsPostResponse, import("./src/uploads/endpoints/post").UploadsPostQuery, unknown>;
|
|
448
449
|
};
|
|
449
450
|
workflowActivities: {
|
|
@@ -30,15 +30,15 @@ export declare const documentsDownloadsPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
30
30
|
fileName: string;
|
|
31
31
|
type?: "document" | "source_document" | undefined;
|
|
32
32
|
}>, z.ZodObject<{
|
|
33
|
-
documents: z.
|
|
33
|
+
documents: z.ZodTuple<[z.ZodString], null>;
|
|
34
34
|
zip: z.ZodLiteral<false>;
|
|
35
35
|
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"source_document">, z.ZodLiteral<"document">]>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
documents: [string];
|
|
37
38
|
zip: false;
|
|
38
|
-
documents?: any;
|
|
39
39
|
type?: "document" | "source_document" | undefined;
|
|
40
40
|
}, {
|
|
41
|
+
documents: [string];
|
|
41
42
|
zip: false;
|
|
42
|
-
documents?: any;
|
|
43
43
|
type?: "document" | "source_document" | undefined;
|
|
44
44
|
}>]>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const uploads: {
|
|
2
|
+
get: (uploadId: number) => import("../../utils/requestConfig").ElisRequestConfig<import("../models").Upload, never, never>;
|
|
2
3
|
post: (queueId: number, data: unknown, name?: string, signal?: AbortSignal | undefined) => import("../../utils/requestConfig").ElisRequestConfig<import("./post").UploadsPostResponse, import("./post").UploadsPostQuery, unknown>;
|
|
3
4
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './upload';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Url } from '../../utils/codecUtils';
|
|
2
|
+
export type Upload = {
|
|
3
|
+
id: number;
|
|
4
|
+
url: Url;
|
|
5
|
+
organization: Url;
|
|
6
|
+
creator: Url | null;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
queue: Url;
|
|
9
|
+
email: Url | null;
|
|
10
|
+
documents: Url[];
|
|
11
|
+
additionalDocuments: Url[];
|
|
12
|
+
annotations: Url[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const uploadSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
organization: z.ZodString;
|
|
6
|
+
creator: z.ZodNullable<z.ZodString>;
|
|
7
|
+
createdAt: z.ZodString;
|
|
8
|
+
queue: z.ZodString;
|
|
9
|
+
email: z.ZodNullable<z.ZodString>;
|
|
10
|
+
documents: z.ZodArray<z.ZodString, "many">;
|
|
11
|
+
additionalDocuments: z.ZodArray<z.ZodString, "many">;
|
|
12
|
+
annotations: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
annotations: string[];
|
|
15
|
+
url: string;
|
|
16
|
+
queue: string;
|
|
17
|
+
id: number;
|
|
18
|
+
creator: string | null;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
email: string | null;
|
|
21
|
+
organization: string;
|
|
22
|
+
documents: string[];
|
|
23
|
+
additionalDocuments: string[];
|
|
24
|
+
}, {
|
|
25
|
+
annotations: string[];
|
|
26
|
+
url: string;
|
|
27
|
+
queue: string;
|
|
28
|
+
id: number;
|
|
29
|
+
creator: string | null;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
email: string | null;
|
|
32
|
+
organization: string;
|
|
33
|
+
documents: string[];
|
|
34
|
+
additionalDocuments: string[];
|
|
35
|
+
}>;
|