@or-sdk/contacts 3.2.2-beta.1769.0 → 3.2.2-beta.1771.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/dist/cjs/types.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/types/types.d.ts +3 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types.ts +11 -2
package/dist/cjs/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AASA,+DAA6C;AAM7C,qCAA+E;AAAtE,sGAAA,cAAc,OAAA"}
|
package/dist/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AASA,cAAc,8BAA8B,CAAC;AAM7C,OAAO,EAAE,cAAc,EAAmC,MAAM,cAAc,CAAC"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { Token } from '@or-sdk/base';
|
|
|
2
2
|
import { ContactBookParamsDto, ListApiParams, OrderParams, DeleteContactMultiParamsDto, BatchProcessStatus } from '@onereach/types-contacts-api';
|
|
3
3
|
import { OrderOptions, PaginationOptions } from '@or-sdk/base';
|
|
4
4
|
export * from '@onereach/types-contacts-api';
|
|
5
|
+
declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
6
|
+
declare type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
5
7
|
export { OrderDirection, PaginationOptions, OrderOptions } from '@or-sdk/base';
|
|
6
8
|
export declare type ContactsConfig = {
|
|
7
9
|
token: Token;
|
|
@@ -13,7 +15,7 @@ export interface ContactBookParams extends AdaptedListParams<ContactBookParamsDt
|
|
|
13
15
|
orderProperty?: 'label' | 'created_at' | 'updated_at';
|
|
14
16
|
}
|
|
15
17
|
export declare type AdaptedListParams<T extends ListApiParams & OrderParams> = Omit<T, 'order' | 'skip' | 'take'> & Partial<PaginationOptions & OrderOptions>;
|
|
16
|
-
export declare type DeleteContactsData = DeleteContactMultiParamsDto & {
|
|
18
|
+
export declare type DeleteContactsData = PartialBy<DeleteContactMultiParamsDto, 'ids'> & {
|
|
17
19
|
all?: boolean;
|
|
18
20
|
};
|
|
19
21
|
export declare type TrackBatchProcessResponse = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC/D,cAAc,8BAA8B,CAAC;AAE7C,aAAK,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/D,aAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE/E,oBAAY,cAAc,GAAG;IAI3B,KAAK,EAAE,KAAK,CAAC;IAIb,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAGF,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,CAAC,oBAAoB,CAAC;IAChF,aAAa,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,YAAY,CAAC;CACvD;AAED,oBAAY,iBAAiB,CAAC,CAAC,SAAS,aAAa,GAAG,WAAW,IACjE,IAAI,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,OAAO,CAAC,iBAAiB,GAAG,YAAY,CAAC,CAAC;AAEjF,oBAAY,kBAAkB,GAAG,SAAS,CAAC,2BAA2B,EAAE,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,OAAO,CAAC;CAAC,CAAC;AAEnG,oBAAY,yBAAyB,GAAG;IACtC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC"}
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { Token } from '@or-sdk/base';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ContactBookParamsDto,
|
|
4
|
+
ListApiParams,
|
|
5
|
+
OrderParams,
|
|
6
|
+
DeleteContactMultiParamsDto,
|
|
7
|
+
BatchProcessStatus,
|
|
8
|
+
} from '@onereach/types-contacts-api';
|
|
3
9
|
import { OrderOptions, PaginationOptions } from '@or-sdk/base';
|
|
4
10
|
export * from '@onereach/types-contacts-api';
|
|
5
11
|
|
|
12
|
+
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
13
|
+
type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
14
|
+
|
|
6
15
|
//re-export types
|
|
7
16
|
export { OrderDirection, PaginationOptions, OrderOptions } from '@or-sdk/base';
|
|
8
17
|
|
|
@@ -31,7 +40,7 @@ export interface ContactBookParams extends AdaptedListParams<ContactBookParamsDt
|
|
|
31
40
|
export type AdaptedListParams<T extends ListApiParams & OrderParams> =
|
|
32
41
|
Omit<T, 'order' | 'skip' | 'take'> & Partial<PaginationOptions & OrderOptions>;
|
|
33
42
|
|
|
34
|
-
export type DeleteContactsData = DeleteContactMultiParamsDto & { all?: boolean;};
|
|
43
|
+
export type DeleteContactsData = PartialBy<DeleteContactMultiParamsDto, 'ids'> & { all?: boolean;};
|
|
35
44
|
|
|
36
45
|
export type TrackBatchProcessResponse = {
|
|
37
46
|
status: BatchProcessStatus;
|