@smartbooks-ai/api-client 0.0.6 → 0.0.7
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/package.json +14 -15
- package/src/.openapi-generator/FILES +0 -56
- package/src/.openapi-generator/VERSION +0 -1
- package/src/.openapi-generator-ignore +0 -23
- package/src/dist/esm/index.d.ts +0 -1
- package/src/dist/esm/index.js +0 -1
- package/src/dist/esm/src/apis/AiApi.d.ts +0 -289
- package/src/dist/esm/src/apis/AiApi.js +0 -452
- package/src/dist/esm/src/apis/AnalyticsApi.d.ts +0 -242
- package/src/dist/esm/src/apis/AnalyticsApi.js +0 -391
- package/src/dist/esm/src/apis/AsyncOperationsApi.d.ts +0 -48
- package/src/dist/esm/src/apis/AsyncOperationsApi.js +0 -53
- package/src/dist/esm/src/apis/BusinessModelModulesApi.d.ts +0 -182
- package/src/dist/esm/src/apis/BusinessModelModulesApi.js +0 -285
- package/src/dist/esm/src/apis/ColorPalettesApi.d.ts +0 -62
- package/src/dist/esm/src/apis/ColorPalettesApi.js +0 -78
- package/src/dist/esm/src/apis/CommentsApi.d.ts +0 -94
- package/src/dist/esm/src/apis/CommentsApi.js +0 -134
- package/src/dist/esm/src/apis/CompaniesApi.d.ts +0 -88
- package/src/dist/esm/src/apis/CompaniesApi.js +0 -118
- package/src/dist/esm/src/apis/CompanyManagementApi.d.ts +0 -90
- package/src/dist/esm/src/apis/CompanyManagementApi.js +0 -123
- package/src/dist/esm/src/apis/ConnectionParametersApi.d.ts +0 -98
- package/src/dist/esm/src/apis/ConnectionParametersApi.js +0 -151
- package/src/dist/esm/src/apis/ConnectionTypesApi.d.ts +0 -90
- package/src/dist/esm/src/apis/ConnectionTypesApi.js +0 -124
- package/src/dist/esm/src/apis/ConnectionsApi.d.ts +0 -156
- package/src/dist/esm/src/apis/ConnectionsApi.js +0 -236
- package/src/dist/esm/src/apis/ConnectionsAuthorizationApi.d.ts +0 -74
- package/src/dist/esm/src/apis/ConnectionsAuthorizationApi.js +0 -108
- package/src/dist/esm/src/apis/ConnectionsClientCredentialsApi.d.ts +0 -72
- package/src/dist/esm/src/apis/ConnectionsClientCredentialsApi.js +0 -100
- package/src/dist/esm/src/apis/ConsolidationApi.d.ts +0 -192
- package/src/dist/esm/src/apis/ConsolidationApi.js +0 -297
- package/src/dist/esm/src/apis/CostCenterApi.d.ts +0 -130
- package/src/dist/esm/src/apis/CostCenterApi.js +0 -188
- package/src/dist/esm/src/apis/DashboardsApi.d.ts +0 -306
- package/src/dist/esm/src/apis/DashboardsApi.js +0 -515
- package/src/dist/esm/src/apis/DataSynchronizationApi.d.ts +0 -92
- package/src/dist/esm/src/apis/DataSynchronizationApi.js +0 -127
- package/src/dist/esm/src/apis/ExplanationApi.d.ts +0 -110
- package/src/dist/esm/src/apis/ExplanationApi.js +0 -227
- package/src/dist/esm/src/apis/FormatsApi.d.ts +0 -46
- package/src/dist/esm/src/apis/FormatsApi.js +0 -48
- package/src/dist/esm/src/apis/FormulasApi.d.ts +0 -62
- package/src/dist/esm/src/apis/FormulasApi.js +0 -81
- package/src/dist/esm/src/apis/FuturesApi.d.ts +0 -136
- package/src/dist/esm/src/apis/FuturesApi.js +0 -204
- package/src/dist/esm/src/apis/IdentityLinkingApi.d.ts +0 -46
- package/src/dist/esm/src/apis/IdentityLinkingApi.js +0 -49
- package/src/dist/esm/src/apis/InputApi.d.ts +0 -55
- package/src/dist/esm/src/apis/InputApi.js +0 -57
- package/src/dist/esm/src/apis/IntercompanyMatchingApi.d.ts +0 -174
- package/src/dist/esm/src/apis/IntercompanyMatchingApi.js +0 -260
- package/src/dist/esm/src/apis/InvitationsApi.d.ts +0 -156
- package/src/dist/esm/src/apis/InvitationsApi.js +0 -235
- package/src/dist/esm/src/apis/MaintenanceApi.d.ts +0 -182
- package/src/dist/esm/src/apis/MaintenanceApi.js +0 -278
- package/src/dist/esm/src/apis/ManualInputApi.d.ts +0 -204
- package/src/dist/esm/src/apis/ManualInputApi.js +0 -328
- package/src/dist/esm/src/apis/ModulesApi.d.ts +0 -88
- package/src/dist/esm/src/apis/ModulesApi.js +0 -112
- package/src/dist/esm/src/apis/NodePurposesApi.d.ts +0 -68
- package/src/dist/esm/src/apis/NodePurposesApi.js +0 -86
- package/src/dist/esm/src/apis/ProfileApi.d.ts +0 -85
- package/src/dist/esm/src/apis/ProfileApi.js +0 -114
- package/src/dist/esm/src/apis/RelationsApi.d.ts +0 -46
- package/src/dist/esm/src/apis/RelationsApi.js +0 -48
- package/src/dist/esm/src/apis/ReportGroupsApi.d.ts +0 -72
- package/src/dist/esm/src/apis/ReportGroupsApi.js +0 -92
- package/src/dist/esm/src/apis/ReportingApi.d.ts +0 -267
- package/src/dist/esm/src/apis/ReportingApi.js +0 -379
- package/src/dist/esm/src/apis/ReportingPeriodsApi.d.ts +0 -46
- package/src/dist/esm/src/apis/ReportingPeriodsApi.js +0 -48
- package/src/dist/esm/src/apis/SourceAccountsApi.d.ts +0 -46
- package/src/dist/esm/src/apis/SourceAccountsApi.js +0 -48
- package/src/dist/esm/src/apis/StructureApi.d.ts +0 -134
- package/src/dist/esm/src/apis/StructureApi.js +0 -163
- package/src/dist/esm/src/apis/StructureDefinitionApi.d.ts +0 -164
- package/src/dist/esm/src/apis/StructureDefinitionApi.js +0 -259
- package/src/dist/esm/src/apis/StructureImprovementApi.d.ts +0 -70
- package/src/dist/esm/src/apis/StructureImprovementApi.js +0 -91
- package/src/dist/esm/src/apis/TemplatesApi.d.ts +0 -120
- package/src/dist/esm/src/apis/TemplatesApi.js +0 -178
- package/src/dist/esm/src/apis/TemplatesGenerationApi.d.ts +0 -66
- package/src/dist/esm/src/apis/TemplatesGenerationApi.js +0 -85
- package/src/dist/esm/src/apis/TenantIntercompanySettingsApi.d.ts +0 -90
- package/src/dist/esm/src/apis/TenantIntercompanySettingsApi.js +0 -123
- package/src/dist/esm/src/apis/TenantsApi.d.ts +0 -124
- package/src/dist/esm/src/apis/TenantsApi.js +0 -180
- package/src/dist/esm/src/apis/TransactionDetailsApi.d.ts +0 -50
- package/src/dist/esm/src/apis/TransactionDetailsApi.js +0 -57
- package/src/dist/esm/src/apis/UsersApi.d.ts +0 -114
- package/src/dist/esm/src/apis/UsersApi.js +0 -165
- package/src/dist/esm/src/apis/WebhooksApi.d.ts +0 -68
- package/src/dist/esm/src/apis/WebhooksApi.js +0 -86
- package/src/dist/esm/src/apis/WizardApi.d.ts +0 -74
- package/src/dist/esm/src/apis/WizardApi.js +0 -101
- package/src/dist/esm/src/apis/index.d.ts +0 -46
- package/src/dist/esm/src/apis/index.js +0 -48
- package/src/dist/esm/src/index.d.ts +0 -3
- package/src/dist/esm/src/index.js +0 -5
- package/src/dist/esm/src/models/index.d.ts +0 -15406
- package/src/dist/esm/src/models/index.js +0 -1279
- package/src/dist/esm/src/runtime.d.ts +0 -181
- package/src/dist/esm/src/runtime.js +0 -326
- package/src/index.ts +0 -1
- package/src/package.json +0 -24
- package/src/src/apis/AiApi.ts +0 -1043
- package/src/src/apis/AnalyticsApi.ts +0 -925
- package/src/src/apis/AsyncOperationsApi.ts +0 -112
- package/src/src/apis/BusinessModelModulesApi.ts +0 -649
- package/src/src/apis/ColorPalettesApi.ts +0 -148
- package/src/src/apis/CommentsApi.ts +0 -308
- package/src/src/apis/CompaniesApi.ts +0 -260
- package/src/src/apis/CompanyManagementApi.ts +0 -270
- package/src/src/apis/ConnectionParametersApi.ts +0 -339
- package/src/src/apis/ConnectionTypesApi.ts +0 -280
- package/src/src/apis/ConnectionsApi.ts +0 -533
- package/src/src/apis/ConnectionsAuthorizationApi.ts +0 -241
- package/src/src/apis/ConnectionsClientCredentialsApi.ts +0 -224
- package/src/src/apis/ConsolidationApi.ts +0 -682
- package/src/src/apis/CostCenterApi.ts +0 -428
- package/src/src/apis/DashboardsApi.ts +0 -1179
- package/src/src/apis/DataSynchronizationApi.ts +0 -288
- package/src/src/apis/ExplanationApi.ts +0 -504
- package/src/src/apis/FormatsApi.ts +0 -96
- package/src/src/apis/FormulasApi.ts +0 -154
- package/src/src/apis/FuturesApi.ts +0 -463
- package/src/src/apis/IdentityLinkingApi.ts +0 -101
- package/src/src/apis/InputApi.ts +0 -126
- package/src/src/apis/IntercompanyMatchingApi.ts +0 -588
- package/src/src/apis/InvitationsApi.ts +0 -523
- package/src/src/apis/MaintenanceApi.ts +0 -597
- package/src/src/apis/ManualInputApi.ts +0 -771
- package/src/src/apis/ModulesApi.ts +0 -246
- package/src/src/apis/NodePurposesApi.ts +0 -184
- package/src/src/apis/ProfileApi.ts +0 -203
- package/src/src/apis/RelationsApi.ts +0 -99
- package/src/src/apis/ReportGroupsApi.ts +0 -205
- package/src/src/apis/ReportingApi.ts +0 -851
- package/src/src/apis/ReportingPeriodsApi.ts +0 -99
- package/src/src/apis/SourceAccountsApi.ts +0 -102
- package/src/src/apis/StructureApi.ts +0 -334
- package/src/src/apis/StructureDefinitionApi.ts +0 -601
- package/src/src/apis/StructureImprovementApi.ts +0 -214
- package/src/src/apis/TemplatesApi.ts +0 -334
- package/src/src/apis/TemplatesGenerationApi.ts +0 -187
- package/src/src/apis/TenantIntercompanySettingsApi.ts +0 -286
- package/src/src/apis/TenantsApi.ts +0 -374
- package/src/src/apis/TransactionDetailsApi.ts +0 -127
- package/src/src/apis/UsersApi.ts +0 -356
- package/src/src/apis/WebhooksApi.ts +0 -193
- package/src/src/apis/WizardApi.ts +0 -230
- package/src/src/apis/index.ts +0 -48
- package/src/src/index.ts +0 -5
- package/src/src/models/index.ts +0 -15625
- package/src/src/runtime.ts +0 -469
- package/src/tsconfig.esm.json +0 -7
- package/src/tsconfig.json +0 -11
- package/tsconfig.json +0 -11
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import * as runtime from '../runtime';
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
export class InvitationsApi extends runtime.BaseAPI {
|
|
15
|
-
/**
|
|
16
|
-
*/
|
|
17
|
-
acceptRaw(requestParameters, initOverrides) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
if (requestParameters['tenantCode'] == null) {
|
|
20
|
-
throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling accept().');
|
|
21
|
-
}
|
|
22
|
-
if (requestParameters['invitationId'] == null) {
|
|
23
|
-
throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling accept().');
|
|
24
|
-
}
|
|
25
|
-
const queryParameters = {};
|
|
26
|
-
const headerParameters = {};
|
|
27
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
28
|
-
const token = this.configuration.accessToken;
|
|
29
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
30
|
-
if (tokenString) {
|
|
31
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
const response = yield this.request({
|
|
35
|
-
path: `/api/v1/t/{tenant_code}/invitations/{invitation_id}/accept`
|
|
36
|
-
.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode'])))
|
|
37
|
-
.replace(`{${'invitation_id'}}`, encodeURIComponent(String(requestParameters['invitationId']))),
|
|
38
|
-
method: 'POST',
|
|
39
|
-
headers: headerParameters,
|
|
40
|
-
query: queryParameters,
|
|
41
|
-
}, initOverrides);
|
|
42
|
-
return new runtime.VoidApiResponse(response);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
*/
|
|
47
|
-
accept(tenantCode, invitationId, initOverrides) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
yield this.acceptRaw({ tenantCode: tenantCode, invitationId: invitationId }, initOverrides);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
*/
|
|
54
|
-
deleteRaw(requestParameters, initOverrides) {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
if (requestParameters['tenantCode'] == null) {
|
|
57
|
-
throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling delete().');
|
|
58
|
-
}
|
|
59
|
-
if (requestParameters['invitationId'] == null) {
|
|
60
|
-
throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling delete().');
|
|
61
|
-
}
|
|
62
|
-
const queryParameters = {};
|
|
63
|
-
const headerParameters = {};
|
|
64
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
65
|
-
const token = this.configuration.accessToken;
|
|
66
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
67
|
-
if (tokenString) {
|
|
68
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const response = yield this.request({
|
|
72
|
-
path: `/api/v1/t/{tenant_code}/invitations/{invitation_id}`
|
|
73
|
-
.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode'])))
|
|
74
|
-
.replace(`{${'invitation_id'}}`, encodeURIComponent(String(requestParameters['invitationId']))),
|
|
75
|
-
method: 'DELETE',
|
|
76
|
-
headers: headerParameters,
|
|
77
|
-
query: queryParameters,
|
|
78
|
-
}, initOverrides);
|
|
79
|
-
return new runtime.VoidApiResponse(response);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
*/
|
|
84
|
-
delete(tenantCode, invitationId, initOverrides) {
|
|
85
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
yield this.deleteRaw({ tenantCode: tenantCode, invitationId: invitationId }, initOverrides);
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
*/
|
|
91
|
-
getRaw(requestParameters, initOverrides) {
|
|
92
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
if (requestParameters['tenantCode'] == null) {
|
|
94
|
-
throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling get().');
|
|
95
|
-
}
|
|
96
|
-
const queryParameters = {};
|
|
97
|
-
const headerParameters = {};
|
|
98
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
99
|
-
const token = this.configuration.accessToken;
|
|
100
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
101
|
-
if (tokenString) {
|
|
102
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
const response = yield this.request({
|
|
106
|
-
path: `/api/v1/t/{tenant_code}/invitations`.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode']))),
|
|
107
|
-
method: 'GET',
|
|
108
|
-
headers: headerParameters,
|
|
109
|
-
query: queryParameters,
|
|
110
|
-
}, initOverrides);
|
|
111
|
-
return new runtime.JSONApiResponse(response);
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
*/
|
|
116
|
-
get(tenantCode, initOverrides) {
|
|
117
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
-
const response = yield this.getRaw({ tenantCode: tenantCode }, initOverrides);
|
|
119
|
-
return yield response.value();
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
*/
|
|
124
|
-
getItemRaw(requestParameters, initOverrides) {
|
|
125
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
-
if (requestParameters['tenantCode'] == null) {
|
|
127
|
-
throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling getItem().');
|
|
128
|
-
}
|
|
129
|
-
if (requestParameters['invitationId'] == null) {
|
|
130
|
-
throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling getItem().');
|
|
131
|
-
}
|
|
132
|
-
const queryParameters = {};
|
|
133
|
-
const headerParameters = {};
|
|
134
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
135
|
-
const token = this.configuration.accessToken;
|
|
136
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
137
|
-
if (tokenString) {
|
|
138
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
const response = yield this.request({
|
|
142
|
-
path: `/api/v1/t/{tenant_code}/invitations/{invitation_id}`
|
|
143
|
-
.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode'])))
|
|
144
|
-
.replace(`{${'invitation_id'}}`, encodeURIComponent(String(requestParameters['invitationId']))),
|
|
145
|
-
method: 'GET',
|
|
146
|
-
headers: headerParameters,
|
|
147
|
-
query: queryParameters,
|
|
148
|
-
}, initOverrides);
|
|
149
|
-
return new runtime.JSONApiResponse(response);
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
*/
|
|
154
|
-
getItem(tenantCode, invitationId, initOverrides) {
|
|
155
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
-
const response = yield this.getItemRaw({ tenantCode: tenantCode, invitationId: invitationId }, initOverrides);
|
|
157
|
-
return yield response.value();
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
*/
|
|
162
|
-
postRaw(requestParameters, initOverrides) {
|
|
163
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
-
if (requestParameters['tenantCode'] == null) {
|
|
165
|
-
throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling post().');
|
|
166
|
-
}
|
|
167
|
-
if (requestParameters['invitationPostRequest'] == null) {
|
|
168
|
-
throw new runtime.RequiredError('invitationPostRequest', 'Required parameter "invitationPostRequest" was null or undefined when calling post().');
|
|
169
|
-
}
|
|
170
|
-
const queryParameters = {};
|
|
171
|
-
const headerParameters = {};
|
|
172
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
173
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
174
|
-
const token = this.configuration.accessToken;
|
|
175
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
176
|
-
if (tokenString) {
|
|
177
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
const response = yield this.request({
|
|
181
|
-
path: `/api/v1/t/{tenant_code}/invitations`.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode']))),
|
|
182
|
-
method: 'POST',
|
|
183
|
-
headers: headerParameters,
|
|
184
|
-
query: queryParameters,
|
|
185
|
-
body: requestParameters['invitationPostRequest'],
|
|
186
|
-
}, initOverrides);
|
|
187
|
-
return new runtime.JSONApiResponse(response);
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
*/
|
|
192
|
-
post(tenantCode, invitationPostRequest, initOverrides) {
|
|
193
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
-
const response = yield this.postRaw({ tenantCode: tenantCode, invitationPostRequest: invitationPostRequest }, initOverrides);
|
|
195
|
-
return yield response.value();
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
*/
|
|
200
|
-
resendRaw(requestParameters, initOverrides) {
|
|
201
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
-
if (requestParameters['tenantCode'] == null) {
|
|
203
|
-
throw new runtime.RequiredError('tenantCode', 'Required parameter "tenantCode" was null or undefined when calling resend().');
|
|
204
|
-
}
|
|
205
|
-
if (requestParameters['invitationId'] == null) {
|
|
206
|
-
throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling resend().');
|
|
207
|
-
}
|
|
208
|
-
const queryParameters = {};
|
|
209
|
-
const headerParameters = {};
|
|
210
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
211
|
-
const token = this.configuration.accessToken;
|
|
212
|
-
const tokenString = yield token('bearerToken', ['internal']);
|
|
213
|
-
if (tokenString) {
|
|
214
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
const response = yield this.request({
|
|
218
|
-
path: `/api/v1/t/{tenant_code}/invitations/{invitation_id}/resend`
|
|
219
|
-
.replace(`{${'tenant_code'}}`, encodeURIComponent(String(requestParameters['tenantCode'])))
|
|
220
|
-
.replace(`{${'invitation_id'}}`, encodeURIComponent(String(requestParameters['invitationId']))),
|
|
221
|
-
method: 'POST',
|
|
222
|
-
headers: headerParameters,
|
|
223
|
-
query: queryParameters,
|
|
224
|
-
}, initOverrides);
|
|
225
|
-
return new runtime.VoidApiResponse(response);
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
*/
|
|
230
|
-
resend(tenantCode, invitationId, initOverrides) {
|
|
231
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
-
yield this.resendRaw({ tenantCode: tenantCode, invitationId: invitationId }, initOverrides);
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Smartbooks Restful API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.0.1
|
|
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
|
-
import type { CompanyGraphCalculationResponse, CompanyHealthIssuesResponse, CompanyHealthPutRequest, RecalculatePartitionsRequest, SupportUsers } from '../models/index';
|
|
13
|
-
import * as runtime from '../runtime';
|
|
14
|
-
export interface MaintenanceApiGetCalculationVisualizationForCompanyRequest {
|
|
15
|
-
companyCode: string;
|
|
16
|
-
}
|
|
17
|
-
export interface MaintenanceApiMuteCompanyAlertsRequest {
|
|
18
|
-
companyCode: string;
|
|
19
|
-
}
|
|
20
|
-
export interface MaintenanceApiPutCompanyAlertsRequest {
|
|
21
|
-
companyCode: string;
|
|
22
|
-
companyHealthPutRequest: CompanyHealthPutRequest;
|
|
23
|
-
}
|
|
24
|
-
export interface MaintenanceApiRecalculateAllRequest {
|
|
25
|
-
companyCode: string;
|
|
26
|
-
}
|
|
27
|
-
export interface MaintenanceApiRecalculatePartitionsOperationRequest {
|
|
28
|
-
companyCode: string;
|
|
29
|
-
recalculatePartitionsRequest: RecalculatePartitionsRequest;
|
|
30
|
-
}
|
|
31
|
-
export interface MaintenanceApiUnmuteCompanyAlertsRequest {
|
|
32
|
-
companyCode: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* MaintenanceApi - interface
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface MaintenanceApiInterface
|
|
39
|
-
*/
|
|
40
|
-
export interface MaintenanceApiInterface {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @param {string} companyCode
|
|
44
|
-
* @param {*} [options] Override http request option.
|
|
45
|
-
* @throws {RequiredError}
|
|
46
|
-
* @memberof MaintenanceApiInterface
|
|
47
|
-
*/
|
|
48
|
-
getCalculationVisualizationForCompanyRaw(requestParameters: MaintenanceApiGetCalculationVisualizationForCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompanyGraphCalculationResponse>>;
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
|
-
getCalculationVisualizationForCompany(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyGraphCalculationResponse>;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @param {*} [options] Override http request option.
|
|
55
|
-
* @throws {RequiredError}
|
|
56
|
-
* @memberof MaintenanceApiInterface
|
|
57
|
-
*/
|
|
58
|
-
getIssuesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompanyHealthIssuesResponse>>;
|
|
59
|
-
/**
|
|
60
|
-
*/
|
|
61
|
-
getIssues(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyHealthIssuesResponse>;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
* @memberof MaintenanceApiInterface
|
|
67
|
-
*/
|
|
68
|
-
getSupportUsersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportUsers>>;
|
|
69
|
-
/**
|
|
70
|
-
*/
|
|
71
|
-
getSupportUsers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportUsers>;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @param {string} companyCode
|
|
75
|
-
* @param {*} [options] Override http request option.
|
|
76
|
-
* @throws {RequiredError}
|
|
77
|
-
* @memberof MaintenanceApiInterface
|
|
78
|
-
*/
|
|
79
|
-
muteCompanyAlertsRaw(requestParameters: MaintenanceApiMuteCompanyAlertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
80
|
-
/**
|
|
81
|
-
*/
|
|
82
|
-
muteCompanyAlerts(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @param {string} companyCode
|
|
86
|
-
* @param {CompanyHealthPutRequest} companyHealthPutRequest
|
|
87
|
-
* @param {*} [options] Override http request option.
|
|
88
|
-
* @throws {RequiredError}
|
|
89
|
-
* @memberof MaintenanceApiInterface
|
|
90
|
-
*/
|
|
91
|
-
putCompanyAlertsRaw(requestParameters: MaintenanceApiPutCompanyAlertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
92
|
-
/**
|
|
93
|
-
*/
|
|
94
|
-
putCompanyAlerts(companyCode: string, companyHealthPutRequest: CompanyHealthPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @param {string} companyCode
|
|
98
|
-
* @param {*} [options] Override http request option.
|
|
99
|
-
* @throws {RequiredError}
|
|
100
|
-
* @memberof MaintenanceApiInterface
|
|
101
|
-
*/
|
|
102
|
-
recalculateAllRaw(requestParameters: MaintenanceApiRecalculateAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
103
|
-
/**
|
|
104
|
-
*/
|
|
105
|
-
recalculateAll(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @param {string} companyCode
|
|
109
|
-
* @param {RecalculatePartitionsRequest} recalculatePartitionsRequest
|
|
110
|
-
* @param {*} [options] Override http request option.
|
|
111
|
-
* @throws {RequiredError}
|
|
112
|
-
* @memberof MaintenanceApiInterface
|
|
113
|
-
*/
|
|
114
|
-
recalculatePartitionsRaw(requestParameters: MaintenanceApiRecalculatePartitionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
115
|
-
/**
|
|
116
|
-
*/
|
|
117
|
-
recalculatePartitions(companyCode: string, recalculatePartitionsRequest: RecalculatePartitionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @param {string} companyCode
|
|
121
|
-
* @param {*} [options] Override http request option.
|
|
122
|
-
* @throws {RequiredError}
|
|
123
|
-
* @memberof MaintenanceApiInterface
|
|
124
|
-
*/
|
|
125
|
-
unmuteCompanyAlertsRaw(requestParameters: MaintenanceApiUnmuteCompanyAlertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
126
|
-
/**
|
|
127
|
-
*/
|
|
128
|
-
unmuteCompanyAlerts(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
*/
|
|
133
|
-
export declare class MaintenanceApi extends runtime.BaseAPI implements MaintenanceApiInterface {
|
|
134
|
-
/**
|
|
135
|
-
*/
|
|
136
|
-
getCalculationVisualizationForCompanyRaw(requestParameters: MaintenanceApiGetCalculationVisualizationForCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompanyGraphCalculationResponse>>;
|
|
137
|
-
/**
|
|
138
|
-
*/
|
|
139
|
-
getCalculationVisualizationForCompany(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyGraphCalculationResponse>;
|
|
140
|
-
/**
|
|
141
|
-
*/
|
|
142
|
-
getIssuesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompanyHealthIssuesResponse>>;
|
|
143
|
-
/**
|
|
144
|
-
*/
|
|
145
|
-
getIssues(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompanyHealthIssuesResponse>;
|
|
146
|
-
/**
|
|
147
|
-
*/
|
|
148
|
-
getSupportUsersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportUsers>>;
|
|
149
|
-
/**
|
|
150
|
-
*/
|
|
151
|
-
getSupportUsers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportUsers>;
|
|
152
|
-
/**
|
|
153
|
-
*/
|
|
154
|
-
muteCompanyAlertsRaw(requestParameters: MaintenanceApiMuteCompanyAlertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
155
|
-
/**
|
|
156
|
-
*/
|
|
157
|
-
muteCompanyAlerts(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
158
|
-
/**
|
|
159
|
-
*/
|
|
160
|
-
putCompanyAlertsRaw(requestParameters: MaintenanceApiPutCompanyAlertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
161
|
-
/**
|
|
162
|
-
*/
|
|
163
|
-
putCompanyAlerts(companyCode: string, companyHealthPutRequest: CompanyHealthPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
164
|
-
/**
|
|
165
|
-
*/
|
|
166
|
-
recalculateAllRaw(requestParameters: MaintenanceApiRecalculateAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
167
|
-
/**
|
|
168
|
-
*/
|
|
169
|
-
recalculateAll(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
170
|
-
/**
|
|
171
|
-
*/
|
|
172
|
-
recalculatePartitionsRaw(requestParameters: MaintenanceApiRecalculatePartitionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
173
|
-
/**
|
|
174
|
-
*/
|
|
175
|
-
recalculatePartitions(companyCode: string, recalculatePartitionsRequest: RecalculatePartitionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
176
|
-
/**
|
|
177
|
-
*/
|
|
178
|
-
unmuteCompanyAlertsRaw(requestParameters: MaintenanceApiUnmuteCompanyAlertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
179
|
-
/**
|
|
180
|
-
*/
|
|
181
|
-
unmuteCompanyAlerts(companyCode: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
182
|
-
}
|