@betterinternship/schema 1.13.0 → 1.13.1
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/db.doc.types.d.ts +107 -107
- package/dist/db.doc.types.js +2 -2
- package/dist/db.internal.types.d.ts +2 -1
- package/dist/db.iom.types.d.ts +312 -312
- package/dist/db.iom.types.js +2 -2
- package/dist/env.d.ts +1 -1
- package/dist/env.js +6 -6
- package/dist/repository/base.js +387 -387
- package/dist/repository/errors.js +15 -15
- package/dist/repository/index.js +19 -19
- package/dist/repository/json-columns.d.ts +5 -5
- package/dist/repository/json-columns.js +43 -43
- package/dist/repository/paginator.d.ts +4 -4
- package/dist/repository/paginator.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/db.doc.types.d.ts
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import type { ColumnType } from "kysely";
|
|
2
|
-
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
|
|
3
|
-
export type Json = JsonValue;
|
|
4
|
-
export type JsonArray = JsonValue[];
|
|
5
|
-
export type JsonObject = {
|
|
6
|
-
[x: string]: JsonValue | undefined;
|
|
7
|
-
};
|
|
8
|
-
export type JsonPrimitive = boolean | number | string | null;
|
|
9
|
-
export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
|
|
10
|
-
export type Timestamp = ColumnType<Date, Date | string, Date | string>;
|
|
11
|
-
export interface BaseDocuments {
|
|
12
|
-
created_at: Generated<Timestamp>;
|
|
13
|
-
id: Generated<string>;
|
|
14
|
-
name: string;
|
|
15
|
-
url: string;
|
|
16
|
-
}
|
|
17
|
-
export interface BaseImages {
|
|
18
|
-
filename: string;
|
|
19
|
-
id: Generated<string>;
|
|
20
|
-
source_text: string;
|
|
21
|
-
url: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ExternalDocuments {
|
|
24
|
-
code: string | null;
|
|
25
|
-
effective_date: Timestamp | null;
|
|
26
|
-
expiry_date: Timestamp | null;
|
|
27
|
-
form_label: string | null;
|
|
28
|
-
id: Generated<string>;
|
|
29
|
-
uploaded_at: Generated<Timestamp>;
|
|
30
|
-
url: string;
|
|
31
|
-
}
|
|
32
|
-
export interface FieldTemplateRegistry {
|
|
33
|
-
field_schema_defaults: Json | null;
|
|
34
|
-
id: Generated<string>;
|
|
35
|
-
is_phantom: Generated<boolean>;
|
|
36
|
-
label: string;
|
|
37
|
-
name: string;
|
|
38
|
-
party: Generated<string | null>;
|
|
39
|
-
prefiller: string | null;
|
|
40
|
-
preset: Generated<string>;
|
|
41
|
-
shared: Generated<boolean>;
|
|
42
|
-
source: string;
|
|
43
|
-
tag: string | null;
|
|
44
|
-
tooltip_label: string | null;
|
|
45
|
-
type: Generated<string>;
|
|
46
|
-
validator: string | null;
|
|
47
|
-
validator_ir: Json | null;
|
|
48
|
-
}
|
|
49
|
-
export interface FormGroups {
|
|
50
|
-
code: string | null;
|
|
51
|
-
coordinator_id: string | null;
|
|
52
|
-
description: string;
|
|
53
|
-
forms: string[];
|
|
54
|
-
id: Generated<string>;
|
|
55
|
-
}
|
|
56
|
-
export interface FormTemplateRegistry {
|
|
57
|
-
base_document_id: string | null;
|
|
58
|
-
form_metadata_id: Generated<string>;
|
|
59
|
-
id: Generated<string>;
|
|
60
|
-
label: string | null;
|
|
61
|
-
name: string;
|
|
62
|
-
time_generated: Generated<Timestamp | null>;
|
|
63
|
-
version: Generated<number>;
|
|
64
|
-
}
|
|
65
|
-
export interface PendingDocuments {
|
|
66
|
-
audit: Json | null;
|
|
67
|
-
base_document_id: string | null;
|
|
68
|
-
date_made: Generated<Timestamp>;
|
|
69
|
-
descriptors: Generated<Json>;
|
|
70
|
-
form_label: string | null;
|
|
71
|
-
form_name: string | null;
|
|
72
|
-
id: Generated<string>;
|
|
73
|
-
inputs: Generated<Json>;
|
|
74
|
-
latest_document_url: string | null;
|
|
75
|
-
pending_parties: Generated<Json>;
|
|
76
|
-
signatories: Generated<Json>;
|
|
77
|
-
subscribers: Json | null;
|
|
78
|
-
version: number | null;
|
|
79
|
-
}
|
|
80
|
-
export interface SignedDocuments {
|
|
81
|
-
base_document_id: string | null;
|
|
82
|
-
date_made: Generated<Timestamp>;
|
|
83
|
-
descriptors: Generated<Json>;
|
|
84
|
-
effective_date: Timestamp | null;
|
|
85
|
-
expiry_date: Timestamp | null;
|
|
86
|
-
form_label: string | null;
|
|
87
|
-
form_name: string | null;
|
|
88
|
-
id: Generated<string>;
|
|
89
|
-
inputs: Json | null;
|
|
90
|
-
inputs_hash: string | null;
|
|
91
|
-
notarized_url: string | null;
|
|
92
|
-
schema: Json | null;
|
|
93
|
-
schema_hash: string | null;
|
|
94
|
-
signatories: Json | null;
|
|
95
|
-
url: string;
|
|
96
|
-
verification_code: string | null;
|
|
97
|
-
}
|
|
98
|
-
export interface DB {
|
|
99
|
-
"documents.base_documents": BaseDocuments;
|
|
100
|
-
"documents.base_images": BaseImages;
|
|
101
|
-
"documents.external_documents": ExternalDocuments;
|
|
102
|
-
"documents.field_template_registry": FieldTemplateRegistry;
|
|
103
|
-
"documents.form_groups": FormGroups;
|
|
104
|
-
"documents.form_template_registry": FormTemplateRegistry;
|
|
105
|
-
"documents.pending_documents": PendingDocuments;
|
|
106
|
-
"documents.signed_documents": SignedDocuments;
|
|
107
|
-
}
|
|
1
|
+
import type { ColumnType } from "kysely";
|
|
2
|
+
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
|
|
3
|
+
export type Json = JsonValue;
|
|
4
|
+
export type JsonArray = JsonValue[];
|
|
5
|
+
export type JsonObject = {
|
|
6
|
+
[x: string]: JsonValue | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type JsonPrimitive = boolean | number | string | null;
|
|
9
|
+
export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
|
|
10
|
+
export type Timestamp = ColumnType<Date, Date | string, Date | string>;
|
|
11
|
+
export interface BaseDocuments {
|
|
12
|
+
created_at: Generated<Timestamp>;
|
|
13
|
+
id: Generated<string>;
|
|
14
|
+
name: string;
|
|
15
|
+
url: string;
|
|
16
|
+
}
|
|
17
|
+
export interface BaseImages {
|
|
18
|
+
filename: string;
|
|
19
|
+
id: Generated<string>;
|
|
20
|
+
source_text: string;
|
|
21
|
+
url: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ExternalDocuments {
|
|
24
|
+
code: string | null;
|
|
25
|
+
effective_date: Timestamp | null;
|
|
26
|
+
expiry_date: Timestamp | null;
|
|
27
|
+
form_label: string | null;
|
|
28
|
+
id: Generated<string>;
|
|
29
|
+
uploaded_at: Generated<Timestamp>;
|
|
30
|
+
url: string;
|
|
31
|
+
}
|
|
32
|
+
export interface FieldTemplateRegistry {
|
|
33
|
+
field_schema_defaults: Json | null;
|
|
34
|
+
id: Generated<string>;
|
|
35
|
+
is_phantom: Generated<boolean>;
|
|
36
|
+
label: string;
|
|
37
|
+
name: string;
|
|
38
|
+
party: Generated<string | null>;
|
|
39
|
+
prefiller: string | null;
|
|
40
|
+
preset: Generated<string>;
|
|
41
|
+
shared: Generated<boolean>;
|
|
42
|
+
source: string;
|
|
43
|
+
tag: string | null;
|
|
44
|
+
tooltip_label: string | null;
|
|
45
|
+
type: Generated<string>;
|
|
46
|
+
validator: string | null;
|
|
47
|
+
validator_ir: Json | null;
|
|
48
|
+
}
|
|
49
|
+
export interface FormGroups {
|
|
50
|
+
code: string | null;
|
|
51
|
+
coordinator_id: string | null;
|
|
52
|
+
description: string;
|
|
53
|
+
forms: string[];
|
|
54
|
+
id: Generated<string>;
|
|
55
|
+
}
|
|
56
|
+
export interface FormTemplateRegistry {
|
|
57
|
+
base_document_id: string | null;
|
|
58
|
+
form_metadata_id: Generated<string>;
|
|
59
|
+
id: Generated<string>;
|
|
60
|
+
label: string | null;
|
|
61
|
+
name: string;
|
|
62
|
+
time_generated: Generated<Timestamp | null>;
|
|
63
|
+
version: Generated<number>;
|
|
64
|
+
}
|
|
65
|
+
export interface PendingDocuments {
|
|
66
|
+
audit: Json | null;
|
|
67
|
+
base_document_id: string | null;
|
|
68
|
+
date_made: Generated<Timestamp>;
|
|
69
|
+
descriptors: Generated<Json>;
|
|
70
|
+
form_label: string | null;
|
|
71
|
+
form_name: string | null;
|
|
72
|
+
id: Generated<string>;
|
|
73
|
+
inputs: Generated<Json>;
|
|
74
|
+
latest_document_url: string | null;
|
|
75
|
+
pending_parties: Generated<Json>;
|
|
76
|
+
signatories: Generated<Json>;
|
|
77
|
+
subscribers: Json | null;
|
|
78
|
+
version: number | null;
|
|
79
|
+
}
|
|
80
|
+
export interface SignedDocuments {
|
|
81
|
+
base_document_id: string | null;
|
|
82
|
+
date_made: Generated<Timestamp>;
|
|
83
|
+
descriptors: Generated<Json>;
|
|
84
|
+
effective_date: Timestamp | null;
|
|
85
|
+
expiry_date: Timestamp | null;
|
|
86
|
+
form_label: string | null;
|
|
87
|
+
form_name: string | null;
|
|
88
|
+
id: Generated<string>;
|
|
89
|
+
inputs: Json | null;
|
|
90
|
+
inputs_hash: string | null;
|
|
91
|
+
notarized_url: string | null;
|
|
92
|
+
schema: Json | null;
|
|
93
|
+
schema_hash: string | null;
|
|
94
|
+
signatories: Json | null;
|
|
95
|
+
url: string;
|
|
96
|
+
verification_code: string | null;
|
|
97
|
+
}
|
|
98
|
+
export interface DB {
|
|
99
|
+
"documents.base_documents": BaseDocuments;
|
|
100
|
+
"documents.base_images": BaseImages;
|
|
101
|
+
"documents.external_documents": ExternalDocuments;
|
|
102
|
+
"documents.field_template_registry": FieldTemplateRegistry;
|
|
103
|
+
"documents.form_groups": FormGroups;
|
|
104
|
+
"documents.form_template_registry": FormTemplateRegistry;
|
|
105
|
+
"documents.pending_documents": PendingDocuments;
|
|
106
|
+
"documents.signed_documents": SignedDocuments;
|
|
107
|
+
}
|
package/dist/db.doc.types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=db.doc.types.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ColumnType } from "kysely";
|
|
2
2
|
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
|
|
3
|
-
export type InternalLinkDomain = "employer" | "student";
|
|
3
|
+
export type InternalLinkDomain = "admin" | "career-api" | "docs" | "employer" | "moa" | "student" | "uni";
|
|
4
4
|
export type InternalMqJobStatus = "done" | "failed" | "processing" | "queued";
|
|
5
5
|
export type InternalProcessStatus = "canceled" | "failed" | "handled" | "pending";
|
|
6
6
|
export type InternalTaskStatus = "failed" | "handled" | "pending" | "retrying";
|
|
@@ -51,6 +51,7 @@ export interface InternalProcesses {
|
|
|
51
51
|
}
|
|
52
52
|
export interface InternalSlugs {
|
|
53
53
|
created_at: Generated<Timestamp>;
|
|
54
|
+
destination_host: InternalLinkDomain | null;
|
|
54
55
|
domain: InternalLinkDomain;
|
|
55
56
|
slug: string;
|
|
56
57
|
url: string;
|