@thejob/schema 1.0.87 → 1.0.89
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/cjs/constants/database/database.d.ts +1 -0
- package/dist/cjs/constants/database/database.d.ts.map +1 -1
- package/dist/cjs/constants/database/database.js +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/interfaces.index.d.ts +19 -2
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +1 -0
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +1 -0
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/cjs/page/page.schema.d.ts +2 -0
- package/dist/cjs/page/page.schema.d.ts.map +1 -1
- package/dist/cjs/page/page.schema.js +1 -0
- package/dist/cjs/subscription/index.d.ts +3 -0
- package/dist/cjs/subscription/index.d.ts.map +1 -0
- package/dist/cjs/subscription/index.js +18 -0
- package/dist/cjs/subscription/subscription.constant.d.ts +19 -0
- package/dist/cjs/subscription/subscription.constant.d.ts.map +1 -0
- package/dist/cjs/subscription/subscription.constant.js +24 -0
- package/dist/cjs/subscription/subscription.schema.d.ts +35 -0
- package/dist/cjs/subscription/subscription.schema.d.ts.map +1 -0
- package/dist/cjs/subscription/subscription.schema.js +32 -0
- package/dist/cjs/user/education/education.schema.d.ts +1 -0
- package/dist/cjs/user/education/education.schema.d.ts.map +1 -1
- package/dist/cjs/user/work-experience/work-experience.schema.d.ts +1 -0
- package/dist/cjs/user/work-experience/work-experience.schema.d.ts.map +1 -1
- package/dist/esm/constants/database/database.d.ts +1 -0
- package/dist/esm/constants/database/database.d.ts.map +1 -1
- package/dist/esm/constants/database/database.js +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces.index.d.ts +19 -2
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +1 -0
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +1 -0
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/esm/page/page.schema.d.ts +2 -0
- package/dist/esm/page/page.schema.d.ts.map +1 -1
- package/dist/esm/page/page.schema.js +1 -0
- package/dist/esm/subscription/index.d.ts +3 -0
- package/dist/esm/subscription/index.d.ts.map +1 -0
- package/dist/esm/subscription/index.js +2 -0
- package/dist/esm/subscription/subscription.constant.d.ts +19 -0
- package/dist/esm/subscription/subscription.constant.d.ts.map +1 -0
- package/dist/esm/subscription/subscription.constant.js +21 -0
- package/dist/esm/subscription/subscription.schema.d.ts +35 -0
- package/dist/esm/subscription/subscription.schema.d.ts.map +1 -0
- package/dist/esm/subscription/subscription.schema.js +29 -0
- package/dist/esm/user/education/education.schema.d.ts +1 -0
- package/dist/esm/user/education/education.schema.d.ts.map +1 -1
- package/dist/esm/user/work-experience/work-experience.schema.d.ts +1 -0
- package/dist/esm/user/work-experience/work-experience.schema.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAK7B,MAAM,cAAc,CAAC;AAItB,OAAO,EACL,YAAY,EAKb,MAAM,aAAa,CAAC;AAErB,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAK7B,MAAM,cAAc,CAAC;AAItB,OAAO,EACL,YAAY,EAKb,MAAM,aAAa,CAAC;AAErB,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgbP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -43,6 +43,7 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
|
|
|
43
43
|
isNew: boolean;
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
isOwner: boolean | undefined;
|
|
46
|
+
isFeatured: boolean;
|
|
46
47
|
status: NonNullable<import("./page.constant").PageStatus | undefined>;
|
|
47
48
|
equalOpportunityEmployer: boolean | undefined;
|
|
48
49
|
perksAndBenefits: {
|
|
@@ -82,6 +83,7 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
|
|
|
82
83
|
categories: "";
|
|
83
84
|
socialAccounts: "";
|
|
84
85
|
isOwner: undefined;
|
|
86
|
+
isFeatured: false;
|
|
85
87
|
status: undefined;
|
|
86
88
|
equalOpportunityEmployer: undefined;
|
|
87
89
|
perksAndBenefits: "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAUzB,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAUzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6DA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -52,6 +52,7 @@ export const PageSchema = object()
|
|
|
52
52
|
.optional()
|
|
53
53
|
.label("Social Accounts"),
|
|
54
54
|
isOwner: boolean().optional().label("Is Owner"),
|
|
55
|
+
isFeatured: boolean().optional().default(false).label("Is Featured"),
|
|
55
56
|
status: string().oneOf(SupportedPageStatuses).required().label("Status"),
|
|
56
57
|
})
|
|
57
58
|
.concat(CompanySchema)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subscription/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum SubscriptionType {
|
|
2
|
+
CompanyFollow = "companyFollow",
|
|
3
|
+
GroupFollow = "groupFollow",
|
|
4
|
+
SavedSearch = "savedSearch"
|
|
5
|
+
}
|
|
6
|
+
export declare const SupportedSubscriptionTypes: SubscriptionType[];
|
|
7
|
+
export declare enum SubscriptionFrequency {
|
|
8
|
+
Instant = "instant",
|
|
9
|
+
Daily = "daily",
|
|
10
|
+
Weekly = "weekly",
|
|
11
|
+
Monthly = "monthly"
|
|
12
|
+
}
|
|
13
|
+
export declare const SupportedSubscriptionFrequencies: SubscriptionFrequency[];
|
|
14
|
+
export declare enum SubscriptionChannel {
|
|
15
|
+
Email = "email",
|
|
16
|
+
InApp = "inApp"
|
|
17
|
+
}
|
|
18
|
+
export declare const SupportedSubscriptionChannels: SubscriptionChannel[];
|
|
19
|
+
//# sourceMappingURL=subscription.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.constant.d.ts","sourceRoot":"","sources":["../../../src/subscription/subscription.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;CAC5B;AAED,eAAO,MAAM,0BAA0B,oBAAkC,CAAC;AAE1E,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,gCAAgC,yBACP,CAAC;AAEvC,oBAAY,mBAAmB;IAC7B,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,6BAA6B,uBACN,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export var SubscriptionType;
|
|
2
|
+
(function (SubscriptionType) {
|
|
3
|
+
SubscriptionType["CompanyFollow"] = "companyFollow";
|
|
4
|
+
SubscriptionType["GroupFollow"] = "groupFollow";
|
|
5
|
+
SubscriptionType["SavedSearch"] = "savedSearch";
|
|
6
|
+
})(SubscriptionType || (SubscriptionType = {}));
|
|
7
|
+
export const SupportedSubscriptionTypes = Object.values(SubscriptionType);
|
|
8
|
+
export var SubscriptionFrequency;
|
|
9
|
+
(function (SubscriptionFrequency) {
|
|
10
|
+
SubscriptionFrequency["Instant"] = "instant";
|
|
11
|
+
SubscriptionFrequency["Daily"] = "daily";
|
|
12
|
+
SubscriptionFrequency["Weekly"] = "weekly";
|
|
13
|
+
SubscriptionFrequency["Monthly"] = "monthly";
|
|
14
|
+
})(SubscriptionFrequency || (SubscriptionFrequency = {}));
|
|
15
|
+
export const SupportedSubscriptionFrequencies = Object.values(SubscriptionFrequency);
|
|
16
|
+
export var SubscriptionChannel;
|
|
17
|
+
(function (SubscriptionChannel) {
|
|
18
|
+
SubscriptionChannel["Email"] = "email";
|
|
19
|
+
SubscriptionChannel["InApp"] = "inApp";
|
|
20
|
+
})(SubscriptionChannel || (SubscriptionChannel = {}));
|
|
21
|
+
export const SupportedSubscriptionChannels = Object.values(SubscriptionChannel);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { InferType } from "../yup-extended";
|
|
2
|
+
import { SubscriptionChannel, SubscriptionFrequency, SubscriptionType } from "./subscription.constant";
|
|
3
|
+
export declare const SubscriptionSchema: import("yup").ObjectSchema<{
|
|
4
|
+
userId: string;
|
|
5
|
+
type: NonNullable<SubscriptionType | undefined>;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
frequency: SubscriptionFrequency;
|
|
8
|
+
channel: SubscriptionChannel;
|
|
9
|
+
entityId: string | undefined;
|
|
10
|
+
entityName: string | undefined;
|
|
11
|
+
entityLogo: string | null | undefined;
|
|
12
|
+
searchQuery: string | undefined;
|
|
13
|
+
searchFilters: {} | undefined;
|
|
14
|
+
displayLabel: string | undefined;
|
|
15
|
+
lastNotifiedAt: number | undefined;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
updatedAt: number | undefined;
|
|
18
|
+
}, import("yup").AnyObject, {
|
|
19
|
+
userId: undefined;
|
|
20
|
+
type: undefined;
|
|
21
|
+
isActive: true;
|
|
22
|
+
frequency: SubscriptionFrequency.Instant;
|
|
23
|
+
channel: SubscriptionChannel.Email;
|
|
24
|
+
entityId: undefined;
|
|
25
|
+
entityName: undefined;
|
|
26
|
+
entityLogo: undefined;
|
|
27
|
+
searchQuery: undefined;
|
|
28
|
+
searchFilters: {};
|
|
29
|
+
displayLabel: undefined;
|
|
30
|
+
lastNotifiedAt: undefined;
|
|
31
|
+
createdAt: undefined;
|
|
32
|
+
updatedAt: undefined;
|
|
33
|
+
}, "">;
|
|
34
|
+
export type TSubscriptionSchema = InferType<typeof SubscriptionSchema>;
|
|
35
|
+
//# sourceMappingURL=subscription.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.schema.d.ts","sourceRoot":"","sources":["../../../src/subscription/subscription.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAKV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAIjB,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6B7B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { boolean, mixed, number, object, string, } from "../yup-extended";
|
|
2
|
+
import { SubscriptionChannel, SubscriptionFrequency, SupportedSubscriptionChannels, SupportedSubscriptionFrequencies, SupportedSubscriptionTypes, } from "./subscription.constant";
|
|
3
|
+
export const SubscriptionSchema = object({
|
|
4
|
+
userId: string().required().label("User ID"),
|
|
5
|
+
type: mixed()
|
|
6
|
+
.oneOf(SupportedSubscriptionTypes)
|
|
7
|
+
.required()
|
|
8
|
+
.label("Subscription Type"),
|
|
9
|
+
isActive: boolean().default(true).label("Is Active"),
|
|
10
|
+
frequency: mixed()
|
|
11
|
+
.oneOf(SupportedSubscriptionFrequencies)
|
|
12
|
+
.default(SubscriptionFrequency.Instant)
|
|
13
|
+
.label("Frequency"),
|
|
14
|
+
channel: mixed()
|
|
15
|
+
.oneOf(SupportedSubscriptionChannels)
|
|
16
|
+
.default(SubscriptionChannel.Email)
|
|
17
|
+
.label("Channel"),
|
|
18
|
+
// For CompanyFollow type
|
|
19
|
+
entityId: string().optional().label("Entity ID"),
|
|
20
|
+
entityName: string().optional().label("Entity Name"),
|
|
21
|
+
entityLogo: string().optional().nullable().label("Entity Logo"),
|
|
22
|
+
// For SavedSearch type
|
|
23
|
+
searchQuery: string().optional().label("Search Query"),
|
|
24
|
+
searchFilters: object().optional().label("Search Filters"),
|
|
25
|
+
displayLabel: string().optional().label("Display Label"),
|
|
26
|
+
lastNotifiedAt: number().optional().label("Last Notified At"),
|
|
27
|
+
createdAt: number().required().label("Created At"),
|
|
28
|
+
updatedAt: number().optional().label("Updated At"),
|
|
29
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"education.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/education/education.schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"education.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/education/education.schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BP,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-experience.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/work-experience/work-experience.schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"work-experience.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/work-experience/work-experience.schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBN,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|