@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,332 @@
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
+ CreatePayloadSourceAuthenticationSchema,
19
+ ErrorSchema,
20
+ ListOrganizationSourceAuthenticationResultSchema,
21
+ OrganizationSourceAuthenticationResultSchema,
22
+ ToggleSourceAuthenticationSchema,
23
+ UpdatePayloadSourceAuthenticationSchema,
24
+ } from '../models/index';
25
+ import {
26
+ CreatePayloadSourceAuthenticationSchemaFromJSON,
27
+ CreatePayloadSourceAuthenticationSchemaToJSON,
28
+ ErrorSchemaFromJSON,
29
+ ErrorSchemaToJSON,
30
+ ListOrganizationSourceAuthenticationResultSchemaFromJSON,
31
+ ListOrganizationSourceAuthenticationResultSchemaToJSON,
32
+ OrganizationSourceAuthenticationResultSchemaFromJSON,
33
+ OrganizationSourceAuthenticationResultSchemaToJSON,
34
+ ToggleSourceAuthenticationSchemaFromJSON,
35
+ ToggleSourceAuthenticationSchemaToJSON,
36
+ UpdatePayloadSourceAuthenticationSchemaFromJSON,
37
+ UpdatePayloadSourceAuthenticationSchemaToJSON,
38
+ } from '../models/index';
39
+
40
+ export interface CreateOrganizationSourceRequest {
41
+ organizationId: string;
42
+ payload: CreatePayloadSourceAuthenticationSchema;
43
+ certificate?: Blob | null;
44
+ }
45
+
46
+ export interface DeleteOrganizationSourceRequest {
47
+ organizationId: string;
48
+ sourceKey: string;
49
+ }
50
+
51
+ export interface ListOrganizationSourcesRequest {
52
+ organizationId: string;
53
+ }
54
+
55
+ export interface ToggleOrganizationSourceRequest {
56
+ organizationId: string;
57
+ sourceKey: string;
58
+ toggleSourceAuthenticationSchema: ToggleSourceAuthenticationSchema;
59
+ }
60
+
61
+ export interface UpdateOrganizationSourceRequest {
62
+ organizationId: string;
63
+ sourceKey: string;
64
+ payload: UpdatePayloadSourceAuthenticationSchema;
65
+ certificate?: Blob | null;
66
+ }
67
+
68
+ /**
69
+ *
70
+ */
71
+ export class OrganizationSourceAuthenticationApi extends runtime.BaseAPI {
72
+
73
+ /**
74
+ * Create a new source for an organization and authenticate
75
+ */
76
+ async createOrganizationSourceRaw(requestParameters: CreateOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationSourceAuthenticationResultSchema>> {
77
+ if (requestParameters['organizationId'] == null) {
78
+ throw new runtime.RequiredError(
79
+ 'organizationId',
80
+ 'Required parameter "organizationId" was null or undefined when calling createOrganizationSource().'
81
+ );
82
+ }
83
+
84
+ if (requestParameters['payload'] == null) {
85
+ throw new runtime.RequiredError(
86
+ 'payload',
87
+ 'Required parameter "payload" was null or undefined when calling createOrganizationSource().'
88
+ );
89
+ }
90
+
91
+ const queryParameters: any = {};
92
+
93
+ const headerParameters: runtime.HTTPHeaders = {};
94
+
95
+ const consumes: runtime.Consume[] = [
96
+ { contentType: 'multipart/form-data' },
97
+ ];
98
+ // @ts-ignore: canConsumeForm may be unused
99
+ const canConsumeForm = runtime.canConsumeForm(consumes);
100
+
101
+ let formParams: { append(param: string, value: any): any };
102
+ let useForm = false;
103
+ // use FormData to transmit files using content-type "multipart/form-data"
104
+ useForm = canConsumeForm;
105
+ if (useForm) {
106
+ formParams = new FormData();
107
+ } else {
108
+ formParams = new URLSearchParams();
109
+ }
110
+
111
+ if (requestParameters['payload'] != null) {
112
+ formParams.append('payload', new Blob([JSON.stringify(OrganizationSourceAuthenticationResultSchemaToJSON(requestParameters['payload']))], { type: "application/json", }));
113
+ }
114
+
115
+ if (requestParameters['certificate'] != null) {
116
+ formParams.append('certificate', requestParameters['certificate'] as any);
117
+ }
118
+
119
+ const response = await this.request({
120
+ path: `/authentications/organizations/{organizationId}/sources`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
121
+ method: 'POST',
122
+ headers: headerParameters,
123
+ query: queryParameters,
124
+ body: formParams,
125
+ }, initOverrides);
126
+
127
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationSourceAuthenticationResultSchemaFromJSON(jsonValue));
128
+ }
129
+
130
+ /**
131
+ * Create a new source for an organization and authenticate
132
+ */
133
+ async createOrganizationSource(requestParameters: CreateOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationSourceAuthenticationResultSchema> {
134
+ const response = await this.createOrganizationSourceRaw(requestParameters, initOverrides);
135
+ return await response.value();
136
+ }
137
+
138
+ /**
139
+ * Delete an existing source
140
+ */
141
+ async deleteOrganizationSourceRaw(requestParameters: DeleteOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
142
+ if (requestParameters['organizationId'] == null) {
143
+ throw new runtime.RequiredError(
144
+ 'organizationId',
145
+ 'Required parameter "organizationId" was null or undefined when calling deleteOrganizationSource().'
146
+ );
147
+ }
148
+
149
+ if (requestParameters['sourceKey'] == null) {
150
+ throw new runtime.RequiredError(
151
+ 'sourceKey',
152
+ 'Required parameter "sourceKey" was null or undefined when calling deleteOrganizationSource().'
153
+ );
154
+ }
155
+
156
+ const queryParameters: any = {};
157
+
158
+ const headerParameters: runtime.HTTPHeaders = {};
159
+
160
+ const response = await this.request({
161
+ path: `/authentications/organizations/{organizationId}/sources/{sourceKey}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceKey"}}`, encodeURIComponent(String(requestParameters['sourceKey']))),
162
+ method: 'DELETE',
163
+ headers: headerParameters,
164
+ query: queryParameters,
165
+ }, initOverrides);
166
+
167
+ return new runtime.VoidApiResponse(response);
168
+ }
169
+
170
+ /**
171
+ * Delete an existing source
172
+ */
173
+ async deleteOrganizationSource(requestParameters: DeleteOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
174
+ await this.deleteOrganizationSourceRaw(requestParameters, initOverrides);
175
+ }
176
+
177
+ /**
178
+ * Get all the authentication sources for an organization
179
+ */
180
+ async listOrganizationSourcesRaw(requestParameters: ListOrganizationSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListOrganizationSourceAuthenticationResultSchema>> {
181
+ if (requestParameters['organizationId'] == null) {
182
+ throw new runtime.RequiredError(
183
+ 'organizationId',
184
+ 'Required parameter "organizationId" was null or undefined when calling listOrganizationSources().'
185
+ );
186
+ }
187
+
188
+ const queryParameters: any = {};
189
+
190
+ const headerParameters: runtime.HTTPHeaders = {};
191
+
192
+ const response = await this.request({
193
+ path: `/authentications/organizations/{organizationId}/sources`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
194
+ method: 'GET',
195
+ headers: headerParameters,
196
+ query: queryParameters,
197
+ }, initOverrides);
198
+
199
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListOrganizationSourceAuthenticationResultSchemaFromJSON(jsonValue));
200
+ }
201
+
202
+ /**
203
+ * Get all the authentication sources for an organization
204
+ */
205
+ async listOrganizationSources(requestParameters: ListOrganizationSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListOrganizationSourceAuthenticationResultSchema> {
206
+ const response = await this.listOrganizationSourcesRaw(requestParameters, initOverrides);
207
+ return await response.value();
208
+ }
209
+
210
+ /**
211
+ * Enable or disable a given source for an organization
212
+ */
213
+ async toggleOrganizationSourceRaw(requestParameters: ToggleOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationSourceAuthenticationResultSchema>> {
214
+ if (requestParameters['organizationId'] == null) {
215
+ throw new runtime.RequiredError(
216
+ 'organizationId',
217
+ 'Required parameter "organizationId" was null or undefined when calling toggleOrganizationSource().'
218
+ );
219
+ }
220
+
221
+ if (requestParameters['sourceKey'] == null) {
222
+ throw new runtime.RequiredError(
223
+ 'sourceKey',
224
+ 'Required parameter "sourceKey" was null or undefined when calling toggleOrganizationSource().'
225
+ );
226
+ }
227
+
228
+ if (requestParameters['toggleSourceAuthenticationSchema'] == null) {
229
+ throw new runtime.RequiredError(
230
+ 'toggleSourceAuthenticationSchema',
231
+ 'Required parameter "toggleSourceAuthenticationSchema" was null or undefined when calling toggleOrganizationSource().'
232
+ );
233
+ }
234
+
235
+ const queryParameters: any = {};
236
+
237
+ const headerParameters: runtime.HTTPHeaders = {};
238
+
239
+ headerParameters['Content-Type'] = 'application/json';
240
+
241
+ const response = await this.request({
242
+ path: `/authentications/organizations/{organizationId}/sources/{sourceKey}/state`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceKey"}}`, encodeURIComponent(String(requestParameters['sourceKey']))),
243
+ method: 'PUT',
244
+ headers: headerParameters,
245
+ query: queryParameters,
246
+ body: ToggleSourceAuthenticationSchemaToJSON(requestParameters['toggleSourceAuthenticationSchema']),
247
+ }, initOverrides);
248
+
249
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationSourceAuthenticationResultSchemaFromJSON(jsonValue));
250
+ }
251
+
252
+ /**
253
+ * Enable or disable a given source for an organization
254
+ */
255
+ async toggleOrganizationSource(requestParameters: ToggleOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationSourceAuthenticationResultSchema> {
256
+ const response = await this.toggleOrganizationSourceRaw(requestParameters, initOverrides);
257
+ return await response.value();
258
+ }
259
+
260
+ /**
261
+ * Update the credentials of a given source for an organization
262
+ */
263
+ async updateOrganizationSourceRaw(requestParameters: UpdateOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationSourceAuthenticationResultSchema>> {
264
+ if (requestParameters['organizationId'] == null) {
265
+ throw new runtime.RequiredError(
266
+ 'organizationId',
267
+ 'Required parameter "organizationId" was null or undefined when calling updateOrganizationSource().'
268
+ );
269
+ }
270
+
271
+ if (requestParameters['sourceKey'] == null) {
272
+ throw new runtime.RequiredError(
273
+ 'sourceKey',
274
+ 'Required parameter "sourceKey" was null or undefined when calling updateOrganizationSource().'
275
+ );
276
+ }
277
+
278
+ if (requestParameters['payload'] == null) {
279
+ throw new runtime.RequiredError(
280
+ 'payload',
281
+ 'Required parameter "payload" was null or undefined when calling updateOrganizationSource().'
282
+ );
283
+ }
284
+
285
+ const queryParameters: any = {};
286
+
287
+ const headerParameters: runtime.HTTPHeaders = {};
288
+
289
+ const consumes: runtime.Consume[] = [
290
+ { contentType: 'multipart/form-data' },
291
+ ];
292
+ // @ts-ignore: canConsumeForm may be unused
293
+ const canConsumeForm = runtime.canConsumeForm(consumes);
294
+
295
+ let formParams: { append(param: string, value: any): any };
296
+ let useForm = false;
297
+ // use FormData to transmit files using content-type "multipart/form-data"
298
+ useForm = canConsumeForm;
299
+ if (useForm) {
300
+ formParams = new FormData();
301
+ } else {
302
+ formParams = new URLSearchParams();
303
+ }
304
+
305
+ if (requestParameters['payload'] != null) {
306
+ formParams.append('payload', new Blob([JSON.stringify(OrganizationSourceAuthenticationResultSchemaToJSON(requestParameters['payload']))], { type: "application/json", }));
307
+ }
308
+
309
+ if (requestParameters['certificate'] != null) {
310
+ formParams.append('certificate', requestParameters['certificate'] as any);
311
+ }
312
+
313
+ const response = await this.request({
314
+ path: `/authentications/organizations/{organizationId}/sources/{sourceKey}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceKey"}}`, encodeURIComponent(String(requestParameters['sourceKey']))),
315
+ method: 'PUT',
316
+ headers: headerParameters,
317
+ query: queryParameters,
318
+ body: formParams,
319
+ }, initOverrides);
320
+
321
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationSourceAuthenticationResultSchemaFromJSON(jsonValue));
322
+ }
323
+
324
+ /**
325
+ * Update the credentials of a given source for an organization
326
+ */
327
+ async updateOrganizationSource(requestParameters: UpdateOrganizationSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationSourceAuthenticationResultSchema> {
328
+ const response = await this.updateOrganizationSourceRaw(requestParameters, initOverrides);
329
+ return await response.value();
330
+ }
331
+
332
+ }
@@ -0,0 +1,4 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ContactApi';
4
+ export * from './OrganizationSourceAuthenticationApi';
package/src/index.ts ADDED
@@ -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,57 @@
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 AddressLabel = {
21
+ HOME: 'HOME',
22
+ SECONDARY: 'SECONDARY',
23
+ WORK: 'WORK',
24
+ OTHER: 'OTHER',
25
+ UNKNOWN: 'UNKNOWN',
26
+ unknown_default_open_api: '11184809'
27
+ } as const;
28
+ export type AddressLabel = typeof AddressLabel[keyof typeof AddressLabel];
29
+
30
+
31
+ export function instanceOfAddressLabel(value: any): boolean {
32
+ for (const key in AddressLabel) {
33
+ if (Object.prototype.hasOwnProperty.call(AddressLabel, key)) {
34
+ if (AddressLabel[key as keyof typeof AddressLabel] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+
42
+ export function AddressLabelFromJSON(json: any): AddressLabel {
43
+ return AddressLabelFromJSONTyped(json, false);
44
+ }
45
+
46
+ export function AddressLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressLabel {
47
+ return json as AddressLabel;
48
+ }
49
+
50
+ export function AddressLabelToJSON(value?: AddressLabel | null): any {
51
+ return value as any;
52
+ }
53
+
54
+ export function AddressLabelToJSONTyped(value: any, ignoreDiscriminator: boolean): AddressLabel {
55
+ return value as AddressLabel;
56
+ }
57
+
@@ -0,0 +1,133 @@
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 { AddressLabel } from './AddressLabel';
17
+ import {
18
+ AddressLabelFromJSON,
19
+ AddressLabelFromJSONTyped,
20
+ AddressLabelToJSON,
21
+ AddressLabelToJSONTyped,
22
+ } from './AddressLabel';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AddressSchema
28
+ */
29
+ export interface AddressSchema {
30
+ /**
31
+ *
32
+ * @type {AddressLabel}
33
+ * @memberof AddressSchema
34
+ */
35
+ label: AddressLabel;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AddressSchema
40
+ */
41
+ line1?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AddressSchema
46
+ */
47
+ line2?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AddressSchema
52
+ */
53
+ city?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof AddressSchema
58
+ */
59
+ postalCode?: string | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof AddressSchema
64
+ */
65
+ state?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof AddressSchema
70
+ */
71
+ country?: string | null;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof AddressSchema
76
+ */
77
+ main: boolean;
78
+ }
79
+
80
+
81
+
82
+ /**
83
+ * Check if a given object implements the AddressSchema interface.
84
+ */
85
+ export function instanceOfAddressSchema(value: object): value is AddressSchema {
86
+ if (!('label' in value) || value['label'] === undefined) return false;
87
+ if (!('main' in value) || value['main'] === undefined) return false;
88
+ return true;
89
+ }
90
+
91
+ export function AddressSchemaFromJSON(json: any): AddressSchema {
92
+ return AddressSchemaFromJSONTyped(json, false);
93
+ }
94
+
95
+ export function AddressSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressSchema {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+
101
+ 'label': AddressLabelFromJSON(json['label']),
102
+ 'line1': json['line1'] == null ? undefined : json['line1'],
103
+ 'line2': json['line2'] == null ? undefined : json['line2'],
104
+ 'city': json['city'] == null ? undefined : json['city'],
105
+ 'postalCode': json['postal_code'] == null ? undefined : json['postal_code'],
106
+ 'state': json['state'] == null ? undefined : json['state'],
107
+ 'country': json['country'] == null ? undefined : json['country'],
108
+ 'main': json['main'],
109
+ };
110
+ }
111
+
112
+ export function AddressSchemaToJSON(json: any): AddressSchema {
113
+ return AddressSchemaToJSONTyped(json, false);
114
+ }
115
+
116
+ export function AddressSchemaToJSONTyped(value?: AddressSchema | null, ignoreDiscriminator: boolean = false): any {
117
+ if (value == null) {
118
+ return value;
119
+ }
120
+
121
+ return {
122
+
123
+ 'label': AddressLabelToJSON(value['label']),
124
+ 'line1': value['line1'],
125
+ 'line2': value['line2'],
126
+ 'city': value['city'],
127
+ 'postal_code': value['postalCode'],
128
+ 'state': value['state'],
129
+ 'country': value['country'],
130
+ 'main': value['main'],
131
+ };
132
+ }
133
+
@@ -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 ContactLanguage = {
21
+ ENGLISH: 'ENGLISH',
22
+ FRENCH: 'FRENCH',
23
+ unknown_default_open_api: '11184809'
24
+ } as const;
25
+ export type ContactLanguage = typeof ContactLanguage[keyof typeof ContactLanguage];
26
+
27
+
28
+ export function instanceOfContactLanguage(value: any): boolean {
29
+ for (const key in ContactLanguage) {
30
+ if (Object.prototype.hasOwnProperty.call(ContactLanguage, key)) {
31
+ if (ContactLanguage[key as keyof typeof ContactLanguage] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function ContactLanguageFromJSON(json: any): ContactLanguage {
40
+ return ContactLanguageFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function ContactLanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactLanguage {
44
+ return json as ContactLanguage;
45
+ }
46
+
47
+ export function ContactLanguageToJSON(value?: ContactLanguage | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function ContactLanguageToJSONTyped(value: any, ignoreDiscriminator: boolean): ContactLanguage {
52
+ return value as ContactLanguage;
53
+ }
54
+