@equisoft/ucx-proxy-sdk-typescript 0.0.3-snapshot.20250910185730
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/.openapi-generator/FILES +33 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/.tool-versions +3 -0
- package/README.md +46 -0
- package/dist/apis/ContactApi.d.ts +31 -0
- package/dist/apis/ContactApi.js +67 -0
- package/dist/apis/OrganizationSourceAuthenticationApi.d.ts +81 -0
- package/dist/apis/OrganizationSourceAuthenticationApi.js +236 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/esm/apis/ContactApi.d.ts +31 -0
- package/dist/esm/apis/ContactApi.js +63 -0
- package/dist/esm/apis/OrganizationSourceAuthenticationApi.d.ts +81 -0
- package/dist/esm/apis/OrganizationSourceAuthenticationApi.js +232 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AddressLabel.d.ts +29 -0
- package/dist/esm/models/AddressLabel.js +47 -0
- package/dist/esm/models/AddressSchema.d.ts +75 -0
- package/dist/esm/models/AddressSchema.js +60 -0
- package/dist/esm/models/ContactLanguage.d.ts +26 -0
- package/dist/esm/models/ContactLanguage.js +44 -0
- package/dist/esm/models/ContactSchema.d.ts +116 -0
- package/dist/esm/models/ContactSchema.js +83 -0
- package/dist/esm/models/CreatePayloadSourceAuthenticationSchema.d.ts +54 -0
- package/dist/esm/models/CreatePayloadSourceAuthenticationSchema.js +55 -0
- package/dist/esm/models/EmailLabel.d.ts +28 -0
- package/dist/esm/models/EmailLabel.js +46 -0
- package/dist/esm/models/EmailSchema.d.ts +45 -0
- package/dist/esm/models/EmailSchema.js +52 -0
- package/dist/esm/models/ErrorCodes.d.ts +27 -0
- package/dist/esm/models/ErrorCodes.js +45 -0
- package/dist/esm/models/ErrorResponse.d.ts +46 -0
- package/dist/esm/models/ErrorResponse.js +45 -0
- package/dist/esm/models/ErrorSchema.d.ts +39 -0
- package/dist/esm/models/ErrorSchema.js +46 -0
- package/dist/esm/models/Gender.d.ts +28 -0
- package/dist/esm/models/Gender.js +46 -0
- package/dist/esm/models/ListOrganizationSourceAuthenticationResultSchema.d.ts +33 -0
- package/dist/esm/models/ListOrganizationSourceAuthenticationResultSchema.js +44 -0
- package/dist/esm/models/MaritalStatus.d.ts +32 -0
- package/dist/esm/models/MaritalStatus.js +50 -0
- package/dist/esm/models/OrganizationSourceAuthenticationResultSchema.d.ts +47 -0
- package/dist/esm/models/OrganizationSourceAuthenticationResultSchema.js +50 -0
- package/dist/esm/models/OrganizationSourceAuthenticationSchema.d.ts +78 -0
- package/dist/esm/models/OrganizationSourceAuthenticationSchema.js +71 -0
- package/dist/esm/models/PhoneLabel.d.ts +30 -0
- package/dist/esm/models/PhoneLabel.js +48 -0
- package/dist/esm/models/PhoneSchema.d.ts +45 -0
- package/dist/esm/models/PhoneSchema.js +50 -0
- package/dist/esm/models/SourceResultSchema.d.ts +59 -0
- package/dist/esm/models/SourceResultSchema.js +56 -0
- package/dist/esm/models/Status.d.ts +26 -0
- package/dist/esm/models/Status.js +44 -0
- package/dist/esm/models/ToggleSourceAuthenticationSchema.d.ts +38 -0
- package/dist/esm/models/ToggleSourceAuthenticationSchema.js +47 -0
- package/dist/esm/models/UpdatePayloadSourceAuthenticationSchema.d.ts +48 -0
- package/dist/esm/models/UpdatePayloadSourceAuthenticationSchema.js +51 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +23 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AddressLabel.d.ts +29 -0
- package/dist/models/AddressLabel.js +55 -0
- package/dist/models/AddressSchema.d.ts +75 -0
- package/dist/models/AddressSchema.js +67 -0
- package/dist/models/ContactLanguage.d.ts +26 -0
- package/dist/models/ContactLanguage.js +52 -0
- package/dist/models/ContactSchema.d.ts +116 -0
- package/dist/models/ContactSchema.js +90 -0
- package/dist/models/CreatePayloadSourceAuthenticationSchema.d.ts +54 -0
- package/dist/models/CreatePayloadSourceAuthenticationSchema.js +62 -0
- package/dist/models/EmailLabel.d.ts +28 -0
- package/dist/models/EmailLabel.js +54 -0
- package/dist/models/EmailSchema.d.ts +45 -0
- package/dist/models/EmailSchema.js +59 -0
- package/dist/models/ErrorCodes.d.ts +27 -0
- package/dist/models/ErrorCodes.js +53 -0
- package/dist/models/ErrorResponse.d.ts +46 -0
- package/dist/models/ErrorResponse.js +52 -0
- package/dist/models/ErrorSchema.d.ts +39 -0
- package/dist/models/ErrorSchema.js +53 -0
- package/dist/models/Gender.d.ts +28 -0
- package/dist/models/Gender.js +54 -0
- package/dist/models/ListOrganizationSourceAuthenticationResultSchema.d.ts +33 -0
- package/dist/models/ListOrganizationSourceAuthenticationResultSchema.js +51 -0
- package/dist/models/MaritalStatus.d.ts +32 -0
- package/dist/models/MaritalStatus.js +58 -0
- package/dist/models/OrganizationSourceAuthenticationResultSchema.d.ts +47 -0
- package/dist/models/OrganizationSourceAuthenticationResultSchema.js +57 -0
- package/dist/models/OrganizationSourceAuthenticationSchema.d.ts +78 -0
- package/dist/models/OrganizationSourceAuthenticationSchema.js +78 -0
- package/dist/models/PhoneLabel.d.ts +30 -0
- package/dist/models/PhoneLabel.js +56 -0
- package/dist/models/PhoneSchema.d.ts +45 -0
- package/dist/models/PhoneSchema.js +57 -0
- package/dist/models/SourceResultSchema.d.ts +59 -0
- package/dist/models/SourceResultSchema.js +63 -0
- package/dist/models/Status.d.ts +26 -0
- package/dist/models/Status.js +52 -0
- package/dist/models/ToggleSourceAuthenticationSchema.d.ts +38 -0
- package/dist/models/ToggleSourceAuthenticationSchema.js +54 -0
- package/dist/models/UpdatePayloadSourceAuthenticationSchema.d.ts +48 -0
- package/dist/models/UpdatePayloadSourceAuthenticationSchema.js +58 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +39 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +21 -0
- package/src/apis/ContactApi.ts +77 -0
- package/src/apis/OrganizationSourceAuthenticationApi.ts +332 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/AddressLabel.ts +57 -0
- package/src/models/AddressSchema.ts +133 -0
- package/src/models/ContactLanguage.ts +54 -0
- package/src/models/ContactSchema.ts +219 -0
- package/src/models/CreatePayloadSourceAuthenticationSchema.ts +93 -0
- package/src/models/EmailLabel.ts +56 -0
- package/src/models/EmailSchema.ts +94 -0
- package/src/models/ErrorCodes.ts +55 -0
- package/src/models/ErrorResponse.ts +81 -0
- package/src/models/ErrorSchema.ts +84 -0
- package/src/models/Gender.ts +56 -0
- package/src/models/ListOrganizationSourceAuthenticationResultSchema.ts +74 -0
- package/src/models/MaritalStatus.ts +60 -0
- package/src/models/OrganizationSourceAuthenticationResultSchema.ts +106 -0
- package/src/models/OrganizationSourceAuthenticationSchema.ts +129 -0
- package/src/models/PhoneLabel.ts +58 -0
- package/src/models/PhoneSchema.ts +93 -0
- package/src/models/SourceResultSchema.ts +123 -0
- package/src/models/Status.ts +54 -0
- package/src/models/ToggleSourceAuthenticationSchema.ts +75 -0
- package/src/models/UpdatePayloadSourceAuthenticationSchema.ts +84 -0
- package/src/models/index.ts +23 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,81 @@
|
|
|
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 { CreatePayloadSourceAuthenticationSchema, ListOrganizationSourceAuthenticationResultSchema, OrganizationSourceAuthenticationResultSchema, ToggleSourceAuthenticationSchema, UpdatePayloadSourceAuthenticationSchema } from '../models/index';
|
|
14
|
+
export interface CreateOrganizationSourceRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
payload: CreatePayloadSourceAuthenticationSchema;
|
|
17
|
+
certificate?: Blob | null;
|
|
18
|
+
}
|
|
19
|
+
export interface DeleteOrganizationSourceRequest {
|
|
20
|
+
organizationId: string;
|
|
21
|
+
sourceKey: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ListOrganizationSourcesRequest {
|
|
24
|
+
organizationId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ToggleOrganizationSourceRequest {
|
|
27
|
+
organizationId: string;
|
|
28
|
+
sourceKey: string;
|
|
29
|
+
toggleSourceAuthenticationSchema: ToggleSourceAuthenticationSchema;
|
|
30
|
+
}
|
|
31
|
+
export interface UpdateOrganizationSourceRequest {
|
|
32
|
+
organizationId: string;
|
|
33
|
+
sourceKey: string;
|
|
34
|
+
payload: UpdatePayloadSourceAuthenticationSchema;
|
|
35
|
+
certificate?: Blob | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare class OrganizationSourceAuthenticationApi extends runtime.BaseAPI {
|
|
41
|
+
/**
|
|
42
|
+
* Create a new source for an organization and authenticate
|
|
43
|
+
*/
|
|
44
|
+
createOrganizationSourceRaw(requestParameters: CreateOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationSourceAuthenticationResultSchema>>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a new source for an organization and authenticate
|
|
47
|
+
*/
|
|
48
|
+
createOrganizationSource(requestParameters: CreateOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationSourceAuthenticationResultSchema>;
|
|
49
|
+
/**
|
|
50
|
+
* Delete an existing source
|
|
51
|
+
*/
|
|
52
|
+
deleteOrganizationSourceRaw(requestParameters: DeleteOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
53
|
+
/**
|
|
54
|
+
* Delete an existing source
|
|
55
|
+
*/
|
|
56
|
+
deleteOrganizationSource(requestParameters: DeleteOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Get all the authentication sources for an organization
|
|
59
|
+
*/
|
|
60
|
+
listOrganizationSourcesRaw(requestParameters: ListOrganizationSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListOrganizationSourceAuthenticationResultSchema>>;
|
|
61
|
+
/**
|
|
62
|
+
* Get all the authentication sources for an organization
|
|
63
|
+
*/
|
|
64
|
+
listOrganizationSources(requestParameters: ListOrganizationSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListOrganizationSourceAuthenticationResultSchema>;
|
|
65
|
+
/**
|
|
66
|
+
* Enable or disable a given source for an organization
|
|
67
|
+
*/
|
|
68
|
+
toggleOrganizationSourceRaw(requestParameters: ToggleOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationSourceAuthenticationResultSchema>>;
|
|
69
|
+
/**
|
|
70
|
+
* Enable or disable a given source for an organization
|
|
71
|
+
*/
|
|
72
|
+
toggleOrganizationSource(requestParameters: ToggleOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationSourceAuthenticationResultSchema>;
|
|
73
|
+
/**
|
|
74
|
+
* Update the credentials of a given source for an organization
|
|
75
|
+
*/
|
|
76
|
+
updateOrganizationSourceRaw(requestParameters: UpdateOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationSourceAuthenticationResultSchema>>;
|
|
77
|
+
/**
|
|
78
|
+
* Update the credentials of a given source for an organization
|
|
79
|
+
*/
|
|
80
|
+
updateOrganizationSource(requestParameters: UpdateOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationSourceAuthenticationResultSchema>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
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 { ListOrganizationSourceAuthenticationResultSchemaFromJSON, OrganizationSourceAuthenticationResultSchemaFromJSON, OrganizationSourceAuthenticationResultSchemaToJSON, ToggleSourceAuthenticationSchemaToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class OrganizationSourceAuthenticationApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Create a new source for an organization and authenticate
|
|
31
|
+
*/
|
|
32
|
+
createOrganizationSourceRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['organizationId'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createOrganizationSource().');
|
|
36
|
+
}
|
|
37
|
+
if (requestParameters['payload'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('payload', 'Required parameter "payload" was null or undefined when calling createOrganizationSource().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
const consumes = [
|
|
43
|
+
{ contentType: 'multipart/form-data' },
|
|
44
|
+
];
|
|
45
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
46
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
47
|
+
let formParams;
|
|
48
|
+
let useForm = false;
|
|
49
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
50
|
+
useForm = canConsumeForm;
|
|
51
|
+
if (useForm) {
|
|
52
|
+
formParams = new FormData();
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
formParams = new URLSearchParams();
|
|
56
|
+
}
|
|
57
|
+
if (requestParameters['payload'] != null) {
|
|
58
|
+
formParams.append('payload', new Blob([JSON.stringify(OrganizationSourceAuthenticationResultSchemaToJSON(requestParameters['payload']))], { type: "application/json", }));
|
|
59
|
+
}
|
|
60
|
+
if (requestParameters['certificate'] != null) {
|
|
61
|
+
formParams.append('certificate', requestParameters['certificate']);
|
|
62
|
+
}
|
|
63
|
+
const response = yield this.request({
|
|
64
|
+
path: `/authentications/organizations/{organizationId}/sources`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
65
|
+
method: 'POST',
|
|
66
|
+
headers: headerParameters,
|
|
67
|
+
query: queryParameters,
|
|
68
|
+
body: formParams,
|
|
69
|
+
}, initOverrides);
|
|
70
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationSourceAuthenticationResultSchemaFromJSON(jsonValue));
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Create a new source for an organization and authenticate
|
|
75
|
+
*/
|
|
76
|
+
createOrganizationSource(requestParameters, initOverrides) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
const response = yield this.createOrganizationSourceRaw(requestParameters, initOverrides);
|
|
79
|
+
return yield response.value();
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Delete an existing source
|
|
84
|
+
*/
|
|
85
|
+
deleteOrganizationSourceRaw(requestParameters, initOverrides) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
if (requestParameters['organizationId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteOrganizationSource().');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters['sourceKey'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('sourceKey', 'Required parameter "sourceKey" was null or undefined when calling deleteOrganizationSource().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
const response = yield this.request({
|
|
96
|
+
path: `/authentications/organizations/{organizationId}/sources/{sourceKey}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceKey"}}`, encodeURIComponent(String(requestParameters['sourceKey']))),
|
|
97
|
+
method: 'DELETE',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
return new runtime.VoidApiResponse(response);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Delete an existing source
|
|
106
|
+
*/
|
|
107
|
+
deleteOrganizationSource(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
yield this.deleteOrganizationSourceRaw(requestParameters, initOverrides);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Get all the authentication sources for an organization
|
|
114
|
+
*/
|
|
115
|
+
listOrganizationSourcesRaw(requestParameters, initOverrides) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
if (requestParameters['organizationId'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationSources().');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
const headerParameters = {};
|
|
122
|
+
const response = yield this.request({
|
|
123
|
+
path: `/authentications/organizations/{organizationId}/sources`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
124
|
+
method: 'GET',
|
|
125
|
+
headers: headerParameters,
|
|
126
|
+
query: queryParameters,
|
|
127
|
+
}, initOverrides);
|
|
128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListOrganizationSourceAuthenticationResultSchemaFromJSON(jsonValue));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Get all the authentication sources for an organization
|
|
133
|
+
*/
|
|
134
|
+
listOrganizationSources(requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const response = yield this.listOrganizationSourcesRaw(requestParameters, initOverrides);
|
|
137
|
+
return yield response.value();
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Enable or disable a given source for an organization
|
|
142
|
+
*/
|
|
143
|
+
toggleOrganizationSourceRaw(requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
if (requestParameters['organizationId'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling toggleOrganizationSource().');
|
|
147
|
+
}
|
|
148
|
+
if (requestParameters['sourceKey'] == null) {
|
|
149
|
+
throw new runtime.RequiredError('sourceKey', 'Required parameter "sourceKey" was null or undefined when calling toggleOrganizationSource().');
|
|
150
|
+
}
|
|
151
|
+
if (requestParameters['toggleSourceAuthenticationSchema'] == null) {
|
|
152
|
+
throw new runtime.RequiredError('toggleSourceAuthenticationSchema', 'Required parameter "toggleSourceAuthenticationSchema" was null or undefined when calling toggleOrganizationSource().');
|
|
153
|
+
}
|
|
154
|
+
const queryParameters = {};
|
|
155
|
+
const headerParameters = {};
|
|
156
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
157
|
+
const response = yield this.request({
|
|
158
|
+
path: `/authentications/organizations/{organizationId}/sources/{sourceKey}/state`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceKey"}}`, encodeURIComponent(String(requestParameters['sourceKey']))),
|
|
159
|
+
method: 'PUT',
|
|
160
|
+
headers: headerParameters,
|
|
161
|
+
query: queryParameters,
|
|
162
|
+
body: ToggleSourceAuthenticationSchemaToJSON(requestParameters['toggleSourceAuthenticationSchema']),
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationSourceAuthenticationResultSchemaFromJSON(jsonValue));
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Enable or disable a given source for an organization
|
|
169
|
+
*/
|
|
170
|
+
toggleOrganizationSource(requestParameters, initOverrides) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
const response = yield this.toggleOrganizationSourceRaw(requestParameters, initOverrides);
|
|
173
|
+
return yield response.value();
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Update the credentials of a given source for an organization
|
|
178
|
+
*/
|
|
179
|
+
updateOrganizationSourceRaw(requestParameters, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
if (requestParameters['organizationId'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateOrganizationSource().');
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters['sourceKey'] == null) {
|
|
185
|
+
throw new runtime.RequiredError('sourceKey', 'Required parameter "sourceKey" was null or undefined when calling updateOrganizationSource().');
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['payload'] == null) {
|
|
188
|
+
throw new runtime.RequiredError('payload', 'Required parameter "payload" was null or undefined when calling updateOrganizationSource().');
|
|
189
|
+
}
|
|
190
|
+
const queryParameters = {};
|
|
191
|
+
const headerParameters = {};
|
|
192
|
+
const consumes = [
|
|
193
|
+
{ contentType: 'multipart/form-data' },
|
|
194
|
+
];
|
|
195
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
196
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
197
|
+
let formParams;
|
|
198
|
+
let useForm = false;
|
|
199
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
200
|
+
useForm = canConsumeForm;
|
|
201
|
+
if (useForm) {
|
|
202
|
+
formParams = new FormData();
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
formParams = new URLSearchParams();
|
|
206
|
+
}
|
|
207
|
+
if (requestParameters['payload'] != null) {
|
|
208
|
+
formParams.append('payload', new Blob([JSON.stringify(OrganizationSourceAuthenticationResultSchemaToJSON(requestParameters['payload']))], { type: "application/json", }));
|
|
209
|
+
}
|
|
210
|
+
if (requestParameters['certificate'] != null) {
|
|
211
|
+
formParams.append('certificate', requestParameters['certificate']);
|
|
212
|
+
}
|
|
213
|
+
const response = yield this.request({
|
|
214
|
+
path: `/authentications/organizations/{organizationId}/sources/{sourceKey}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceKey"}}`, encodeURIComponent(String(requestParameters['sourceKey']))),
|
|
215
|
+
method: 'PUT',
|
|
216
|
+
headers: headerParameters,
|
|
217
|
+
query: queryParameters,
|
|
218
|
+
body: formParams,
|
|
219
|
+
}, initOverrides);
|
|
220
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationSourceAuthenticationResultSchemaFromJSON(jsonValue));
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Update the credentials of a given source for an organization
|
|
225
|
+
*/
|
|
226
|
+
updateOrganizationSource(requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const response = yield this.updateOrganizationSourceRaw(requestParameters, initOverrides);
|
|
229
|
+
return yield response.value();
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 AddressLabel: {
|
|
17
|
+
readonly HOME: "HOME";
|
|
18
|
+
readonly SECONDARY: "SECONDARY";
|
|
19
|
+
readonly WORK: "WORK";
|
|
20
|
+
readonly OTHER: "OTHER";
|
|
21
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
22
|
+
readonly unknown_default_open_api: "11184809";
|
|
23
|
+
};
|
|
24
|
+
export type AddressLabel = typeof AddressLabel[keyof typeof AddressLabel];
|
|
25
|
+
export declare function instanceOfAddressLabel(value: any): boolean;
|
|
26
|
+
export declare function AddressLabelFromJSON(json: any): AddressLabel;
|
|
27
|
+
export declare function AddressLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressLabel;
|
|
28
|
+
export declare function AddressLabelToJSON(value?: AddressLabel | null): any;
|
|
29
|
+
export declare function AddressLabelToJSONTyped(value: any, ignoreDiscriminator: boolean): AddressLabel;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 AddressLabel = {
|
|
19
|
+
HOME: 'HOME',
|
|
20
|
+
SECONDARY: 'SECONDARY',
|
|
21
|
+
WORK: 'WORK',
|
|
22
|
+
OTHER: 'OTHER',
|
|
23
|
+
UNKNOWN: 'UNKNOWN',
|
|
24
|
+
unknown_default_open_api: '11184809'
|
|
25
|
+
};
|
|
26
|
+
export function instanceOfAddressLabel(value) {
|
|
27
|
+
for (const key in AddressLabel) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(AddressLabel, key)) {
|
|
29
|
+
if (AddressLabel[key] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
export function AddressLabelFromJSON(json) {
|
|
37
|
+
return AddressLabelFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AddressLabelFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
export function AddressLabelToJSON(value) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
export function AddressLabelToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { AddressLabel } from './AddressLabel';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddressSchema
|
|
17
|
+
*/
|
|
18
|
+
export interface AddressSchema {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AddressLabel}
|
|
22
|
+
* @memberof AddressSchema
|
|
23
|
+
*/
|
|
24
|
+
label: AddressLabel;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AddressSchema
|
|
29
|
+
*/
|
|
30
|
+
line1?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AddressSchema
|
|
35
|
+
*/
|
|
36
|
+
line2?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AddressSchema
|
|
41
|
+
*/
|
|
42
|
+
city?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AddressSchema
|
|
47
|
+
*/
|
|
48
|
+
postalCode?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AddressSchema
|
|
53
|
+
*/
|
|
54
|
+
state?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AddressSchema
|
|
59
|
+
*/
|
|
60
|
+
country?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof AddressSchema
|
|
65
|
+
*/
|
|
66
|
+
main: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the AddressSchema interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfAddressSchema(value: object): value is AddressSchema;
|
|
72
|
+
export declare function AddressSchemaFromJSON(json: any): AddressSchema;
|
|
73
|
+
export declare function AddressSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressSchema;
|
|
74
|
+
export declare function AddressSchemaToJSON(json: any): AddressSchema;
|
|
75
|
+
export declare function AddressSchemaToJSONTyped(value?: AddressSchema | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
import { AddressLabelFromJSON, AddressLabelToJSON, } from './AddressLabel';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AddressSchema interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAddressSchema(value) {
|
|
19
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('main' in value) || value['main'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AddressSchemaFromJSON(json) {
|
|
26
|
+
return AddressSchemaFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AddressSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'label': AddressLabelFromJSON(json['label']),
|
|
34
|
+
'line1': json['line1'] == null ? undefined : json['line1'],
|
|
35
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
36
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
37
|
+
'postalCode': json['postal_code'] == null ? undefined : json['postal_code'],
|
|
38
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
39
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
40
|
+
'main': json['main'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function AddressSchemaToJSON(json) {
|
|
44
|
+
return AddressSchemaToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function AddressSchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'label': AddressLabelToJSON(value['label']),
|
|
52
|
+
'line1': value['line1'],
|
|
53
|
+
'line2': value['line2'],
|
|
54
|
+
'city': value['city'],
|
|
55
|
+
'postal_code': value['postalCode'],
|
|
56
|
+
'state': value['state'],
|
|
57
|
+
'country': value['country'],
|
|
58
|
+
'main': value['main'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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 ContactLanguage: {
|
|
17
|
+
readonly ENGLISH: "ENGLISH";
|
|
18
|
+
readonly FRENCH: "FRENCH";
|
|
19
|
+
readonly unknown_default_open_api: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type ContactLanguage = typeof ContactLanguage[keyof typeof ContactLanguage];
|
|
22
|
+
export declare function instanceOfContactLanguage(value: any): boolean;
|
|
23
|
+
export declare function ContactLanguageFromJSON(json: any): ContactLanguage;
|
|
24
|
+
export declare function ContactLanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactLanguage;
|
|
25
|
+
export declare function ContactLanguageToJSON(value?: ContactLanguage | null): any;
|
|
26
|
+
export declare function ContactLanguageToJSONTyped(value: any, ignoreDiscriminator: boolean): ContactLanguage;
|
|
@@ -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 ContactLanguage = {
|
|
19
|
+
ENGLISH: 'ENGLISH',
|
|
20
|
+
FRENCH: 'FRENCH',
|
|
21
|
+
unknown_default_open_api: '11184809'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfContactLanguage(value) {
|
|
24
|
+
for (const key in ContactLanguage) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(ContactLanguage, key)) {
|
|
26
|
+
if (ContactLanguage[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function ContactLanguageFromJSON(json) {
|
|
34
|
+
return ContactLanguageFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ContactLanguageFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function ContactLanguageToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function ContactLanguageToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|