@or-sdk/contacts 1.10.2-beta.930.0 → 1.10.2-beta.933.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 CHANGED
@@ -14,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.OrderDirection = void 0;
17
18
  __exportStar(require("@onereach/types-contacts-api"), exports);
19
+ var base_1 = require("@or-sdk/base");
20
+ Object.defineProperty(exports, "OrderDirection", { enumerable: true, get: function () { return base_1.OrderDirection; } });
18
21
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,+DAA6C"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,+DAA6C;AAK7C,qCAA+E;AAAtE,sGAAA,cAAc,OAAA"}
package/dist/esm/types.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from '@onereach/types-contacts-api';
2
+ export { OrderDirection } from '@or-sdk/base';
2
3
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AACA,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AACA,cAAc,8BAA8B,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAmC,MAAM,cAAc,CAAC"}
@@ -2,16 +2,17 @@ import { Token } from '@or-sdk/base';
2
2
  export * from '@onereach/types-contacts-api';
3
3
  import { ContactBookParamsDto, ContactSearchParamsDto, ListApiParams, OrderParams } from '@onereach/types-contacts-api';
4
4
  import { OrderOptions, PaginationOptions } from '@or-sdk/base';
5
+ export { OrderDirection, PaginationOptions, OrderOptions } from '@or-sdk/base';
5
6
  export declare type ContactsConfig = {
6
7
  token: Token;
7
8
  discoveryUrl?: string;
8
9
  contactsApiUrl?: string;
9
10
  };
10
11
  export interface ContactBookParams extends AdaptedListParams<ContactBookParamsDto> {
11
- orderProperty: 'label' | 'created_at' | 'updated_at';
12
+ orderProperty?: 'label' | 'created_at' | 'updated_at';
12
13
  }
13
14
  export interface ContactSearchParams extends AdaptedListParams<ContactSearchParamsDto> {
14
- orderProperty: string | 'created_at' | 'updated_at';
15
+ orderProperty?: string | 'created_at' | 'updated_at';
15
16
  }
16
17
  export declare type AdaptedListParams<T extends ListApiParams & OrderParams> = Omit<T, 'order' | 'skip' | 'take'> & Partial<PaginationOptions & OrderOptions>;
17
18
  //# sourceMappingURL=types.d.ts.map
@@ -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,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,oBAAY,cAAc,GAAG;IAI3B,KAAK,EAAE,KAAK,CAAC;IAIb,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAGF,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,CAAC,oBAAoB,CAAC;IAChF,aAAa,EAAE,OAAO,GAAG,YAAY,GAAG,YAAY,CAAC;CACtD;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB,CAAC,sBAAsB,CAAC;IACpF,aAAa,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;CACrD;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"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAG/D,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;CACzB,CAAC;AAGF,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,CAAC,oBAAoB,CAAC;IAChF,aAAa,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,YAAY,CAAC;CACvD;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB,CAAC,sBAAsB,CAAC;IACpF,aAAa,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;CACtD;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"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.10.2-beta.930.0",
2
+ "version": "1.10.2-beta.933.0",
3
3
  "name": "@or-sdk/contacts",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
package/src/types.ts CHANGED
@@ -3,6 +3,9 @@ export * from '@onereach/types-contacts-api';
3
3
  import { ContactBookParamsDto, ContactSearchParamsDto, ListApiParams, OrderParams } from '@onereach/types-contacts-api';
4
4
  import { OrderOptions, PaginationOptions } from '@or-sdk/base';
5
5
 
6
+ //re-export types
7
+ export { OrderDirection, PaginationOptions, OrderOptions } from '@or-sdk/base';
8
+
6
9
  export type ContactsConfig = {
7
10
  /**
8
11
  * token
@@ -20,11 +23,11 @@ export type ContactsConfig = {
20
23
 
21
24
 
22
25
  export interface ContactBookParams extends AdaptedListParams<ContactBookParamsDto> {
23
- orderProperty: 'label' | 'created_at' | 'updated_at';
26
+ orderProperty?: 'label' | 'created_at' | 'updated_at';
24
27
  }
25
28
 
26
29
  export interface ContactSearchParams extends AdaptedListParams<ContactSearchParamsDto> {
27
- orderProperty: string | 'created_at' | 'updated_at';
30
+ orderProperty?: string | 'created_at' | 'updated_at';
28
31
  }
29
32
 
30
33
  export type AdaptedListParams<T extends ListApiParams & OrderParams> =