@wildix/wms-api-client 1.1.4 → 1.1.5

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.
@@ -188,27 +188,8 @@ const de_CreatePbxColleagueCommand = async (output, context) => {
188
188
  });
189
189
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
190
190
  const doc = (0, smithy_client_1.take)(data, {
191
- 'department': smithy_client_1.expectString,
192
- 'dialplan': smithy_client_1.expectString,
193
- 'email': smithy_client_1.expectString,
194
- 'extension': smithy_client_1.expectString,
195
- 'faxDialplan': smithy_client_1.expectString,
196
- 'faxNumber': smithy_client_1.expectString,
197
- 'groupDn': smithy_client_1.expectString,
198
- 'groupName': smithy_client_1.expectString,
199
- 'id': smithy_client_1.expectString,
200
- 'jid': smithy_client_1.expectString,
201
- 'language': smithy_client_1.expectString,
202
- 'licenseType': smithy_client_1.expectString,
203
- 'login': smithy_client_1.expectString,
204
- 'mobilePhone': smithy_client_1.expectString,
205
- 'name': smithy_client_1.expectString,
206
- 'officePhone': smithy_client_1.expectString,
207
- 'pbx': smithy_client_1.expectString,
208
- 'pbxDn': smithy_client_1.expectString,
209
- 'picture': smithy_client_1.expectString,
210
- 'role': smithy_client_1.expectString,
211
- 'sourceId': smithy_client_1.expectString,
191
+ 'result': smithy_client_1._json,
192
+ 'type': smithy_client_1.expectString,
212
193
  });
213
194
  Object.assign(contents, doc);
214
195
  return contents;
@@ -176,27 +176,8 @@ export const de_CreatePbxColleagueCommand = async (output, context) => {
176
176
  });
177
177
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
178
178
  const doc = take(data, {
179
- 'department': __expectString,
180
- 'dialplan': __expectString,
181
- 'email': __expectString,
182
- 'extension': __expectString,
183
- 'faxDialplan': __expectString,
184
- 'faxNumber': __expectString,
185
- 'groupDn': __expectString,
186
- 'groupName': __expectString,
187
- 'id': __expectString,
188
- 'jid': __expectString,
189
- 'language': __expectString,
190
- 'licenseType': __expectString,
191
- 'login': __expectString,
192
- 'mobilePhone': __expectString,
193
- 'name': __expectString,
194
- 'officePhone': __expectString,
195
- 'pbx': __expectString,
196
- 'pbxDn': __expectString,
197
- 'picture': __expectString,
198
- 'role': __expectString,
199
- 'sourceId': __expectString,
179
+ 'result': _json,
180
+ 'type': __expectString,
200
181
  });
201
182
  Object.assign(contents, doc);
202
183
  return contents;
@@ -55,27 +55,30 @@ declare const CreatePbxColleagueCommand_base: {
55
55
  * const command = new CreatePbxColleagueCommand(input);
56
56
  * const response = await client.send(command);
57
57
  * // { // CreatePbxColleagueOutput
58
- * // id: "STRING_VALUE", // required
59
- * // name: "STRING_VALUE",
60
- * // login: "STRING_VALUE",
61
- * // extension: "STRING_VALUE", // required
62
- * // officePhone: "STRING_VALUE",
63
- * // mobilePhone: "STRING_VALUE",
64
- * // faxNumber: "STRING_VALUE",
65
- * // email: "STRING_VALUE",
66
- * // pbxDn: "STRING_VALUE", // required
67
- * // pbx: "STRING_VALUE", // required
68
- * // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
69
- * // groupName: "STRING_VALUE", // required
70
- * // groupDn: "STRING_VALUE", // required
71
- * // language: "STRING_VALUE", // required
72
- * // dialplan: "STRING_VALUE", // required
73
- * // faxDialplan: "STRING_VALUE", // required
74
- * // department: "STRING_VALUE",
75
- * // picture: "STRING_VALUE", // required
76
- * // sourceId: "STRING_VALUE",
77
- * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
78
- * // jid: "STRING_VALUE", // required
58
+ * // type: "STRING_VALUE", // required
59
+ * // result: { // PbxColleague
60
+ * // id: "STRING_VALUE", // required
61
+ * // name: "STRING_VALUE",
62
+ * // login: "STRING_VALUE",
63
+ * // extension: "STRING_VALUE", // required
64
+ * // officePhone: "STRING_VALUE",
65
+ * // mobilePhone: "STRING_VALUE",
66
+ * // faxNumber: "STRING_VALUE",
67
+ * // email: "STRING_VALUE",
68
+ * // pbxDn: "STRING_VALUE", // required
69
+ * // pbx: "STRING_VALUE", // required
70
+ * // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
71
+ * // groupName: "STRING_VALUE", // required
72
+ * // groupDn: "STRING_VALUE", // required
73
+ * // language: "STRING_VALUE", // required
74
+ * // dialplan: "STRING_VALUE", // required
75
+ * // faxDialplan: "STRING_VALUE", // required
76
+ * // department: "STRING_VALUE",
77
+ * // picture: "STRING_VALUE", // required
78
+ * // sourceId: "STRING_VALUE",
79
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
80
+ * // jid: "STRING_VALUE", // required
81
+ * // },
79
82
  * // };
80
83
  *
81
84
  * ```
@@ -95,7 +95,7 @@ export interface CreatePbxColleagueInput {
95
95
  /**
96
96
  * @public
97
97
  */
98
- export interface CreatePbxColleagueOutput {
98
+ export interface PbxColleague {
99
99
  id: string;
100
100
  name?: string;
101
101
  login?: string;
@@ -118,6 +118,13 @@ export interface CreatePbxColleagueOutput {
118
118
  licenseType: PbxLicenseType;
119
119
  jid: string;
120
120
  }
121
+ /**
122
+ * @public
123
+ */
124
+ export interface CreatePbxColleagueOutput {
125
+ type: string;
126
+ result: PbxColleague;
127
+ }
121
128
  /**
122
129
  * @public
123
130
  * @enum
@@ -428,32 +435,6 @@ export interface GetPbxColleaguesInput {
428
435
  dir?: GetPbxColleaguesDir;
429
436
  searchStrategy?: PbxColleaguesSearchStrategy;
430
437
  }
431
- /**
432
- * @public
433
- */
434
- export interface PbxColleague {
435
- id: string;
436
- name?: string;
437
- login?: string;
438
- extension: string;
439
- officePhone?: string;
440
- mobilePhone?: string;
441
- faxNumber?: string;
442
- email?: string;
443
- pbxDn: string;
444
- pbx: string;
445
- role: PbxColleagueRole;
446
- groupName: string;
447
- groupDn: string;
448
- language: string;
449
- dialplan: string;
450
- faxDialplan: string;
451
- department?: string;
452
- picture: string;
453
- sourceId?: string;
454
- licenseType: PbxLicenseType;
455
- jid: string;
456
- }
457
438
  /**
458
439
  * @public
459
440
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wms-api-client",
3
3
  "description": "@wildix/wms-api-client client",
4
- "version": "1.1.4",
4
+ "version": "1.1.5",
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",