@dereekb/zoho 11.0.11 → 11.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
- ## [11.0.11](https://github.com/dereekb/dbx-components/compare/v11.0.10-dev...v11.0.11) (2024-11-24)
5
+ ## [11.0.12](https://github.com/dereekb/dbx-components/compare/v11.0.11-dev...v11.0.12) (2024-11-24)
6
6
 
7
7
 
8
8
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/zoho/nestjs",
3
- "version": "11.0.11",
3
+ "version": "11.0.12",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js"
6
6
  }
@@ -8,7 +8,7 @@ export declare class ZohoRecruitApi {
8
8
  get recruitContext(): ZohoRecruitContext;
9
9
  constructor(config: ZohoRecruitServiceConfig, zohoAccountsApi: ZohoAccountsApi);
10
10
  get insertRecord(): import("@dereekb/zoho").ZohoRecruitCreateRecordLikeFunction;
11
- get upsertRecord(): import("@dereekb/zoho").ZohoRecruitUpsertRecordFunction;
11
+ get upsertRecord(): import("@dereekb/zoho").ZohoRecruitUpsertRecordLikeFunction;
12
12
  get updateRecord(): import("@dereekb/zoho").ZohoRecruitUpdateRecordLikeFunction;
13
13
  get getRecordById(): import("@dereekb/zoho").ZohoRecruitGetRecordByIdFunction;
14
14
  get getRecords(): import("@dereekb/zoho").ZohoRecruitGetRecordsFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/zoho",
3
- "version": "11.0.11",
3
+ "version": "11.0.12",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -27,6 +27,16 @@ export interface ZohoRecruitUpdateMultiRecordInput<T> extends ZohoRecruitModuleN
27
27
  export type ZohoRecruitUpdateRecordLikeFunction = ZohoRecruitUpdateMultiRecordFunction & ZohoRecruitUpdateSingleRecordFunction;
28
28
  export type ZohoRecruitUpdateMultiRecordFunction = <T>(input: ZohoRecruitUpdateMultiRecordInput<T>) => Promise<ZohoRecruitUpdateRecordResult<T>>;
29
29
  export type ZohoRecruitUpdateSingleRecordFunction = <T>(input: ZohoRecruitUpdateSingleRecordInput<T>) => Promise<ZohoRecruitChangeObjectDetails>;
30
+ export type ZohoRecruitUpsertRecordData<T> = ZohoRecruitCreateRecordData<T> | ZohoRecruitUpdateRecordData<T>;
31
+ export interface ZohoRecruitUpsertSingleRecordInput<T> extends ZohoRecruitModuleNameRef {
32
+ readonly data: ZohoRecruitUpsertRecordData<T>;
33
+ }
34
+ export interface ZohoRecruitUpsertMultiRecordInput<T> extends ZohoRecruitModuleNameRef {
35
+ readonly data: ZohoRecruitUpsertRecordData<T>[];
36
+ }
37
+ export type ZohoRecruitUpsertRecordLikeFunction = ZohoRecruitUpsertMultiRecordFunction & ZohoRecruitUpsertSingleRecordFunction;
38
+ export type ZohoRecruitUpsertMultiRecordFunction = <T>(input: ZohoRecruitUpsertMultiRecordInput<T>) => Promise<ZohoRecruitUpdateRecordResult<T>>;
39
+ export type ZohoRecruitUpsertSingleRecordFunction = <T>(input: ZohoRecruitUpsertSingleRecordInput<T>) => Promise<ZohoRecruitChangeObjectDetails>;
30
40
  export type ZohoRecruitInsertRecordFunction = ZohoRecruitCreateRecordLikeFunction;
31
41
  /**
32
42
  * Inserts one or more records into Recruit.
@@ -40,7 +50,7 @@ export declare function insertRecord(context: ZohoRecruitContext): ZohoRecruitIn
40
50
  /**
41
51
  * Upsert function that can do either an insert or and update ased on the input.
42
52
  */
43
- export type ZohoRecruitUpsertRecordFunction = ZohoRecruitCreateRecordLikeFunction & ZohoRecruitUpdateRecordLikeFunction;
53
+ export type ZohoRecruitUpsertRecordFunction = ZohoRecruitUpsertRecordLikeFunction;
44
54
  /**
45
55
  * Updates or inserts one or more records in Recruit.
46
56
  *