@jobsearch-works/firestore-models 1.0.11 → 1.0.12
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +11 -0
- package/dist/index.mjs +11 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -14,7 +14,7 @@ declare namespace Application {
|
|
14
14
|
interface Model extends BaseModel {
|
15
15
|
vacancyId: string;
|
16
16
|
clientId: string;
|
17
|
-
status:
|
17
|
+
status: Status;
|
18
18
|
coverLetter?: string;
|
19
19
|
resume?: string;
|
20
20
|
company?: string;
|
@@ -28,6 +28,8 @@ declare namespace Application {
|
|
28
28
|
description?: string;
|
29
29
|
fullPageText?: string;
|
30
30
|
}
|
31
|
+
type Status = "new" | "submitted" | "interviewing" | "accepted" | "rejected" | "withdrawn" | "applying" | "suggested" | "approved";
|
32
|
+
const StatusOptions: readonly Status[];
|
31
33
|
const collection: (clientId: string) => string;
|
32
34
|
const document: (clientId: string, applicationId: string) => string;
|
33
35
|
const formatSummary: (application: Application.Model) => string;
|
package/dist/index.d.ts
CHANGED
@@ -14,7 +14,7 @@ declare namespace Application {
|
|
14
14
|
interface Model extends BaseModel {
|
15
15
|
vacancyId: string;
|
16
16
|
clientId: string;
|
17
|
-
status:
|
17
|
+
status: Status;
|
18
18
|
coverLetter?: string;
|
19
19
|
resume?: string;
|
20
20
|
company?: string;
|
@@ -28,6 +28,8 @@ declare namespace Application {
|
|
28
28
|
description?: string;
|
29
29
|
fullPageText?: string;
|
30
30
|
}
|
31
|
+
type Status = "new" | "submitted" | "interviewing" | "accepted" | "rejected" | "withdrawn" | "applying" | "suggested" | "approved";
|
32
|
+
const StatusOptions: readonly Status[];
|
31
33
|
const collection: (clientId: string) => string;
|
32
34
|
const document: (clientId: string, applicationId: string) => string;
|
33
35
|
const formatSummary: (application: Application.Model) => string;
|
package/dist/index.js
CHANGED
@@ -35,6 +35,17 @@ module.exports = __toCommonJS(src_exports);
|
|
35
35
|
// src/models/Application.ts
|
36
36
|
var Application;
|
37
37
|
((Application2) => {
|
38
|
+
Application2.StatusOptions = [
|
39
|
+
"new",
|
40
|
+
"submitted",
|
41
|
+
"interviewing",
|
42
|
+
"accepted",
|
43
|
+
"rejected",
|
44
|
+
"withdrawn",
|
45
|
+
"applying",
|
46
|
+
"suggested",
|
47
|
+
"approved"
|
48
|
+
];
|
38
49
|
Application2.collection = (clientId) => `clients/${clientId}/applications`;
|
39
50
|
Application2.document = (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`;
|
40
51
|
Application2.formatSummary = (application) => {
|
package/dist/index.mjs
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
// src/models/Application.ts
|
2
2
|
var Application;
|
3
3
|
((Application2) => {
|
4
|
+
Application2.StatusOptions = [
|
5
|
+
"new",
|
6
|
+
"submitted",
|
7
|
+
"interviewing",
|
8
|
+
"accepted",
|
9
|
+
"rejected",
|
10
|
+
"withdrawn",
|
11
|
+
"applying",
|
12
|
+
"suggested",
|
13
|
+
"approved"
|
14
|
+
];
|
4
15
|
Application2.collection = (clientId) => `clients/${clientId}/applications`;
|
5
16
|
Application2.document = (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`;
|
6
17
|
Application2.formatSummary = (application) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jobsearch-works/firestore-models",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.12",
|
4
4
|
"description": "A shared library for standardizing Firestore document schemas and paths across multiple projects",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|