@proxima-nexus/sdk-typescript 1.0.0
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/LICENSE +15 -0
- package/README.md +349 -0
- package/dist/api/event-api.d.ts +420 -0
- package/dist/api/event-api.js +642 -0
- package/dist/api/group-api.d.ts +506 -0
- package/dist/api/group-api.js +775 -0
- package/dist/api/user-api.d.ts +543 -0
- package/dist/api/user-api.js +850 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +48 -0
- package/dist/common.d.ts +31 -0
- package/dist/common.js +98 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +48 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +44 -0
- package/dist/models/create-event-dto.d.ts +63 -0
- package/dist/models/create-event-dto.js +22 -0
- package/dist/models/create-group-dto.d.ts +51 -0
- package/dist/models/create-group-dto.js +22 -0
- package/dist/models/create-user-dto.d.ts +55 -0
- package/dist/models/create-user-dto.js +22 -0
- package/dist/models/entity-connection-dto.d.ts +30 -0
- package/dist/models/entity-connection-dto.js +22 -0
- package/dist/models/event-dto.d.ts +70 -0
- package/dist/models/event-dto.js +21 -0
- package/dist/models/event-entity-connection-dto.d.ts +34 -0
- package/dist/models/event-entity-connection-dto.js +22 -0
- package/dist/models/get-events-dto.d.ts +17 -0
- package/dist/models/get-events-dto.js +15 -0
- package/dist/models/get-groups-dto.d.ts +17 -0
- package/dist/models/get-groups-dto.js +15 -0
- package/dist/models/get-users-dto.d.ts +17 -0
- package/dist/models/get-users-dto.js +15 -0
- package/dist/models/group-dto.d.ts +58 -0
- package/dist/models/group-dto.js +21 -0
- package/dist/models/group-entity-connection-dto.d.ts +34 -0
- package/dist/models/group-entity-connection-dto.js +22 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +34 -0
- package/dist/models/location-dto.d.ts +25 -0
- package/dist/models/location-dto.js +15 -0
- package/dist/models/mutate-user-response-dto.d.ts +17 -0
- package/dist/models/mutate-user-response-dto.js +15 -0
- package/dist/models/update-event-dto.d.ts +55 -0
- package/dist/models/update-event-dto.js +22 -0
- package/dist/models/update-group-dto.d.ts +47 -0
- package/dist/models/update-group-dto.js +22 -0
- package/dist/models/update-user-dto.d.ts +51 -0
- package/dist/models/update-user-dto.js +22 -0
- package/dist/models/user-dto.d.ts +62 -0
- package/dist/models/user-dto.js +21 -0
- package/dist/models/user-entity-connection-dto.d.ts +34 -0
- package/dist/models/user-entity-connection-dto.js +22 -0
- package/package.json +56 -0
package/dist/base.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
export declare const COLLECTION_FORMATS: {
|
|
16
|
+
csv: string;
|
|
17
|
+
ssv: string;
|
|
18
|
+
tsv: string;
|
|
19
|
+
pipes: string;
|
|
20
|
+
};
|
|
21
|
+
export interface RequestArgs {
|
|
22
|
+
url: string;
|
|
23
|
+
options: RawAxiosRequestConfig;
|
|
24
|
+
}
|
|
25
|
+
export declare class BaseAPI {
|
|
26
|
+
protected basePath: string;
|
|
27
|
+
protected axios: AxiosInstance;
|
|
28
|
+
protected configuration: Configuration | undefined;
|
|
29
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
30
|
+
}
|
|
31
|
+
export declare class RequiredError extends Error {
|
|
32
|
+
field: string;
|
|
33
|
+
constructor(field: string, msg?: string);
|
|
34
|
+
}
|
|
35
|
+
interface ServerMap {
|
|
36
|
+
[key: string]: {
|
|
37
|
+
url: string;
|
|
38
|
+
description: string;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export declare const operationServerMap: ServerMap;
|
|
42
|
+
export {};
|
package/dist/base.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* proxima-nexus-data-plane-api
|
|
6
|
+
* Proxima Nexus Data Plane API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
22
|
+
exports.COLLECTION_FORMATS = {
|
|
23
|
+
csv: ",",
|
|
24
|
+
ssv: " ",
|
|
25
|
+
tsv: "\t",
|
|
26
|
+
pipes: "|",
|
|
27
|
+
};
|
|
28
|
+
class BaseAPI {
|
|
29
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
30
|
+
this.basePath = basePath;
|
|
31
|
+
this.axios = axios;
|
|
32
|
+
if (configuration) {
|
|
33
|
+
this.configuration = configuration;
|
|
34
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.BaseAPI = BaseAPI;
|
|
39
|
+
;
|
|
40
|
+
class RequiredError extends Error {
|
|
41
|
+
constructor(field, msg) {
|
|
42
|
+
super(msg);
|
|
43
|
+
this.field = field;
|
|
44
|
+
this.name = "RequiredError";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.RequiredError = RequiredError;
|
|
48
|
+
exports.operationServerMap = {};
|
package/dist/common.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @throws {RequiredError}
|
|
19
|
+
*/
|
|
20
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
21
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
22
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
23
|
+
/**
|
|
24
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
25
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
26
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
27
|
+
*/
|
|
28
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
|
|
29
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
30
|
+
export declare const toPathString: (url: URL) => string;
|
|
31
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* proxima-nexus-data-plane-api
|
|
6
|
+
* Proxima Nexus Data Plane API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
|
+
const base_1 = require("./base");
|
|
18
|
+
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @throws {RequiredError}
|
|
22
|
+
*/
|
|
23
|
+
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
24
|
+
if (paramValue === null || paramValue === undefined) {
|
|
25
|
+
throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.assertParamExists = assertParamExists;
|
|
29
|
+
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
30
|
+
if (configuration && configuration.apiKey) {
|
|
31
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
32
|
+
? await configuration.apiKey(keyParamName)
|
|
33
|
+
: await configuration.apiKey;
|
|
34
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.setApiKeyToObject = setApiKeyToObject;
|
|
38
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
39
|
+
if (parameter == null)
|
|
40
|
+
return;
|
|
41
|
+
if (typeof parameter === "object") {
|
|
42
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
43
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
if (urlSearchParams.has(key)) {
|
|
51
|
+
urlSearchParams.append(key, parameter);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
urlSearchParams.set(key, parameter);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const setSearchParams = function (url, ...objects) {
|
|
59
|
+
const searchParams = new URLSearchParams(url.search);
|
|
60
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
61
|
+
url.search = searchParams.toString();
|
|
62
|
+
};
|
|
63
|
+
exports.setSearchParams = setSearchParams;
|
|
64
|
+
/**
|
|
65
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
66
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
67
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
68
|
+
*/
|
|
69
|
+
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
70
|
+
if (value instanceof Set) {
|
|
71
|
+
return Array.from(value);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
78
|
+
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
79
|
+
const nonString = typeof value !== 'string';
|
|
80
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
81
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
82
|
+
: nonString;
|
|
83
|
+
return needsSerialization
|
|
84
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
85
|
+
: (value || "");
|
|
86
|
+
};
|
|
87
|
+
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
88
|
+
const toPathString = function (url) {
|
|
89
|
+
return url.pathname + url.search + url.hash;
|
|
90
|
+
};
|
|
91
|
+
exports.toPathString = toPathString;
|
|
92
|
+
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
93
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
94
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
95
|
+
return axios.request(axiosRequestArgs);
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
exports.createRequestFunction = createRequestFunction;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface ConfigurationParameters {
|
|
24
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
25
|
+
username?: string;
|
|
26
|
+
password?: string;
|
|
27
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
29
|
+
basePath?: string;
|
|
30
|
+
serverIndex?: number;
|
|
31
|
+
baseOptions?: any;
|
|
32
|
+
formDataCtor?: new () => any;
|
|
33
|
+
}
|
|
34
|
+
export declare class Configuration {
|
|
35
|
+
/**
|
|
36
|
+
* parameter for apiKey security
|
|
37
|
+
* @param name security name
|
|
38
|
+
*/
|
|
39
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
40
|
+
/**
|
|
41
|
+
* parameter for basic security
|
|
42
|
+
*/
|
|
43
|
+
username?: string;
|
|
44
|
+
/**
|
|
45
|
+
* parameter for basic security
|
|
46
|
+
*/
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for oauth2 security
|
|
50
|
+
* @param name security name
|
|
51
|
+
* @param scopes oauth2 scope
|
|
52
|
+
*/
|
|
53
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
62
|
+
* @memberof Configuration
|
|
63
|
+
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
68
|
+
basePath?: string;
|
|
69
|
+
/**
|
|
70
|
+
* override server index
|
|
71
|
+
*/
|
|
72
|
+
serverIndex?: number;
|
|
73
|
+
/**
|
|
74
|
+
* base options for axios calls
|
|
75
|
+
*/
|
|
76
|
+
baseOptions?: any;
|
|
77
|
+
/**
|
|
78
|
+
* The FormData constructor that will be used to create multipart form data
|
|
79
|
+
* requests. You can inject this here so that execution environments that
|
|
80
|
+
* do not support the FormData class can still run the generated client.
|
|
81
|
+
*
|
|
82
|
+
* @type {new () => FormData}
|
|
83
|
+
*/
|
|
84
|
+
formDataCtor?: new () => any;
|
|
85
|
+
constructor(param?: ConfigurationParameters);
|
|
86
|
+
/**
|
|
87
|
+
* Check if the given MIME is a JSON MIME.
|
|
88
|
+
* JSON MIME examples:
|
|
89
|
+
* application/json
|
|
90
|
+
* application/json; charset=UTF8
|
|
91
|
+
* APPLICATION/JSON
|
|
92
|
+
* application/vnd.company+json
|
|
93
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
94
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
95
|
+
*/
|
|
96
|
+
isJsonMime(mime: string): boolean;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* proxima-nexus-data-plane-api
|
|
5
|
+
* Proxima Nexus Data Plane API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Configuration = void 0;
|
|
16
|
+
class Configuration {
|
|
17
|
+
constructor(param = {}) {
|
|
18
|
+
this.apiKey = param.apiKey;
|
|
19
|
+
this.username = param.username;
|
|
20
|
+
this.password = param.password;
|
|
21
|
+
this.accessToken = param.accessToken;
|
|
22
|
+
this.awsv4 = param.awsv4;
|
|
23
|
+
this.basePath = param.basePath;
|
|
24
|
+
this.serverIndex = param.serverIndex;
|
|
25
|
+
this.baseOptions = {
|
|
26
|
+
...param.baseOptions,
|
|
27
|
+
headers: {
|
|
28
|
+
...param.baseOptions?.headers,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
this.formDataCtor = param.formDataCtor;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if the given MIME is a JSON MIME.
|
|
35
|
+
* JSON MIME examples:
|
|
36
|
+
* application/json
|
|
37
|
+
* application/json; charset=UTF8
|
|
38
|
+
* APPLICATION/JSON
|
|
39
|
+
* application/vnd.company+json
|
|
40
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
41
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
42
|
+
*/
|
|
43
|
+
isJsonMime(mime) {
|
|
44
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
45
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.Configuration = Configuration;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Configuration, ConfigurationParameters } from './configuration';
|
|
2
|
+
import { UserApi } from './api/user-api';
|
|
3
|
+
import { EventApi } from './api/event-api';
|
|
4
|
+
import { GroupApi } from './api/group-api';
|
|
5
|
+
export * from './models';
|
|
6
|
+
export { UserApi, EventApi, GroupApi };
|
|
7
|
+
export { Configuration, type ConfigurationParameters };
|
|
8
|
+
/**
|
|
9
|
+
* Simplified configuration interface for the main client
|
|
10
|
+
*/
|
|
11
|
+
export interface ProximaNexusClientConfig {
|
|
12
|
+
/**
|
|
13
|
+
* API base URL
|
|
14
|
+
* @default "https://api.proxima-nexus.com"
|
|
15
|
+
*/
|
|
16
|
+
baseURL?: string;
|
|
17
|
+
/**
|
|
18
|
+
* API key for authentication
|
|
19
|
+
* Required for all requests
|
|
20
|
+
*/
|
|
21
|
+
apiKey: string;
|
|
22
|
+
/**
|
|
23
|
+
* Request timeout in milliseconds
|
|
24
|
+
* @default 30000
|
|
25
|
+
*/
|
|
26
|
+
timeout?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Additional axios configuration
|
|
29
|
+
*/
|
|
30
|
+
axiosConfig?: any;
|
|
31
|
+
}
|
|
32
|
+
export declare class ProximaNexusClient {
|
|
33
|
+
readonly users: UserApi;
|
|
34
|
+
readonly events: EventApi;
|
|
35
|
+
readonly groups: GroupApi;
|
|
36
|
+
constructor(config: ProximaNexusClientConfig);
|
|
37
|
+
}
|
|
38
|
+
export default ProximaNexusClient;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ProximaNexusClient = exports.Configuration = exports.GroupApi = exports.EventApi = exports.UserApi = void 0;
|
|
18
|
+
const configuration_1 = require("./configuration");
|
|
19
|
+
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.Configuration; } });
|
|
20
|
+
const user_api_1 = require("./api/user-api");
|
|
21
|
+
Object.defineProperty(exports, "UserApi", { enumerable: true, get: function () { return user_api_1.UserApi; } });
|
|
22
|
+
const event_api_1 = require("./api/event-api");
|
|
23
|
+
Object.defineProperty(exports, "EventApi", { enumerable: true, get: function () { return event_api_1.EventApi; } });
|
|
24
|
+
const group_api_1 = require("./api/group-api");
|
|
25
|
+
Object.defineProperty(exports, "GroupApi", { enumerable: true, get: function () { return group_api_1.GroupApi; } });
|
|
26
|
+
// Export all types
|
|
27
|
+
__exportStar(require("./models"), exports);
|
|
28
|
+
class ProximaNexusClient {
|
|
29
|
+
constructor(config) {
|
|
30
|
+
const configuration = new configuration_1.Configuration({
|
|
31
|
+
apiKey: config.apiKey,
|
|
32
|
+
basePath: config.baseURL || 'https://api.proxima-nexus.com',
|
|
33
|
+
baseOptions: {
|
|
34
|
+
timeout: config.timeout || 30000,
|
|
35
|
+
...config.axiosConfig,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
this.users = new user_api_1.UserApi(configuration);
|
|
39
|
+
this.events = new event_api_1.EventApi(configuration);
|
|
40
|
+
this.groups = new group_api_1.GroupApi(configuration);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ProximaNexusClient = ProximaNexusClient;
|
|
44
|
+
exports.default = ProximaNexusClient;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LocationDto } from './location-dto';
|
|
13
|
+
export interface CreateEventDto {
|
|
14
|
+
/**
|
|
15
|
+
* Display name
|
|
16
|
+
*/
|
|
17
|
+
'displayName': string;
|
|
18
|
+
/**
|
|
19
|
+
* User ID of the requester
|
|
20
|
+
*/
|
|
21
|
+
'requesterUserId': string;
|
|
22
|
+
/**
|
|
23
|
+
* Visibility of the entity
|
|
24
|
+
*/
|
|
25
|
+
'visibility': CreateEventDtoVisibilityEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Optional location information
|
|
28
|
+
*/
|
|
29
|
+
'location'?: LocationDto;
|
|
30
|
+
/**
|
|
31
|
+
* Entity description
|
|
32
|
+
*/
|
|
33
|
+
'description'?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Entity tags
|
|
36
|
+
*/
|
|
37
|
+
'tags'?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Unique event identifier
|
|
40
|
+
*/
|
|
41
|
+
'eventId': string;
|
|
42
|
+
/**
|
|
43
|
+
* Start time (ISO 8601)
|
|
44
|
+
*/
|
|
45
|
+
'startTime': string;
|
|
46
|
+
/**
|
|
47
|
+
* End time (ISO 8601)
|
|
48
|
+
*/
|
|
49
|
+
'endTime': string;
|
|
50
|
+
/**
|
|
51
|
+
* Event type
|
|
52
|
+
*/
|
|
53
|
+
'type': string;
|
|
54
|
+
/**
|
|
55
|
+
* Identifier of associated group which owns the event. Owners/admins of the group will be admins of the event.
|
|
56
|
+
*/
|
|
57
|
+
'associatedGroupId'?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare enum CreateEventDtoVisibilityEnum {
|
|
60
|
+
public = "public",
|
|
61
|
+
connections = "connections",
|
|
62
|
+
hidden = "hidden"
|
|
63
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* proxima-nexus-data-plane-api
|
|
6
|
+
* Proxima Nexus Data Plane API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateEventDtoVisibilityEnum = void 0;
|
|
17
|
+
var CreateEventDtoVisibilityEnum;
|
|
18
|
+
(function (CreateEventDtoVisibilityEnum) {
|
|
19
|
+
CreateEventDtoVisibilityEnum["public"] = "public";
|
|
20
|
+
CreateEventDtoVisibilityEnum["connections"] = "connections";
|
|
21
|
+
CreateEventDtoVisibilityEnum["hidden"] = "hidden";
|
|
22
|
+
})(CreateEventDtoVisibilityEnum || (exports.CreateEventDtoVisibilityEnum = CreateEventDtoVisibilityEnum = {}));
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LocationDto } from './location-dto';
|
|
13
|
+
export interface CreateGroupDto {
|
|
14
|
+
/**
|
|
15
|
+
* Display name
|
|
16
|
+
*/
|
|
17
|
+
'displayName': string;
|
|
18
|
+
/**
|
|
19
|
+
* User ID of the requester
|
|
20
|
+
*/
|
|
21
|
+
'requesterUserId': string;
|
|
22
|
+
/**
|
|
23
|
+
* Visibility of the entity
|
|
24
|
+
*/
|
|
25
|
+
'visibility': CreateGroupDtoVisibilityEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Optional location information
|
|
28
|
+
*/
|
|
29
|
+
'location'?: LocationDto;
|
|
30
|
+
/**
|
|
31
|
+
* Entity description
|
|
32
|
+
*/
|
|
33
|
+
'description'?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Entity tags
|
|
36
|
+
*/
|
|
37
|
+
'tags'?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Unique group identifier
|
|
40
|
+
*/
|
|
41
|
+
'groupId': string;
|
|
42
|
+
/**
|
|
43
|
+
* Group type
|
|
44
|
+
*/
|
|
45
|
+
'type': string;
|
|
46
|
+
}
|
|
47
|
+
export declare enum CreateGroupDtoVisibilityEnum {
|
|
48
|
+
public = "public",
|
|
49
|
+
connections = "connections",
|
|
50
|
+
hidden = "hidden"
|
|
51
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* proxima-nexus-data-plane-api
|
|
6
|
+
* Proxima Nexus Data Plane API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateGroupDtoVisibilityEnum = void 0;
|
|
17
|
+
var CreateGroupDtoVisibilityEnum;
|
|
18
|
+
(function (CreateGroupDtoVisibilityEnum) {
|
|
19
|
+
CreateGroupDtoVisibilityEnum["public"] = "public";
|
|
20
|
+
CreateGroupDtoVisibilityEnum["connections"] = "connections";
|
|
21
|
+
CreateGroupDtoVisibilityEnum["hidden"] = "hidden";
|
|
22
|
+
})(CreateGroupDtoVisibilityEnum || (exports.CreateGroupDtoVisibilityEnum = CreateGroupDtoVisibilityEnum = {}));
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* proxima-nexus-data-plane-api
|
|
3
|
+
* Proxima Nexus Data Plane API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LocationDto } from './location-dto';
|
|
13
|
+
export interface CreateUserDto {
|
|
14
|
+
/**
|
|
15
|
+
* Display name
|
|
16
|
+
*/
|
|
17
|
+
'displayName': string;
|
|
18
|
+
/**
|
|
19
|
+
* User ID of the requester
|
|
20
|
+
*/
|
|
21
|
+
'requesterUserId': string;
|
|
22
|
+
/**
|
|
23
|
+
* Visibility of the entity
|
|
24
|
+
*/
|
|
25
|
+
'visibility': CreateUserDtoVisibilityEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Optional location information
|
|
28
|
+
*/
|
|
29
|
+
'location'?: LocationDto;
|
|
30
|
+
/**
|
|
31
|
+
* Entity description
|
|
32
|
+
*/
|
|
33
|
+
'description'?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Entity tags
|
|
36
|
+
*/
|
|
37
|
+
'tags'?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Unique user identifier
|
|
40
|
+
*/
|
|
41
|
+
'userId': string;
|
|
42
|
+
/**
|
|
43
|
+
* Gender
|
|
44
|
+
*/
|
|
45
|
+
'gender': string;
|
|
46
|
+
/**
|
|
47
|
+
* Birth date (ISO 8601)
|
|
48
|
+
*/
|
|
49
|
+
'birthDate': string;
|
|
50
|
+
}
|
|
51
|
+
export declare enum CreateUserDtoVisibilityEnum {
|
|
52
|
+
public = "public",
|
|
53
|
+
connections = "connections",
|
|
54
|
+
hidden = "hidden"
|
|
55
|
+
}
|