@wildix/wda-history-client 1.0.32 → 1.0.33

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.
@@ -117,7 +117,7 @@ const se_QueryConversationsCommand = async (input, context) => {
117
117
  });
118
118
  let body;
119
119
  body = JSON.stringify((0, smithy_client_1.take)(input, {
120
- 'filter': _ => (0, smithy_client_1._json)(_),
120
+ 'filter': _ => se_QueryConversationsFilter(_, context),
121
121
  'limit': [],
122
122
  'offset': [],
123
123
  }));
@@ -140,7 +140,7 @@ const se_QueryUserCallsCommand = async (input, context) => {
140
140
  });
141
141
  let body;
142
142
  body = JSON.stringify((0, smithy_client_1.take)(input, {
143
- 'filter': _ => (0, smithy_client_1._json)(_),
143
+ 'filter': _ => se_QueryUserCallsFilter(_, context),
144
144
  'limit': [],
145
145
  'offset': [],
146
146
  }));
@@ -388,6 +388,25 @@ const de_ConferenceTranscriptionNotFoundExceptionRes = async (parsedOutput, cont
388
388
  });
389
389
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
390
390
  };
391
+ const se_QueryConversationsFilter = (input, context) => {
392
+ return (0, smithy_client_1.take)(input, {
393
+ 'direction': [],
394
+ 'flags': smithy_client_1._json,
395
+ 'from': smithy_client_1.serializeDateTime,
396
+ 'status': [],
397
+ 'to': smithy_client_1.serializeDateTime,
398
+ });
399
+ };
400
+ const se_QueryUserCallsFilter = (input, context) => {
401
+ return (0, smithy_client_1.take)(input, {
402
+ 'direction': [],
403
+ 'flags': smithy_client_1._json,
404
+ 'from': smithy_client_1.serializeDateTime,
405
+ 'status': [],
406
+ 'to': smithy_client_1.serializeDateTime,
407
+ 'userDirection': [],
408
+ });
409
+ };
391
410
  const deserializeMetadata = (output) => ({
392
411
  httpStatusCode: output.statusCode,
393
412
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -2,7 +2,7 @@ import { WdaHistoryServiceException as __BaseException } from "../models/WdaHist
2
2
  import { CallNotFoundException, CallTranscriptionNotFoundException, ConferenceNotFoundException, ConferenceTranscriptionNotFoundException, ForbiddenException, ValidationException, } from "../models/models_0";
3
3
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, serializeDateTime as __serializeDateTime, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
6
6
  export const se_GetCallCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {};
@@ -108,7 +108,7 @@ export const se_QueryConversationsCommand = async (input, context) => {
108
108
  });
109
109
  let body;
110
110
  body = JSON.stringify(take(input, {
111
- 'filter': _ => _json(_),
111
+ 'filter': _ => se_QueryConversationsFilter(_, context),
112
112
  'limit': [],
113
113
  'offset': [],
114
114
  }));
@@ -130,7 +130,7 @@ export const se_QueryUserCallsCommand = async (input, context) => {
130
130
  });
131
131
  let body;
132
132
  body = JSON.stringify(take(input, {
133
- 'filter': _ => _json(_),
133
+ 'filter': _ => se_QueryUserCallsFilter(_, context),
134
134
  'limit': [],
135
135
  'offset': [],
136
136
  }));
@@ -369,6 +369,25 @@ const de_ConferenceTranscriptionNotFoundExceptionRes = async (parsedOutput, cont
369
369
  });
370
370
  return __decorateServiceException(exception, parsedOutput.body);
371
371
  };
372
+ const se_QueryConversationsFilter = (input, context) => {
373
+ return take(input, {
374
+ 'direction': [],
375
+ 'flags': _json,
376
+ 'from': __serializeDateTime,
377
+ 'status': [],
378
+ 'to': __serializeDateTime,
379
+ });
380
+ };
381
+ const se_QueryUserCallsFilter = (input, context) => {
382
+ return take(input, {
383
+ 'direction': [],
384
+ 'flags': _json,
385
+ 'from': __serializeDateTime,
386
+ 'status': [],
387
+ 'to': __serializeDateTime,
388
+ 'userDirection': [],
389
+ });
390
+ };
372
391
  const deserializeMetadata = (output) => ({
373
392
  httpStatusCode: output.statusCode,
374
393
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -45,6 +45,8 @@ declare const QueryConversationsCommand_base: {
45
45
  * "FAX" || "VOICEMAIL",
46
46
  * ],
47
47
  * status: "COMPLETED" || "MISSED",
48
+ * from: new Date("TIMESTAMP"),
49
+ * to: new Date("TIMESTAMP"),
48
50
  * },
49
51
  * };
50
52
  * const command = new QueryConversationsCommand(input);
@@ -45,6 +45,8 @@ declare const QueryUserCallsCommand_base: {
45
45
  * "FAX" || "VOICEMAIL",
46
46
  * ],
47
47
  * status: "COMPLETED" || "MISSED",
48
+ * from: new Date("TIMESTAMP"),
49
+ * to: new Date("TIMESTAMP"),
48
50
  * userDirection: "INCOMING" || "OUTGOING",
49
51
  * },
50
52
  * };
@@ -817,6 +817,8 @@ export interface QueryConversationsFilter {
817
817
  direction?: ConversationDirection | undefined;
818
818
  flags?: (ConversationFlag)[] | undefined;
819
819
  status?: ConversationStatus | undefined;
820
+ from?: Date | undefined;
821
+ to?: Date | undefined;
820
822
  }
821
823
  /**
822
824
  * @public
@@ -869,6 +871,8 @@ export interface QueryUserCallsFilter {
869
871
  direction?: ConversationDirection | undefined;
870
872
  flags?: (ConversationFlag)[] | undefined;
871
873
  status?: ConversationStatus | undefined;
874
+ from?: Date | undefined;
875
+ to?: Date | undefined;
872
876
  userDirection?: ConversationUserDirection | undefined;
873
877
  }
874
878
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-history-client",
3
3
  "description": "@wildix/wda-history-client client",
4
- "version": "1.0.32",
4
+ "version": "1.0.33",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",