@abcagency/hire-control-sdk 1.0.75 → 1.0.76

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.ts CHANGED
@@ -23,7 +23,7 @@ import ContentEntry from "./types/content/contentEntry";
23
23
  import Blog from "./types/blog";
24
24
  import CategoryListDto, { AddValueRequest } from "./types/categoryList";
25
25
  import JobFeed from "./types/jobFeed";
26
- import JobFeedFieldMapping from "./types/jobFeedFieldMapping";
26
+ import JobFeedFieldMapping, { MultipleFieldConfig, ConditionalConfig, ConditionalRule } from "./types/jobFeedFieldMapping";
27
27
  import JobListingSettings, { FeedHandlingOption } from "./types/jobListingSettings";
28
28
  import ListingEntityDto from "./types/listingEntity";
29
29
  import RecruiterDto from "./types/recruiter";
@@ -222,7 +222,7 @@ export declare const formSubmissions: {
222
222
  exportFormSubmissionsCsv(pageSize?: number, pageNumber?: number, type?: string | null, status?: FormSubmissionStatus | null, from?: Date | null, to?: Date | null, authToken?: string | null): Promise<void>;
223
223
  getFormSubmissionTypes(authToken?: string | null): Promise<string[]>;
224
224
  };
225
- export type { Register, User, Role, HireControlConfig, ClientAuthConfig, Event, Listing, EventDates, EventDateType, EventInstance, MediaType, Filters, AppendListing, Form, FormSubmission, ResultsWrapper, Company, JobListing, FieldTypeDefinition, ValidatorDefinition, ContentModel, ContentBlock, ContentEntry, Blog, CategoryListDto, AddValueRequest, JobFeed, JobFeedFieldMapping, JobListingSettings, ListingEntityDto, RecruiterDto, FocalPoint, };
225
+ export type { Register, User, Role, HireControlConfig, ClientAuthConfig, Event, Listing, EventDates, EventDateType, EventInstance, MediaType, Filters, AppendListing, Form, FormSubmission, ResultsWrapper, Company, JobListing, FieldTypeDefinition, ValidatorDefinition, ContentModel, ContentBlock, ContentEntry, Blog, CategoryListDto, AddValueRequest, JobFeed, JobFeedFieldMapping, MultipleFieldConfig, ConditionalConfig, ConditionalRule, JobListingSettings, ListingEntityDto, RecruiterDto, FocalPoint, };
226
226
  export { EventType, CallToActionType, FormSubmissionStatus, FeedHandlingOption, };
227
227
  declare const hcApi: {
228
228
  auth: {
@@ -1,4 +1,20 @@
1
- import { AuditTrailEntry } from './jobFeed';
1
+ import { AuditTrailEntry } from "./jobFeed";
2
+ export type MultipleFieldConfig = {
3
+ fields: string[];
4
+ separator: string;
5
+ prefix?: string;
6
+ suffix?: string;
7
+ };
8
+ export type ConditionalRule = {
9
+ field: string;
10
+ operator: "equals" | "contains" | "not_equals";
11
+ value: string;
12
+ result: string;
13
+ };
14
+ export type ConditionalConfig = {
15
+ conditions: ConditionalRule[];
16
+ defaultValue?: string;
17
+ };
2
18
  export type JobFeedFieldMapping = {
3
19
  id: string;
4
20
  companyId: string;
@@ -7,7 +23,13 @@ export type JobFeedFieldMapping = {
7
23
  internalField?: string;
8
24
  transformationRule?: string;
9
25
  active: boolean;
10
- status?: string;
26
+ mappingType: "single" | "multiple" | "conditional" | "default" | "custom";
27
+ multipleFieldConfig?: MultipleFieldConfig;
28
+ conditionalConfig?: ConditionalConfig;
29
+ defaultValue?: string;
30
+ customMapping: boolean;
31
+ fieldSelectionMode: "existing" | "custom";
32
+ status: string;
11
33
  createdAt: string;
12
34
  updatedAt: string;
13
35
  auditTrail?: AuditTrailEntry[];
package/index.ts CHANGED
@@ -60,7 +60,11 @@ import ContentEntry from "./types/content/contentEntry";
60
60
  import Blog from "./types/blog";
61
61
  import CategoryListDto, { AddValueRequest } from "./types/categoryList";
62
62
  import JobFeed from "./types/jobFeed";
63
- import JobFeedFieldMapping from "./types/jobFeedFieldMapping";
63
+ import JobFeedFieldMapping, {
64
+ MultipleFieldConfig,
65
+ ConditionalConfig,
66
+ ConditionalRule,
67
+ } from "./types/jobFeedFieldMapping";
64
68
  import JobListingSettings, {
65
69
  FeedHandlingOption,
66
70
  } from "./types/jobListingSettings";
@@ -301,6 +305,9 @@ export type {
301
305
  AddValueRequest,
302
306
  JobFeed,
303
307
  JobFeedFieldMapping,
308
+ MultipleFieldConfig,
309
+ ConditionalConfig,
310
+ ConditionalRule,
304
311
  JobListingSettings,
305
312
  ListingEntityDto,
306
313
  RecruiterDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abcagency/hire-control-sdk",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,14 +1,53 @@
1
- import { AuditTrailEntry } from './jobFeed';
1
+ import { AuditTrailEntry } from "./jobFeed";
2
+
3
+ export type MultipleFieldConfig = {
4
+ fields: string[];
5
+ separator: string;
6
+ prefix?: string;
7
+ suffix?: string;
8
+ };
9
+
10
+ export type ConditionalRule = {
11
+ field: string;
12
+ operator: "equals" | "contains" | "not_equals";
13
+ value: string;
14
+ result: string;
15
+ };
16
+
17
+ export type ConditionalConfig = {
18
+ conditions: ConditionalRule[];
19
+ defaultValue?: string;
20
+ };
2
21
 
3
22
  export type JobFeedFieldMapping = {
4
23
  id: string;
5
24
  companyId: string;
6
25
  feedId: string;
26
+
27
+ // Basic field mapping
7
28
  externalField?: string;
8
29
  internalField?: string;
9
30
  transformationRule?: string;
10
31
  active: boolean;
11
- status?: string;
32
+
33
+ // Extended mapping configuration
34
+ mappingType: "single" | "multiple" | "conditional" | "default" | "custom";
35
+
36
+ // Multiple field configuration
37
+ multipleFieldConfig?: MultipleFieldConfig;
38
+
39
+ // Conditional configuration
40
+ conditionalConfig?: ConditionalConfig;
41
+
42
+ // Default value configuration
43
+ defaultValue?: string;
44
+
45
+ // Custom field configuration
46
+ customMapping: boolean;
47
+ fieldSelectionMode: "existing" | "custom";
48
+
49
+ // Metadata
50
+ status: string;
12
51
  createdAt: string;
13
52
  updatedAt: string;
14
53
  auditTrail?: AuditTrailEntry[];