@whitewall/blip-warehouse 0.0.5 → 0.0.7

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.
@@ -24,6 +24,8 @@ export interface CreateTokenResponse {
24
24
  export interface HistoricalIngestRequest {
25
25
  accessKey: string;
26
26
  tenantId: string;
27
+ startDate: Date | string;
28
+ endDate: Date | string;
27
29
  }
28
30
  export interface HistoricalIngestProgressEvent {
29
31
  contactsProcessed: number;
package/dist/cjs/index.js CHANGED
@@ -51,7 +51,11 @@ var BlipWarehouseClient = class {
51
51
  "Content-Type": "application/json",
52
52
  Authorization: `Bearer ${this.token}`
53
53
  },
54
- body: JSON.stringify(request),
54
+ body: JSON.stringify({
55
+ ...request,
56
+ startDate: request.startDate instanceof Date ? request.startDate.toISOString() : request.startDate,
57
+ endDate: request.endDate instanceof Date ? request.endDate.toISOString() : request.endDate
58
+ }),
55
59
  dispatcher
56
60
  });
57
61
  if (!response.ok) {
package/dist/esm/index.js CHANGED
@@ -51,7 +51,11 @@ var BlipWarehouseClient = class {
51
51
  "Content-Type": "application/json",
52
52
  Authorization: `Bearer ${this.token}`
53
53
  },
54
- body: JSON.stringify(request),
54
+ body: JSON.stringify({
55
+ ...request,
56
+ startDate: request.startDate instanceof Date ? request.startDate.toISOString() : request.startDate,
57
+ endDate: request.endDate instanceof Date ? request.endDate.toISOString() : request.endDate
58
+ }),
55
59
  dispatcher
56
60
  });
57
61
  if (!response.ok) {
@@ -22,7 +22,6 @@ export type SearchResult = {
22
22
  index: keyof SearchResultTypes;
23
23
  data: SearchResultTypes[keyof SearchResultTypes];
24
24
  }>;
25
- total: number;
26
25
  cursor?: PaginationCursor;
27
26
  };
28
27
  export type SearchParams = {
@@ -41,7 +40,6 @@ export type MessageRow = {
41
40
  };
42
41
  export type MessagesByIdentityResult = {
43
42
  items: Array<MessageRow>;
44
- total: number;
45
43
  cursor?: PaginationCursor;
46
44
  };
47
45
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitewall/blip-warehouse",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "exports": {
5
5
  "import": "./dist/esm/index.js",
6
6
  "require": "./dist/cjs/index.js",