@emilgroup/account-sdk 1.0.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/.openapi-generator/FILES +24 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +52 -0
- package/api/accounts-api.ts +527 -0
- package/api.ts +32 -0
- package/base.ts +182 -0
- package/common.ts +138 -0
- package/configuration.ts +109 -0
- package/dist/api/accounts-api.d.ts +255 -0
- package/dist/api/accounts-api.js +637 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +36 -0
- package/dist/base.d.ts +68 -0
- package/dist/base.js +243 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +243 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/account-class.d.ts +132 -0
- package/dist/models/account-class.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +102 -0
- package/dist/models/create-account-request-dto.js +21 -0
- package/dist/models/create-account-response-class.d.ts +25 -0
- package/dist/models/create-account-response-class.js +15 -0
- package/dist/models/delete-request-dto.d.ts +24 -0
- package/dist/models/delete-request-dto.js +15 -0
- package/dist/models/get-account-request-dto.d.ts +30 -0
- package/dist/models/get-account-request-dto.js +15 -0
- package/dist/models/get-account-response-class.d.ts +25 -0
- package/dist/models/get-account-response-class.js +15 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +26 -0
- package/dist/models/list-accounts-response-class.d.ts +31 -0
- package/dist/models/list-accounts-response-class.js +15 -0
- package/dist/models/register-policy-request-dto.d.ts +36 -0
- package/dist/models/register-policy-request-dto.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +108 -0
- package/dist/models/update-account-request-dto.js +21 -0
- package/dist/models/update-account-response-class.d.ts +25 -0
- package/dist/models/update-account-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/account-class.ts +138 -0
- package/models/create-account-request-dto.ts +111 -0
- package/models/create-account-response-class.ts +31 -0
- package/models/delete-request-dto.ts +30 -0
- package/models/get-account-request-dto.ts +36 -0
- package/models/get-account-response-class.ts +31 -0
- package/models/index.ts +10 -0
- package/models/list-accounts-response-class.ts +37 -0
- package/models/register-policy-request-dto.ts +42 -0
- package/models/update-account-request-dto.ts +117 -0
- package/models/update-account-response-class.ts +31 -0
- package/package.json +27 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
*
|
|
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 { AccountClass } from './account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetAccountResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetAccountResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The account response.
|
|
26
|
+
* @type {AccountClass}
|
|
27
|
+
* @memberof GetAccountResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'account': AccountClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './account-class';
|
|
2
|
+
export * from './create-account-request-dto';
|
|
3
|
+
export * from './create-account-response-class';
|
|
4
|
+
export * from './delete-request-dto';
|
|
5
|
+
export * from './get-account-request-dto';
|
|
6
|
+
export * from './get-account-response-class';
|
|
7
|
+
export * from './list-accounts-response-class';
|
|
8
|
+
export * from './register-policy-request-dto';
|
|
9
|
+
export * from './update-account-request-dto';
|
|
10
|
+
export * from './update-account-response-class';
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
*
|
|
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 { AccountClass } from './account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListAccountsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListAccountsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of accounts.
|
|
26
|
+
* @type {Array<AccountClass>}
|
|
27
|
+
* @memberof ListAccountsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<AccountClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListAccountsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
*
|
|
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 RegisterPolicyRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface RegisterPolicyRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The account\'s code
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof RegisterPolicyRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'accountCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* The policy code that will be registered to the current account
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RegisterPolicyRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'policyCode': string;
|
|
35
|
+
/**
|
|
36
|
+
* The policy number that will be registered to the current account
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RegisterPolicyRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'policyNumber': string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
*
|
|
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 UpdateAccountRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAccountRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The account\'s first name.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof UpdateAccountRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'firstName': string;
|
|
29
|
+
/**
|
|
30
|
+
* The account\'s last name.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof UpdateAccountRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'lastName': string;
|
|
35
|
+
/**
|
|
36
|
+
* The account\'s email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof UpdateAccountRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'email': string;
|
|
41
|
+
/**
|
|
42
|
+
* The account\'s gender.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UpdateAccountRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'gender': UpdateAccountRequestDtoGenderEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The account\'s street name.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof UpdateAccountRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'street': string;
|
|
53
|
+
/**
|
|
54
|
+
* The account\'s ZIP or postal code.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof UpdateAccountRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'zipCode': string;
|
|
59
|
+
/**
|
|
60
|
+
* The account\'s city, district, suburb, town, or village.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof UpdateAccountRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'city': string;
|
|
65
|
+
/**
|
|
66
|
+
* The account\'s house number.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof UpdateAccountRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'houseNumber': string;
|
|
71
|
+
/**
|
|
72
|
+
* Account\'s birth date.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof UpdateAccountRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'birthDate': string;
|
|
77
|
+
/**
|
|
78
|
+
* The account\'s phone number.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof UpdateAccountRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'phone': string;
|
|
83
|
+
/**
|
|
84
|
+
* Optional field to enter your own account number.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof UpdateAccountRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'accountNumber'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Optional field to enter extra information.
|
|
91
|
+
* @type {object}
|
|
92
|
+
* @memberof UpdateAccountRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'metadata'?: object;
|
|
95
|
+
/**
|
|
96
|
+
* Optional field to add predefined custom fields.
|
|
97
|
+
* @type {object}
|
|
98
|
+
* @memberof UpdateAccountRequestDto
|
|
99
|
+
*/
|
|
100
|
+
'customFields'?: object;
|
|
101
|
+
/**
|
|
102
|
+
* The account\'s code.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof UpdateAccountRequestDto
|
|
105
|
+
*/
|
|
106
|
+
'code'?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export const UpdateAccountRequestDtoGenderEnum = {
|
|
110
|
+
Male: 'male',
|
|
111
|
+
Female: 'female',
|
|
112
|
+
Unspecified: 'unspecified'
|
|
113
|
+
} as const;
|
|
114
|
+
|
|
115
|
+
export type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
|
|
116
|
+
|
|
117
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
*
|
|
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 { AccountClass } from './account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface UpdateAccountResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface UpdateAccountResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The account response.
|
|
26
|
+
* @type {AccountClass}
|
|
27
|
+
* @memberof UpdateAccountResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'account': AccountClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@emilgroup/account-sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "OpenAPI client for @emilgroup/account-sdk",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"axios",
|
|
8
|
+
"typescript",
|
|
9
|
+
"openapi-client",
|
|
10
|
+
"openapi-generator",
|
|
11
|
+
"@emilgroup/account-sdk"
|
|
12
|
+
],
|
|
13
|
+
"license": "Unlicense",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"typings": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc --outDir dist/",
|
|
18
|
+
"prepare": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"axios": "^0.26.1"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/node": "^12.11.5",
|
|
25
|
+
"typescript": "^4.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "ES5",
|
|
5
|
+
"module": "CommonJS",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
"lib": [
|
|
10
|
+
"es6",
|
|
11
|
+
"dom"
|
|
12
|
+
],
|
|
13
|
+
"typeRoots": [
|
|
14
|
+
"node_modules/@types"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"exclude": [
|
|
18
|
+
"dist",
|
|
19
|
+
"node_modules"
|
|
20
|
+
]
|
|
21
|
+
}
|