@jobsearch-works/firestore-models 1.0.24 → 1.0.25
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 +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +12 -11
- package/dist/index.mjs +12 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -28,7 +28,18 @@ declare namespace Application {
|
|
28
28
|
description?: string;
|
29
29
|
fullPageText?: string;
|
30
30
|
}
|
31
|
-
|
31
|
+
const Status: {
|
32
|
+
readonly New: "new";
|
33
|
+
readonly Submitted: "submitted";
|
34
|
+
readonly Interviewing: "interviewing";
|
35
|
+
readonly Accepted: "accepted";
|
36
|
+
readonly Rejected: "rejected";
|
37
|
+
readonly Withdrawn: "withdrawn";
|
38
|
+
readonly Applying: "applying";
|
39
|
+
readonly Suggested: "suggested";
|
40
|
+
readonly Approved: "approved";
|
41
|
+
};
|
42
|
+
type Status = (typeof Status)[keyof typeof Status];
|
32
43
|
const StatusOptions: readonly Status[];
|
33
44
|
const collection: (clientId: string) => string;
|
34
45
|
const document: (clientId: string, applicationId: string) => string;
|
package/dist/index.d.ts
CHANGED
@@ -28,7 +28,18 @@ declare namespace Application {
|
|
28
28
|
description?: string;
|
29
29
|
fullPageText?: string;
|
30
30
|
}
|
31
|
-
|
31
|
+
const Status: {
|
32
|
+
readonly New: "new";
|
33
|
+
readonly Submitted: "submitted";
|
34
|
+
readonly Interviewing: "interviewing";
|
35
|
+
readonly Accepted: "accepted";
|
36
|
+
readonly Rejected: "rejected";
|
37
|
+
readonly Withdrawn: "withdrawn";
|
38
|
+
readonly Applying: "applying";
|
39
|
+
readonly Suggested: "suggested";
|
40
|
+
readonly Approved: "approved";
|
41
|
+
};
|
42
|
+
type Status = (typeof Status)[keyof typeof Status];
|
32
43
|
const StatusOptions: readonly Status[];
|
33
44
|
const collection: (clientId: string) => string;
|
34
45
|
const document: (clientId: string, applicationId: string) => string;
|
package/dist/index.js
CHANGED
@@ -37,17 +37,18 @@ module.exports = __toCommonJS(src_exports);
|
|
37
37
|
// src/models/Application.ts
|
38
38
|
var Application;
|
39
39
|
((Application2) => {
|
40
|
-
Application2.
|
41
|
-
"new",
|
42
|
-
"submitted",
|
43
|
-
"interviewing",
|
44
|
-
"accepted",
|
45
|
-
"rejected",
|
46
|
-
"withdrawn",
|
47
|
-
"applying",
|
48
|
-
"suggested",
|
49
|
-
"approved"
|
50
|
-
|
40
|
+
Application2.Status = {
|
41
|
+
New: "new",
|
42
|
+
Submitted: "submitted",
|
43
|
+
Interviewing: "interviewing",
|
44
|
+
Accepted: "accepted",
|
45
|
+
Rejected: "rejected",
|
46
|
+
Withdrawn: "withdrawn",
|
47
|
+
Applying: "applying",
|
48
|
+
Suggested: "suggested",
|
49
|
+
Approved: "approved"
|
50
|
+
};
|
51
|
+
Application2.StatusOptions = Object.values(Application2.Status);
|
51
52
|
Application2.collection = (clientId) => `clients/${clientId}/applications`;
|
52
53
|
Application2.document = (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`;
|
53
54
|
Application2.formatSummary = (application) => {
|
package/dist/index.mjs
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
// src/models/Application.ts
|
2
2
|
var Application;
|
3
3
|
((Application2) => {
|
4
|
-
Application2.
|
5
|
-
"new",
|
6
|
-
"submitted",
|
7
|
-
"interviewing",
|
8
|
-
"accepted",
|
9
|
-
"rejected",
|
10
|
-
"withdrawn",
|
11
|
-
"applying",
|
12
|
-
"suggested",
|
13
|
-
"approved"
|
14
|
-
|
4
|
+
Application2.Status = {
|
5
|
+
New: "new",
|
6
|
+
Submitted: "submitted",
|
7
|
+
Interviewing: "interviewing",
|
8
|
+
Accepted: "accepted",
|
9
|
+
Rejected: "rejected",
|
10
|
+
Withdrawn: "withdrawn",
|
11
|
+
Applying: "applying",
|
12
|
+
Suggested: "suggested",
|
13
|
+
Approved: "approved"
|
14
|
+
};
|
15
|
+
Application2.StatusOptions = Object.values(Application2.Status);
|
15
16
|
Application2.collection = (clientId) => `clients/${clientId}/applications`;
|
16
17
|
Application2.document = (clientId, applicationId) => `clients/${clientId}/applications/${applicationId}`;
|
17
18
|
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.25",
|
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",
|