@equisoft/ucx-proxy-sdk-typescript 0.0.3-snapshot.20260129150421 → 0.0.3-snapshot.20260129155212
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 +1 -0
- package/.tool-versions +1 -1
- package/dist/apis/ContactApi.d.ts +6 -5
- package/dist/apis/ContactApi.js +6 -3
- package/dist/esm/apis/ContactApi.d.ts +6 -5
- package/dist/esm/apis/ContactApi.js +7 -4
- package/dist/esm/models/ContactResultSchema.d.ts +47 -0
- package/dist/esm/models/ContactResultSchema.js +50 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/ContactResultSchema.d.ts +47 -0
- package/dist/models/ContactResultSchema.js +57 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/ContactApi.ts +13 -8
- package/src/models/ContactResultSchema.ts +106 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -10,6 +10,7 @@ src/models/AddressLabel.ts
|
|
|
10
10
|
src/models/AddressSchema.ts
|
|
11
11
|
src/models/AuthenticationConfigSchema.ts
|
|
12
12
|
src/models/ContactLanguage.ts
|
|
13
|
+
src/models/ContactResultSchema.ts
|
|
13
14
|
src/models/ContactSchema.ts
|
|
14
15
|
src/models/CreatePayloadSourceAuthenticationSchema.ts
|
|
15
16
|
src/models/EmailLabel.ts
|
package/.tool-versions
CHANGED
|
@@ -10,22 +10,23 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { ContactResultSchema } from '../models/index';
|
|
14
14
|
export interface SearchContactsRequest {
|
|
15
15
|
name?: string | null;
|
|
16
16
|
offset?: number | null;
|
|
17
17
|
limit?: number | null;
|
|
18
|
+
organizationId?: string | null;
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
22
|
*/
|
|
22
23
|
export declare class ContactApi extends runtime.BaseAPI {
|
|
23
24
|
/**
|
|
24
|
-
* Search contacts
|
|
25
|
+
* Search contacts for a specific organization
|
|
25
26
|
*/
|
|
26
|
-
searchContactsRaw(requestParameters: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
27
|
+
searchContactsRaw(requestParameters: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContactResultSchema>>;
|
|
27
28
|
/**
|
|
28
|
-
* Search contacts
|
|
29
|
+
* Search contacts for a specific organization
|
|
29
30
|
*/
|
|
30
|
-
searchContacts(requestParameters?: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
31
|
+
searchContacts(requestParameters?: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactResultSchema>;
|
|
31
32
|
}
|
package/dist/apis/ContactApi.js
CHANGED
|
@@ -30,7 +30,7 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class ContactApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
* Search contacts
|
|
33
|
+
* Search contacts for a specific organization
|
|
34
34
|
*/
|
|
35
35
|
searchContactsRaw(requestParameters, initOverrides) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -44,6 +44,9 @@ class ContactApi extends runtime.BaseAPI {
|
|
|
44
44
|
if (requestParameters['limit'] != null) {
|
|
45
45
|
queryParameters['limit'] = requestParameters['limit'];
|
|
46
46
|
}
|
|
47
|
+
if (requestParameters['organizationId'] != null) {
|
|
48
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
49
|
+
}
|
|
47
50
|
const headerParameters = {};
|
|
48
51
|
const response = yield this.request({
|
|
49
52
|
path: `/contacts`,
|
|
@@ -51,11 +54,11 @@ class ContactApi extends runtime.BaseAPI {
|
|
|
51
54
|
headers: headerParameters,
|
|
52
55
|
query: queryParameters,
|
|
53
56
|
}, initOverrides);
|
|
54
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ContactResultSchemaFromJSON)(jsonValue));
|
|
55
58
|
});
|
|
56
59
|
}
|
|
57
60
|
/**
|
|
58
|
-
* Search contacts
|
|
61
|
+
* Search contacts for a specific organization
|
|
59
62
|
*/
|
|
60
63
|
searchContacts() {
|
|
61
64
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -10,22 +10,23 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { ContactResultSchema } from '../models/index';
|
|
14
14
|
export interface SearchContactsRequest {
|
|
15
15
|
name?: string | null;
|
|
16
16
|
offset?: number | null;
|
|
17
17
|
limit?: number | null;
|
|
18
|
+
organizationId?: string | null;
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
22
|
*/
|
|
22
23
|
export declare class ContactApi extends runtime.BaseAPI {
|
|
23
24
|
/**
|
|
24
|
-
* Search contacts
|
|
25
|
+
* Search contacts for a specific organization
|
|
25
26
|
*/
|
|
26
|
-
searchContactsRaw(requestParameters: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
27
|
+
searchContactsRaw(requestParameters: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContactResultSchema>>;
|
|
27
28
|
/**
|
|
28
|
-
* Search contacts
|
|
29
|
+
* Search contacts for a specific organization
|
|
29
30
|
*/
|
|
30
|
-
searchContacts(requestParameters?: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
31
|
+
searchContacts(requestParameters?: SearchContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactResultSchema>;
|
|
31
32
|
}
|
|
@@ -21,13 +21,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import {
|
|
24
|
+
import { ContactResultSchemaFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class ContactApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
* Search contacts
|
|
30
|
+
* Search contacts for a specific organization
|
|
31
31
|
*/
|
|
32
32
|
searchContactsRaw(requestParameters, initOverrides) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -41,6 +41,9 @@ export class ContactApi extends runtime.BaseAPI {
|
|
|
41
41
|
if (requestParameters['limit'] != null) {
|
|
42
42
|
queryParameters['limit'] = requestParameters['limit'];
|
|
43
43
|
}
|
|
44
|
+
if (requestParameters['organizationId'] != null) {
|
|
45
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
46
|
+
}
|
|
44
47
|
const headerParameters = {};
|
|
45
48
|
const response = yield this.request({
|
|
46
49
|
path: `/contacts`,
|
|
@@ -48,11 +51,11 @@ export class ContactApi extends runtime.BaseAPI {
|
|
|
48
51
|
headers: headerParameters,
|
|
49
52
|
query: queryParameters,
|
|
50
53
|
}, initOverrides);
|
|
51
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ContactResultSchemaFromJSON(jsonValue));
|
|
52
55
|
});
|
|
53
56
|
}
|
|
54
57
|
/**
|
|
55
|
-
* Search contacts
|
|
58
|
+
* Search contacts for a specific organization
|
|
56
59
|
*/
|
|
57
60
|
searchContacts() {
|
|
58
61
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -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,50 @@
|
|
|
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 { StatusFromJSON, StatusToJSON, } from './Status';
|
|
15
|
+
import { SourceResultSchemaFromJSON, SourceResultSchemaToJSON, } from './SourceResultSchema';
|
|
16
|
+
import { ErrorResponseFromJSON, ErrorResponseToJSON, } from './ErrorResponse';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ContactResultSchema interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfContactResultSchema(value) {
|
|
21
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ContactResultSchemaFromJSON(json) {
|
|
26
|
+
return ContactResultSchemaFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ContactResultSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'status': StatusFromJSON(json['status']),
|
|
34
|
+
'errorResponse': json['error_response'] == null ? undefined : ErrorResponseFromJSON(json['error_response']),
|
|
35
|
+
'results': json['results'] == null ? undefined : (json['results'].map(SourceResultSchemaFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function ContactResultSchemaToJSON(json) {
|
|
39
|
+
return ContactResultSchemaToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ContactResultSchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'status': StatusToJSON(value['status']),
|
|
47
|
+
'error_response': ErrorResponseToJSON(value['errorResponse']),
|
|
48
|
+
'results': value['results'] == null ? undefined : (value['results'].map(SourceResultSchemaToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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';
|
|
@@ -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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
package/package.json
CHANGED
package/src/apis/ContactApi.ts
CHANGED
|
@@ -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<
|
|
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
|
|
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<
|
|
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
|
}
|
|
@@ -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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|