@wildix/wda-history-client 1.0.32 → 1.0.34

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,27 @@ 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
+ 'tags': smithy_client_1._json,
398
+ 'to': smithy_client_1.serializeDateTime,
399
+ });
400
+ };
401
+ const se_QueryUserCallsFilter = (input, context) => {
402
+ return (0, smithy_client_1.take)(input, {
403
+ 'direction': [],
404
+ 'flags': smithy_client_1._json,
405
+ 'from': smithy_client_1.serializeDateTime,
406
+ 'status': [],
407
+ 'tags': smithy_client_1._json,
408
+ 'to': smithy_client_1.serializeDateTime,
409
+ 'userDirection': [],
410
+ });
411
+ };
391
412
  const deserializeMetadata = (output) => ({
392
413
  httpStatusCode: output.statusCode,
393
414
  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,27 @@ 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
+ 'tags': _json,
379
+ 'to': __serializeDateTime,
380
+ });
381
+ };
382
+ const se_QueryUserCallsFilter = (input, context) => {
383
+ return take(input, {
384
+ 'direction': [],
385
+ 'flags': _json,
386
+ 'from': __serializeDateTime,
387
+ 'status': [],
388
+ 'tags': _json,
389
+ 'to': __serializeDateTime,
390
+ 'userDirection': [],
391
+ });
392
+ };
372
393
  const deserializeMetadata = (output) => ({
373
394
  httpStatusCode: output.statusCode,
374
395
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -45,6 +45,11 @@ 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"),
50
+ * tags: [ // TagList
51
+ * "STRING_VALUE",
52
+ * ],
48
53
  * },
49
54
  * };
50
55
  * const command = new QueryConversationsCommand(input);
@@ -45,6 +45,11 @@ 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"),
50
+ * tags: [ // TagList
51
+ * "STRING_VALUE",
52
+ * ],
48
53
  * userDirection: "INCOMING" || "OUTGOING",
49
54
  * },
50
55
  * };
@@ -817,6 +817,9 @@ 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;
822
+ tags?: (string)[] | undefined;
820
823
  }
821
824
  /**
822
825
  * @public
@@ -869,6 +872,9 @@ export interface QueryUserCallsFilter {
869
872
  direction?: ConversationDirection | undefined;
870
873
  flags?: (ConversationFlag)[] | undefined;
871
874
  status?: ConversationStatus | undefined;
875
+ from?: Date | undefined;
876
+ to?: Date | undefined;
877
+ tags?: (string)[] | undefined;
872
878
  userDirection?: ConversationUserDirection | undefined;
873
879
  }
874
880
  /**
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.34",
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",