@wildix/xbees-users-client 1.0.16 → 1.0.18

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.
@@ -148,16 +148,15 @@ const se_GetBotCallbackCommand = async (input, context) => {
148
148
  exports.se_GetBotCallbackCommand = se_GetBotCallbackCommand;
149
149
  const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
150
150
  const b = (0, core_1.requestBuilder)(input, context);
151
- const headers = {
152
- 'content-type': 'application/json',
153
- };
154
- b.bp("/v1/users/GetUserPbxLinkSuggestion");
151
+ const headers = {};
152
+ b.bp("/v2/users/GetUserPbxLinkSuggestion");
153
+ const query = (0, smithy_client_1.map)({
154
+ [_e]: [, input[_e]],
155
+ });
155
156
  let body;
156
- body = JSON.stringify((0, smithy_client_1.take)(input, {
157
- 'email': [],
158
- }));
159
- b.m("POST")
157
+ b.m("GET")
160
158
  .h(headers)
159
+ .q(query)
161
160
  .b(body);
162
161
  return b.build();
163
162
  };
@@ -664,6 +663,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
664
663
  value.length != 0) &&
665
664
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
666
665
  const _c = "company";
666
+ const _e = "email";
667
667
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
668
668
  if (encoded.length) {
669
669
  return JSON.parse(encoded);
@@ -137,16 +137,15 @@ export const se_GetBotCallbackCommand = async (input, context) => {
137
137
  };
138
138
  export const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
139
139
  const b = rb(input, context);
140
- const headers = {
141
- 'content-type': 'application/json',
142
- };
143
- b.bp("/v1/users/GetUserPbxLinkSuggestion");
140
+ const headers = {};
141
+ b.bp("/v2/users/GetUserPbxLinkSuggestion");
142
+ const query = map({
143
+ [_e]: [, input[_e]],
144
+ });
144
145
  let body;
145
- body = JSON.stringify(take(input, {
146
- 'email': [],
147
- }));
148
- b.m("POST")
146
+ b.m("GET")
149
147
  .h(headers)
148
+ .q(query)
150
149
  .b(body);
151
150
  return b.build();
152
151
  };
@@ -631,6 +630,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
631
630
  value.length != 0) &&
632
631
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
633
632
  const _c = "company";
633
+ const _e = "email";
634
634
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
635
635
  if (encoded.length) {
636
636
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-users-client",
3
3
  "description": "@wildix/xbees-users-client client",
4
- "version": "1.0.16",
4
+ "version": "1.0.18",
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",
@@ -9,7 +9,8 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
- "prepack": "yarn run clean && yarn run build"
12
+ "prepack": "yarn run clean && yarn run build",
13
+ "postpublish": "node ../../scripts/postpublish.js"
13
14
  },
14
15
  "main": "./dist-cjs/index.js",
15
16
  "types": "./dist-types/index.d.ts",