@equisoft/equisoft-connect-sdk-typescript 10.33.7 → 10.33.8-snapshot.20221103134012

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.
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DatabasesListDatabasesResponse, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models';
13
+ import type { DatabasesDatabase, DatabasesListDatabasesResponse, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models';
14
+ export interface GetDatabaseRequest {
15
+ uuid: string;
16
+ }
14
17
  export interface GetUserRequest {
15
18
  uuid: string;
16
19
  id: number;
@@ -31,6 +34,12 @@ export interface UpdateUserRequest {
31
34
  *
32
35
  */
33
36
  export declare class DatabasesApi extends runtime.BaseAPI {
37
+ /**
38
+ */
39
+ getDatabaseRaw(requestParameters: GetDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabasesDatabase>>;
40
+ /**
41
+ */
42
+ getDatabase(requestParameters: GetDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabasesDatabase>;
34
43
  /**
35
44
  */
36
45
  getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersUser>>;
@@ -29,6 +29,40 @@ const models_1 = require("../models");
29
29
  *
30
30
  */
31
31
  class DatabasesApi extends runtime.BaseAPI {
32
+ /**
33
+ */
34
+ getDatabaseRaw(requestParameters, initOverrides) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
37
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling getDatabase.');
38
+ }
39
+ const queryParameters = {};
40
+ const headerParameters = {};
41
+ if (this.configuration && this.configuration.accessToken) {
42
+ // oauth required
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = yield token("OAuth2", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
48
+ }
49
+ const response = yield this.request({
50
+ path: `/crm/api/v1/databases/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
51
+ method: 'GET',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ }, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => models_1.DatabasesDatabaseFromJSON(jsonValue));
56
+ });
57
+ }
58
+ /**
59
+ */
60
+ getDatabase(requestParameters, initOverrides) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const response = yield this.getDatabaseRaw(requestParameters, initOverrides);
63
+ return yield response.value();
64
+ });
65
+ }
32
66
  /**
33
67
  */
34
68
  getUserRaw(requestParameters, initOverrides) {
@@ -51,6 +51,36 @@ export interface DatabasesDatabase {
51
51
  * @memberof DatabasesDatabase
52
52
  */
53
53
  state: string;
54
+ /**
55
+ * Datagateway Enabled
56
+ * @type {boolean}
57
+ * @memberof DatabasesDatabase
58
+ */
59
+ datagatewayEnabled: boolean;
60
+ /**
61
+ * Is Multi User
62
+ * @type {boolean}
63
+ * @memberof DatabasesDatabase
64
+ */
65
+ isMultiUser: boolean;
66
+ /**
67
+ * Is Multi User
68
+ * @type {boolean}
69
+ * @memberof DatabasesDatabase
70
+ */
71
+ equisoftPlanEnabled: boolean;
72
+ /**
73
+ * Distributor Code
74
+ * @type {string}
75
+ * @memberof DatabasesDatabase
76
+ */
77
+ distributorCode?: string | null;
78
+ /**
79
+ * Chargebee Customer Id
80
+ * @type {string}
81
+ * @memberof DatabasesDatabase
82
+ */
83
+ chargebeeCustomerId?: string | null;
54
84
  /**
55
85
  * Organization uuid
56
86
  * @type {string}
@@ -26,6 +26,9 @@ function instanceOfDatabasesDatabase(value) {
26
26
  isInstance = isInstance && "displayName" in value;
27
27
  isInstance = isInstance && "profileName" in value;
28
28
  isInstance = isInstance && "state" in value;
29
+ isInstance = isInstance && "datagatewayEnabled" in value;
30
+ isInstance = isInstance && "isMultiUser" in value;
31
+ isInstance = isInstance && "equisoftPlanEnabled" in value;
29
32
  return isInstance;
30
33
  }
31
34
  exports.instanceOfDatabasesDatabase = instanceOfDatabasesDatabase;
@@ -44,6 +47,11 @@ function DatabasesDatabaseFromJSONTyped(json, ignoreDiscriminator) {
44
47
  'displayName': json['displayName'],
45
48
  'profileName': json['profileName'],
46
49
  'state': json['state'],
50
+ 'datagatewayEnabled': json['datagatewayEnabled'],
51
+ 'isMultiUser': json['isMultiUser'],
52
+ 'equisoftPlanEnabled': json['equisoftPlanEnabled'],
53
+ 'distributorCode': !runtime_1.exists(json, 'distributorCode') ? undefined : json['distributorCode'],
54
+ 'chargebeeCustomerId': !runtime_1.exists(json, 'chargebeeCustomerId') ? undefined : json['chargebeeCustomerId'],
47
55
  'organizationUuid': !runtime_1.exists(json, 'organizationUuid') ? undefined : json['organizationUuid'],
48
56
  };
49
57
  }
@@ -62,6 +70,11 @@ function DatabasesDatabaseToJSON(value) {
62
70
  'displayName': value.displayName,
63
71
  'profileName': value.profileName,
64
72
  'state': value.state,
73
+ 'datagatewayEnabled': value.datagatewayEnabled,
74
+ 'isMultiUser': value.isMultiUser,
75
+ 'equisoftPlanEnabled': value.equisoftPlanEnabled,
76
+ 'distributorCode': value.distributorCode,
77
+ 'chargebeeCustomerId': value.chargebeeCustomerId,
65
78
  'organizationUuid': value.organizationUuid,
66
79
  };
67
80
  }
@@ -27,6 +27,12 @@ export interface GatewaysAccessesValidationGatewayAdminDto {
27
27
  * @memberof GatewaysAccessesValidationGatewayAdminDto
28
28
  */
29
29
  name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GatewaysAccessesValidationGatewayAdminDto
34
+ */
35
+ email: string;
30
36
  /**
31
37
  *
32
38
  * @type {string}
@@ -21,6 +21,7 @@ function instanceOfGatewaysAccessesValidationGatewayAdminDto(value) {
21
21
  let isInstance = true;
22
22
  isInstance = isInstance && "id" in value;
23
23
  isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "email" in value;
24
25
  isInstance = isInstance && "lang" in value;
25
26
  return isInstance;
26
27
  }
@@ -36,6 +37,7 @@ function GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json, ignoreDisc
36
37
  return {
37
38
  'id': json['id'],
38
39
  'name': json['name'],
40
+ 'email': json['email'],
39
41
  'lang': json['lang'],
40
42
  };
41
43
  }
@@ -50,6 +52,7 @@ function GatewaysAccessesValidationGatewayAdminDtoToJSON(value) {
50
52
  return {
51
53
  'id': value.id,
52
54
  'name': value.name,
55
+ 'email': value.email,
53
56
  'lang': value.lang,
54
57
  };
55
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/equisoft-connect-sdk-typescript",
3
- "version": "10.33.7",
3
+ "version": "10.33.8-snapshot.20221103134012",
4
4
  "description": "OpenAPI client for @equisoft/equisoft-connect-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ DatabasesDatabase,
18
19
  DatabasesListDatabasesResponse,
19
20
  ErrorResponse,
20
21
  UsersListUsersResponse,
@@ -22,6 +23,8 @@ import type {
22
23
  UsersUser,
23
24
  } from '../models';
24
25
  import {
26
+ DatabasesDatabaseFromJSON,
27
+ DatabasesDatabaseToJSON,
25
28
  DatabasesListDatabasesResponseFromJSON,
26
29
  DatabasesListDatabasesResponseToJSON,
27
30
  ErrorResponseFromJSON,
@@ -34,6 +37,10 @@ import {
34
37
  UsersUserToJSON,
35
38
  } from '../models';
36
39
 
40
+ export interface GetDatabaseRequest {
41
+ uuid: string;
42
+ }
43
+
37
44
  export interface GetUserRequest {
38
45
  uuid: string;
39
46
  id: number;
@@ -59,6 +66,44 @@ export interface UpdateUserRequest {
59
66
  */
60
67
  export class DatabasesApi extends runtime.BaseAPI {
61
68
 
69
+ /**
70
+ */
71
+ async getDatabaseRaw(requestParameters: GetDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabasesDatabase>> {
72
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
73
+ throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling getDatabase.');
74
+ }
75
+
76
+ const queryParameters: any = {};
77
+
78
+ const headerParameters: runtime.HTTPHeaders = {};
79
+
80
+ if (this.configuration && this.configuration.accessToken) {
81
+ // oauth required
82
+ const token = this.configuration.accessToken;
83
+ const tokenString = await token("OAuth2", []);
84
+
85
+ if (tokenString) {
86
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
87
+ }
88
+ }
89
+
90
+ const response = await this.request({
91
+ path: `/crm/api/v1/databases/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
92
+ method: 'GET',
93
+ headers: headerParameters,
94
+ query: queryParameters,
95
+ }, initOverrides);
96
+
97
+ return new runtime.JSONApiResponse(response, (jsonValue) => DatabasesDatabaseFromJSON(jsonValue));
98
+ }
99
+
100
+ /**
101
+ */
102
+ async getDatabase(requestParameters: GetDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabasesDatabase> {
103
+ const response = await this.getDatabaseRaw(requestParameters, initOverrides);
104
+ return await response.value();
105
+ }
106
+
62
107
  /**
63
108
  */
64
109
  async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersUser>> {
@@ -55,6 +55,36 @@ export interface DatabasesDatabase {
55
55
  * @memberof DatabasesDatabase
56
56
  */
57
57
  state: string;
58
+ /**
59
+ * Datagateway Enabled
60
+ * @type {boolean}
61
+ * @memberof DatabasesDatabase
62
+ */
63
+ datagatewayEnabled: boolean;
64
+ /**
65
+ * Is Multi User
66
+ * @type {boolean}
67
+ * @memberof DatabasesDatabase
68
+ */
69
+ isMultiUser: boolean;
70
+ /**
71
+ * Is Multi User
72
+ * @type {boolean}
73
+ * @memberof DatabasesDatabase
74
+ */
75
+ equisoftPlanEnabled: boolean;
76
+ /**
77
+ * Distributor Code
78
+ * @type {string}
79
+ * @memberof DatabasesDatabase
80
+ */
81
+ distributorCode?: string | null;
82
+ /**
83
+ * Chargebee Customer Id
84
+ * @type {string}
85
+ * @memberof DatabasesDatabase
86
+ */
87
+ chargebeeCustomerId?: string | null;
58
88
  /**
59
89
  * Organization uuid
60
90
  * @type {string}
@@ -74,6 +104,9 @@ export function instanceOfDatabasesDatabase(value: object): boolean {
74
104
  isInstance = isInstance && "displayName" in value;
75
105
  isInstance = isInstance && "profileName" in value;
76
106
  isInstance = isInstance && "state" in value;
107
+ isInstance = isInstance && "datagatewayEnabled" in value;
108
+ isInstance = isInstance && "isMultiUser" in value;
109
+ isInstance = isInstance && "equisoftPlanEnabled" in value;
77
110
 
78
111
  return isInstance;
79
112
  }
@@ -94,6 +127,11 @@ export function DatabasesDatabaseFromJSONTyped(json: any, ignoreDiscriminator: b
94
127
  'displayName': json['displayName'],
95
128
  'profileName': json['profileName'],
96
129
  'state': json['state'],
130
+ 'datagatewayEnabled': json['datagatewayEnabled'],
131
+ 'isMultiUser': json['isMultiUser'],
132
+ 'equisoftPlanEnabled': json['equisoftPlanEnabled'],
133
+ 'distributorCode': !exists(json, 'distributorCode') ? undefined : json['distributorCode'],
134
+ 'chargebeeCustomerId': !exists(json, 'chargebeeCustomerId') ? undefined : json['chargebeeCustomerId'],
97
135
  'organizationUuid': !exists(json, 'organizationUuid') ? undefined : json['organizationUuid'],
98
136
  };
99
137
  }
@@ -113,6 +151,11 @@ export function DatabasesDatabaseToJSON(value?: DatabasesDatabase | null): any {
113
151
  'displayName': value.displayName,
114
152
  'profileName': value.profileName,
115
153
  'state': value.state,
154
+ 'datagatewayEnabled': value.datagatewayEnabled,
155
+ 'isMultiUser': value.isMultiUser,
156
+ 'equisoftPlanEnabled': value.equisoftPlanEnabled,
157
+ 'distributorCode': value.distributorCode,
158
+ 'chargebeeCustomerId': value.chargebeeCustomerId,
116
159
  'organizationUuid': value.organizationUuid,
117
160
  };
118
161
  }
@@ -31,6 +31,12 @@ export interface GatewaysAccessesValidationGatewayAdminDto {
31
31
  * @memberof GatewaysAccessesValidationGatewayAdminDto
32
32
  */
33
33
  name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GatewaysAccessesValidationGatewayAdminDto
38
+ */
39
+ email: string;
34
40
  /**
35
41
  *
36
42
  * @type {string}
@@ -46,6 +52,7 @@ export function instanceOfGatewaysAccessesValidationGatewayAdminDto(value: objec
46
52
  let isInstance = true;
47
53
  isInstance = isInstance && "id" in value;
48
54
  isInstance = isInstance && "name" in value;
55
+ isInstance = isInstance && "email" in value;
49
56
  isInstance = isInstance && "lang" in value;
50
57
 
51
58
  return isInstance;
@@ -63,6 +70,7 @@ export function GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json: any
63
70
 
64
71
  'id': json['id'],
65
72
  'name': json['name'],
73
+ 'email': json['email'],
66
74
  'lang': json['lang'],
67
75
  };
68
76
  }
@@ -78,6 +86,7 @@ export function GatewaysAccessesValidationGatewayAdminDtoToJSON(value?: Gateways
78
86
 
79
87
  'id': value.id,
80
88
  'name': value.name,
89
+ 'email': value.email,
81
90
  'lang': value.lang,
82
91
  };
83
92
  }