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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/ConfiguredSourceForOrganizationUserApi.d.ts +30 -0
  3. package/dist/apis/ConfiguredSourceForOrganizationUserApi.js +64 -0
  4. package/dist/apis/ContactApi.d.ts +6 -5
  5. package/dist/apis/ContactApi.js +6 -3
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/ConfiguredSourceForOrganizationUserApi.d.ts +30 -0
  9. package/dist/esm/apis/ConfiguredSourceForOrganizationUserApi.js +60 -0
  10. package/dist/esm/apis/ContactApi.d.ts +6 -5
  11. package/dist/esm/apis/ContactApi.js +7 -4
  12. package/dist/esm/apis/index.d.ts +1 -0
  13. package/dist/esm/apis/index.js +1 -0
  14. package/dist/esm/models/ContactResultSchema.d.ts +47 -0
  15. package/dist/esm/models/ContactResultSchema.js +50 -0
  16. package/dist/esm/models/SourceSchema.d.ts +45 -0
  17. package/dist/esm/models/SourceSchema.js +52 -0
  18. package/dist/esm/models/SourceStatus.d.ts +26 -0
  19. package/dist/esm/models/SourceStatus.js +44 -0
  20. package/dist/esm/models/index.d.ts +3 -0
  21. package/dist/esm/models/index.js +3 -0
  22. package/dist/models/ContactResultSchema.d.ts +47 -0
  23. package/dist/models/ContactResultSchema.js +57 -0
  24. package/dist/models/SourceSchema.d.ts +45 -0
  25. package/dist/models/SourceSchema.js +59 -0
  26. package/dist/models/SourceStatus.d.ts +26 -0
  27. package/dist/models/SourceStatus.js +52 -0
  28. package/dist/models/index.d.ts +3 -0
  29. package/dist/models/index.js +3 -0
  30. package/package.json +1 -1
  31. package/src/apis/ConfiguredSourceForOrganizationUserApi.ts +72 -0
  32. package/src/apis/ContactApi.ts +13 -8
  33. package/src/apis/index.ts +1 -0
  34. package/src/models/ContactResultSchema.ts +106 -0
  35. package/src/models/SourceSchema.ts +94 -0
  36. package/src/models/SourceStatus.ts +54 -0
  37. package/src/models/index.ts +3 -0
@@ -4,6 +4,7 @@ export * from './AddressLabel';
4
4
  export * from './AddressSchema';
5
5
  export * from './AuthenticationConfigSchema';
6
6
  export * from './ContactLanguage';
7
+ export * from './ContactResultSchema';
7
8
  export * from './ContactSchema';
8
9
  export * from './CreatePayloadSourceAuthenticationSchema';
9
10
  export * from './EmailLabel';
@@ -19,6 +20,8 @@ export * from './OrganizationSourceAuthenticationSchema';
19
20
  export * from './PhoneLabel';
20
21
  export * from './PhoneSchema';
21
22
  export * from './SourceResultSchema';
23
+ export * from './SourceSchema';
24
+ export * from './SourceStatus';
22
25
  export * from './Status';
23
26
  export * from './ToggleSourceAuthenticationSchema';
24
27
  export * from './UpdatePayloadSourceAuthenticationSchema';
@@ -0,0 +1,47 @@
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 { Status } from './Status';
13
+ import type { SourceResultSchema } from './SourceResultSchema';
14
+ import type { ErrorResponse } from './ErrorResponse';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ContactResultSchema
19
+ */
20
+ export interface ContactResultSchema {
21
+ /**
22
+ *
23
+ * @type {Status}
24
+ * @memberof ContactResultSchema
25
+ */
26
+ status: Status;
27
+ /**
28
+ *
29
+ * @type {ErrorResponse}
30
+ * @memberof ContactResultSchema
31
+ */
32
+ errorResponse?: ErrorResponse | null;
33
+ /**
34
+ *
35
+ * @type {Array<SourceResultSchema>}
36
+ * @memberof ContactResultSchema
37
+ */
38
+ results?: Array<SourceResultSchema> | null;
39
+ }
40
+ /**
41
+ * Check if a given object implements the ContactResultSchema interface.
42
+ */
43
+ export declare function instanceOfContactResultSchema(value: object): value is ContactResultSchema;
44
+ export declare function ContactResultSchemaFromJSON(json: any): ContactResultSchema;
45
+ export declare function ContactResultSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactResultSchema;
46
+ export declare function ContactResultSchemaToJSON(json: any): ContactResultSchema;
47
+ export declare function ContactResultSchemaToJSONTyped(value?: ContactResultSchema | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UCX Proxy
6
+ * A single use API for the UCX Proxy.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
9
+ * Contact: customersuccess@equisoft.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfContactResultSchema = instanceOfContactResultSchema;
17
+ exports.ContactResultSchemaFromJSON = ContactResultSchemaFromJSON;
18
+ exports.ContactResultSchemaFromJSONTyped = ContactResultSchemaFromJSONTyped;
19
+ exports.ContactResultSchemaToJSON = ContactResultSchemaToJSON;
20
+ exports.ContactResultSchemaToJSONTyped = ContactResultSchemaToJSONTyped;
21
+ const Status_1 = require("./Status");
22
+ const SourceResultSchema_1 = require("./SourceResultSchema");
23
+ const ErrorResponse_1 = require("./ErrorResponse");
24
+ /**
25
+ * Check if a given object implements the ContactResultSchema interface.
26
+ */
27
+ function instanceOfContactResultSchema(value) {
28
+ if (!('status' in value) || value['status'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function ContactResultSchemaFromJSON(json) {
33
+ return ContactResultSchemaFromJSONTyped(json, false);
34
+ }
35
+ function ContactResultSchemaFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'status': (0, Status_1.StatusFromJSON)(json['status']),
41
+ 'errorResponse': json['error_response'] == null ? undefined : (0, ErrorResponse_1.ErrorResponseFromJSON)(json['error_response']),
42
+ 'results': json['results'] == null ? undefined : (json['results'].map(SourceResultSchema_1.SourceResultSchemaFromJSON)),
43
+ };
44
+ }
45
+ function ContactResultSchemaToJSON(json) {
46
+ return ContactResultSchemaToJSONTyped(json, false);
47
+ }
48
+ function ContactResultSchemaToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'status': (0, Status_1.StatusToJSON)(value['status']),
54
+ 'error_response': (0, ErrorResponse_1.ErrorResponseToJSON)(value['errorResponse']),
55
+ 'results': value['results'] == null ? undefined : (value['results'].map(SourceResultSchema_1.SourceResultSchemaToJSON)),
56
+ };
57
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * UCX Proxy
3
+ * A single use API for the UCX Proxy.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SourceStatus } from './SourceStatus';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SourceSchema
17
+ */
18
+ export interface SourceSchema {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SourceSchema
23
+ */
24
+ sourceKey: string;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof SourceSchema
29
+ */
30
+ isEnabled: boolean;
31
+ /**
32
+ *
33
+ * @type {SourceStatus}
34
+ * @memberof SourceSchema
35
+ */
36
+ status: SourceStatus;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SourceSchema interface.
40
+ */
41
+ export declare function instanceOfSourceSchema(value: object): value is SourceSchema;
42
+ export declare function SourceSchemaFromJSON(json: any): SourceSchema;
43
+ export declare function SourceSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceSchema;
44
+ export declare function SourceSchemaToJSON(json: any): SourceSchema;
45
+ export declare function SourceSchemaToJSONTyped(value?: SourceSchema | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UCX Proxy
6
+ * A single use API for the UCX Proxy.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
9
+ * Contact: customersuccess@equisoft.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSourceSchema = instanceOfSourceSchema;
17
+ exports.SourceSchemaFromJSON = SourceSchemaFromJSON;
18
+ exports.SourceSchemaFromJSONTyped = SourceSchemaFromJSONTyped;
19
+ exports.SourceSchemaToJSON = SourceSchemaToJSON;
20
+ exports.SourceSchemaToJSONTyped = SourceSchemaToJSONTyped;
21
+ const SourceStatus_1 = require("./SourceStatus");
22
+ /**
23
+ * Check if a given object implements the SourceSchema interface.
24
+ */
25
+ function instanceOfSourceSchema(value) {
26
+ if (!('sourceKey' in value) || value['sourceKey'] === undefined)
27
+ return false;
28
+ if (!('isEnabled' in value) || value['isEnabled'] === undefined)
29
+ return false;
30
+ if (!('status' in value) || value['status'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function SourceSchemaFromJSON(json) {
35
+ return SourceSchemaFromJSONTyped(json, false);
36
+ }
37
+ function SourceSchemaFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'sourceKey': json['sourceKey'],
43
+ 'isEnabled': json['isEnabled'],
44
+ 'status': (0, SourceStatus_1.SourceStatusFromJSON)(json['status']),
45
+ };
46
+ }
47
+ function SourceSchemaToJSON(json) {
48
+ return SourceSchemaToJSONTyped(json, false);
49
+ }
50
+ function SourceSchemaToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'sourceKey': value['sourceKey'],
56
+ 'isEnabled': value['isEnabled'],
57
+ 'status': (0, SourceStatus_1.SourceStatusToJSON)(value['status']),
58
+ };
59
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * UCX Proxy
3
+ * A single use API for the UCX Proxy.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const SourceStatus: {
17
+ readonly OK: "OK";
18
+ readonly AUTHENTICATION_FAILED: "AUTHENTICATION_FAILED";
19
+ readonly unknown_default_open_api: "11184809";
20
+ };
21
+ export type SourceStatus = typeof SourceStatus[keyof typeof SourceStatus];
22
+ export declare function instanceOfSourceStatus(value: any): boolean;
23
+ export declare function SourceStatusFromJSON(json: any): SourceStatus;
24
+ export declare function SourceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStatus;
25
+ export declare function SourceStatusToJSON(value?: SourceStatus | null): any;
26
+ export declare function SourceStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceStatus;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UCX Proxy
6
+ * A single use API for the UCX Proxy.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
9
+ * Contact: customersuccess@equisoft.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SourceStatus = void 0;
17
+ exports.instanceOfSourceStatus = instanceOfSourceStatus;
18
+ exports.SourceStatusFromJSON = SourceStatusFromJSON;
19
+ exports.SourceStatusFromJSONTyped = SourceStatusFromJSONTyped;
20
+ exports.SourceStatusToJSON = SourceStatusToJSON;
21
+ exports.SourceStatusToJSONTyped = SourceStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.SourceStatus = {
27
+ OK: 'OK',
28
+ AUTHENTICATION_FAILED: 'AUTHENTICATION_FAILED',
29
+ unknown_default_open_api: '11184809'
30
+ };
31
+ function instanceOfSourceStatus(value) {
32
+ for (const key in exports.SourceStatus) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.SourceStatus, key)) {
34
+ if (exports.SourceStatus[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function SourceStatusFromJSON(json) {
42
+ return SourceStatusFromJSONTyped(json, false);
43
+ }
44
+ function SourceStatusFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function SourceStatusToJSON(value) {
48
+ return value;
49
+ }
50
+ function SourceStatusToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -2,6 +2,7 @@ export * from './AddressLabel';
2
2
  export * from './AddressSchema';
3
3
  export * from './AuthenticationConfigSchema';
4
4
  export * from './ContactLanguage';
5
+ export * from './ContactResultSchema';
5
6
  export * from './ContactSchema';
6
7
  export * from './CreatePayloadSourceAuthenticationSchema';
7
8
  export * from './EmailLabel';
@@ -17,6 +18,8 @@ export * from './OrganizationSourceAuthenticationSchema';
17
18
  export * from './PhoneLabel';
18
19
  export * from './PhoneSchema';
19
20
  export * from './SourceResultSchema';
21
+ export * from './SourceSchema';
22
+ export * from './SourceStatus';
20
23
  export * from './Status';
21
24
  export * from './ToggleSourceAuthenticationSchema';
22
25
  export * from './UpdatePayloadSourceAuthenticationSchema';
@@ -20,6 +20,7 @@ __exportStar(require("./AddressLabel"), exports);
20
20
  __exportStar(require("./AddressSchema"), exports);
21
21
  __exportStar(require("./AuthenticationConfigSchema"), exports);
22
22
  __exportStar(require("./ContactLanguage"), exports);
23
+ __exportStar(require("./ContactResultSchema"), exports);
23
24
  __exportStar(require("./ContactSchema"), exports);
24
25
  __exportStar(require("./CreatePayloadSourceAuthenticationSchema"), exports);
25
26
  __exportStar(require("./EmailLabel"), exports);
@@ -35,6 +36,8 @@ __exportStar(require("./OrganizationSourceAuthenticationSchema"), exports);
35
36
  __exportStar(require("./PhoneLabel"), exports);
36
37
  __exportStar(require("./PhoneSchema"), exports);
37
38
  __exportStar(require("./SourceResultSchema"), exports);
39
+ __exportStar(require("./SourceSchema"), exports);
40
+ __exportStar(require("./SourceStatus"), exports);
38
41
  __exportStar(require("./Status"), exports);
39
42
  __exportStar(require("./ToggleSourceAuthenticationSchema"), exports);
40
43
  __exportStar(require("./UpdatePayloadSourceAuthenticationSchema"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/ucx-proxy-sdk-typescript",
3
- "version": "0.0.3-snapshot.20260129151909",
3
+ "version": "0.0.3-snapshot.20260203185707",
4
4
  "description": "OpenAPI client for @equisoft/ucx-proxy-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UCX Proxy
5
+ * A single use API for the UCX Proxy.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.3-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ErrorSchema,
19
+ SourceSchema,
20
+ } from '../models/index';
21
+ import {
22
+ ErrorSchemaFromJSON,
23
+ ErrorSchemaToJSON,
24
+ SourceSchemaFromJSON,
25
+ SourceSchemaToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface ListSourcesRequest {
29
+ organizationId?: string | null;
30
+ includeInactive?: boolean | null;
31
+ }
32
+
33
+ /**
34
+ *
35
+ */
36
+ export class ConfiguredSourceForOrganizationUserApi extends runtime.BaseAPI {
37
+
38
+ /**
39
+ * Get all active (and inactive) sources for the current user / organization
40
+ */
41
+ async listSourcesRaw(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SourceSchema>>> {
42
+ const queryParameters: any = {};
43
+
44
+ if (requestParameters['organizationId'] != null) {
45
+ queryParameters['organizationId'] = requestParameters['organizationId'];
46
+ }
47
+
48
+ if (requestParameters['includeInactive'] != null) {
49
+ queryParameters['includeInactive'] = requestParameters['includeInactive'];
50
+ }
51
+
52
+ const headerParameters: runtime.HTTPHeaders = {};
53
+
54
+ const response = await this.request({
55
+ path: `/sources`,
56
+ method: 'GET',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ }, initOverrides);
60
+
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SourceSchemaFromJSON));
62
+ }
63
+
64
+ /**
65
+ * Get all active (and inactive) sources for the current user / organization
66
+ */
67
+ async listSources(requestParameters: ListSourcesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SourceSchema>> {
68
+ const response = await this.listSourcesRaw(requestParameters, initOverrides);
69
+ return await response.value();
70
+ }
71
+
72
+ }
@@ -15,20 +15,21 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ContactResultSchema,
18
19
  ErrorSchema,
19
- SourceResultSchema,
20
20
  } from '../models/index';
21
21
  import {
22
+ ContactResultSchemaFromJSON,
23
+ ContactResultSchemaToJSON,
22
24
  ErrorSchemaFromJSON,
23
25
  ErrorSchemaToJSON,
24
- SourceResultSchemaFromJSON,
25
- SourceResultSchemaToJSON,
26
26
  } from '../models/index';
27
27
 
28
28
  export interface SearchContactsRequest {
29
29
  name?: string | null;
30
30
  offset?: number | null;
31
31
  limit?: number | null;
32
+ organizationId?: string | null;
32
33
  }
33
34
 
34
35
  /**
@@ -37,9 +38,9 @@ export interface SearchContactsRequest {
37
38
  export class ContactApi extends runtime.BaseAPI {
38
39
 
39
40
  /**
40
- * Search contacts
41
+ * Search contacts for a specific organization
41
42
  */
42
- async searchContactsRaw(requestParameters: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SourceResultSchema>>> {
43
+ async searchContactsRaw(requestParameters: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContactResultSchema>> {
43
44
  const queryParameters: any = {};
44
45
 
45
46
  if (requestParameters['name'] != null) {
@@ -54,6 +55,10 @@ export class ContactApi extends runtime.BaseAPI {
54
55
  queryParameters['limit'] = requestParameters['limit'];
55
56
  }
56
57
 
58
+ if (requestParameters['organizationId'] != null) {
59
+ queryParameters['organizationId'] = requestParameters['organizationId'];
60
+ }
61
+
57
62
  const headerParameters: runtime.HTTPHeaders = {};
58
63
 
59
64
  const response = await this.request({
@@ -63,13 +68,13 @@ export class ContactApi extends runtime.BaseAPI {
63
68
  query: queryParameters,
64
69
  }, initOverrides);
65
70
 
66
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SourceResultSchemaFromJSON));
71
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContactResultSchemaFromJSON(jsonValue));
67
72
  }
68
73
 
69
74
  /**
70
- * Search contacts
75
+ * Search contacts for a specific organization
71
76
  */
72
- async searchContacts(requestParameters: SearchContactsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SourceResultSchema>> {
77
+ async searchContacts(requestParameters: SearchContactsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactResultSchema> {
73
78
  const response = await this.searchContactsRaw(requestParameters, initOverrides);
74
79
  return await response.value();
75
80
  }
package/src/apis/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ConfiguredSourceForOrganizationUserApi';
3
4
  export * from './ContactApi';
4
5
  export * from './OrganizationSourceAuthenticationApi';
@@ -0,0 +1,106 @@
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 { Status } from './Status';
17
+ import {
18
+ StatusFromJSON,
19
+ StatusFromJSONTyped,
20
+ StatusToJSON,
21
+ StatusToJSONTyped,
22
+ } from './Status';
23
+ import type { SourceResultSchema } from './SourceResultSchema';
24
+ import {
25
+ SourceResultSchemaFromJSON,
26
+ SourceResultSchemaFromJSONTyped,
27
+ SourceResultSchemaToJSON,
28
+ SourceResultSchemaToJSONTyped,
29
+ } from './SourceResultSchema';
30
+ import type { ErrorResponse } from './ErrorResponse';
31
+ import {
32
+ ErrorResponseFromJSON,
33
+ ErrorResponseFromJSONTyped,
34
+ ErrorResponseToJSON,
35
+ ErrorResponseToJSONTyped,
36
+ } from './ErrorResponse';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ContactResultSchema
42
+ */
43
+ export interface ContactResultSchema {
44
+ /**
45
+ *
46
+ * @type {Status}
47
+ * @memberof ContactResultSchema
48
+ */
49
+ status: Status;
50
+ /**
51
+ *
52
+ * @type {ErrorResponse}
53
+ * @memberof ContactResultSchema
54
+ */
55
+ errorResponse?: ErrorResponse | null;
56
+ /**
57
+ *
58
+ * @type {Array<SourceResultSchema>}
59
+ * @memberof ContactResultSchema
60
+ */
61
+ results?: Array<SourceResultSchema> | null;
62
+ }
63
+
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the ContactResultSchema interface.
68
+ */
69
+ export function instanceOfContactResultSchema(value: object): value is ContactResultSchema {
70
+ if (!('status' in value) || value['status'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function ContactResultSchemaFromJSON(json: any): ContactResultSchema {
75
+ return ContactResultSchemaFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function ContactResultSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactResultSchema {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'status': StatusFromJSON(json['status']),
85
+ 'errorResponse': json['error_response'] == null ? undefined : ErrorResponseFromJSON(json['error_response']),
86
+ 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SourceResultSchemaFromJSON)),
87
+ };
88
+ }
89
+
90
+ export function ContactResultSchemaToJSON(json: any): ContactResultSchema {
91
+ return ContactResultSchemaToJSONTyped(json, false);
92
+ }
93
+
94
+ export function ContactResultSchemaToJSONTyped(value?: ContactResultSchema | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'status': StatusToJSON(value['status']),
102
+ 'error_response': ErrorResponseToJSON(value['errorResponse']),
103
+ 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SourceResultSchemaToJSON)),
104
+ };
105
+ }
106
+