@emilgroup/account-sdk-node 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.
Files changed (58) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/accounts-api.ts +667 -0
  6. package/api.ts +36 -0
  7. package/base.ts +189 -0
  8. package/common.ts +138 -0
  9. package/configuration.ts +109 -0
  10. package/dist/api/accounts-api.d.ts +375 -0
  11. package/dist/api/accounts-api.js +634 -0
  12. package/dist/api.d.ts +16 -0
  13. package/dist/api.js +36 -0
  14. package/dist/base.d.ts +69 -0
  15. package/dist/base.js +252 -0
  16. package/dist/common.d.ts +66 -0
  17. package/dist/common.js +244 -0
  18. package/dist/configuration.d.ts +90 -0
  19. package/dist/configuration.js +44 -0
  20. package/dist/index.d.ts +15 -0
  21. package/dist/index.js +35 -0
  22. package/dist/models/account-class.d.ts +132 -0
  23. package/dist/models/account-class.js +15 -0
  24. package/dist/models/create-account-request-dto.d.ts +102 -0
  25. package/dist/models/create-account-request-dto.js +21 -0
  26. package/dist/models/create-account-response-class.d.ts +25 -0
  27. package/dist/models/create-account-response-class.js +15 -0
  28. package/dist/models/delete-request-dto.d.ts +24 -0
  29. package/dist/models/delete-request-dto.js +15 -0
  30. package/dist/models/get-account-request-dto.d.ts +30 -0
  31. package/dist/models/get-account-request-dto.js +15 -0
  32. package/dist/models/get-account-response-class.d.ts +25 -0
  33. package/dist/models/get-account-response-class.js +15 -0
  34. package/dist/models/index.d.ts +10 -0
  35. package/dist/models/index.js +26 -0
  36. package/dist/models/list-accounts-response-class.d.ts +31 -0
  37. package/dist/models/list-accounts-response-class.js +15 -0
  38. package/dist/models/register-policy-request-dto.d.ts +36 -0
  39. package/dist/models/register-policy-request-dto.js +15 -0
  40. package/dist/models/update-account-request-dto.d.ts +108 -0
  41. package/dist/models/update-account-request-dto.js +21 -0
  42. package/dist/models/update-account-response-class.d.ts +25 -0
  43. package/dist/models/update-account-response-class.js +15 -0
  44. package/git_push.sh +57 -0
  45. package/index.ts +19 -0
  46. package/models/account-class.ts +138 -0
  47. package/models/create-account-request-dto.ts +111 -0
  48. package/models/create-account-response-class.ts +31 -0
  49. package/models/delete-request-dto.ts +30 -0
  50. package/models/get-account-request-dto.ts +36 -0
  51. package/models/get-account-response-class.ts +31 -0
  52. package/models/index.ts +10 -0
  53. package/models/list-accounts-response-class.ts +37 -0
  54. package/models/register-policy-request-dto.ts +42 -0
  55. package/models/update-account-request-dto.ts +117 -0
  56. package/models/update-account-response-class.ts +31 -0
  57. package/package.json +29 -0
  58. package/tsconfig.json +22 -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
+
@@ -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,29 @@
1
+ {
2
+ "name": "@emilgroup/account-sdk-node",
3
+ "version": "1.0.0",
4
+ "description": "OpenAPI client for @emilgroup/account-sdk-node",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "keywords": [
7
+ "axios",
8
+ "typescript",
9
+ "openapi-client",
10
+ "openapi-generator",
11
+ "@emilgroup/account-sdk-node"
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
+ "form-data": "^4.0.0",
23
+ "url": "^0.11.0"
24
+ },
25
+ "devDependencies": {
26
+ "@types/node": "^12.11.5",
27
+ "typescript": "^4.0"
28
+ }
29
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES5",
5
+ "module": "CommonJS",
6
+ "noImplicitAny": true,
7
+ "esModuleInterop": true,
8
+ "outDir": "dist",
9
+ "rootDir": ".",
10
+ "lib": [
11
+ "es6",
12
+ "dom"
13
+ ],
14
+ "typeRoots": [
15
+ "node_modules/@types"
16
+ ]
17
+ },
18
+ "exclude": [
19
+ "dist",
20
+ "node_modules"
21
+ ]
22
+ }