@emilgroup/account-sdk-node 1.45.1-beta.6 → 1.45.1-beta.8
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 +0 -2
- package/README.md +2 -2
- package/api/accounts-api.ts +0 -120
- package/dist/api/accounts-api.d.ts +0 -66
- package/dist/api/accounts-api.js +0 -99
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/models/index.ts +0 -2
- package/package.json +1 -1
- package/dist/models/register-account-policy-request-dto.d.ts +0 -30
- package/dist/models/register-account-policy-request-dto.js +0 -15
- package/dist/models/register-policy-response-class.d.ts +0 -25
- package/dist/models/register-policy-response-class.js +0 -15
- package/models/register-account-policy-request-dto.ts +0 -36
- package/models/register-policy-response-class.ts +0 -31
package/.openapi-generator/FILES
CHANGED
|
@@ -19,8 +19,6 @@ models/inline-response200.ts
|
|
|
19
19
|
models/inline-response503.ts
|
|
20
20
|
models/list-accounts-response-class.ts
|
|
21
21
|
models/policy-class.ts
|
|
22
|
-
models/register-account-policy-request-dto.ts
|
|
23
|
-
models/register-policy-response-class.ts
|
|
24
22
|
models/update-account-request-dto.ts
|
|
25
23
|
models/update-account-response-class.ts
|
|
26
24
|
package.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/account-sdk-node@1.45.1-beta.
|
|
20
|
+
npm install @emilgroup/account-sdk-node@1.45.1-beta.8 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/account-sdk-node@1.45.1-beta.
|
|
24
|
+
yarn add @emilgroup/account-sdk-node@1.45.1-beta.8
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `AccountsApi`.
|
package/api/accounts-api.ts
CHANGED
|
@@ -29,10 +29,6 @@ import { GetAccountResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListAccountsResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import { RegisterAccountPolicyRequestDto } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { RegisterPolicyResponseClass } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
32
|
import { UpdateAccountRequestDto } from '../models';
|
|
37
33
|
// @ts-ignore
|
|
38
34
|
import { UpdateAccountResponseClass } from '../models';
|
|
@@ -314,57 +310,6 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
314
310
|
options: localVarRequestOptions,
|
|
315
311
|
};
|
|
316
312
|
},
|
|
317
|
-
/**
|
|
318
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
319
|
-
* @summary Create the account policy
|
|
320
|
-
* @param {string} code Unique identifier for the object.
|
|
321
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
322
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
323
|
-
* @param {*} [options] Override http request option.
|
|
324
|
-
* @throws {RequiredError}
|
|
325
|
-
*/
|
|
326
|
-
registerPolicy: async (code: string, registerAccountPolicyRequestDto: RegisterAccountPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
327
|
-
// verify required parameter 'code' is not null or undefined
|
|
328
|
-
assertParamExists('registerPolicy', 'code', code)
|
|
329
|
-
// verify required parameter 'registerAccountPolicyRequestDto' is not null or undefined
|
|
330
|
-
assertParamExists('registerPolicy', 'registerAccountPolicyRequestDto', registerAccountPolicyRequestDto)
|
|
331
|
-
const localVarPath = `/accountservice/v1/accounts/{code}/policies`
|
|
332
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
333
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
335
|
-
let baseOptions;
|
|
336
|
-
let baseAccessToken;
|
|
337
|
-
if (configuration) {
|
|
338
|
-
baseOptions = configuration.baseOptions;
|
|
339
|
-
baseAccessToken = configuration.accessToken;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
343
|
-
const localVarHeaderParameter = {} as any;
|
|
344
|
-
const localVarQueryParameter = {} as any;
|
|
345
|
-
|
|
346
|
-
// authentication bearer required
|
|
347
|
-
// http bearer authentication required
|
|
348
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
349
|
-
|
|
350
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
351
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
|
-
|
|
358
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
359
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
360
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
361
|
-
localVarRequestOptions.data = serializeDataIfNeeded(registerAccountPolicyRequestDto, localVarRequestOptions, configuration)
|
|
362
|
-
|
|
363
|
-
return {
|
|
364
|
-
url: toPathString(localVarUrlObj),
|
|
365
|
-
options: localVarRequestOptions,
|
|
366
|
-
};
|
|
367
|
-
},
|
|
368
313
|
/**
|
|
369
314
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
370
315
|
* @summary Update the account
|
|
@@ -494,19 +439,6 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
494
439
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
495
440
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
496
441
|
},
|
|
497
|
-
/**
|
|
498
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
499
|
-
* @summary Create the account policy
|
|
500
|
-
* @param {string} code Unique identifier for the object.
|
|
501
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
502
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
503
|
-
* @param {*} [options] Override http request option.
|
|
504
|
-
* @throws {RequiredError}
|
|
505
|
-
*/
|
|
506
|
-
async registerPolicy(code: string, registerAccountPolicyRequestDto: RegisterAccountPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterPolicyResponseClass>> {
|
|
507
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.registerPolicy(code, registerAccountPolicyRequestDto, authorization, options);
|
|
508
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
509
|
-
},
|
|
510
442
|
/**
|
|
511
443
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
512
444
|
* @summary Update the account
|
|
@@ -593,18 +525,6 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
593
525
|
listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name' | 'partnerCode', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: any): AxiosPromise<ListAccountsResponseClass> {
|
|
594
526
|
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
595
527
|
},
|
|
596
|
-
/**
|
|
597
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
598
|
-
* @summary Create the account policy
|
|
599
|
-
* @param {string} code Unique identifier for the object.
|
|
600
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
601
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
602
|
-
* @param {*} [options] Override http request option.
|
|
603
|
-
* @throws {RequiredError}
|
|
604
|
-
*/
|
|
605
|
-
registerPolicy(code: string, registerAccountPolicyRequestDto: RegisterAccountPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<RegisterPolicyResponseClass> {
|
|
606
|
-
return localVarFp.registerPolicy(code, registerAccountPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
607
|
-
},
|
|
608
528
|
/**
|
|
609
529
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
610
530
|
* @summary Update the account
|
|
@@ -781,34 +701,6 @@ export interface AccountsApiListAccountsRequest {
|
|
|
781
701
|
readonly filters?: string
|
|
782
702
|
}
|
|
783
703
|
|
|
784
|
-
/**
|
|
785
|
-
* Request parameters for registerPolicy operation in AccountsApi.
|
|
786
|
-
* @export
|
|
787
|
-
* @interface AccountsApiRegisterPolicyRequest
|
|
788
|
-
*/
|
|
789
|
-
export interface AccountsApiRegisterPolicyRequest {
|
|
790
|
-
/**
|
|
791
|
-
* Unique identifier for the object.
|
|
792
|
-
* @type {string}
|
|
793
|
-
* @memberof AccountsApiRegisterPolicy
|
|
794
|
-
*/
|
|
795
|
-
readonly code: string
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
*
|
|
799
|
-
* @type {RegisterAccountPolicyRequestDto}
|
|
800
|
-
* @memberof AccountsApiRegisterPolicy
|
|
801
|
-
*/
|
|
802
|
-
readonly registerAccountPolicyRequestDto: RegisterAccountPolicyRequestDto
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
806
|
-
* @type {string}
|
|
807
|
-
* @memberof AccountsApiRegisterPolicy
|
|
808
|
-
*/
|
|
809
|
-
readonly authorization?: string
|
|
810
|
-
}
|
|
811
|
-
|
|
812
704
|
/**
|
|
813
705
|
* Request parameters for updateAccount operation in AccountsApi.
|
|
814
706
|
* @export
|
|
@@ -904,18 +796,6 @@ export class AccountsApi extends BaseAPI {
|
|
|
904
796
|
return AccountsApiFp(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
905
797
|
}
|
|
906
798
|
|
|
907
|
-
/**
|
|
908
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
909
|
-
* @summary Create the account policy
|
|
910
|
-
* @param {AccountsApiRegisterPolicyRequest} requestParameters Request parameters.
|
|
911
|
-
* @param {*} [options] Override http request option.
|
|
912
|
-
* @throws {RequiredError}
|
|
913
|
-
* @memberof AccountsApi
|
|
914
|
-
*/
|
|
915
|
-
public registerPolicy(requestParameters: AccountsApiRegisterPolicyRequest, options?: AxiosRequestConfig) {
|
|
916
|
-
return AccountsApiFp(this.configuration).registerPolicy(requestParameters.code, requestParameters.registerAccountPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
917
|
-
}
|
|
918
|
-
|
|
919
799
|
/**
|
|
920
800
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
921
801
|
* @summary Update the account
|
|
@@ -16,8 +16,6 @@ import { CreateAccountRequestDto } from '../models';
|
|
|
16
16
|
import { CreateAccountResponseClass } from '../models';
|
|
17
17
|
import { GetAccountResponseClass } from '../models';
|
|
18
18
|
import { ListAccountsResponseClass } from '../models';
|
|
19
|
-
import { RegisterAccountPolicyRequestDto } from '../models';
|
|
20
|
-
import { RegisterPolicyResponseClass } from '../models';
|
|
21
19
|
import { UpdateAccountRequestDto } from '../models';
|
|
22
20
|
import { UpdateAccountResponseClass } from '../models';
|
|
23
21
|
/**
|
|
@@ -78,16 +76,6 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
78
76
|
* @throws {RequiredError}
|
|
79
77
|
*/
|
|
80
78
|
listAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name' | 'partnerCode', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
81
|
-
/**
|
|
82
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
83
|
-
* @summary Create the account policy
|
|
84
|
-
* @param {string} code Unique identifier for the object.
|
|
85
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
86
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
|
-
* @param {*} [options] Override http request option.
|
|
88
|
-
* @throws {RequiredError}
|
|
89
|
-
*/
|
|
90
|
-
registerPolicy: (code: string, registerAccountPolicyRequestDto: RegisterAccountPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
79
|
/**
|
|
92
80
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
93
81
|
* @summary Update the account
|
|
@@ -157,16 +145,6 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
157
145
|
* @throws {RequiredError}
|
|
158
146
|
*/
|
|
159
147
|
listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name' | 'partnerCode', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>>;
|
|
160
|
-
/**
|
|
161
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
162
|
-
* @summary Create the account policy
|
|
163
|
-
* @param {string} code Unique identifier for the object.
|
|
164
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
165
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
166
|
-
* @param {*} [options] Override http request option.
|
|
167
|
-
* @throws {RequiredError}
|
|
168
|
-
*/
|
|
169
|
-
registerPolicy(code: string, registerAccountPolicyRequestDto: RegisterAccountPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterPolicyResponseClass>>;
|
|
170
148
|
/**
|
|
171
149
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
172
150
|
* @summary Update the account
|
|
@@ -236,16 +214,6 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
236
214
|
* @throws {RequiredError}
|
|
237
215
|
*/
|
|
238
216
|
listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name' | 'partnerCode', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: any): AxiosPromise<ListAccountsResponseClass>;
|
|
239
|
-
/**
|
|
240
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
241
|
-
* @summary Create the account policy
|
|
242
|
-
* @param {string} code Unique identifier for the object.
|
|
243
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
244
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
245
|
-
* @param {*} [options] Override http request option.
|
|
246
|
-
* @throws {RequiredError}
|
|
247
|
-
*/
|
|
248
|
-
registerPolicy(code: string, registerAccountPolicyRequestDto: RegisterAccountPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<RegisterPolicyResponseClass>;
|
|
249
217
|
/**
|
|
250
218
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
251
219
|
* @summary Update the account
|
|
@@ -400,31 +368,6 @@ export interface AccountsApiListAccountsRequest {
|
|
|
400
368
|
*/
|
|
401
369
|
readonly filters?: string;
|
|
402
370
|
}
|
|
403
|
-
/**
|
|
404
|
-
* Request parameters for registerPolicy operation in AccountsApi.
|
|
405
|
-
* @export
|
|
406
|
-
* @interface AccountsApiRegisterPolicyRequest
|
|
407
|
-
*/
|
|
408
|
-
export interface AccountsApiRegisterPolicyRequest {
|
|
409
|
-
/**
|
|
410
|
-
* Unique identifier for the object.
|
|
411
|
-
* @type {string}
|
|
412
|
-
* @memberof AccountsApiRegisterPolicy
|
|
413
|
-
*/
|
|
414
|
-
readonly code: string;
|
|
415
|
-
/**
|
|
416
|
-
*
|
|
417
|
-
* @type {RegisterAccountPolicyRequestDto}
|
|
418
|
-
* @memberof AccountsApiRegisterPolicy
|
|
419
|
-
*/
|
|
420
|
-
readonly registerAccountPolicyRequestDto: RegisterAccountPolicyRequestDto;
|
|
421
|
-
/**
|
|
422
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
423
|
-
* @type {string}
|
|
424
|
-
* @memberof AccountsApiRegisterPolicy
|
|
425
|
-
*/
|
|
426
|
-
readonly authorization?: string;
|
|
427
|
-
}
|
|
428
371
|
/**
|
|
429
372
|
* Request parameters for updateAccount operation in AccountsApi.
|
|
430
373
|
* @export
|
|
@@ -502,15 +445,6 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
502
445
|
* @memberof AccountsApi
|
|
503
446
|
*/
|
|
504
447
|
listAccounts(requestParameters?: AccountsApiListAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponseClass, any, {}>>;
|
|
505
|
-
/**
|
|
506
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
507
|
-
* @summary Create the account policy
|
|
508
|
-
* @param {AccountsApiRegisterPolicyRequest} requestParameters Request parameters.
|
|
509
|
-
* @param {*} [options] Override http request option.
|
|
510
|
-
* @throws {RequiredError}
|
|
511
|
-
* @memberof AccountsApi
|
|
512
|
-
*/
|
|
513
|
-
registerPolicy(requestParameters: AccountsApiRegisterPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisterPolicyResponseClass, any, {}>>;
|
|
514
448
|
/**
|
|
515
449
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
516
450
|
* @summary Update the account
|
package/dist/api/accounts-api.js
CHANGED
|
@@ -369,59 +369,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
369
369
|
});
|
|
370
370
|
});
|
|
371
371
|
},
|
|
372
|
-
/**
|
|
373
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
374
|
-
* @summary Create the account policy
|
|
375
|
-
* @param {string} code Unique identifier for the object.
|
|
376
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
377
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
378
|
-
* @param {*} [options] Override http request option.
|
|
379
|
-
* @throws {RequiredError}
|
|
380
|
-
*/
|
|
381
|
-
registerPolicy: function (code, registerAccountPolicyRequestDto, authorization, options) {
|
|
382
|
-
if (options === void 0) { options = {}; }
|
|
383
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
384
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
385
|
-
return __generator(this, function (_a) {
|
|
386
|
-
switch (_a.label) {
|
|
387
|
-
case 0:
|
|
388
|
-
// verify required parameter 'code' is not null or undefined
|
|
389
|
-
(0, common_1.assertParamExists)('registerPolicy', 'code', code);
|
|
390
|
-
// verify required parameter 'registerAccountPolicyRequestDto' is not null or undefined
|
|
391
|
-
(0, common_1.assertParamExists)('registerPolicy', 'registerAccountPolicyRequestDto', registerAccountPolicyRequestDto);
|
|
392
|
-
localVarPath = "/accountservice/v1/accounts/{code}/policies"
|
|
393
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
394
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
395
|
-
if (configuration) {
|
|
396
|
-
baseOptions = configuration.baseOptions;
|
|
397
|
-
baseAccessToken = configuration.accessToken;
|
|
398
|
-
}
|
|
399
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
400
|
-
localVarHeaderParameter = {};
|
|
401
|
-
localVarQueryParameter = {};
|
|
402
|
-
// authentication bearer required
|
|
403
|
-
// http bearer authentication required
|
|
404
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
405
|
-
case 1:
|
|
406
|
-
// authentication bearer required
|
|
407
|
-
// http bearer authentication required
|
|
408
|
-
_a.sent();
|
|
409
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
410
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
411
|
-
}
|
|
412
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
413
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
414
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
415
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
416
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerAccountPolicyRequestDto, localVarRequestOptions, configuration);
|
|
417
|
-
return [2 /*return*/, {
|
|
418
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
419
|
-
options: localVarRequestOptions,
|
|
420
|
-
}];
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
},
|
|
425
372
|
/**
|
|
426
373
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
427
374
|
* @summary Update the account
|
|
@@ -598,28 +545,6 @@ var AccountsApiFp = function (configuration) {
|
|
|
598
545
|
});
|
|
599
546
|
});
|
|
600
547
|
},
|
|
601
|
-
/**
|
|
602
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
603
|
-
* @summary Create the account policy
|
|
604
|
-
* @param {string} code Unique identifier for the object.
|
|
605
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
606
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
607
|
-
* @param {*} [options] Override http request option.
|
|
608
|
-
* @throws {RequiredError}
|
|
609
|
-
*/
|
|
610
|
-
registerPolicy: function (code, registerAccountPolicyRequestDto, authorization, options) {
|
|
611
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
612
|
-
var localVarAxiosArgs;
|
|
613
|
-
return __generator(this, function (_a) {
|
|
614
|
-
switch (_a.label) {
|
|
615
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerPolicy(code, registerAccountPolicyRequestDto, authorization, options)];
|
|
616
|
-
case 1:
|
|
617
|
-
localVarAxiosArgs = _a.sent();
|
|
618
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
});
|
|
622
|
-
},
|
|
623
548
|
/**
|
|
624
549
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
625
550
|
* @summary Update the account
|
|
@@ -715,18 +640,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
715
640
|
listAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
716
641
|
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
717
642
|
},
|
|
718
|
-
/**
|
|
719
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
720
|
-
* @summary Create the account policy
|
|
721
|
-
* @param {string} code Unique identifier for the object.
|
|
722
|
-
* @param {RegisterAccountPolicyRequestDto} registerAccountPolicyRequestDto
|
|
723
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
724
|
-
* @param {*} [options] Override http request option.
|
|
725
|
-
* @throws {RequiredError}
|
|
726
|
-
*/
|
|
727
|
-
registerPolicy: function (code, registerAccountPolicyRequestDto, authorization, options) {
|
|
728
|
-
return localVarFp.registerPolicy(code, registerAccountPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
729
|
-
},
|
|
730
643
|
/**
|
|
731
644
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
732
645
|
* @summary Update the account
|
|
@@ -814,18 +727,6 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
814
727
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
815
728
|
return (0, exports.AccountsApiFp)(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
816
729
|
};
|
|
817
|
-
/**
|
|
818
|
-
* This will register an already existing policy to the account, so that the policy shows up among the account\'s policies. Both the policy code and the policy number must refer to a policy that was created beforehand. **Required Permissions** \"partner-management.partners.create\"
|
|
819
|
-
* @summary Create the account policy
|
|
820
|
-
* @param {AccountsApiRegisterPolicyRequest} requestParameters Request parameters.
|
|
821
|
-
* @param {*} [options] Override http request option.
|
|
822
|
-
* @throws {RequiredError}
|
|
823
|
-
* @memberof AccountsApi
|
|
824
|
-
*/
|
|
825
|
-
AccountsApi.prototype.registerPolicy = function (requestParameters, options) {
|
|
826
|
-
var _this = this;
|
|
827
|
-
return (0, exports.AccountsApiFp)(this.configuration).registerPolicy(requestParameters.code, requestParameters.registerAccountPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
828
|
-
};
|
|
829
730
|
/**
|
|
830
731
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
831
732
|
* @summary Update the account
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,7 +6,5 @@ export * from './inline-response200';
|
|
|
6
6
|
export * from './inline-response503';
|
|
7
7
|
export * from './list-accounts-response-class';
|
|
8
8
|
export * from './policy-class';
|
|
9
|
-
export * from './register-account-policy-request-dto';
|
|
10
|
-
export * from './register-policy-response-class';
|
|
11
9
|
export * from './update-account-request-dto';
|
|
12
10
|
export * from './update-account-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -22,7 +22,5 @@ __exportStar(require("./inline-response200"), exports);
|
|
|
22
22
|
__exportStar(require("./inline-response503"), exports);
|
|
23
23
|
__exportStar(require("./list-accounts-response-class"), exports);
|
|
24
24
|
__exportStar(require("./policy-class"), exports);
|
|
25
|
-
__exportStar(require("./register-account-policy-request-dto"), exports);
|
|
26
|
-
__exportStar(require("./register-policy-response-class"), exports);
|
|
27
25
|
__exportStar(require("./update-account-request-dto"), exports);
|
|
28
26
|
__exportStar(require("./update-account-response-class"), exports);
|
package/models/index.ts
CHANGED
|
@@ -6,7 +6,5 @@ export * from './inline-response200';
|
|
|
6
6
|
export * from './inline-response503';
|
|
7
7
|
export * from './list-accounts-response-class';
|
|
8
8
|
export * from './policy-class';
|
|
9
|
-
export * from './register-account-policy-request-dto';
|
|
10
|
-
export * from './register-policy-response-class';
|
|
11
9
|
export * from './update-account-request-dto';
|
|
12
10
|
export * from './update-account-response-class';
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL AccountService
|
|
3
|
-
* The EMIL AccountService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
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 RegisterAccountPolicyRequestDto
|
|
16
|
-
*/
|
|
17
|
-
export interface RegisterAccountPolicyRequestDto {
|
|
18
|
-
/**
|
|
19
|
-
* The policy code that will be registered to the current account
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RegisterAccountPolicyRequestDto
|
|
22
|
-
*/
|
|
23
|
-
'policyCode': string;
|
|
24
|
-
/**
|
|
25
|
-
* The policy number that will be registered to the current account
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RegisterAccountPolicyRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'policyNumber': string;
|
|
30
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL AccountService
|
|
6
|
-
* The EMIL AccountService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL AccountService
|
|
3
|
-
* The EMIL AccountService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
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 { PolicyClass } from './policy-class';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface RegisterPolicyResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface RegisterPolicyResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* The policy response.
|
|
21
|
-
* @type {PolicyClass}
|
|
22
|
-
* @memberof RegisterPolicyResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'policy': PolicyClass;
|
|
25
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL AccountService
|
|
6
|
-
* The EMIL AccountService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL AccountService
|
|
5
|
-
* The EMIL AccountService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface RegisterAccountPolicyRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface RegisterAccountPolicyRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* The policy code that will be registered to the current account
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof RegisterAccountPolicyRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'policyCode': string;
|
|
29
|
-
/**
|
|
30
|
-
* The policy number that will be registered to the current account
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof RegisterAccountPolicyRequestDto
|
|
33
|
-
*/
|
|
34
|
-
'policyNumber': string;
|
|
35
|
-
}
|
|
36
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL AccountService
|
|
5
|
-
* The EMIL AccountService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
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
|
-
|
|
16
|
-
import { PolicyClass } from './policy-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface RegisterPolicyResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface RegisterPolicyResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The policy response.
|
|
26
|
-
* @type {PolicyClass}
|
|
27
|
-
* @memberof RegisterPolicyResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'policy': PolicyClass;
|
|
30
|
-
}
|
|
31
|
-
|