@equisoft/equisoft-connect-sdk-typescript 13.41.0 → 13.42.0
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/dist/apis/DatabasesApi.d.ts +1 -12
- package/dist/apis/DatabasesApi.js +0 -36
- package/dist/esm/apis/DatabasesApi.d.ts +1 -12
- package/dist/esm/apis/DatabasesApi.js +1 -37
- package/dist/esm/models/LegacyProvisioningOrganizationPayload.d.ts +0 -6
- package/dist/esm/models/LegacyProvisioningOrganizationPayload.js +0 -2
- package/dist/models/LegacyProvisioningOrganizationPayload.d.ts +0 -6
- package/dist/models/LegacyProvisioningOrganizationPayload.js +0 -2
- package/package.json +1 -1
- package/src/apis/DatabasesApi.ts +0 -49
- package/src/models/LegacyProvisioningOrganizationPayload.ts +0 -8
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface CreateChargebeeCustomerRequest {
|
|
15
|
-
databaseUuid: string;
|
|
16
|
-
}
|
|
13
|
+
import type { DatabaseSetDistributorPayload, DatabaseUpdateStatePayload, DatabasesDatabase, DatabasesListDatabasesResponse, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models/index';
|
|
17
14
|
export interface GetDatabaseRequest {
|
|
18
15
|
databaseUuid: string;
|
|
19
16
|
}
|
|
@@ -48,14 +45,6 @@ export interface UpdateUserRequest {
|
|
|
48
45
|
*
|
|
49
46
|
*/
|
|
50
47
|
export declare class DatabasesApi extends runtime.BaseAPI {
|
|
51
|
-
/**
|
|
52
|
-
* Create a ChargeBee customer for the database
|
|
53
|
-
*/
|
|
54
|
-
createChargebeeCustomerRaw(requestParameters: CreateChargebeeCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabaseDatabaseChargebeeCustomerCreatedResponse>>;
|
|
55
|
-
/**
|
|
56
|
-
* Create a ChargeBee customer for the database
|
|
57
|
-
*/
|
|
58
|
-
createChargebeeCustomer(requestParameters: CreateChargebeeCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabaseDatabaseChargebeeCustomerCreatedResponse>;
|
|
59
48
|
/**
|
|
60
49
|
* Get a database
|
|
61
50
|
*/
|
|
@@ -29,42 +29,6 @@ const index_1 = require("../models/index");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class DatabasesApi extends runtime.BaseAPI {
|
|
32
|
-
/**
|
|
33
|
-
* Create a ChargeBee customer for the database
|
|
34
|
-
*/
|
|
35
|
-
createChargebeeCustomerRaw(requestParameters, initOverrides) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['databaseUuid'] == null) {
|
|
38
|
-
throw new runtime.RequiredError('databaseUuid', 'Required parameter "databaseUuid" was null or undefined when calling createChargebeeCustomer().');
|
|
39
|
-
}
|
|
40
|
-
const queryParameters = {};
|
|
41
|
-
const headerParameters = {};
|
|
42
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
-
// oauth required
|
|
44
|
-
const token = this.configuration.accessToken;
|
|
45
|
-
const tokenString = yield token("OAuth2", ["crm:database"]);
|
|
46
|
-
if (tokenString) {
|
|
47
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
const response = yield this.request({
|
|
51
|
-
path: `/crm/api/v1/databases/{databaseUuid}/chargebeeCustomer`.replace(`{${"databaseUuid"}}`, encodeURIComponent(String(requestParameters['databaseUuid']))),
|
|
52
|
-
method: 'POST',
|
|
53
|
-
headers: headerParameters,
|
|
54
|
-
query: queryParameters,
|
|
55
|
-
}, initOverrides);
|
|
56
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DatabaseDatabaseChargebeeCustomerCreatedResponseFromJSON)(jsonValue));
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Create a ChargeBee customer for the database
|
|
61
|
-
*/
|
|
62
|
-
createChargebeeCustomer(requestParameters, initOverrides) {
|
|
63
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
const response = yield this.createChargebeeCustomerRaw(requestParameters, initOverrides);
|
|
65
|
-
return yield response.value();
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
32
|
/**
|
|
69
33
|
* Get a database
|
|
70
34
|
*/
|
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface CreateChargebeeCustomerRequest {
|
|
15
|
-
databaseUuid: string;
|
|
16
|
-
}
|
|
13
|
+
import type { DatabaseSetDistributorPayload, DatabaseUpdateStatePayload, DatabasesDatabase, DatabasesListDatabasesResponse, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models/index';
|
|
17
14
|
export interface GetDatabaseRequest {
|
|
18
15
|
databaseUuid: string;
|
|
19
16
|
}
|
|
@@ -48,14 +45,6 @@ export interface UpdateUserRequest {
|
|
|
48
45
|
*
|
|
49
46
|
*/
|
|
50
47
|
export declare class DatabasesApi extends runtime.BaseAPI {
|
|
51
|
-
/**
|
|
52
|
-
* Create a ChargeBee customer for the database
|
|
53
|
-
*/
|
|
54
|
-
createChargebeeCustomerRaw(requestParameters: CreateChargebeeCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabaseDatabaseChargebeeCustomerCreatedResponse>>;
|
|
55
|
-
/**
|
|
56
|
-
* Create a ChargeBee customer for the database
|
|
57
|
-
*/
|
|
58
|
-
createChargebeeCustomer(requestParameters: CreateChargebeeCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabaseDatabaseChargebeeCustomerCreatedResponse>;
|
|
59
48
|
/**
|
|
60
49
|
* Get a database
|
|
61
50
|
*/
|
|
@@ -21,47 +21,11 @@ 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 { DatabaseSetDistributorPayloadToJSON, DatabaseUpdateStatePayloadToJSON, DatabasesDatabaseFromJSON, DatabasesListDatabasesResponseFromJSON, UsersListUsersResponseFromJSON, UsersUpdateUserPayloadToJSON, UsersUserFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class DatabasesApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Create a ChargeBee customer for the database
|
|
31
|
-
*/
|
|
32
|
-
createChargebeeCustomerRaw(requestParameters, initOverrides) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['databaseUuid'] == null) {
|
|
35
|
-
throw new runtime.RequiredError('databaseUuid', 'Required parameter "databaseUuid" was null or undefined when calling createChargebeeCustomer().');
|
|
36
|
-
}
|
|
37
|
-
const queryParameters = {};
|
|
38
|
-
const headerParameters = {};
|
|
39
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
-
// oauth required
|
|
41
|
-
const token = this.configuration.accessToken;
|
|
42
|
-
const tokenString = yield token("OAuth2", ["crm:database"]);
|
|
43
|
-
if (tokenString) {
|
|
44
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const response = yield this.request({
|
|
48
|
-
path: `/crm/api/v1/databases/{databaseUuid}/chargebeeCustomer`.replace(`{${"databaseUuid"}}`, encodeURIComponent(String(requestParameters['databaseUuid']))),
|
|
49
|
-
method: 'POST',
|
|
50
|
-
headers: headerParameters,
|
|
51
|
-
query: queryParameters,
|
|
52
|
-
}, initOverrides);
|
|
53
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => DatabaseDatabaseChargebeeCustomerCreatedResponseFromJSON(jsonValue));
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Create a ChargeBee customer for the database
|
|
58
|
-
*/
|
|
59
|
-
createChargebeeCustomer(requestParameters, initOverrides) {
|
|
60
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const response = yield this.createChargebeeCustomerRaw(requestParameters, initOverrides);
|
|
62
|
-
return yield response.value();
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
29
|
/**
|
|
66
30
|
* Get a database
|
|
67
31
|
*/
|
|
@@ -123,12 +123,6 @@ export interface LegacyProvisioningOrganizationPayload {
|
|
|
123
123
|
* @memberof LegacyProvisioningOrganizationPayload
|
|
124
124
|
*/
|
|
125
125
|
organizationEmail?: string;
|
|
126
|
-
/**
|
|
127
|
-
* Distributor.
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
130
|
-
*/
|
|
131
|
-
distributor?: string;
|
|
132
126
|
/**
|
|
133
127
|
* Install personalized fields module.
|
|
134
128
|
* @type {boolean}
|
|
@@ -43,7 +43,6 @@ export function LegacyProvisioningOrganizationPayloadFromJSONTyped(json, ignoreD
|
|
|
43
43
|
'addressCountry': json['addressCountry'] == null ? undefined : json['addressCountry'],
|
|
44
44
|
'webSite': json['webSite'] == null ? undefined : json['webSite'],
|
|
45
45
|
'organizationEmail': json['organizationEmail'] == null ? undefined : json['organizationEmail'],
|
|
46
|
-
'distributor': json['distributor'] == null ? undefined : json['distributor'],
|
|
47
46
|
'installPersonalizedFieldsModule': json['installPersonalizedFieldsModule'] == null ? undefined : json['installPersonalizedFieldsModule'],
|
|
48
47
|
'installFnaModule': json['installFnaModule'] == null ? undefined : json['installFnaModule'],
|
|
49
48
|
};
|
|
@@ -74,7 +73,6 @@ export function LegacyProvisioningOrganizationPayloadToJSONTyped(value, ignoreDi
|
|
|
74
73
|
'addressCountry': value['addressCountry'],
|
|
75
74
|
'webSite': value['webSite'],
|
|
76
75
|
'organizationEmail': value['organizationEmail'],
|
|
77
|
-
'distributor': value['distributor'],
|
|
78
76
|
'installPersonalizedFieldsModule': value['installPersonalizedFieldsModule'],
|
|
79
77
|
'installFnaModule': value['installFnaModule'],
|
|
80
78
|
};
|
|
@@ -123,12 +123,6 @@ export interface LegacyProvisioningOrganizationPayload {
|
|
|
123
123
|
* @memberof LegacyProvisioningOrganizationPayload
|
|
124
124
|
*/
|
|
125
125
|
organizationEmail?: string;
|
|
126
|
-
/**
|
|
127
|
-
* Distributor.
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
130
|
-
*/
|
|
131
|
-
distributor?: string;
|
|
132
126
|
/**
|
|
133
127
|
* Install personalized fields module.
|
|
134
128
|
* @type {boolean}
|
|
@@ -50,7 +50,6 @@ function LegacyProvisioningOrganizationPayloadFromJSONTyped(json, ignoreDiscrimi
|
|
|
50
50
|
'addressCountry': json['addressCountry'] == null ? undefined : json['addressCountry'],
|
|
51
51
|
'webSite': json['webSite'] == null ? undefined : json['webSite'],
|
|
52
52
|
'organizationEmail': json['organizationEmail'] == null ? undefined : json['organizationEmail'],
|
|
53
|
-
'distributor': json['distributor'] == null ? undefined : json['distributor'],
|
|
54
53
|
'installPersonalizedFieldsModule': json['installPersonalizedFieldsModule'] == null ? undefined : json['installPersonalizedFieldsModule'],
|
|
55
54
|
'installFnaModule': json['installFnaModule'] == null ? undefined : json['installFnaModule'],
|
|
56
55
|
};
|
|
@@ -81,7 +80,6 @@ function LegacyProvisioningOrganizationPayloadToJSONTyped(value, ignoreDiscrimin
|
|
|
81
80
|
'addressCountry': value['addressCountry'],
|
|
82
81
|
'webSite': value['webSite'],
|
|
83
82
|
'organizationEmail': value['organizationEmail'],
|
|
84
|
-
'distributor': value['distributor'],
|
|
85
83
|
'installPersonalizedFieldsModule': value['installPersonalizedFieldsModule'],
|
|
86
84
|
'installFnaModule': value['installFnaModule'],
|
|
87
85
|
};
|
package/package.json
CHANGED
package/src/apis/DatabasesApi.ts
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
DatabaseDatabaseChargebeeCustomerCreatedResponse,
|
|
19
18
|
DatabaseSetDistributorPayload,
|
|
20
19
|
DatabaseUpdateStatePayload,
|
|
21
20
|
DatabasesDatabase,
|
|
@@ -26,8 +25,6 @@ import type {
|
|
|
26
25
|
UsersUser,
|
|
27
26
|
} from '../models/index';
|
|
28
27
|
import {
|
|
29
|
-
DatabaseDatabaseChargebeeCustomerCreatedResponseFromJSON,
|
|
30
|
-
DatabaseDatabaseChargebeeCustomerCreatedResponseToJSON,
|
|
31
28
|
DatabaseSetDistributorPayloadFromJSON,
|
|
32
29
|
DatabaseSetDistributorPayloadToJSON,
|
|
33
30
|
DatabaseUpdateStatePayloadFromJSON,
|
|
@@ -46,10 +43,6 @@ import {
|
|
|
46
43
|
UsersUserToJSON,
|
|
47
44
|
} from '../models/index';
|
|
48
45
|
|
|
49
|
-
export interface CreateChargebeeCustomerRequest {
|
|
50
|
-
databaseUuid: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
46
|
export interface GetDatabaseRequest {
|
|
54
47
|
databaseUuid: string;
|
|
55
48
|
}
|
|
@@ -93,48 +86,6 @@ export interface UpdateUserRequest {
|
|
|
93
86
|
*/
|
|
94
87
|
export class DatabasesApi extends runtime.BaseAPI {
|
|
95
88
|
|
|
96
|
-
/**
|
|
97
|
-
* Create a ChargeBee customer for the database
|
|
98
|
-
*/
|
|
99
|
-
async createChargebeeCustomerRaw(requestParameters: CreateChargebeeCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabaseDatabaseChargebeeCustomerCreatedResponse>> {
|
|
100
|
-
if (requestParameters['databaseUuid'] == null) {
|
|
101
|
-
throw new runtime.RequiredError(
|
|
102
|
-
'databaseUuid',
|
|
103
|
-
'Required parameter "databaseUuid" was null or undefined when calling createChargebeeCustomer().'
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
const queryParameters: any = {};
|
|
108
|
-
|
|
109
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
110
|
-
|
|
111
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
112
|
-
// oauth required
|
|
113
|
-
const token = this.configuration.accessToken;
|
|
114
|
-
const tokenString = await token("OAuth2", ["crm:database"]);
|
|
115
|
-
if (tokenString) {
|
|
116
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
const response = await this.request({
|
|
121
|
-
path: `/crm/api/v1/databases/{databaseUuid}/chargebeeCustomer`.replace(`{${"databaseUuid"}}`, encodeURIComponent(String(requestParameters['databaseUuid']))),
|
|
122
|
-
method: 'POST',
|
|
123
|
-
headers: headerParameters,
|
|
124
|
-
query: queryParameters,
|
|
125
|
-
}, initOverrides);
|
|
126
|
-
|
|
127
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => DatabaseDatabaseChargebeeCustomerCreatedResponseFromJSON(jsonValue));
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Create a ChargeBee customer for the database
|
|
132
|
-
*/
|
|
133
|
-
async createChargebeeCustomer(requestParameters: CreateChargebeeCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabaseDatabaseChargebeeCustomerCreatedResponse> {
|
|
134
|
-
const response = await this.createChargebeeCustomerRaw(requestParameters, initOverrides);
|
|
135
|
-
return await response.value();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
89
|
/**
|
|
139
90
|
* Get a database
|
|
140
91
|
*/
|
|
@@ -127,12 +127,6 @@ export interface LegacyProvisioningOrganizationPayload {
|
|
|
127
127
|
* @memberof LegacyProvisioningOrganizationPayload
|
|
128
128
|
*/
|
|
129
129
|
organizationEmail?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Distributor.
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof LegacyProvisioningOrganizationPayload
|
|
134
|
-
*/
|
|
135
|
-
distributor?: string;
|
|
136
130
|
/**
|
|
137
131
|
* Install personalized fields module.
|
|
138
132
|
* @type {boolean}
|
|
@@ -182,7 +176,6 @@ export function LegacyProvisioningOrganizationPayloadFromJSONTyped(json: any, ig
|
|
|
182
176
|
'addressCountry': json['addressCountry'] == null ? undefined : json['addressCountry'],
|
|
183
177
|
'webSite': json['webSite'] == null ? undefined : json['webSite'],
|
|
184
178
|
'organizationEmail': json['organizationEmail'] == null ? undefined : json['organizationEmail'],
|
|
185
|
-
'distributor': json['distributor'] == null ? undefined : json['distributor'],
|
|
186
179
|
'installPersonalizedFieldsModule': json['installPersonalizedFieldsModule'] == null ? undefined : json['installPersonalizedFieldsModule'],
|
|
187
180
|
'installFnaModule': json['installFnaModule'] == null ? undefined : json['installFnaModule'],
|
|
188
181
|
};
|
|
@@ -217,7 +210,6 @@ export function LegacyProvisioningOrganizationPayloadToJSONTyped(value?: LegacyP
|
|
|
217
210
|
'addressCountry': value['addressCountry'],
|
|
218
211
|
'webSite': value['webSite'],
|
|
219
212
|
'organizationEmail': value['organizationEmail'],
|
|
220
|
-
'distributor': value['distributor'],
|
|
221
213
|
'installPersonalizedFieldsModule': value['installPersonalizedFieldsModule'],
|
|
222
214
|
'installFnaModule': value['installFnaModule'],
|
|
223
215
|
};
|