@abcagency/hire-control-sdk 1.1.30 → 1.1.31

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.
@@ -92,12 +92,14 @@ export type ContentModuleSyncPreview = {
92
92
  sourceKey: string;
93
93
  displayName: string;
94
94
  sourceExists: boolean;
95
+ differences?: ContentModuleFieldDifference[];
95
96
  }>;
96
97
  staleEntries: Array<{
97
98
  entryId: string;
98
99
  sourceKey: string;
99
100
  displayName: string;
100
101
  sourceExists: boolean;
102
+ differences?: ContentModuleFieldDifference[];
101
103
  }>;
102
104
  unboundEntries: Array<{
103
105
  entryId: string;
@@ -107,6 +109,11 @@ export type ContentModuleSyncPreview = {
107
109
  matchReason: string;
108
110
  }>;
109
111
  };
112
+ export type ContentModuleFieldDifference = {
113
+ targetField: string;
114
+ sourcePath: string;
115
+ kind: "value" | "richText" | "media" | "displayName" | "repeater" | "slug" | string;
116
+ };
110
117
  export type ContentModuleSyncExecuteRequest = {
111
118
  mode?: "connect-existing" | "create-missing" | "sync-existing" | "full";
112
119
  sourceKeys?: string[];
@@ -11,6 +11,7 @@ export type ListingEntityCustomFieldDefinition = {
11
11
  label: string;
12
12
  type: ListingEntityCustomFieldType;
13
13
  required?: boolean;
14
+ allowMultiple?: boolean;
14
15
  };
15
16
  export type ListingEntityFieldCollection = {
16
17
  id: string;
@@ -1,6 +1,8 @@
1
1
  import { Address } from "./company";
2
2
  import ListingEntityMedia from "./listingEntityMedia";
3
- export type ListingEntityCustomFieldValues = Record<string, Array<Record<string, string | null>>>;
3
+ export type ListingEntityCustomFieldValue = string | null | Array<string | null>;
4
+ export type ListingEntityCustomFieldObject = Record<string, ListingEntityCustomFieldValue>;
5
+ export type ListingEntityCustomFieldValues = Record<string, ListingEntityCustomFieldObject | ListingEntityCustomFieldObject[] | null>;
4
6
  export type mongoListingEntity = {
5
7
  id: string;
6
8
  listingId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abcagency/hire-control-sdk",
3
- "version": "1.1.30",
3
+ "version": "1.1.31",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -103,12 +103,14 @@ export type ContentModuleSyncPreview = {
103
103
  sourceKey: string;
104
104
  displayName: string;
105
105
  sourceExists: boolean;
106
+ differences?: ContentModuleFieldDifference[];
106
107
  }>;
107
108
  staleEntries: Array<{
108
109
  entryId: string;
109
110
  sourceKey: string;
110
111
  displayName: string;
111
112
  sourceExists: boolean;
113
+ differences?: ContentModuleFieldDifference[];
112
114
  }>;
113
115
  unboundEntries: Array<{
114
116
  entryId: string;
@@ -119,6 +121,12 @@ export type ContentModuleSyncPreview = {
119
121
  }>;
120
122
  };
121
123
 
124
+ export type ContentModuleFieldDifference = {
125
+ targetField: string;
126
+ sourcePath: string;
127
+ kind: "value" | "richText" | "media" | "displayName" | "repeater" | "slug" | string;
128
+ };
129
+
122
130
  export type ContentModuleSyncExecuteRequest = {
123
131
  mode?: "connect-existing" | "create-missing" | "sync-existing" | "full";
124
132
  sourceKeys?: string[];
@@ -22,6 +22,7 @@ export type ListingEntityCustomFieldDefinition = {
22
22
  label: string;
23
23
  type: ListingEntityCustomFieldType;
24
24
  required?: boolean;
25
+ allowMultiple?: boolean;
25
26
  };
26
27
 
27
28
  export type ListingEntityFieldCollection = {
@@ -1,9 +1,17 @@
1
1
  import { Address } from "./company";
2
2
  import ListingEntityMedia from "./listingEntityMedia";
3
3
 
4
+ export type ListingEntityCustomFieldValue =
5
+ string | null | Array<string | null>;
6
+
7
+ export type ListingEntityCustomFieldObject = Record<
8
+ string,
9
+ ListingEntityCustomFieldValue
10
+ >;
11
+
4
12
  export type ListingEntityCustomFieldValues = Record<
5
13
  string,
6
- Array<Record<string, string | null>>
14
+ ListingEntityCustomFieldObject | ListingEntityCustomFieldObject[] | null
7
15
  >;
8
16
 
9
17
  export type mongoListingEntity = {