@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.
Files changed (143) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/.tool-versions +3 -0
  5. package/README.md +46 -0
  6. package/dist/apis/ContactApi.d.ts +31 -0
  7. package/dist/apis/ContactApi.js +67 -0
  8. package/dist/apis/OrganizationSourceAuthenticationApi.d.ts +81 -0
  9. package/dist/apis/OrganizationSourceAuthenticationApi.js +236 -0
  10. package/dist/apis/index.d.ts +2 -0
  11. package/dist/apis/index.js +20 -0
  12. package/dist/esm/apis/ContactApi.d.ts +31 -0
  13. package/dist/esm/apis/ContactApi.js +63 -0
  14. package/dist/esm/apis/OrganizationSourceAuthenticationApi.d.ts +81 -0
  15. package/dist/esm/apis/OrganizationSourceAuthenticationApi.js +232 -0
  16. package/dist/esm/apis/index.d.ts +2 -0
  17. package/dist/esm/apis/index.js +4 -0
  18. package/dist/esm/index.d.ts +3 -0
  19. package/dist/esm/index.js +5 -0
  20. package/dist/esm/models/AddressLabel.d.ts +29 -0
  21. package/dist/esm/models/AddressLabel.js +47 -0
  22. package/dist/esm/models/AddressSchema.d.ts +75 -0
  23. package/dist/esm/models/AddressSchema.js +60 -0
  24. package/dist/esm/models/ContactLanguage.d.ts +26 -0
  25. package/dist/esm/models/ContactLanguage.js +44 -0
  26. package/dist/esm/models/ContactSchema.d.ts +116 -0
  27. package/dist/esm/models/ContactSchema.js +83 -0
  28. package/dist/esm/models/CreatePayloadSourceAuthenticationSchema.d.ts +54 -0
  29. package/dist/esm/models/CreatePayloadSourceAuthenticationSchema.js +55 -0
  30. package/dist/esm/models/EmailLabel.d.ts +28 -0
  31. package/dist/esm/models/EmailLabel.js +46 -0
  32. package/dist/esm/models/EmailSchema.d.ts +45 -0
  33. package/dist/esm/models/EmailSchema.js +52 -0
  34. package/dist/esm/models/ErrorCodes.d.ts +27 -0
  35. package/dist/esm/models/ErrorCodes.js +45 -0
  36. package/dist/esm/models/ErrorResponse.d.ts +46 -0
  37. package/dist/esm/models/ErrorResponse.js +45 -0
  38. package/dist/esm/models/ErrorSchema.d.ts +39 -0
  39. package/dist/esm/models/ErrorSchema.js +46 -0
  40. package/dist/esm/models/Gender.d.ts +28 -0
  41. package/dist/esm/models/Gender.js +46 -0
  42. package/dist/esm/models/ListOrganizationSourceAuthenticationResultSchema.d.ts +33 -0
  43. package/dist/esm/models/ListOrganizationSourceAuthenticationResultSchema.js +44 -0
  44. package/dist/esm/models/MaritalStatus.d.ts +32 -0
  45. package/dist/esm/models/MaritalStatus.js +50 -0
  46. package/dist/esm/models/OrganizationSourceAuthenticationResultSchema.d.ts +47 -0
  47. package/dist/esm/models/OrganizationSourceAuthenticationResultSchema.js +50 -0
  48. package/dist/esm/models/OrganizationSourceAuthenticationSchema.d.ts +78 -0
  49. package/dist/esm/models/OrganizationSourceAuthenticationSchema.js +71 -0
  50. package/dist/esm/models/PhoneLabel.d.ts +30 -0
  51. package/dist/esm/models/PhoneLabel.js +48 -0
  52. package/dist/esm/models/PhoneSchema.d.ts +45 -0
  53. package/dist/esm/models/PhoneSchema.js +50 -0
  54. package/dist/esm/models/SourceResultSchema.d.ts +59 -0
  55. package/dist/esm/models/SourceResultSchema.js +56 -0
  56. package/dist/esm/models/Status.d.ts +26 -0
  57. package/dist/esm/models/Status.js +44 -0
  58. package/dist/esm/models/ToggleSourceAuthenticationSchema.d.ts +38 -0
  59. package/dist/esm/models/ToggleSourceAuthenticationSchema.js +47 -0
  60. package/dist/esm/models/UpdatePayloadSourceAuthenticationSchema.d.ts +48 -0
  61. package/dist/esm/models/UpdatePayloadSourceAuthenticationSchema.js +51 -0
  62. package/dist/esm/models/index.d.ts +21 -0
  63. package/dist/esm/models/index.js +23 -0
  64. package/dist/esm/runtime.d.ts +184 -0
  65. package/dist/esm/runtime.js +334 -0
  66. package/dist/index.d.ts +3 -0
  67. package/dist/index.js +21 -0
  68. package/dist/models/AddressLabel.d.ts +29 -0
  69. package/dist/models/AddressLabel.js +55 -0
  70. package/dist/models/AddressSchema.d.ts +75 -0
  71. package/dist/models/AddressSchema.js +67 -0
  72. package/dist/models/ContactLanguage.d.ts +26 -0
  73. package/dist/models/ContactLanguage.js +52 -0
  74. package/dist/models/ContactSchema.d.ts +116 -0
  75. package/dist/models/ContactSchema.js +90 -0
  76. package/dist/models/CreatePayloadSourceAuthenticationSchema.d.ts +54 -0
  77. package/dist/models/CreatePayloadSourceAuthenticationSchema.js +62 -0
  78. package/dist/models/EmailLabel.d.ts +28 -0
  79. package/dist/models/EmailLabel.js +54 -0
  80. package/dist/models/EmailSchema.d.ts +45 -0
  81. package/dist/models/EmailSchema.js +59 -0
  82. package/dist/models/ErrorCodes.d.ts +27 -0
  83. package/dist/models/ErrorCodes.js +53 -0
  84. package/dist/models/ErrorResponse.d.ts +46 -0
  85. package/dist/models/ErrorResponse.js +52 -0
  86. package/dist/models/ErrorSchema.d.ts +39 -0
  87. package/dist/models/ErrorSchema.js +53 -0
  88. package/dist/models/Gender.d.ts +28 -0
  89. package/dist/models/Gender.js +54 -0
  90. package/dist/models/ListOrganizationSourceAuthenticationResultSchema.d.ts +33 -0
  91. package/dist/models/ListOrganizationSourceAuthenticationResultSchema.js +51 -0
  92. package/dist/models/MaritalStatus.d.ts +32 -0
  93. package/dist/models/MaritalStatus.js +58 -0
  94. package/dist/models/OrganizationSourceAuthenticationResultSchema.d.ts +47 -0
  95. package/dist/models/OrganizationSourceAuthenticationResultSchema.js +57 -0
  96. package/dist/models/OrganizationSourceAuthenticationSchema.d.ts +78 -0
  97. package/dist/models/OrganizationSourceAuthenticationSchema.js +78 -0
  98. package/dist/models/PhoneLabel.d.ts +30 -0
  99. package/dist/models/PhoneLabel.js +56 -0
  100. package/dist/models/PhoneSchema.d.ts +45 -0
  101. package/dist/models/PhoneSchema.js +57 -0
  102. package/dist/models/SourceResultSchema.d.ts +59 -0
  103. package/dist/models/SourceResultSchema.js +63 -0
  104. package/dist/models/Status.d.ts +26 -0
  105. package/dist/models/Status.js +52 -0
  106. package/dist/models/ToggleSourceAuthenticationSchema.d.ts +38 -0
  107. package/dist/models/ToggleSourceAuthenticationSchema.js +54 -0
  108. package/dist/models/UpdatePayloadSourceAuthenticationSchema.d.ts +48 -0
  109. package/dist/models/UpdatePayloadSourceAuthenticationSchema.js +58 -0
  110. package/dist/models/index.d.ts +21 -0
  111. package/dist/models/index.js +39 -0
  112. package/dist/runtime.d.ts +184 -0
  113. package/dist/runtime.js +350 -0
  114. package/package.json +21 -0
  115. package/src/apis/ContactApi.ts +77 -0
  116. package/src/apis/OrganizationSourceAuthenticationApi.ts +332 -0
  117. package/src/apis/index.ts +4 -0
  118. package/src/index.ts +5 -0
  119. package/src/models/AddressLabel.ts +57 -0
  120. package/src/models/AddressSchema.ts +133 -0
  121. package/src/models/ContactLanguage.ts +54 -0
  122. package/src/models/ContactSchema.ts +219 -0
  123. package/src/models/CreatePayloadSourceAuthenticationSchema.ts +93 -0
  124. package/src/models/EmailLabel.ts +56 -0
  125. package/src/models/EmailSchema.ts +94 -0
  126. package/src/models/ErrorCodes.ts +55 -0
  127. package/src/models/ErrorResponse.ts +81 -0
  128. package/src/models/ErrorSchema.ts +84 -0
  129. package/src/models/Gender.ts +56 -0
  130. package/src/models/ListOrganizationSourceAuthenticationResultSchema.ts +74 -0
  131. package/src/models/MaritalStatus.ts +60 -0
  132. package/src/models/OrganizationSourceAuthenticationResultSchema.ts +106 -0
  133. package/src/models/OrganizationSourceAuthenticationSchema.ts +129 -0
  134. package/src/models/PhoneLabel.ts +58 -0
  135. package/src/models/PhoneSchema.ts +93 -0
  136. package/src/models/SourceResultSchema.ts +123 -0
  137. package/src/models/Status.ts +54 -0
  138. package/src/models/ToggleSourceAuthenticationSchema.ts +75 -0
  139. package/src/models/UpdatePayloadSourceAuthenticationSchema.ts +84 -0
  140. package/src/models/index.ts +23 -0
  141. package/src/runtime.ts +432 -0
  142. package/tsconfig.esm.json +7 -0
  143. 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,2 @@
1
+ export * from './ContactApi';
2
+ export * from './OrganizationSourceAuthenticationApi';
@@ -0,0 +1,4 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ContactApi';
4
+ export * from './OrganizationSourceAuthenticationApi';
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -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
+ }