@dereekb/zoho 13.0.6 → 13.1.0
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/index.cjs.js +2164 -231
- package/index.esm.js +2143 -232
- package/nestjs/LICENSE +21 -0
- package/nestjs/README.md +11 -0
- package/nestjs/docs/configuration.md +165 -0
- package/nestjs/docs/crm-getting-started.md +296 -0
- package/nestjs/index.cjs.js +651 -15
- package/nestjs/index.esm.js +645 -17
- package/nestjs/package.json +3 -3
- package/nestjs/src/lib/accounts/accounts.api.d.ts +1 -1
- package/nestjs/src/lib/accounts/accounts.service.d.ts +2 -2
- package/nestjs/src/lib/crm/crm.api.d.ts +47 -1
- package/nestjs/src/lib/crm/crm.config.d.ts +16 -1
- package/nestjs/src/lib/crm/crm.module.d.ts +77 -8
- package/nestjs/src/lib/index.d.ts +2 -0
- package/nestjs/src/lib/recruit/recruit.api.d.ts +51 -1
- package/nestjs/src/lib/recruit/recruit.config.d.ts +16 -1
- package/nestjs/src/lib/recruit/recruit.module.d.ts +77 -8
- package/nestjs/src/lib/sign/index.d.ts +3 -0
- package/nestjs/src/lib/sign/sign.api.d.ts +54 -0
- package/nestjs/src/lib/sign/sign.config.d.ts +10 -0
- package/nestjs/src/lib/sign/sign.module.d.ts +94 -0
- package/package.json +2 -2
- package/src/lib/accounts/accounts.api.d.ts +149 -3
- package/src/lib/accounts/accounts.factory.d.ts +73 -6
- package/src/lib/crm/crm.api.d.ts +599 -62
- package/src/lib/crm/crm.api.notes.d.ts +46 -3
- package/src/lib/crm/crm.api.tags.d.ts +65 -2
- package/src/lib/crm/crm.config.d.ts +30 -0
- package/src/lib/crm/crm.criteria.d.ts +60 -3
- package/src/lib/crm/crm.error.api.d.ts +42 -0
- package/src/lib/crm/crm.factory.d.ts +39 -3
- package/src/lib/crm/crm.notes.d.ts +36 -0
- package/src/lib/crm/crm.tags.d.ts +3 -0
- package/src/lib/index.d.ts +1 -0
- package/src/lib/recruit/recruit.api.candidates.d.ts +44 -3
- package/src/lib/recruit/recruit.api.d.ts +719 -57
- package/src/lib/recruit/recruit.api.notes.d.ts +140 -0
- package/src/lib/recruit/recruit.api.tags.d.ts +122 -14
- package/src/lib/recruit/recruit.config.d.ts +30 -0
- package/src/lib/recruit/recruit.criteria.d.ts +55 -3
- package/src/lib/recruit/recruit.error.api.d.ts +39 -0
- package/src/lib/recruit/recruit.factory.d.ts +39 -3
- package/src/lib/recruit/recruit.notes.d.ts +21 -0
- package/src/lib/recruit/recruit.tags.d.ts +3 -0
- package/src/lib/shared/criteria.d.ts +95 -11
- package/src/lib/shared/criteria.util.d.ts +19 -4
- package/src/lib/sign/index.d.ts +6 -0
- package/src/lib/sign/sign.api.d.ts +397 -0
- package/src/lib/sign/sign.api.page.d.ts +109 -0
- package/src/lib/sign/sign.config.d.ts +24 -0
- package/src/lib/sign/sign.d.ts +225 -0
- package/src/lib/sign/sign.error.api.d.ts +7 -0
- package/src/lib/sign/sign.factory.d.ts +58 -0
- package/src/lib/zoho.api.page.d.ts +41 -10
- package/src/lib/zoho.config.d.ts +24 -9
- package/src/lib/zoho.limit.d.ts +41 -9
- package/src/lib/zoho.type.d.ts +24 -8
package/src/lib/zoho.type.d.ts
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
1
|
import { type Maybe, type MaybeNot } from '@dereekb/util';
|
|
2
|
+
/**
|
|
3
|
+
* Base marker interface for Zoho data models.
|
|
4
|
+
*/
|
|
2
5
|
export interface ZohoModel {
|
|
3
6
|
}
|
|
4
7
|
/**
|
|
5
|
-
*
|
|
8
|
+
* Zoho's date-time string format, similar to ISO 8601 but with milliseconds removed.
|
|
6
9
|
*
|
|
7
|
-
* yyyy-MM-ddTHH:mm:ss±HH:mm
|
|
10
|
+
* Format: `yyyy-MM-ddTHH:mm:ss±HH:mm`
|
|
8
11
|
*
|
|
9
|
-
*
|
|
10
|
-
* 2019-05-02T11:17:
|
|
11
|
-
* 2019-05-02T11:17:33+00:00
|
|
12
|
+
* @example `'2019-05-02T11:17:33Z'`
|
|
13
|
+
* @example `'2019-05-02T11:17:33+00:00'`
|
|
12
14
|
*/
|
|
13
15
|
export type ZohoDateTimeString = string;
|
|
16
|
+
/**
|
|
17
|
+
* Null-safe version of {@link zohoDateTimeString}. Returns the converted string
|
|
18
|
+
* when a {@link Date} is provided, or passes through `null`/`undefined` as-is.
|
|
19
|
+
*
|
|
20
|
+
* @param date - Date to convert, or nullish value
|
|
21
|
+
* @returns Zoho-formatted date-time string, or the original nullish value
|
|
22
|
+
*/
|
|
14
23
|
export declare function safeZohoDateTimeString(date: Date): ZohoDateTimeString;
|
|
15
24
|
export declare function safeZohoDateTimeString(date: MaybeNot): MaybeNot;
|
|
16
25
|
export declare function safeZohoDateTimeString(date: Maybe<Date>): Maybe<ZohoDateTimeString>;
|
|
17
26
|
/**
|
|
18
|
-
* Converts
|
|
27
|
+
* Converts a {@link Date} to a {@link ZohoDateTimeString} by stripping milliseconds
|
|
28
|
+
* from the ISO 8601 representation.
|
|
29
|
+
*
|
|
30
|
+
* @param date - Date to convert
|
|
31
|
+
* @returns Zoho-formatted date-time string (e.g. `'2019-05-02T11:17:33Z'`)
|
|
19
32
|
*
|
|
20
|
-
* @
|
|
21
|
-
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* zohoDateTimeString(new Date('2019-05-02T11:17:33.000Z'));
|
|
36
|
+
* // => '2019-05-02T11:17:33Z'
|
|
37
|
+
* ```
|
|
22
38
|
*/
|
|
23
39
|
export declare function zohoDateTimeString(date: Date): ZohoDateTimeString;
|