@emilgroup/partner-sdk 1.23.1-beta.0 → 1.23.1-beta.2

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 (32) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/partner-hierarchies-api.ts +0 -201
  4. package/api/partner-hierarchy-operations-api.ts +363 -0
  5. package/api/partners-api.ts +4 -4
  6. package/api.ts +2 -0
  7. package/dist/api/partner-hierarchies-api.d.ts +0 -119
  8. package/dist/api/partner-hierarchies-api.js +0 -134
  9. package/dist/api/partner-hierarchy-operations-api.d.ts +215 -0
  10. package/dist/api/partner-hierarchy-operations-api.js +358 -0
  11. package/dist/api/partners-api.d.ts +4 -4
  12. package/dist/api/partners-api.js +4 -4
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/get-partner-hierarchy-operation-response-class.d.ts +25 -0
  16. package/dist/models/get-partner-hierarchy-operation-response-class.js +15 -0
  17. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +22 -4
  18. package/dist/models/index.d.ts +1 -0
  19. package/dist/models/index.js +1 -0
  20. package/dist/models/partner-hierarchy-class.d.ts +0 -6
  21. package/dist/models/partner-hierarchy-operation-class.d.ts +29 -9
  22. package/dist/models/partner-hierarchy-operation-class.js +12 -0
  23. package/dist/models/validate-partner-request-dto.d.ts +21 -3
  24. package/dist/models/validate-partner-response-class.d.ts +1 -1
  25. package/models/get-partner-hierarchy-operation-response-class.ts +31 -0
  26. package/models/get-partner-hierarchy-tree-file-response-class.ts +22 -4
  27. package/models/index.ts +1 -0
  28. package/models/partner-hierarchy-class.ts +0 -6
  29. package/models/partner-hierarchy-operation-class.ts +33 -9
  30. package/models/validate-partner-request-dto.ts +21 -3
  31. package/models/validate-partner-response-class.ts +1 -1
  32. package/package.json +2 -2
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { PartnerHierarchyClass } from './partner-hierarchy-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -32,37 +33,37 @@ export interface PartnerHierarchyOperationClass {
32
33
  * @type {string}
33
34
  * @memberof PartnerHierarchyOperationClass
34
35
  */
35
- 'partnerHierarchyCode'?: string;
36
+ 'partnerHierarchyCode': string;
36
37
  /**
37
- * Operation type, such as CREATE_NODES, REPLACE_TREE, or CREATE_TREE_FILE.
38
+ * Operation type.
38
39
  * @type {string}
39
40
  * @memberof PartnerHierarchyOperationClass
40
41
  */
41
- 'type'?: string;
42
+ 'type': PartnerHierarchyOperationClassTypeEnum;
42
43
  /**
43
- * Current operation status, such as PENDING, PROCESSING, DONE, or FAILED.
44
+ * Operation status.
44
45
  * @type {string}
45
46
  * @memberof PartnerHierarchyOperationClass
46
47
  */
47
- 'status'?: string;
48
+ 'status': PartnerHierarchyOperationClassStatusEnum;
48
49
  /**
49
- * Uploaded file key used by this operation. Empty for operations that do not read an uploaded file.
50
+ * Uploaded file key used by this operation. Absent for tree file builds.
50
51
  * @type {string}
51
52
  * @memberof PartnerHierarchyOperationClass
52
53
  */
53
- 's3Key': string;
54
+ 's3Key'?: string;
54
55
  /**
55
56
  * Failure reason when the operation status is FAILED.
56
57
  * @type {string}
57
58
  * @memberof PartnerHierarchyOperationClass
58
59
  */
59
- 'error': string;
60
+ 'error'?: string;
60
61
  /**
61
62
  * Time when the operation finished.
62
63
  * @type {string}
63
64
  * @memberof PartnerHierarchyOperationClass
64
65
  */
65
- 'completedAt': string;
66
+ 'completedAt'?: string;
66
67
  /**
67
68
  * Time at which the object was created.
68
69
  * @type {string}
@@ -87,4 +88,23 @@ export interface PartnerHierarchyOperationClass {
87
88
  * @memberof PartnerHierarchyOperationClass
88
89
  */
89
90
  'updatedBy': string;
91
+ /**
92
+ * Included when expand=partnerHierarchy.
93
+ * @type {PartnerHierarchyClass}
94
+ * @memberof PartnerHierarchyOperationClass
95
+ */
96
+ 'partnerHierarchy'?: PartnerHierarchyClass;
90
97
  }
98
+ export declare const PartnerHierarchyOperationClassTypeEnum: {
99
+ readonly BatchCreateNodes: "BATCH_CREATE_NODES";
100
+ readonly ReplaceHierarchyTree: "REPLACE_HIERARCHY_TREE";
101
+ readonly BuildHierarchyTreeFile: "BUILD_HIERARCHY_TREE_FILE";
102
+ };
103
+ export type PartnerHierarchyOperationClassTypeEnum = typeof PartnerHierarchyOperationClassTypeEnum[keyof typeof PartnerHierarchyOperationClassTypeEnum];
104
+ export declare const PartnerHierarchyOperationClassStatusEnum: {
105
+ readonly Pending: "PENDING";
106
+ readonly Processing: "PROCESSING";
107
+ readonly Done: "DONE";
108
+ readonly Failed: "FAILED";
109
+ };
110
+ export type PartnerHierarchyOperationClassStatusEnum = typeof PartnerHierarchyOperationClassStatusEnum[keyof typeof PartnerHierarchyOperationClassStatusEnum];
@@ -13,3 +13,15 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PartnerHierarchyOperationClassStatusEnum = exports.PartnerHierarchyOperationClassTypeEnum = void 0;
17
+ exports.PartnerHierarchyOperationClassTypeEnum = {
18
+ BatchCreateNodes: 'BATCH_CREATE_NODES',
19
+ ReplaceHierarchyTree: 'REPLACE_HIERARCHY_TREE',
20
+ BuildHierarchyTreeFile: 'BUILD_HIERARCHY_TREE_FILE'
21
+ };
22
+ exports.PartnerHierarchyOperationClassStatusEnum = {
23
+ Pending: 'PENDING',
24
+ Processing: 'PROCESSING',
25
+ Done: 'DONE',
26
+ Failed: 'FAILED'
27
+ };
@@ -22,9 +22,27 @@ export interface ValidatePartnerRequestDto {
22
22
  */
23
23
  'partnerNumber': string;
24
24
  /**
25
- * Dynamic key-value pairs matched against partner custom fields (top-level or one level deep). All provided fields must match — AND logic. If omitted or empty, validation passes without checking custom fields.
26
- * @type {object}
25
+ * Partner birthdate to validate against partner data.
26
+ * @type {string}
27
+ * @memberof ValidatePartnerRequestDto
28
+ */
29
+ 'birthdate'?: string;
30
+ /**
31
+ * Postal code to validate against partner data.
32
+ * @type {string}
33
+ * @memberof ValidatePartnerRequestDto
34
+ */
35
+ 'postalCode'?: string;
36
+ /**
37
+ * Email address to validate against partner data.
38
+ * @type {string}
39
+ * @memberof ValidatePartnerRequestDto
40
+ */
41
+ 'email'?: string;
42
+ /**
43
+ * Primary phone number to validate against partner data.
44
+ * @type {string}
27
45
  * @memberof ValidatePartnerRequestDto
28
46
  */
29
- 'validationFields'?: object;
47
+ 'primaryPhone'?: string;
30
48
  }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface ValidatePartnerResponseClass {
18
18
  /**
19
- * True when the partner was found and all provided validationFields matched. Also true when validationFields is absent or empty.
19
+ * True when the partner was found and all provided validation fields matched. Also true when no validation fields are provided.
20
20
  * @type {boolean}
21
21
  * @memberof ValidatePartnerResponseClass
22
22
  */
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService 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 { PartnerHierarchyOperationClass } from './partner-hierarchy-operation-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetPartnerHierarchyOperationResponseClass
22
+ */
23
+ export interface GetPartnerHierarchyOperationResponseClass {
24
+ /**
25
+ * The partner hierarchy operation response.
26
+ * @type {PartnerHierarchyOperationClass}
27
+ * @memberof GetPartnerHierarchyOperationResponseClass
28
+ */
29
+ 'operation': PartnerHierarchyOperationClass;
30
+ }
31
+
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface GetPartnerHierarchyTreeFileResponseClass {
23
23
  /**
24
- * Download URL for the hierarchy tree file. Empty while the file is still being built.
24
+ * Download URL for the latest available hierarchy tree file.
25
25
  * @type {string}
26
26
  * @memberof GetPartnerHierarchyTreeFileResponseClass
27
27
  */
@@ -33,16 +33,34 @@ export interface GetPartnerHierarchyTreeFileResponseClass {
33
33
  */
34
34
  'expiresAt'?: string;
35
35
  /**
36
- * Operation code returned when the tree file is being built instead of immediately available.
36
+ * Operation code returned when a data operation is active or a tree-file build is pending or processing.
37
37
  * @type {string}
38
38
  * @memberof GetPartnerHierarchyTreeFileResponseClass
39
39
  */
40
40
  'operationCode'?: string;
41
41
  /**
42
- * Current tree file build status when a download URL is not ready yet.
42
+ * Status of operationCode when a data operation or tree-file build is in progress.
43
43
  * @type {string}
44
44
  * @memberof GetPartnerHierarchyTreeFileResponseClass
45
45
  */
46
- 'status'?: string;
46
+ 'operationStatus'?: string;
47
+ /**
48
+ * Type of operationCode.
49
+ * @type {string}
50
+ * @memberof GetPartnerHierarchyTreeFileResponseClass
51
+ */
52
+ 'operationType'?: string;
53
+ /**
54
+ * Hierarchy version represented by the returned tree file.
55
+ * @type {number}
56
+ * @memberof GetPartnerHierarchyTreeFileResponseClass
57
+ */
58
+ 'treeFileVersion'?: number;
59
+ /**
60
+ * True only when the returned file is older than the current hierarchy version.
61
+ * @type {boolean}
62
+ * @memberof GetPartnerHierarchyTreeFileResponseClass
63
+ */
64
+ 'isTreeFileOutdated'?: boolean;
47
65
  }
48
66
 
package/models/index.ts CHANGED
@@ -27,6 +27,7 @@ export * from './generate-upload-url-response-class';
27
27
  export * from './get-blacklist-item-response-class';
28
28
  export * from './get-blacklist-reason-response-class';
29
29
  export * from './get-partner-hierarchy-node-response-class';
30
+ export * from './get-partner-hierarchy-operation-response-class';
30
31
  export * from './get-partner-hierarchy-response-class';
31
32
  export * from './get-partner-hierarchy-tree-file-response-class';
32
33
  export * from './get-partner-hierarchy-tree-response-class';
@@ -44,12 +44,6 @@ export interface PartnerHierarchyClass {
44
44
  * @memberof PartnerHierarchyClass
45
45
  */
46
46
  'partnerHierarchyTypeCode': string;
47
- /**
48
- * Whether the cached hierarchy tree needs a refresh.
49
- * @type {boolean}
50
- * @memberof PartnerHierarchyClass
51
- */
52
- 'isTreeStale': boolean;
53
47
  /**
54
48
  * Processing reference, if the hierarchy is currently locked.
55
49
  * @type {string}
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { PartnerHierarchyClass } from './partner-hierarchy-class';
16
17
 
17
18
  /**
18
19
  *
@@ -37,37 +38,37 @@ export interface PartnerHierarchyOperationClass {
37
38
  * @type {string}
38
39
  * @memberof PartnerHierarchyOperationClass
39
40
  */
40
- 'partnerHierarchyCode'?: string;
41
+ 'partnerHierarchyCode': string;
41
42
  /**
42
- * Operation type, such as CREATE_NODES, REPLACE_TREE, or CREATE_TREE_FILE.
43
+ * Operation type.
43
44
  * @type {string}
44
45
  * @memberof PartnerHierarchyOperationClass
45
46
  */
46
- 'type'?: string;
47
+ 'type': PartnerHierarchyOperationClassTypeEnum;
47
48
  /**
48
- * Current operation status, such as PENDING, PROCESSING, DONE, or FAILED.
49
+ * Operation status.
49
50
  * @type {string}
50
51
  * @memberof PartnerHierarchyOperationClass
51
52
  */
52
- 'status'?: string;
53
+ 'status': PartnerHierarchyOperationClassStatusEnum;
53
54
  /**
54
- * Uploaded file key used by this operation. Empty for operations that do not read an uploaded file.
55
+ * Uploaded file key used by this operation. Absent for tree file builds.
55
56
  * @type {string}
56
57
  * @memberof PartnerHierarchyOperationClass
57
58
  */
58
- 's3Key': string;
59
+ 's3Key'?: string;
59
60
  /**
60
61
  * Failure reason when the operation status is FAILED.
61
62
  * @type {string}
62
63
  * @memberof PartnerHierarchyOperationClass
63
64
  */
64
- 'error': string;
65
+ 'error'?: string;
65
66
  /**
66
67
  * Time when the operation finished.
67
68
  * @type {string}
68
69
  * @memberof PartnerHierarchyOperationClass
69
70
  */
70
- 'completedAt': string;
71
+ 'completedAt'?: string;
71
72
  /**
72
73
  * Time at which the object was created.
73
74
  * @type {string}
@@ -92,5 +93,28 @@ export interface PartnerHierarchyOperationClass {
92
93
  * @memberof PartnerHierarchyOperationClass
93
94
  */
94
95
  'updatedBy': string;
96
+ /**
97
+ * Included when expand=partnerHierarchy.
98
+ * @type {PartnerHierarchyClass}
99
+ * @memberof PartnerHierarchyOperationClass
100
+ */
101
+ 'partnerHierarchy'?: PartnerHierarchyClass;
95
102
  }
96
103
 
104
+ export const PartnerHierarchyOperationClassTypeEnum = {
105
+ BatchCreateNodes: 'BATCH_CREATE_NODES',
106
+ ReplaceHierarchyTree: 'REPLACE_HIERARCHY_TREE',
107
+ BuildHierarchyTreeFile: 'BUILD_HIERARCHY_TREE_FILE'
108
+ } as const;
109
+
110
+ export type PartnerHierarchyOperationClassTypeEnum = typeof PartnerHierarchyOperationClassTypeEnum[keyof typeof PartnerHierarchyOperationClassTypeEnum];
111
+ export const PartnerHierarchyOperationClassStatusEnum = {
112
+ Pending: 'PENDING',
113
+ Processing: 'PROCESSING',
114
+ Done: 'DONE',
115
+ Failed: 'FAILED'
116
+ } as const;
117
+
118
+ export type PartnerHierarchyOperationClassStatusEnum = typeof PartnerHierarchyOperationClassStatusEnum[keyof typeof PartnerHierarchyOperationClassStatusEnum];
119
+
120
+
@@ -27,10 +27,28 @@ export interface ValidatePartnerRequestDto {
27
27
  */
28
28
  'partnerNumber': string;
29
29
  /**
30
- * Dynamic key-value pairs matched against partner custom fields (top-level or one level deep). All provided fields must match — AND logic. If omitted or empty, validation passes without checking custom fields.
31
- * @type {object}
30
+ * Partner birthdate to validate against partner data.
31
+ * @type {string}
32
+ * @memberof ValidatePartnerRequestDto
33
+ */
34
+ 'birthdate'?: string;
35
+ /**
36
+ * Postal code to validate against partner data.
37
+ * @type {string}
38
+ * @memberof ValidatePartnerRequestDto
39
+ */
40
+ 'postalCode'?: string;
41
+ /**
42
+ * Email address to validate against partner data.
43
+ * @type {string}
44
+ * @memberof ValidatePartnerRequestDto
45
+ */
46
+ 'email'?: string;
47
+ /**
48
+ * Primary phone number to validate against partner data.
49
+ * @type {string}
32
50
  * @memberof ValidatePartnerRequestDto
33
51
  */
34
- 'validationFields'?: object;
52
+ 'primaryPhone'?: string;
35
53
  }
36
54
 
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface ValidatePartnerResponseClass {
23
23
  /**
24
- * True when the partner was found and all provided validationFields matched. Also true when validationFields is absent or empty.
24
+ * True when the partner was found and all provided validation fields matched. Also true when no validation fields are provided.
25
25
  * @type {boolean}
26
26
  * @memberof ValidatePartnerResponseClass
27
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk",
3
- "version": "1.23.1-beta.0",
3
+ "version": "1.23.1-beta.2",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.12.0"
21
+ "axios": "1.18.0"
22
22
  },
23
23
  "devDependencies": {
24
24