@wildix/xbees-users-client 1.0.51 → 1.0.53
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.
- package/dist-cjs/models/models_0.js +6 -1
- package/dist-cjs/protocols/Aws_restJson1.js +5 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +5 -0
- package/dist-types/Users.d.ts +0 -1
- package/dist-types/commands/GetAppVersionCommand.d.ts +6 -4
- package/dist-types/models/models_0.d.ts +14 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotCapabilityToolPipelineType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotCapabilityToolPipelineType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.LicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const UsersServiceException_1 = require("./UsersServiceException");
|
|
5
5
|
class ForbiddenException extends UsersServiceException_1.UsersServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -28,6 +28,11 @@ class ValidationException extends UsersServiceException_1.UsersServiceException
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
exports.ValidationException = ValidationException;
|
|
31
|
+
exports.LicenseType = {
|
|
32
|
+
UC: "UC",
|
|
33
|
+
X_BEES: "X_BEES",
|
|
34
|
+
X_HOPPERS: "X_HOPPERS",
|
|
35
|
+
};
|
|
31
36
|
exports.PbxLicenseType = {
|
|
32
37
|
BASIC: "basic",
|
|
33
38
|
BUSINESS: "business",
|
|
@@ -192,9 +192,13 @@ const se_GetAppVersionCommand = async (input, context) => {
|
|
|
192
192
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
193
193
|
const headers = {};
|
|
194
194
|
b.bp("/v2/users/app-version");
|
|
195
|
+
const query = (0, smithy_client_1.map)({
|
|
196
|
+
[_aT]: [, (0, smithy_client_1.expectNonNull)(input[_aT], `appType`)],
|
|
197
|
+
});
|
|
195
198
|
let body;
|
|
196
199
|
b.m("GET")
|
|
197
200
|
.h(headers)
|
|
201
|
+
.q(query)
|
|
198
202
|
.b(body);
|
|
199
203
|
return b.build();
|
|
200
204
|
};
|
|
@@ -1421,6 +1425,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1421
1425
|
cfId: output.headers["x-amz-cf-id"],
|
|
1422
1426
|
});
|
|
1423
1427
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1428
|
+
const _aT = "appType";
|
|
1424
1429
|
const _c = "company";
|
|
1425
1430
|
const _e = "email";
|
|
1426
1431
|
const _eE = "excludeExtension";
|
|
@@ -23,6 +23,11 @@ export class ValidationException extends __BaseException {
|
|
|
23
23
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
export const LicenseType = {
|
|
27
|
+
UC: "UC",
|
|
28
|
+
X_BEES: "X_BEES",
|
|
29
|
+
X_HOPPERS: "X_HOPPERS",
|
|
30
|
+
};
|
|
26
31
|
export const PbxLicenseType = {
|
|
27
32
|
BASIC: "basic",
|
|
28
33
|
BUSINESS: "business",
|
|
@@ -178,9 +178,13 @@ export const se_GetAppVersionCommand = async (input, context) => {
|
|
|
178
178
|
const b = rb(input, context);
|
|
179
179
|
const headers = {};
|
|
180
180
|
b.bp("/v2/users/app-version");
|
|
181
|
+
const query = map({
|
|
182
|
+
[_aT]: [, __expectNonNull(input[_aT], `appType`)],
|
|
183
|
+
});
|
|
181
184
|
let body;
|
|
182
185
|
b.m("GET")
|
|
183
186
|
.h(headers)
|
|
187
|
+
.q(query)
|
|
184
188
|
.b(body);
|
|
185
189
|
return b.build();
|
|
186
190
|
};
|
|
@@ -1349,6 +1353,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1349
1353
|
cfId: output.headers["x-amz-cf-id"],
|
|
1350
1354
|
});
|
|
1351
1355
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1356
|
+
const _aT = "appType";
|
|
1352
1357
|
const _c = "company";
|
|
1353
1358
|
const _e = "email";
|
|
1354
1359
|
const _eE = "excludeExtension";
|
package/dist-types/Users.d.ts
CHANGED
|
@@ -98,7 +98,6 @@ export interface Users {
|
|
|
98
98
|
/**
|
|
99
99
|
* @see {@link GetAppVersionCommand}
|
|
100
100
|
*/
|
|
101
|
-
getAppVersion(): Promise<GetAppVersionCommandOutput>;
|
|
102
101
|
getAppVersion(args: GetAppVersionCommandInput, options?: __HttpHandlerOptions): Promise<GetAppVersionCommandOutput>;
|
|
103
102
|
getAppVersion(args: GetAppVersionCommandInput, cb: (err: any, data?: GetAppVersionCommandOutput) => void): void;
|
|
104
103
|
getAppVersion(args: GetAppVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAppVersionCommandOutput) => void): void;
|
|
@@ -23,18 +23,20 @@ export interface GetAppVersionCommandOutput extends GetAppVersionOutput, __Metad
|
|
|
23
23
|
}
|
|
24
24
|
declare const GetAppVersionCommand_base: {
|
|
25
25
|
new (input: GetAppVersionCommandInput): import("@smithy/smithy-client").CommandImpl<GetAppVersionCommandInput, GetAppVersionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: GetAppVersionCommandInput): import("@smithy/smithy-client").CommandImpl<GetAppVersionCommandInput, GetAppVersionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Returns
|
|
30
|
+
* Returns the current Google Play Store version of the Android app for the specified appType (X-Bees, X-Hoppers, Collaboration).
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { UsersClient, GetAppVersionCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
35
|
* // const { UsersClient, GetAppVersionCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
36
|
* const client = new UsersClient(config);
|
|
37
|
-
* const input = {
|
|
37
|
+
* const input = { // GetAppVersionInput
|
|
38
|
+
* appType: "UC" || "X_BEES" || "X_HOPPERS", // required
|
|
39
|
+
* };
|
|
38
40
|
* const command = new GetAppVersionCommand(input);
|
|
39
41
|
* const response = await client.send(command);
|
|
40
42
|
* // { // GetAppVersionOutput
|
|
@@ -63,7 +65,7 @@ export declare class GetAppVersionCommand extends GetAppVersionCommand_base {
|
|
|
63
65
|
/** @internal type navigation helper, not in runtime. */
|
|
64
66
|
protected static __types: {
|
|
65
67
|
api: {
|
|
66
|
-
input:
|
|
68
|
+
input: GetAppVersionInput;
|
|
67
69
|
output: GetAppVersionOutput;
|
|
68
70
|
};
|
|
69
71
|
sdk: {
|
|
@@ -23,6 +23,19 @@ export declare class ValidationException extends __BaseException {
|
|
|
23
23
|
*/
|
|
24
24
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* @enum
|
|
29
|
+
*/
|
|
30
|
+
export declare const LicenseType: {
|
|
31
|
+
readonly UC: "UC";
|
|
32
|
+
readonly X_BEES: "X_BEES";
|
|
33
|
+
readonly X_HOPPERS: "X_HOPPERS";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type LicenseType = typeof LicenseType[keyof typeof LicenseType];
|
|
26
39
|
/**
|
|
27
40
|
* @public
|
|
28
41
|
*/
|
|
@@ -1238,6 +1251,7 @@ export interface DirectoryItem {
|
|
|
1238
1251
|
* @public
|
|
1239
1252
|
*/
|
|
1240
1253
|
export interface GetAppVersionInput {
|
|
1254
|
+
appType: LicenseType;
|
|
1241
1255
|
}
|
|
1242
1256
|
/**
|
|
1243
1257
|
* @public
|
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.
|
|
4
|
+
"version": "1.0.53",
|
|
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",
|