@equisoft/equisoft-connect-sdk-typescript 13.55.0 → 13.55.1-snapshot.20260728143041
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 +2 -0
- package/README.md +2 -0
- package/dist/apis/DatabasesApi.d.ts +16 -1
- package/dist/apis/DatabasesApi.js +48 -0
- package/dist/esm/apis/DatabasesApi.d.ts +16 -1
- package/dist/esm/apis/DatabasesApi.js +49 -1
- package/dist/esm/models/DatabaseState.d.ts +1 -0
- package/dist/esm/models/DatabaseState.js +1 -0
- package/dist/esm/models/DatabasesCreateDatabasePayload.d.ts +50 -0
- package/dist/esm/models/DatabasesCreateDatabasePayload.js +53 -0
- package/dist/esm/models/DatabasesDatabase.d.ts +0 -6
- package/dist/esm/models/DatabasesDatabase.js +0 -4
- package/dist/esm/models/LegacyProvisioningOrganizationPayload.d.ts +0 -78
- package/dist/esm/models/LegacyProvisioningOrganizationPayload.js +0 -26
- package/dist/esm/models/LegacyProvisioningUserPayload.d.ts +0 -6
- package/dist/esm/models/LegacyProvisioningUserPayload.js +0 -2
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/DatabaseState.d.ts +1 -0
- package/dist/models/DatabaseState.js +1 -0
- package/dist/models/DatabasesCreateDatabasePayload.d.ts +50 -0
- package/dist/models/DatabasesCreateDatabasePayload.js +60 -0
- package/dist/models/DatabasesDatabase.d.ts +0 -6
- package/dist/models/DatabasesDatabase.js +0 -4
- package/dist/models/LegacyProvisioningOrganizationPayload.d.ts +0 -78
- package/dist/models/LegacyProvisioningOrganizationPayload.js +0 -26
- package/dist/models/LegacyProvisioningUserPayload.d.ts +0 -6
- package/dist/models/LegacyProvisioningUserPayload.js +0 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/DatabasesApi.md +74 -0
- package/docs/DatabasesCreateDatabasePayload.md +40 -0
- package/docs/DatabasesDatabase.md +0 -2
- package/docs/LegacyProvisioningOrganizationPayload.md +0 -26
- package/docs/LegacyProvisioningUserPayload.md +0 -2
- package/package.json +1 -1
- package/src/apis/DatabasesApi.ts +63 -0
- package/src/models/DatabaseState.ts +1 -0
- package/src/models/DatabasesCreateDatabasePayload.ts +92 -0
- package/src/models/DatabasesDatabase.ts +0 -9
- package/src/models/LegacyProvisioningOrganizationPayload.ts +0 -104
- package/src/models/LegacyProvisioningUserPayload.ts +0 -8
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -66,6 +66,7 @@ docs/DatabaseSetDistributorPayload.md
|
|
|
66
66
|
docs/DatabaseState.md
|
|
67
67
|
docs/DatabaseUpdateStatePayload.md
|
|
68
68
|
docs/DatabasesApi.md
|
|
69
|
+
docs/DatabasesCreateDatabasePayload.md
|
|
69
70
|
docs/DatabasesDatabase.md
|
|
70
71
|
docs/DatabasesListDatabasesResponse.md
|
|
71
72
|
docs/DateOrDateTime.md
|
|
@@ -405,6 +406,7 @@ src/models/CredentialsResponse.ts
|
|
|
405
406
|
src/models/DatabaseSetDistributorPayload.ts
|
|
406
407
|
src/models/DatabaseState.ts
|
|
407
408
|
src/models/DatabaseUpdateStatePayload.ts
|
|
409
|
+
src/models/DatabasesCreateDatabasePayload.ts
|
|
408
410
|
src/models/DatabasesDatabase.ts
|
|
409
411
|
src/models/DatabasesListDatabasesResponse.ts
|
|
410
412
|
src/models/DateOrDateTime.ts
|
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ All URIs are relative to *http://localhost*
|
|
|
63
63
|
*ContactsApi* | [**listContactInvestment**](docs/ContactsApi.md#listcontactinvestment) | **GET** /crm/api/v1/contacts/{contactUuid}/investmentAccounts | List contact investments
|
|
64
64
|
*ContactsApi* | [**listHouseholds**](docs/ContactsApi.md#listhouseholds) | **GET** /crm/api/v1/households | List household entries (EXPERIMENTAL)
|
|
65
65
|
*ContactsApi* | [**patchContact**](docs/ContactsApi.md#patchcontact) | **PATCH** /crm/api/v1/contacts/{contactUuid} | Update a contact
|
|
66
|
+
*DatabasesApi* | [**createDatabase**](docs/DatabasesApi.md#createdatabase) | **POST** /crm/api/v1/databases | Create database for an organization
|
|
66
67
|
*DatabasesApi* | [**createUser**](docs/DatabasesApi.md#createuser) | **POST** /crm/api/v1/databases/{databaseUuid}/users | Create a user for the database
|
|
67
68
|
*DatabasesApi* | [**deleteUser**](docs/DatabasesApi.md#deleteuser) | **DELETE** /crm/api/v1/databases/{databaseUuid}/users/{userUuid} | Delete a user for the database
|
|
68
69
|
*DatabasesApi* | [**getDatabase**](docs/DatabasesApi.md#getdatabase) | **GET** /crm/api/v1/databases/{databaseUuid} | Get a database
|
|
@@ -263,6 +264,7 @@ All URIs are relative to *http://localhost*
|
|
|
263
264
|
- [DatabaseSetDistributorPayload](docs/DatabaseSetDistributorPayload.md)
|
|
264
265
|
- [DatabaseState](docs/DatabaseState.md)
|
|
265
266
|
- [DatabaseUpdateStatePayload](docs/DatabaseUpdateStatePayload.md)
|
|
267
|
+
- [DatabasesCreateDatabasePayload](docs/DatabasesCreateDatabasePayload.md)
|
|
266
268
|
- [DatabasesDatabase](docs/DatabasesDatabase.md)
|
|
267
269
|
- [DatabasesListDatabasesResponse](docs/DatabasesListDatabasesResponse.md)
|
|
268
270
|
- [DateOrDateTime](docs/DateOrDateTime.md)
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DatabaseUpdateStatePayload, DatabasesDatabase, DatabasesListDatabasesResponse, UsersCreateUserPayload, UsersDeleteUserPayload, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models/index';
|
|
13
|
+
import type { DatabaseUpdateStatePayload, DatabasesCreateDatabasePayload, DatabasesDatabase, DatabasesListDatabasesResponse, UsersCreateUserPayload, UsersDeleteUserPayload, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models/index';
|
|
14
|
+
export interface CreateDatabaseRequest {
|
|
15
|
+
databasesCreateDatabasePayload: DatabasesCreateDatabasePayload;
|
|
16
|
+
}
|
|
14
17
|
export interface CreateUserRequest {
|
|
15
18
|
databaseUuid: string;
|
|
16
19
|
usersCreateUserPayload: UsersCreateUserPayload;
|
|
@@ -47,6 +50,18 @@ export interface UpdateUserRequest {
|
|
|
47
50
|
*
|
|
48
51
|
*/
|
|
49
52
|
export declare class DatabasesApi extends runtime.BaseAPI {
|
|
53
|
+
/**
|
|
54
|
+
* Creates request options for createDatabase without sending the request
|
|
55
|
+
*/
|
|
56
|
+
createDatabaseRequestOpts(requestParameters: CreateDatabaseRequest): Promise<runtime.RequestOpts>;
|
|
57
|
+
/**
|
|
58
|
+
* Create database for an organization
|
|
59
|
+
*/
|
|
60
|
+
createDatabaseRaw(requestParameters: CreateDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabasesDatabase>>;
|
|
61
|
+
/**
|
|
62
|
+
* Create database for an organization
|
|
63
|
+
*/
|
|
64
|
+
createDatabase(requestParameters: CreateDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabasesDatabase>;
|
|
50
65
|
/**
|
|
51
66
|
* Creates request options for createUser without sending the request
|
|
52
67
|
*/
|
|
@@ -29,6 +29,54 @@ const index_1 = require("../models/index");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class DatabasesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for createDatabase without sending the request
|
|
34
|
+
*/
|
|
35
|
+
createDatabaseRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['databasesCreateDatabasePayload'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('databasesCreateDatabasePayload', 'Required parameter "databasesCreateDatabasePayload" was null or undefined when calling createDatabase().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
// oauth required
|
|
45
|
+
const token = this.configuration.accessToken;
|
|
46
|
+
const tokenString = yield token("OAuth2", ["crm:database"]);
|
|
47
|
+
if (tokenString) {
|
|
48
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
let urlPath = `/crm/api/v1/databases`;
|
|
52
|
+
return {
|
|
53
|
+
path: urlPath,
|
|
54
|
+
method: 'POST',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
body: (0, index_1.DatabasesCreateDatabasePayloadToJSON)(requestParameters['databasesCreateDatabasePayload']),
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Create database for an organization
|
|
63
|
+
*/
|
|
64
|
+
createDatabaseRaw(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const requestOptions = yield this.createDatabaseRequestOpts(requestParameters);
|
|
67
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
68
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DatabasesDatabaseFromJSON)(jsonValue));
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Create database for an organization
|
|
73
|
+
*/
|
|
74
|
+
createDatabase(requestParameters, initOverrides) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const response = yield this.createDatabaseRaw(requestParameters, initOverrides);
|
|
77
|
+
return yield response.value();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
32
80
|
/**
|
|
33
81
|
* Creates request options for createUser without sending the request
|
|
34
82
|
*/
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DatabaseUpdateStatePayload, DatabasesDatabase, DatabasesListDatabasesResponse, UsersCreateUserPayload, UsersDeleteUserPayload, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models/index';
|
|
13
|
+
import type { DatabaseUpdateStatePayload, DatabasesCreateDatabasePayload, DatabasesDatabase, DatabasesListDatabasesResponse, UsersCreateUserPayload, UsersDeleteUserPayload, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models/index';
|
|
14
|
+
export interface CreateDatabaseRequest {
|
|
15
|
+
databasesCreateDatabasePayload: DatabasesCreateDatabasePayload;
|
|
16
|
+
}
|
|
14
17
|
export interface CreateUserRequest {
|
|
15
18
|
databaseUuid: string;
|
|
16
19
|
usersCreateUserPayload: UsersCreateUserPayload;
|
|
@@ -47,6 +50,18 @@ export interface UpdateUserRequest {
|
|
|
47
50
|
*
|
|
48
51
|
*/
|
|
49
52
|
export declare class DatabasesApi extends runtime.BaseAPI {
|
|
53
|
+
/**
|
|
54
|
+
* Creates request options for createDatabase without sending the request
|
|
55
|
+
*/
|
|
56
|
+
createDatabaseRequestOpts(requestParameters: CreateDatabaseRequest): Promise<runtime.RequestOpts>;
|
|
57
|
+
/**
|
|
58
|
+
* Create database for an organization
|
|
59
|
+
*/
|
|
60
|
+
createDatabaseRaw(requestParameters: CreateDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabasesDatabase>>;
|
|
61
|
+
/**
|
|
62
|
+
* Create database for an organization
|
|
63
|
+
*/
|
|
64
|
+
createDatabase(requestParameters: CreateDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabasesDatabase>;
|
|
50
65
|
/**
|
|
51
66
|
* Creates request options for createUser without sending the request
|
|
52
67
|
*/
|
|
@@ -21,11 +21,59 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { DatabaseUpdateStatePayloadToJSON, DatabasesDatabaseFromJSON, DatabasesListDatabasesResponseFromJSON, UsersCreateUserPayloadToJSON, UsersDeleteUserPayloadToJSON, UsersListUsersResponseFromJSON, UsersUpdateUserPayloadToJSON, UsersUserFromJSON, } from '../models/index';
|
|
24
|
+
import { DatabaseUpdateStatePayloadToJSON, DatabasesCreateDatabasePayloadToJSON, DatabasesDatabaseFromJSON, DatabasesListDatabasesResponseFromJSON, UsersCreateUserPayloadToJSON, UsersDeleteUserPayloadToJSON, UsersListUsersResponseFromJSON, UsersUpdateUserPayloadToJSON, UsersUserFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class DatabasesApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for createDatabase without sending the request
|
|
31
|
+
*/
|
|
32
|
+
createDatabaseRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['databasesCreateDatabasePayload'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('databasesCreateDatabasePayload', 'Required parameter "databasesCreateDatabasePayload" was null or undefined when calling createDatabase().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
// oauth required
|
|
42
|
+
const token = this.configuration.accessToken;
|
|
43
|
+
const tokenString = yield token("OAuth2", ["crm:database"]);
|
|
44
|
+
if (tokenString) {
|
|
45
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
let urlPath = `/crm/api/v1/databases`;
|
|
49
|
+
return {
|
|
50
|
+
path: urlPath,
|
|
51
|
+
method: 'POST',
|
|
52
|
+
headers: headerParameters,
|
|
53
|
+
query: queryParameters,
|
|
54
|
+
body: DatabasesCreateDatabasePayloadToJSON(requestParameters['databasesCreateDatabasePayload']),
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create database for an organization
|
|
60
|
+
*/
|
|
61
|
+
createDatabaseRaw(requestParameters, initOverrides) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const requestOptions = yield this.createDatabaseRequestOpts(requestParameters);
|
|
64
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
65
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DatabasesDatabaseFromJSON(jsonValue));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Create database for an organization
|
|
70
|
+
*/
|
|
71
|
+
createDatabase(requestParameters, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const response = yield this.createDatabaseRaw(requestParameters, initOverrides);
|
|
74
|
+
return yield response.value();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
29
77
|
/**
|
|
30
78
|
* Creates request options for createUser without sending the request
|
|
31
79
|
*/
|
|
@@ -18,6 +18,7 @@ export declare const DatabaseState: {
|
|
|
18
18
|
readonly INACTIVE: "INACTIVE";
|
|
19
19
|
readonly TODELETE: "TODELETE";
|
|
20
20
|
readonly MAINTENANCE: "MAINTENANCE";
|
|
21
|
+
readonly PROVISIONING: "PROVISIONING";
|
|
21
22
|
readonly unknown_default_open_api: "11184809";
|
|
22
23
|
};
|
|
23
24
|
export type DatabaseState = typeof DatabaseState[keyof typeof DatabaseState];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
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
|
+
* @interface DatabasesCreateDatabasePayload
|
|
16
|
+
*/
|
|
17
|
+
export interface DatabasesCreateDatabasePayload {
|
|
18
|
+
/**
|
|
19
|
+
* Organization UUID to bind user on
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DatabasesCreateDatabasePayload
|
|
22
|
+
*/
|
|
23
|
+
organizationUuid: string;
|
|
24
|
+
/**
|
|
25
|
+
* Profile name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DatabasesCreateDatabasePayload
|
|
28
|
+
*/
|
|
29
|
+
profile: string;
|
|
30
|
+
/**
|
|
31
|
+
* User UUID to bind database owner
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DatabasesCreateDatabasePayload
|
|
34
|
+
*/
|
|
35
|
+
ownerUserUuid: string;
|
|
36
|
+
/**
|
|
37
|
+
* Locale for the database
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DatabasesCreateDatabasePayload
|
|
40
|
+
*/
|
|
41
|
+
locale?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the DatabasesCreateDatabasePayload interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfDatabasesCreateDatabasePayload(value: object): value is DatabasesCreateDatabasePayload;
|
|
47
|
+
export declare function DatabasesCreateDatabasePayloadFromJSON(json: any): DatabasesCreateDatabasePayload;
|
|
48
|
+
export declare function DatabasesCreateDatabasePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatabasesCreateDatabasePayload;
|
|
49
|
+
export declare function DatabasesCreateDatabasePayloadToJSON(json: any): DatabasesCreateDatabasePayload;
|
|
50
|
+
export declare function DatabasesCreateDatabasePayloadToJSONTyped(value?: DatabasesCreateDatabasePayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Equisoft /connect API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
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
|
+
* Check if a given object implements the DatabasesCreateDatabasePayload interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDatabasesCreateDatabasePayload(value) {
|
|
18
|
+
if (!('organizationUuid' in value) || value['organizationUuid'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('profile' in value) || value['profile'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('ownerUserUuid' in value) || value['ownerUserUuid'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function DatabasesCreateDatabasePayloadFromJSON(json) {
|
|
27
|
+
return DatabasesCreateDatabasePayloadFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function DatabasesCreateDatabasePayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'organizationUuid': json['organizationUuid'],
|
|
35
|
+
'profile': json['profile'],
|
|
36
|
+
'ownerUserUuid': json['ownerUserUuid'],
|
|
37
|
+
'locale': json['locale'] == null ? undefined : json['locale'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function DatabasesCreateDatabasePayloadToJSON(json) {
|
|
41
|
+
return DatabasesCreateDatabasePayloadToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function DatabasesCreateDatabasePayloadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'organizationUuid': value['organizationUuid'],
|
|
49
|
+
'profile': value['profile'],
|
|
50
|
+
'ownerUserUuid': value['ownerUserUuid'],
|
|
51
|
+
'locale': value['locale'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -76,12 +76,6 @@ export interface DatabasesDatabase {
|
|
|
76
76
|
* @memberof DatabasesDatabase
|
|
77
77
|
*/
|
|
78
78
|
organizationUuid?: string | null;
|
|
79
|
-
/**
|
|
80
|
-
* Is Database Billable
|
|
81
|
-
* @type {boolean}
|
|
82
|
-
* @memberof DatabasesDatabase
|
|
83
|
-
*/
|
|
84
|
-
billable: boolean;
|
|
85
79
|
}
|
|
86
80
|
/**
|
|
87
81
|
* Check if a given object implements the DatabasesDatabase interface.
|
|
@@ -32,8 +32,6 @@ export function instanceOfDatabasesDatabase(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('isMultiUser' in value) || value['isMultiUser'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('billable' in value) || value['billable'] === undefined)
|
|
36
|
-
return false;
|
|
37
35
|
return true;
|
|
38
36
|
}
|
|
39
37
|
export function DatabasesDatabaseFromJSON(json) {
|
|
@@ -54,7 +52,6 @@ export function DatabasesDatabaseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'isMultiUser': json['isMultiUser'],
|
|
55
53
|
'equisoftPlanEnabled': json['equisoftPlanEnabled'] == null ? undefined : json['equisoftPlanEnabled'],
|
|
56
54
|
'organizationUuid': json['organizationUuid'] == null ? undefined : json['organizationUuid'],
|
|
57
|
-
'billable': json['billable'],
|
|
58
55
|
};
|
|
59
56
|
}
|
|
60
57
|
export function DatabasesDatabaseToJSON(json) {
|
|
@@ -75,6 +72,5 @@ export function DatabasesDatabaseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
75
72
|
'isMultiUser': value['isMultiUser'],
|
|
76
73
|
'equisoftPlanEnabled': value['equisoftPlanEnabled'],
|
|
77
74
|
'organizationUuid': value['organizationUuid'],
|
|
78
|
-
'billable': value['billable'],
|
|
79
75
|
};
|
|
80
76
|
}
|
|
@@ -57,84 +57,6 @@ export interface LegacyProvisioningOrganizationPayload {
|
|
|
57
57
|
* @memberof LegacyProvisioningOrganizationPayload
|
|
58
58
|
*/
|
|
59
59
|
parentOrganizationUuid?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Organization main phone number.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
64
|
-
*/
|
|
65
|
-
mainPhone?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Organization tollFree phone number.
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
70
|
-
*/
|
|
71
|
-
tollFree?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Organization fax phone number.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
76
|
-
*/
|
|
77
|
-
fax?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Organization address first line.
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
82
|
-
*/
|
|
83
|
-
address?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Organization address second line.
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
88
|
-
*/
|
|
89
|
-
addressLine2?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Organization address city.
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
94
|
-
*/
|
|
95
|
-
addressCity?: string;
|
|
96
|
-
/**
|
|
97
|
-
* Organization address state/province.
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
100
|
-
*/
|
|
101
|
-
addressState?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Organization address postal code.
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
106
|
-
*/
|
|
107
|
-
addressPostalCode?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Organization address country.
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
112
|
-
*/
|
|
113
|
-
addressCountry?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Organization website url.
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
118
|
-
*/
|
|
119
|
-
webSite?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Organization email.
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
124
|
-
*/
|
|
125
|
-
organizationEmail?: string;
|
|
126
|
-
/**
|
|
127
|
-
* Install personalized fields module.
|
|
128
|
-
* @type {boolean}
|
|
129
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
130
|
-
*/
|
|
131
|
-
installPersonalizedFieldsModule?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* Install FNA module.
|
|
134
|
-
* @type {boolean}
|
|
135
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
136
|
-
*/
|
|
137
|
-
installFnaModule?: boolean;
|
|
138
60
|
}
|
|
139
61
|
/**
|
|
140
62
|
* Check if a given object implements the LegacyProvisioningOrganizationPayload interface.
|
|
@@ -32,19 +32,6 @@ export function LegacyProvisioningOrganizationPayloadFromJSONTyped(json, ignoreD
|
|
|
32
32
|
'ownerEmail': json['ownerEmail'] == null ? undefined : json['ownerEmail'],
|
|
33
33
|
'lang': json['lang'] == null ? undefined : json['lang'],
|
|
34
34
|
'parentOrganizationUuid': json['parentOrganizationUuid'] == null ? undefined : json['parentOrganizationUuid'],
|
|
35
|
-
'mainPhone': json['mainPhone'] == null ? undefined : json['mainPhone'],
|
|
36
|
-
'tollFree': json['tollFree'] == null ? undefined : json['tollFree'],
|
|
37
|
-
'fax': json['fax'] == null ? undefined : json['fax'],
|
|
38
|
-
'address': json['address'] == null ? undefined : json['address'],
|
|
39
|
-
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
40
|
-
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
41
|
-
'addressState': json['addressState'] == null ? undefined : json['addressState'],
|
|
42
|
-
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
43
|
-
'addressCountry': json['addressCountry'] == null ? undefined : json['addressCountry'],
|
|
44
|
-
'webSite': json['webSite'] == null ? undefined : json['webSite'],
|
|
45
|
-
'organizationEmail': json['organizationEmail'] == null ? undefined : json['organizationEmail'],
|
|
46
|
-
'installPersonalizedFieldsModule': json['installPersonalizedFieldsModule'] == null ? undefined : json['installPersonalizedFieldsModule'],
|
|
47
|
-
'installFnaModule': json['installFnaModule'] == null ? undefined : json['installFnaModule'],
|
|
48
35
|
};
|
|
49
36
|
}
|
|
50
37
|
export function LegacyProvisioningOrganizationPayloadToJSON(json) {
|
|
@@ -62,18 +49,5 @@ export function LegacyProvisioningOrganizationPayloadToJSONTyped(value, ignoreDi
|
|
|
62
49
|
'ownerEmail': value['ownerEmail'],
|
|
63
50
|
'lang': value['lang'],
|
|
64
51
|
'parentOrganizationUuid': value['parentOrganizationUuid'],
|
|
65
|
-
'mainPhone': value['mainPhone'],
|
|
66
|
-
'tollFree': value['tollFree'],
|
|
67
|
-
'fax': value['fax'],
|
|
68
|
-
'address': value['address'],
|
|
69
|
-
'addressLine2': value['addressLine2'],
|
|
70
|
-
'addressCity': value['addressCity'],
|
|
71
|
-
'addressState': value['addressState'],
|
|
72
|
-
'addressPostalCode': value['addressPostalCode'],
|
|
73
|
-
'addressCountry': value['addressCountry'],
|
|
74
|
-
'webSite': value['webSite'],
|
|
75
|
-
'organizationEmail': value['organizationEmail'],
|
|
76
|
-
'installPersonalizedFieldsModule': value['installPersonalizedFieldsModule'],
|
|
77
|
-
'installFnaModule': value['installFnaModule'],
|
|
78
52
|
};
|
|
79
53
|
}
|
|
@@ -57,12 +57,6 @@ export interface LegacyProvisioningUserPayload {
|
|
|
57
57
|
* @memberof LegacyProvisioningUserPayload
|
|
58
58
|
*/
|
|
59
59
|
allowDelegation?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Cellphone number of this user.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof LegacyProvisioningUserPayload
|
|
64
|
-
*/
|
|
65
|
-
phoneCell?: string;
|
|
66
60
|
}
|
|
67
61
|
/**
|
|
68
62
|
* @export
|
|
@@ -49,7 +49,6 @@ export function LegacyProvisioningUserPayloadFromJSONTyped(json, ignoreDiscrimin
|
|
|
49
49
|
'role': json['role'] == null ? undefined : json['role'],
|
|
50
50
|
'concurrentAccess': json['concurrentAccess'] == null ? undefined : json['concurrentAccess'],
|
|
51
51
|
'allowDelegation': json['allowDelegation'] == null ? undefined : json['allowDelegation'],
|
|
52
|
-
'phoneCell': json['phoneCell'] == null ? undefined : json['phoneCell'],
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
54
|
export function LegacyProvisioningUserPayloadToJSON(json) {
|
|
@@ -67,6 +66,5 @@ export function LegacyProvisioningUserPayloadToJSONTyped(value, ignoreDiscrimina
|
|
|
67
66
|
'role': value['role'],
|
|
68
67
|
'concurrentAccess': value['concurrentAccess'],
|
|
69
68
|
'allowDelegation': value['allowDelegation'],
|
|
70
|
-
'phoneCell': value['phoneCell'],
|
|
71
69
|
};
|
|
72
70
|
}
|
|
@@ -62,6 +62,7 @@ export * from './CredentialsResponse';
|
|
|
62
62
|
export * from './DatabaseSetDistributorPayload';
|
|
63
63
|
export * from './DatabaseState';
|
|
64
64
|
export * from './DatabaseUpdateStatePayload';
|
|
65
|
+
export * from './DatabasesCreateDatabasePayload';
|
|
65
66
|
export * from './DatabasesDatabase';
|
|
66
67
|
export * from './DatabasesListDatabasesResponse';
|
|
67
68
|
export * from './DateOrDateTime';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -64,6 +64,7 @@ export * from './CredentialsResponse';
|
|
|
64
64
|
export * from './DatabaseSetDistributorPayload';
|
|
65
65
|
export * from './DatabaseState';
|
|
66
66
|
export * from './DatabaseUpdateStatePayload';
|
|
67
|
+
export * from './DatabasesCreateDatabasePayload';
|
|
67
68
|
export * from './DatabasesDatabase';
|
|
68
69
|
export * from './DatabasesListDatabasesResponse';
|
|
69
70
|
export * from './DateOrDateTime';
|
|
@@ -18,6 +18,7 @@ export declare const DatabaseState: {
|
|
|
18
18
|
readonly INACTIVE: "INACTIVE";
|
|
19
19
|
readonly TODELETE: "TODELETE";
|
|
20
20
|
readonly MAINTENANCE: "MAINTENANCE";
|
|
21
|
+
readonly PROVISIONING: "PROVISIONING";
|
|
21
22
|
readonly unknown_default_open_api: "11184809";
|
|
22
23
|
};
|
|
23
24
|
export type DatabaseState = typeof DatabaseState[keyof typeof DatabaseState];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
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
|
+
* @interface DatabasesCreateDatabasePayload
|
|
16
|
+
*/
|
|
17
|
+
export interface DatabasesCreateDatabasePayload {
|
|
18
|
+
/**
|
|
19
|
+
* Organization UUID to bind user on
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DatabasesCreateDatabasePayload
|
|
22
|
+
*/
|
|
23
|
+
organizationUuid: string;
|
|
24
|
+
/**
|
|
25
|
+
* Profile name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DatabasesCreateDatabasePayload
|
|
28
|
+
*/
|
|
29
|
+
profile: string;
|
|
30
|
+
/**
|
|
31
|
+
* User UUID to bind database owner
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DatabasesCreateDatabasePayload
|
|
34
|
+
*/
|
|
35
|
+
ownerUserUuid: string;
|
|
36
|
+
/**
|
|
37
|
+
* Locale for the database
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DatabasesCreateDatabasePayload
|
|
40
|
+
*/
|
|
41
|
+
locale?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the DatabasesCreateDatabasePayload interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfDatabasesCreateDatabasePayload(value: object): value is DatabasesCreateDatabasePayload;
|
|
47
|
+
export declare function DatabasesCreateDatabasePayloadFromJSON(json: any): DatabasesCreateDatabasePayload;
|
|
48
|
+
export declare function DatabasesCreateDatabasePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatabasesCreateDatabasePayload;
|
|
49
|
+
export declare function DatabasesCreateDatabasePayloadToJSON(json: any): DatabasesCreateDatabasePayload;
|
|
50
|
+
export declare function DatabasesCreateDatabasePayloadToJSONTyped(value?: DatabasesCreateDatabasePayload | null, ignoreDiscriminator?: boolean): any;
|