@emilgroup/customer-sdk-node 1.1.1 → 1.4.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 (37) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +22 -5
  3. package/api/customers-api.ts +549 -8
  4. package/base.ts +150 -9
  5. package/dist/api/customers-api.d.ts +324 -8
  6. package/dist/api/customers-api.js +398 -8
  7. package/dist/base.d.ts +12 -3
  8. package/dist/base.js +192 -13
  9. package/dist/models/get-customer-response-class.d.ts +24 -0
  10. package/dist/models/get-customer-response-class.js +15 -0
  11. package/dist/models/index.d.ts +7 -0
  12. package/dist/models/index.js +7 -0
  13. package/dist/models/initiate-auth-response-class.d.ts +4 -4
  14. package/dist/models/list-documents-response-class.d.ts +30 -0
  15. package/dist/models/list-documents-response-class.js +15 -0
  16. package/dist/models/request-policy-update-request-dto.d.ts +42 -0
  17. package/dist/models/request-policy-update-request-dto.js +15 -0
  18. package/dist/models/request-policy-update-response-class.d.ts +25 -0
  19. package/dist/models/request-policy-update-response-class.js +15 -0
  20. package/dist/models/respond-to-auth-challenge-class.d.ts +4 -4
  21. package/dist/models/update-account-request-dto.d.ts +96 -0
  22. package/dist/models/update-account-request-dto.js +21 -0
  23. package/dist/models/update-customer-request-dto.d.ts +31 -0
  24. package/dist/models/update-customer-request-dto.js +15 -0
  25. package/dist/models/update-customer-response-class.d.ts +24 -0
  26. package/dist/models/update-customer-response-class.js +15 -0
  27. package/models/get-customer-response-class.ts +30 -0
  28. package/models/index.ts +7 -0
  29. package/models/initiate-auth-response-class.ts +4 -4
  30. package/models/list-documents-response-class.ts +36 -0
  31. package/models/request-policy-update-request-dto.ts +48 -0
  32. package/models/request-policy-update-response-class.ts +31 -0
  33. package/models/respond-to-auth-challenge-class.ts +4 -4
  34. package/models/update-account-request-dto.ts +105 -0
  35. package/models/update-customer-request-dto.ts +37 -0
  36. package/models/update-customer-response-class.ts +30 -0
  37. package/package.json +4 -3
@@ -0,0 +1,96 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateAccountRequestDto
16
+ */
17
+ export interface UpdateAccountRequestDto {
18
+ /**
19
+ * The account\'s first name.
20
+ * @type {string}
21
+ * @memberof UpdateAccountRequestDto
22
+ */
23
+ 'firstName': string;
24
+ /**
25
+ * The account\'s last name.
26
+ * @type {string}
27
+ * @memberof UpdateAccountRequestDto
28
+ */
29
+ 'lastName': string;
30
+ /**
31
+ * The account\'s email address. It is displayed alongside the account in the admin dashboard and can be useful for searching and tracking.
32
+ * @type {string}
33
+ * @memberof UpdateAccountRequestDto
34
+ */
35
+ 'email': string;
36
+ /**
37
+ * The account\'s gender.
38
+ * @type {string}
39
+ * @memberof UpdateAccountRequestDto
40
+ */
41
+ 'gender': UpdateAccountRequestDtoGenderEnum;
42
+ /**
43
+ * The account\'s street name.
44
+ * @type {string}
45
+ * @memberof UpdateAccountRequestDto
46
+ */
47
+ 'street': string;
48
+ /**
49
+ * The account\'s ZIP or postal code.
50
+ * @type {string}
51
+ * @memberof UpdateAccountRequestDto
52
+ */
53
+ 'zipCode': string;
54
+ /**
55
+ * The account\'s city, district, suburb, town, or village.
56
+ * @type {string}
57
+ * @memberof UpdateAccountRequestDto
58
+ */
59
+ 'city': string;
60
+ /**
61
+ * The account\'s house number.
62
+ * @type {string}
63
+ * @memberof UpdateAccountRequestDto
64
+ */
65
+ 'houseNumber': string;
66
+ /**
67
+ * Account\'s birth date.
68
+ * @type {string}
69
+ * @memberof UpdateAccountRequestDto
70
+ */
71
+ 'birthDate': string;
72
+ /**
73
+ * The account\'s phone number.
74
+ * @type {string}
75
+ * @memberof UpdateAccountRequestDto
76
+ */
77
+ 'phone': string;
78
+ /**
79
+ * Optional field to enter extra information.
80
+ * @type {object}
81
+ * @memberof UpdateAccountRequestDto
82
+ */
83
+ 'metadata'?: object;
84
+ /**
85
+ * Optional field to add predefined custom fields.
86
+ * @type {object}
87
+ * @memberof UpdateAccountRequestDto
88
+ */
89
+ 'customFields'?: object;
90
+ }
91
+ export declare const UpdateAccountRequestDtoGenderEnum: {
92
+ readonly Male: "male";
93
+ readonly Female: "female";
94
+ readonly Unspecified: "unspecified";
95
+ };
96
+ export declare type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
16
+ exports.UpdateAccountRequestDtoGenderEnum = void 0;
17
+ exports.UpdateAccountRequestDtoGenderEnum = {
18
+ Male: 'male',
19
+ Female: 'female',
20
+ Unspecified: 'unspecified'
21
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
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 { UpdateAccountRequestDto } from './update-account-request-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateCustomerRequestDto
17
+ */
18
+ export interface UpdateCustomerRequestDto {
19
+ /**
20
+ * Optional account data
21
+ * @type {UpdateAccountRequestDto}
22
+ * @memberof UpdateCustomerRequestDto
23
+ */
24
+ 'account'?: UpdateAccountRequestDto;
25
+ /**
26
+ * Customer code
27
+ * @type {string}
28
+ * @memberof UpdateCustomerRequestDto
29
+ */
30
+ 'customerCode': string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateCustomerResponseClass
16
+ */
17
+ export interface UpdateCustomerResponseClass {
18
+ /**
19
+ * Customer object
20
+ * @type {object}
21
+ * @memberof UpdateCustomerResponseClass
22
+ */
23
+ 'customer': object;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 GetCustomerResponseClass
21
+ */
22
+ export interface GetCustomerResponseClass {
23
+ /**
24
+ * Customer object
25
+ * @type {object}
26
+ * @memberof GetCustomerResponseClass
27
+ */
28
+ 'customer': object;
29
+ }
30
+
package/models/index.ts CHANGED
@@ -3,6 +3,7 @@ export * from './create-account-request-dto';
3
3
  export * from './create-customer-request-dto';
4
4
  export * from './create-customer-response-class';
5
5
  export * from './forgot-password-request-dto';
6
+ export * from './get-customer-response-class';
6
7
  export * from './get-policy-response-class';
7
8
  export * from './initiate-auth-request-dto';
8
9
  export * from './initiate-auth-response-class';
@@ -10,6 +11,7 @@ export * from './invite-by-customer-request-dto';
10
11
  export * from './invite-by-customer-response-class';
11
12
  export * from './invite-by-tenant-response-class';
12
13
  export * from './invite-class';
14
+ export * from './list-documents-response-class';
13
15
  export * from './list-invoices-response-class';
14
16
  export * from './list-policies-response-class';
15
17
  export * from './policy-class';
@@ -18,8 +20,13 @@ export * from './policy-premium-class';
18
20
  export * from './policy-premium-item-class';
19
21
  export * from './policy-version-class';
20
22
  export * from './refresh-token-dto';
23
+ export * from './request-policy-update-request-dto';
24
+ export * from './request-policy-update-response-class';
21
25
  export * from './reset-password-by-customer-request-dto';
22
26
  export * from './respond-to-auth-challenge-class';
23
27
  export * from './respond-to-auth-challenge-request-dto';
24
28
  export * from './timeslice-class';
29
+ export * from './update-account-request-dto';
30
+ export * from './update-customer-request-dto';
31
+ export * from './update-customer-response-class';
25
32
  export * from './verify-customer-invite-response-class';
@@ -26,24 +26,24 @@ export interface InitiateAuthResponseClass {
26
26
  * @type {AuthenticationResultClass}
27
27
  * @memberof InitiateAuthResponseClass
28
28
  */
29
- 'authenticationResult': AuthenticationResultClass;
29
+ 'authenticationResult'?: AuthenticationResultClass;
30
30
  /**
31
31
  * Challenge name
32
32
  * @type {string}
33
33
  * @memberof InitiateAuthResponseClass
34
34
  */
35
- 'challengeName': string;
35
+ 'challengeName'?: string;
36
36
  /**
37
37
  * MFA Challenge parameters
38
38
  * @type {object}
39
39
  * @memberof InitiateAuthResponseClass
40
40
  */
41
- 'challengeParameters': object;
41
+ 'challengeParameters'?: object;
42
42
  /**
43
43
  * session
44
44
  * @type {string}
45
45
  * @memberof InitiateAuthResponseClass
46
46
  */
47
- 'session': string;
47
+ 'session'?: string;
48
48
  }
49
49
 
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 ListDocumentsResponseClass
21
+ */
22
+ export interface ListDocumentsResponseClass {
23
+ /**
24
+ * documents list items
25
+ * @type {Array<string>}
26
+ * @memberof ListDocumentsResponseClass
27
+ */
28
+ 'items': Array<string>;
29
+ /**
30
+ * Next page token
31
+ * @type {string}
32
+ * @memberof ListDocumentsResponseClass
33
+ */
34
+ 'nextPageToken': string;
35
+ }
36
+
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 RequestPolicyUpdateRequestDto
21
+ */
22
+ export interface RequestPolicyUpdateRequestDto {
23
+ /**
24
+ * Policy code
25
+ * @type {string}
26
+ * @memberof RequestPolicyUpdateRequestDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * Policy objects
31
+ * @type {Array<string>}
32
+ * @memberof RequestPolicyUpdateRequestDto
33
+ */
34
+ 'policyObjects': Array<string>;
35
+ /**
36
+ * Update from
37
+ * @type {string}
38
+ * @memberof RequestPolicyUpdateRequestDto
39
+ */
40
+ 'from': string;
41
+ /**
42
+ * Update to
43
+ * @type {string}
44
+ * @memberof RequestPolicyUpdateRequestDto
45
+ */
46
+ 'to'?: string;
47
+ }
48
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 { PolicyClass } from './policy-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface RequestPolicyUpdateResponseClass
22
+ */
23
+ export interface RequestPolicyUpdateResponseClass {
24
+ /**
25
+ * Policy
26
+ * @type {PolicyClass}
27
+ * @memberof RequestPolicyUpdateResponseClass
28
+ */
29
+ 'policy': PolicyClass;
30
+ }
31
+
@@ -26,24 +26,24 @@ export interface RespondToAuthChallengeClass {
26
26
  * @type {AuthenticationResultClass}
27
27
  * @memberof RespondToAuthChallengeClass
28
28
  */
29
- 'authenticationResult': AuthenticationResultClass;
29
+ 'authenticationResult'?: AuthenticationResultClass;
30
30
  /**
31
31
  * Challenge name
32
32
  * @type {string}
33
33
  * @memberof RespondToAuthChallengeClass
34
34
  */
35
- 'challengeName': string;
35
+ 'challengeName'?: string;
36
36
  /**
37
37
  * MFA Challenge
38
38
  * @type {object}
39
39
  * @memberof RespondToAuthChallengeClass
40
40
  */
41
- 'challengeParameters': object;
41
+ 'challengeParameters'?: object;
42
42
  /**
43
43
  * session
44
44
  * @type {string}
45
45
  * @memberof RespondToAuthChallengeClass
46
46
  */
47
- 'session': string;
47
+ 'session'?: string;
48
48
  }
49
49
 
@@ -0,0 +1,105 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 the admin 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 extra information.
85
+ * @type {object}
86
+ * @memberof UpdateAccountRequestDto
87
+ */
88
+ 'metadata'?: object;
89
+ /**
90
+ * Optional field to add predefined custom fields.
91
+ * @type {object}
92
+ * @memberof UpdateAccountRequestDto
93
+ */
94
+ 'customFields'?: object;
95
+ }
96
+
97
+ export const UpdateAccountRequestDtoGenderEnum = {
98
+ Male: 'male',
99
+ Female: 'female',
100
+ Unspecified: 'unspecified'
101
+ } as const;
102
+
103
+ export type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
104
+
105
+
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 { UpdateAccountRequestDto } from './update-account-request-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateCustomerRequestDto
22
+ */
23
+ export interface UpdateCustomerRequestDto {
24
+ /**
25
+ * Optional account data
26
+ * @type {UpdateAccountRequestDto}
27
+ * @memberof UpdateCustomerRequestDto
28
+ */
29
+ 'account'?: UpdateAccountRequestDto;
30
+ /**
31
+ * Customer code
32
+ * @type {string}
33
+ * @memberof UpdateCustomerRequestDto
34
+ */
35
+ 'customerCode': string;
36
+ }
37
+
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 UpdateCustomerResponseClass
21
+ */
22
+ export interface UpdateCustomerResponseClass {
23
+ /**
24
+ * Customer object
25
+ * @type {object}
26
+ * @memberof UpdateCustomerResponseClass
27
+ */
28
+ 'customer': object;
29
+ }
30
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/customer-sdk-node",
3
- "version": "1.1.1",
3
+ "version": "1.4.0",
4
4
  "description": "OpenAPI client for @emilgroup/customer-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,12 +18,13 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^0.26.1",
21
+ "axios": "^0.26.1"
22
+ ,
22
23
  "form-data": "^4.0.0",
23
24
  "url": "^0.11.0"
24
25
  },
25
26
  "devDependencies": {
26
- "@types/node": "^12.11.5",
27
+ "@types/node": "^12.11.5",
27
28
  "typescript": "^4.0"
28
29
  }
29
30
  }