@wildix/xbees-users-client 1.0.1
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/Users.js +15 -0
- package/dist-cjs/UsersClient.js +19 -0
- package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +41 -0
- package/dist-cjs/commands/BatchGetUsersStreamLinkDataCommand.js +41 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/UsersServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +17 -0
- package/dist-cjs/protocols/Aws_restJson1.js +184 -0
- package/dist-cjs/runtimeConfig.browser.js +28 -0
- package/dist-cjs/runtimeConfig.js +32 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +19 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/Users.js +11 -0
- package/dist-es/UsersClient.js +15 -0
- package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +37 -0
- package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +37 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/UsersServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/protocols/Aws_restJson1.js +177 -0
- package/dist-es/runtimeConfig.browser.js +24 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/Users.d.ts +23 -0
- package/dist-types/UsersClient.d.ts +135 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +82 -0
- package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/UsersServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +65 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +20 -0
- package/dist-types/runtimeConfig.browser.d.ts +27 -0
- package/dist-types/runtimeConfig.d.ts +27 -0
- package/dist-types/runtimeConfig.native.d.ts +26 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +76 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UsersServiceException as __BaseException } from "./UsersServiceException";
|
|
2
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class ValidationException extends __BaseException {
|
|
7
|
+
readonly name: "ValidationException";
|
|
8
|
+
readonly $fault: "client";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchGetUsersPbxLinkDataInput {
|
|
18
|
+
id: (string)[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export interface PbxLinkData {
|
|
24
|
+
id: string;
|
|
25
|
+
company: string;
|
|
26
|
+
domain?: string;
|
|
27
|
+
email?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export interface BatchGetUsersPbxLinkDataOutput {
|
|
33
|
+
users: (PbxLinkData)[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export interface BatchGetUsersStreamLinkDataInput {
|
|
39
|
+
id: (string)[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export interface StreamLinkData {
|
|
45
|
+
id: string;
|
|
46
|
+
email?: string;
|
|
47
|
+
phone?: string;
|
|
48
|
+
name?: string;
|
|
49
|
+
picture?: string;
|
|
50
|
+
company?: string;
|
|
51
|
+
pbxExtension?: string;
|
|
52
|
+
pbxSerial?: string;
|
|
53
|
+
pbxDomain?: string;
|
|
54
|
+
pbxPort?: string;
|
|
55
|
+
pbxUserId?: string;
|
|
56
|
+
pbxUpdatedAt?: string;
|
|
57
|
+
locale?: string;
|
|
58
|
+
timeZone?: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export interface BatchGetUsersStreamLinkDataOutput {
|
|
64
|
+
users: Record<string, StreamLinkData>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "../commands/BatchGetUsersPbxLinkDataCommand";
|
|
2
|
+
import { BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput } from "../commands/BatchGetUsersStreamLinkDataCommand";
|
|
3
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
4
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* serializeAws_restJson1BatchGetUsersPbxLinkDataCommand
|
|
7
|
+
*/
|
|
8
|
+
export declare const se_BatchGetUsersPbxLinkDataCommand: (input: BatchGetUsersPbxLinkDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
|
+
/**
|
|
10
|
+
* serializeAws_restJson1BatchGetUsersStreamLinkDataCommand
|
|
11
|
+
*/
|
|
12
|
+
export declare const se_BatchGetUsersStreamLinkDataCommand: (input: BatchGetUsersStreamLinkDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
+
/**
|
|
14
|
+
* deserializeAws_restJson1BatchGetUsersPbxLinkDataCommand
|
|
15
|
+
*/
|
|
16
|
+
export declare const de_BatchGetUsersPbxLinkDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersPbxLinkDataCommandOutput>;
|
|
17
|
+
/**
|
|
18
|
+
* deserializeAws_restJson1BatchGetUsersStreamLinkDataCommand
|
|
19
|
+
*/
|
|
20
|
+
export declare const de_BatchGetUsersStreamLinkDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersStreamLinkDataCommandOutput>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { UsersClientConfig } from "./UsersClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
11
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
12
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
13
|
+
httpHandlerConfigs(): {};
|
|
14
|
+
}) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
apiVersion: string;
|
|
19
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
20
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
21
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
22
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
disableHostPrefix: boolean;
|
|
25
|
+
logger: import("@smithy/types").Logger;
|
|
26
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import { UsersClientConfig } from "./UsersClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
11
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
12
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
13
|
+
httpHandlerConfigs(): {};
|
|
14
|
+
}) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
apiVersion: string;
|
|
19
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
20
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
21
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
22
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
disableHostPrefix: boolean;
|
|
25
|
+
logger: import("@smithy/types").Logger;
|
|
26
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
27
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UsersClientConfig } from "./UsersClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
9
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
10
|
+
httpHandlerConfigs(): {};
|
|
11
|
+
}) | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
12
|
+
apiVersion: string;
|
|
13
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
14
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
17
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
18
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
19
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
20
|
+
disableHostPrefix: boolean;
|
|
21
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
22
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
|
+
logger: import("@smithy/types").Logger;
|
|
24
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
25
|
+
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UsersClientConfig } from "./UsersClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
9
|
+
disableHostPrefix: boolean;
|
|
10
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
11
|
+
logger: import("@smithy/types").Logger;
|
|
12
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
13
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
14
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UsersExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: UsersExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wildix/xbees-users-client",
|
|
3
|
+
"description": "@wildix/xbees-users-client client",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
13
|
+
"prepack": "yarn run clean && yarn run build"
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist-cjs/index.js",
|
|
16
|
+
"types": "./dist-types/index.d.ts",
|
|
17
|
+
"module": "./dist-es/index.js",
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"tslib": "^2.5.0",
|
|
21
|
+
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
|
+
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
+
"@aws-sdk/types": "latest",
|
|
24
|
+
"@smithy/config-resolver": "^2.0.11",
|
|
25
|
+
"@smithy/fetch-http-handler": "^2.2.1",
|
|
26
|
+
"@smithy/hash-node": "^2.0.10",
|
|
27
|
+
"@smithy/invalid-dependency": "^2.0.10",
|
|
28
|
+
"@smithy/middleware-content-length": "^2.0.12",
|
|
29
|
+
"@smithy/middleware-retry": "^2.0.13",
|
|
30
|
+
"@smithy/middleware-serde": "^2.0.10",
|
|
31
|
+
"@smithy/middleware-stack": "^2.0.4",
|
|
32
|
+
"@smithy/node-config-provider": "^2.0.13",
|
|
33
|
+
"@smithy/node-http-handler": "^2.1.6",
|
|
34
|
+
"@smithy/protocol-http": "^3.0.6",
|
|
35
|
+
"@smithy/smithy-client": "^2.1.9",
|
|
36
|
+
"@smithy/types": "^2.3.4",
|
|
37
|
+
"@smithy/url-parser": "^2.0.10",
|
|
38
|
+
"@smithy/util-base64": "^2.0.0",
|
|
39
|
+
"@smithy/util-body-length-browser": "^2.0.0",
|
|
40
|
+
"@smithy/util-body-length-node": "^2.1.0",
|
|
41
|
+
"@smithy/util-defaults-mode-browser": "^2.0.13",
|
|
42
|
+
"@smithy/util-defaults-mode-node": "^2.0.15",
|
|
43
|
+
"@smithy/util-retry": "^2.0.3",
|
|
44
|
+
"@smithy/util-utf8": "^2.0.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@tsconfig/node14": "1.0.3",
|
|
48
|
+
"concurrently": "7.0.0",
|
|
49
|
+
"downlevel-dts": "0.10.1",
|
|
50
|
+
"rimraf": "^3.0.0",
|
|
51
|
+
"typedoc": "0.23.23",
|
|
52
|
+
"typescript": "~4.9.5",
|
|
53
|
+
"@smithy/service-client-documentation-generator": "^2.0.0",
|
|
54
|
+
"@types/node": "^14.14.31"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=14.0.0"
|
|
58
|
+
},
|
|
59
|
+
"typesVersions": {
|
|
60
|
+
"<4.0": {
|
|
61
|
+
"dist-types/*": [
|
|
62
|
+
"dist-types/ts3.4/*"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"dist-*/**"
|
|
68
|
+
],
|
|
69
|
+
"license": "Apache-2.0",
|
|
70
|
+
"browser": {
|
|
71
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
72
|
+
},
|
|
73
|
+
"react-native": {
|
|
74
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
75
|
+
}
|
|
76
|
+
}
|