@equisoft/ucx-proxy-sdk-typescript 0.0.3-snapshot.20260129155212 → 0.0.3-snapshot.20260203185707

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.
@@ -2,6 +2,7 @@
2
2
  .npmignore
3
3
  README.md
4
4
  package.json
5
+ src/apis/ConfiguredSourceForOrganizationUserApi.ts
5
6
  src/apis/ContactApi.ts
6
7
  src/apis/OrganizationSourceAuthenticationApi.ts
7
8
  src/apis/index.ts
@@ -26,6 +27,8 @@ src/models/OrganizationSourceAuthenticationSchema.ts
26
27
  src/models/PhoneLabel.ts
27
28
  src/models/PhoneSchema.ts
28
29
  src/models/SourceResultSchema.ts
30
+ src/models/SourceSchema.ts
31
+ src/models/SourceStatus.ts
29
32
  src/models/Status.ts
30
33
  src/models/ToggleSourceAuthenticationSchema.ts
31
34
  src/models/UpdatePayloadSourceAuthenticationSchema.ts
@@ -0,0 +1,30 @@
1
+ /**
2
+ * UCX Proxy
3
+ * A single use API for the UCX Proxy.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
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 * as runtime from '../runtime';
13
+ import type { SourceSchema } from '../models/index';
14
+ export interface ListSourcesRequest {
15
+ organizationId?: string | null;
16
+ includeInactive?: boolean | null;
17
+ }
18
+ /**
19
+ *
20
+ */
21
+ export declare class ConfiguredSourceForOrganizationUserApi extends runtime.BaseAPI {
22
+ /**
23
+ * Get all active (and inactive) sources for the current user / organization
24
+ */
25
+ listSourcesRaw(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SourceSchema>>>;
26
+ /**
27
+ * Get all active (and inactive) sources for the current user / organization
28
+ */
29
+ listSources(requestParameters?: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SourceSchema>>;
30
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UCX Proxy
6
+ * A single use API for the UCX Proxy.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
9
+ * Contact: customersuccess@equisoft.com
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ConfiguredSourceForOrganizationUserApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class ConfiguredSourceForOrganizationUserApi extends runtime.BaseAPI {
32
+ /**
33
+ * Get all active (and inactive) sources for the current user / organization
34
+ */
35
+ listSourcesRaw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const queryParameters = {};
38
+ if (requestParameters['organizationId'] != null) {
39
+ queryParameters['organizationId'] = requestParameters['organizationId'];
40
+ }
41
+ if (requestParameters['includeInactive'] != null) {
42
+ queryParameters['includeInactive'] = requestParameters['includeInactive'];
43
+ }
44
+ const headerParameters = {};
45
+ const response = yield this.request({
46
+ path: `/sources`,
47
+ method: 'GET',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ }, initOverrides);
51
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SourceSchemaFromJSON));
52
+ });
53
+ }
54
+ /**
55
+ * Get all active (and inactive) sources for the current user / organization
56
+ */
57
+ listSources() {
58
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
59
+ const response = yield this.listSourcesRaw(requestParameters, initOverrides);
60
+ return yield response.value();
61
+ });
62
+ }
63
+ }
64
+ exports.ConfiguredSourceForOrganizationUserApi = ConfiguredSourceForOrganizationUserApi;
@@ -1,2 +1,3 @@
1
+ export * from './ConfiguredSourceForOrganizationUserApi';
1
2
  export * from './ContactApi';
2
3
  export * from './OrganizationSourceAuthenticationApi';
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./ConfiguredSourceForOrganizationUserApi"), exports);
19
20
  __exportStar(require("./ContactApi"), exports);
20
21
  __exportStar(require("./OrganizationSourceAuthenticationApi"), exports);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * UCX Proxy
3
+ * A single use API for the UCX Proxy.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
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 * as runtime from '../runtime';
13
+ import type { SourceSchema } from '../models/index';
14
+ export interface ListSourcesRequest {
15
+ organizationId?: string | null;
16
+ includeInactive?: boolean | null;
17
+ }
18
+ /**
19
+ *
20
+ */
21
+ export declare class ConfiguredSourceForOrganizationUserApi extends runtime.BaseAPI {
22
+ /**
23
+ * Get all active (and inactive) sources for the current user / organization
24
+ */
25
+ listSourcesRaw(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SourceSchema>>>;
26
+ /**
27
+ * Get all active (and inactive) sources for the current user / organization
28
+ */
29
+ listSources(requestParameters?: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SourceSchema>>;
30
+ }
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UCX Proxy
5
+ * A single use API for the UCX Proxy.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { SourceSchemaFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class ConfiguredSourceForOrganizationUserApi extends runtime.BaseAPI {
29
+ /**
30
+ * Get all active (and inactive) sources for the current user / organization
31
+ */
32
+ listSourcesRaw(requestParameters, initOverrides) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const queryParameters = {};
35
+ if (requestParameters['organizationId'] != null) {
36
+ queryParameters['organizationId'] = requestParameters['organizationId'];
37
+ }
38
+ if (requestParameters['includeInactive'] != null) {
39
+ queryParameters['includeInactive'] = requestParameters['includeInactive'];
40
+ }
41
+ const headerParameters = {};
42
+ const response = yield this.request({
43
+ path: `/sources`,
44
+ method: 'GET',
45
+ headers: headerParameters,
46
+ query: queryParameters,
47
+ }, initOverrides);
48
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SourceSchemaFromJSON));
49
+ });
50
+ }
51
+ /**
52
+ * Get all active (and inactive) sources for the current user / organization
53
+ */
54
+ listSources() {
55
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
56
+ const response = yield this.listSourcesRaw(requestParameters, initOverrides);
57
+ return yield response.value();
58
+ });
59
+ }
60
+ }
@@ -1,2 +1,3 @@
1
+ export * from './ConfiguredSourceForOrganizationUserApi';
1
2
  export * from './ContactApi';
2
3
  export * from './OrganizationSourceAuthenticationApi';
@@ -1,4 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ConfiguredSourceForOrganizationUserApi';
3
4
  export * from './ContactApi';
4
5
  export * from './OrganizationSourceAuthenticationApi';
@@ -0,0 +1,45 @@
1
+ /**
2
+ * UCX Proxy
3
+ * A single use API for the UCX Proxy.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
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 { SourceStatus } from './SourceStatus';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SourceSchema
17
+ */
18
+ export interface SourceSchema {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SourceSchema
23
+ */
24
+ sourceKey: string;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof SourceSchema
29
+ */
30
+ isEnabled: boolean;
31
+ /**
32
+ *
33
+ * @type {SourceStatus}
34
+ * @memberof SourceSchema
35
+ */
36
+ status: SourceStatus;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SourceSchema interface.
40
+ */
41
+ export declare function instanceOfSourceSchema(value: object): value is SourceSchema;
42
+ export declare function SourceSchemaFromJSON(json: any): SourceSchema;
43
+ export declare function SourceSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceSchema;
44
+ export declare function SourceSchemaToJSON(json: any): SourceSchema;
45
+ export declare function SourceSchemaToJSONTyped(value?: SourceSchema | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UCX Proxy
5
+ * A single use API for the UCX Proxy.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
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
+ import { SourceStatusFromJSON, SourceStatusToJSON, } from './SourceStatus';
15
+ /**
16
+ * Check if a given object implements the SourceSchema interface.
17
+ */
18
+ export function instanceOfSourceSchema(value) {
19
+ if (!('sourceKey' in value) || value['sourceKey'] === undefined)
20
+ return false;
21
+ if (!('isEnabled' in value) || value['isEnabled'] === undefined)
22
+ return false;
23
+ if (!('status' in value) || value['status'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function SourceSchemaFromJSON(json) {
28
+ return SourceSchemaFromJSONTyped(json, false);
29
+ }
30
+ export function SourceSchemaFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'sourceKey': json['sourceKey'],
36
+ 'isEnabled': json['isEnabled'],
37
+ 'status': SourceStatusFromJSON(json['status']),
38
+ };
39
+ }
40
+ export function SourceSchemaToJSON(json) {
41
+ return SourceSchemaToJSONTyped(json, false);
42
+ }
43
+ export function SourceSchemaToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'sourceKey': value['sourceKey'],
49
+ 'isEnabled': value['isEnabled'],
50
+ 'status': SourceStatusToJSON(value['status']),
51
+ };
52
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * UCX Proxy
3
+ * A single use API for the UCX Proxy.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
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
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const SourceStatus: {
17
+ readonly OK: "OK";
18
+ readonly AUTHENTICATION_FAILED: "AUTHENTICATION_FAILED";
19
+ readonly unknown_default_open_api: "11184809";
20
+ };
21
+ export type SourceStatus = typeof SourceStatus[keyof typeof SourceStatus];
22
+ export declare function instanceOfSourceStatus(value: any): boolean;
23
+ export declare function SourceStatusFromJSON(json: any): SourceStatus;
24
+ export declare function SourceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStatus;
25
+ export declare function SourceStatusToJSON(value?: SourceStatus | null): any;
26
+ export declare function SourceStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceStatus;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UCX Proxy
5
+ * A single use API for the UCX Proxy.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
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
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const SourceStatus = {
19
+ OK: 'OK',
20
+ AUTHENTICATION_FAILED: 'AUTHENTICATION_FAILED',
21
+ unknown_default_open_api: '11184809'
22
+ };
23
+ export function instanceOfSourceStatus(value) {
24
+ for (const key in SourceStatus) {
25
+ if (Object.prototype.hasOwnProperty.call(SourceStatus, key)) {
26
+ if (SourceStatus[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function SourceStatusFromJSON(json) {
34
+ return SourceStatusFromJSONTyped(json, false);
35
+ }
36
+ export function SourceStatusFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function SourceStatusToJSON(value) {
40
+ return value;
41
+ }
42
+ export function SourceStatusToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -18,6 +18,8 @@ export * from './OrganizationSourceAuthenticationSchema';
18
18
  export * from './PhoneLabel';
19
19
  export * from './PhoneSchema';
20
20
  export * from './SourceResultSchema';
21
+ export * from './SourceSchema';
22
+ export * from './SourceStatus';
21
23
  export * from './Status';
22
24
  export * from './ToggleSourceAuthenticationSchema';
23
25
  export * from './UpdatePayloadSourceAuthenticationSchema';
@@ -20,6 +20,8 @@ export * from './OrganizationSourceAuthenticationSchema';
20
20
  export * from './PhoneLabel';
21
21
  export * from './PhoneSchema';
22
22
  export * from './SourceResultSchema';
23
+ export * from './SourceSchema';
24
+ export * from './SourceStatus';
23
25
  export * from './Status';
24
26
  export * from './ToggleSourceAuthenticationSchema';
25
27
  export * from './UpdatePayloadSourceAuthenticationSchema';
@@ -0,0 +1,45 @@
1
+ /**
2
+ * UCX Proxy
3
+ * A single use API for the UCX Proxy.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
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 { SourceStatus } from './SourceStatus';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SourceSchema
17
+ */
18
+ export interface SourceSchema {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SourceSchema
23
+ */
24
+ sourceKey: string;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof SourceSchema
29
+ */
30
+ isEnabled: boolean;
31
+ /**
32
+ *
33
+ * @type {SourceStatus}
34
+ * @memberof SourceSchema
35
+ */
36
+ status: SourceStatus;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SourceSchema interface.
40
+ */
41
+ export declare function instanceOfSourceSchema(value: object): value is SourceSchema;
42
+ export declare function SourceSchemaFromJSON(json: any): SourceSchema;
43
+ export declare function SourceSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceSchema;
44
+ export declare function SourceSchemaToJSON(json: any): SourceSchema;
45
+ export declare function SourceSchemaToJSONTyped(value?: SourceSchema | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UCX Proxy
6
+ * A single use API for the UCX Proxy.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
9
+ * Contact: customersuccess@equisoft.com
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.instanceOfSourceSchema = instanceOfSourceSchema;
17
+ exports.SourceSchemaFromJSON = SourceSchemaFromJSON;
18
+ exports.SourceSchemaFromJSONTyped = SourceSchemaFromJSONTyped;
19
+ exports.SourceSchemaToJSON = SourceSchemaToJSON;
20
+ exports.SourceSchemaToJSONTyped = SourceSchemaToJSONTyped;
21
+ const SourceStatus_1 = require("./SourceStatus");
22
+ /**
23
+ * Check if a given object implements the SourceSchema interface.
24
+ */
25
+ function instanceOfSourceSchema(value) {
26
+ if (!('sourceKey' in value) || value['sourceKey'] === undefined)
27
+ return false;
28
+ if (!('isEnabled' in value) || value['isEnabled'] === undefined)
29
+ return false;
30
+ if (!('status' in value) || value['status'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function SourceSchemaFromJSON(json) {
35
+ return SourceSchemaFromJSONTyped(json, false);
36
+ }
37
+ function SourceSchemaFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'sourceKey': json['sourceKey'],
43
+ 'isEnabled': json['isEnabled'],
44
+ 'status': (0, SourceStatus_1.SourceStatusFromJSON)(json['status']),
45
+ };
46
+ }
47
+ function SourceSchemaToJSON(json) {
48
+ return SourceSchemaToJSONTyped(json, false);
49
+ }
50
+ function SourceSchemaToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'sourceKey': value['sourceKey'],
56
+ 'isEnabled': value['isEnabled'],
57
+ 'status': (0, SourceStatus_1.SourceStatusToJSON)(value['status']),
58
+ };
59
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * UCX Proxy
3
+ * A single use API for the UCX Proxy.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
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
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const SourceStatus: {
17
+ readonly OK: "OK";
18
+ readonly AUTHENTICATION_FAILED: "AUTHENTICATION_FAILED";
19
+ readonly unknown_default_open_api: "11184809";
20
+ };
21
+ export type SourceStatus = typeof SourceStatus[keyof typeof SourceStatus];
22
+ export declare function instanceOfSourceStatus(value: any): boolean;
23
+ export declare function SourceStatusFromJSON(json: any): SourceStatus;
24
+ export declare function SourceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStatus;
25
+ export declare function SourceStatusToJSON(value?: SourceStatus | null): any;
26
+ export declare function SourceStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceStatus;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UCX Proxy
6
+ * A single use API for the UCX Proxy.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
9
+ * Contact: customersuccess@equisoft.com
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.SourceStatus = void 0;
17
+ exports.instanceOfSourceStatus = instanceOfSourceStatus;
18
+ exports.SourceStatusFromJSON = SourceStatusFromJSON;
19
+ exports.SourceStatusFromJSONTyped = SourceStatusFromJSONTyped;
20
+ exports.SourceStatusToJSON = SourceStatusToJSON;
21
+ exports.SourceStatusToJSONTyped = SourceStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.SourceStatus = {
27
+ OK: 'OK',
28
+ AUTHENTICATION_FAILED: 'AUTHENTICATION_FAILED',
29
+ unknown_default_open_api: '11184809'
30
+ };
31
+ function instanceOfSourceStatus(value) {
32
+ for (const key in exports.SourceStatus) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.SourceStatus, key)) {
34
+ if (exports.SourceStatus[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function SourceStatusFromJSON(json) {
42
+ return SourceStatusFromJSONTyped(json, false);
43
+ }
44
+ function SourceStatusFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function SourceStatusToJSON(value) {
48
+ return value;
49
+ }
50
+ function SourceStatusToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -18,6 +18,8 @@ export * from './OrganizationSourceAuthenticationSchema';
18
18
  export * from './PhoneLabel';
19
19
  export * from './PhoneSchema';
20
20
  export * from './SourceResultSchema';
21
+ export * from './SourceSchema';
22
+ export * from './SourceStatus';
21
23
  export * from './Status';
22
24
  export * from './ToggleSourceAuthenticationSchema';
23
25
  export * from './UpdatePayloadSourceAuthenticationSchema';
@@ -36,6 +36,8 @@ __exportStar(require("./OrganizationSourceAuthenticationSchema"), exports);
36
36
  __exportStar(require("./PhoneLabel"), exports);
37
37
  __exportStar(require("./PhoneSchema"), exports);
38
38
  __exportStar(require("./SourceResultSchema"), exports);
39
+ __exportStar(require("./SourceSchema"), exports);
40
+ __exportStar(require("./SourceStatus"), exports);
39
41
  __exportStar(require("./Status"), exports);
40
42
  __exportStar(require("./ToggleSourceAuthenticationSchema"), exports);
41
43
  __exportStar(require("./UpdatePayloadSourceAuthenticationSchema"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/ucx-proxy-sdk-typescript",
3
- "version": "0.0.3-snapshot.20260129155212",
3
+ "version": "0.0.3-snapshot.20260203185707",
4
4
  "description": "OpenAPI client for @equisoft/ucx-proxy-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UCX Proxy
5
+ * A single use API for the UCX Proxy.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
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
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ErrorSchema,
19
+ SourceSchema,
20
+ } from '../models/index';
21
+ import {
22
+ ErrorSchemaFromJSON,
23
+ ErrorSchemaToJSON,
24
+ SourceSchemaFromJSON,
25
+ SourceSchemaToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface ListSourcesRequest {
29
+ organizationId?: string | null;
30
+ includeInactive?: boolean | null;
31
+ }
32
+
33
+ /**
34
+ *
35
+ */
36
+ export class ConfiguredSourceForOrganizationUserApi extends runtime.BaseAPI {
37
+
38
+ /**
39
+ * Get all active (and inactive) sources for the current user / organization
40
+ */
41
+ async listSourcesRaw(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SourceSchema>>> {
42
+ const queryParameters: any = {};
43
+
44
+ if (requestParameters['organizationId'] != null) {
45
+ queryParameters['organizationId'] = requestParameters['organizationId'];
46
+ }
47
+
48
+ if (requestParameters['includeInactive'] != null) {
49
+ queryParameters['includeInactive'] = requestParameters['includeInactive'];
50
+ }
51
+
52
+ const headerParameters: runtime.HTTPHeaders = {};
53
+
54
+ const response = await this.request({
55
+ path: `/sources`,
56
+ method: 'GET',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ }, initOverrides);
60
+
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SourceSchemaFromJSON));
62
+ }
63
+
64
+ /**
65
+ * Get all active (and inactive) sources for the current user / organization
66
+ */
67
+ async listSources(requestParameters: ListSourcesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SourceSchema>> {
68
+ const response = await this.listSourcesRaw(requestParameters, initOverrides);
69
+ return await response.value();
70
+ }
71
+
72
+ }
package/src/apis/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ConfiguredSourceForOrganizationUserApi';
3
4
  export * from './ContactApi';
4
5
  export * from './OrganizationSourceAuthenticationApi';
@@ -0,0 +1,94 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UCX Proxy
5
+ * A single use API for the UCX Proxy.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SourceStatus } from './SourceStatus';
17
+ import {
18
+ SourceStatusFromJSON,
19
+ SourceStatusFromJSONTyped,
20
+ SourceStatusToJSON,
21
+ SourceStatusToJSONTyped,
22
+ } from './SourceStatus';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SourceSchema
28
+ */
29
+ export interface SourceSchema {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SourceSchema
34
+ */
35
+ sourceKey: string;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof SourceSchema
40
+ */
41
+ isEnabled: boolean;
42
+ /**
43
+ *
44
+ * @type {SourceStatus}
45
+ * @memberof SourceSchema
46
+ */
47
+ status: SourceStatus;
48
+ }
49
+
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the SourceSchema interface.
54
+ */
55
+ export function instanceOfSourceSchema(value: object): value is SourceSchema {
56
+ if (!('sourceKey' in value) || value['sourceKey'] === undefined) return false;
57
+ if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
58
+ if (!('status' in value) || value['status'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function SourceSchemaFromJSON(json: any): SourceSchema {
63
+ return SourceSchemaFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function SourceSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceSchema {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'sourceKey': json['sourceKey'],
73
+ 'isEnabled': json['isEnabled'],
74
+ 'status': SourceStatusFromJSON(json['status']),
75
+ };
76
+ }
77
+
78
+ export function SourceSchemaToJSON(json: any): SourceSchema {
79
+ return SourceSchemaToJSONTyped(json, false);
80
+ }
81
+
82
+ export function SourceSchemaToJSONTyped(value?: SourceSchema | null, ignoreDiscriminator: boolean = false): any {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+
87
+ return {
88
+
89
+ 'sourceKey': value['sourceKey'],
90
+ 'isEnabled': value['isEnabled'],
91
+ 'status': SourceStatusToJSON(value['status']),
92
+ };
93
+ }
94
+
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UCX Proxy
5
+ * A single use API for the UCX Proxy.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
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
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const SourceStatus = {
21
+ OK: 'OK',
22
+ AUTHENTICATION_FAILED: 'AUTHENTICATION_FAILED',
23
+ unknown_default_open_api: '11184809'
24
+ } as const;
25
+ export type SourceStatus = typeof SourceStatus[keyof typeof SourceStatus];
26
+
27
+
28
+ export function instanceOfSourceStatus(value: any): boolean {
29
+ for (const key in SourceStatus) {
30
+ if (Object.prototype.hasOwnProperty.call(SourceStatus, key)) {
31
+ if (SourceStatus[key as keyof typeof SourceStatus] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function SourceStatusFromJSON(json: any): SourceStatus {
40
+ return SourceStatusFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function SourceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStatus {
44
+ return json as SourceStatus;
45
+ }
46
+
47
+ export function SourceStatusToJSON(value?: SourceStatus | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function SourceStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceStatus {
52
+ return value as SourceStatus;
53
+ }
54
+
@@ -20,6 +20,8 @@ export * from './OrganizationSourceAuthenticationSchema';
20
20
  export * from './PhoneLabel';
21
21
  export * from './PhoneSchema';
22
22
  export * from './SourceResultSchema';
23
+ export * from './SourceSchema';
24
+ export * from './SourceStatus';
23
25
  export * from './Status';
24
26
  export * from './ToggleSourceAuthenticationSchema';
25
27
  export * from './UpdatePayloadSourceAuthenticationSchema';