@emilgroup/partner-sdk-node 1.22.1-beta.16 → 1.22.1-beta.18

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 (53) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/api/partner-hierarchies-api.ts +89 -64
  4. package/api/partner-hierarchy-nodes-api.ts +58 -39
  5. package/api/partner-hierarchy-types-api.ts +20 -20
  6. package/api/partners-api.ts +107 -0
  7. package/dist/api/partner-hierarchies-api.d.ts +79 -65
  8. package/dist/api/partner-hierarchies-api.js +65 -58
  9. package/dist/api/partner-hierarchy-nodes-api.d.ts +47 -36
  10. package/dist/api/partner-hierarchy-nodes-api.js +45 -39
  11. package/dist/api/partner-hierarchy-types-api.d.ts +20 -20
  12. package/dist/api/partner-hierarchy-types-api.js +20 -20
  13. package/dist/api/partners-api.d.ts +57 -0
  14. package/dist/api/partners-api.js +93 -0
  15. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
  16. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
  17. package/dist/models/generate-upload-url-response-class.d.ts +36 -0
  18. package/dist/models/generate-upload-url-response-class.js +15 -0
  19. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +42 -0
  20. package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
  21. package/dist/models/index.d.ts +9 -0
  22. package/dist/models/index.js +9 -0
  23. package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
  24. package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
  25. package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
  26. package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
  27. package/dist/models/partner-hierarchy-class.d.ts +1 -1
  28. package/dist/models/partner-hierarchy-node-class.d.ts +4 -4
  29. package/dist/models/partner-hierarchy-node-history-class.d.ts +3 -3
  30. package/dist/models/partner-hierarchy-node-tree-class.d.ts +6 -6
  31. package/dist/models/partner-hierarchy-operation-class.d.ts +90 -0
  32. package/dist/models/partner-hierarchy-operation-class.js +15 -0
  33. package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
  34. package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
  35. package/dist/models/validate-partner-request-dto.d.ts +30 -0
  36. package/dist/models/validate-partner-request-dto.js +15 -0
  37. package/dist/models/validate-partner-response-class.d.ts +30 -0
  38. package/dist/models/validate-partner-response-class.js +15 -0
  39. package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
  40. package/models/generate-upload-url-response-class.ts +42 -0
  41. package/models/get-partner-hierarchy-tree-file-response-class.ts +48 -0
  42. package/models/index.ts +9 -0
  43. package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
  44. package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
  45. package/models/partner-hierarchy-class.ts +1 -1
  46. package/models/partner-hierarchy-node-class.ts +4 -4
  47. package/models/partner-hierarchy-node-history-class.ts +3 -3
  48. package/models/partner-hierarchy-node-tree-class.ts +6 -6
  49. package/models/partner-hierarchy-operation-class.ts +96 -0
  50. package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
  51. package/models/validate-partner-request-dto.ts +36 -0
  52. package/models/validate-partner-response-class.ts +36 -0
  53. package/package.json +1 -1
package/models/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './batch-create-partner-hierarchy-nodes-request-dto';
1
2
  export * from './blacklist-item-class';
2
3
  export * from './blacklist-reason-class';
3
4
  export * from './create-blacklist-item-request-dto';
@@ -22,10 +23,12 @@ export * from './create-tag-request-dto';
22
23
  export * from './create-tag-response-class';
23
24
  export * from './delete-by-code-response-class';
24
25
  export * from './delete-response-class';
26
+ export * from './generate-upload-url-response-class';
25
27
  export * from './get-blacklist-item-response-class';
26
28
  export * from './get-blacklist-reason-response-class';
27
29
  export * from './get-partner-hierarchy-node-response-class';
28
30
  export * from './get-partner-hierarchy-response-class';
31
+ export * from './get-partner-hierarchy-tree-file-response-class';
29
32
  export * from './get-partner-hierarchy-tree-response-class';
30
33
  export * from './get-partner-hierarchy-type-response-class';
31
34
  export * from './get-partner-relation-class';
@@ -46,6 +49,7 @@ export * from './list-blacklist-reasons-response-class';
46
49
  export * from './list-partner-hierarchies-response-class';
47
50
  export * from './list-partner-hierarchy-node-history-response-class';
48
51
  export * from './list-partner-hierarchy-nodes-response-class';
52
+ export * from './list-partner-hierarchy-operations-response-class';
49
53
  export * from './list-partner-hierarchy-types-response-class';
50
54
  export * from './list-partner-relation-class';
51
55
  export * from './list-partner-relation-types-class';
@@ -61,10 +65,12 @@ export * from './merge-partners-response-class';
61
65
  export * from './move-partner-hierarchy-node-request-dto';
62
66
  export * from './move-partner-hierarchy-node-response-class';
63
67
  export * from './partner-class';
68
+ export * from './partner-hierarchy-async-operation-response-class';
64
69
  export * from './partner-hierarchy-class';
65
70
  export * from './partner-hierarchy-node-class';
66
71
  export * from './partner-hierarchy-node-history-class';
67
72
  export * from './partner-hierarchy-node-tree-class';
73
+ export * from './partner-hierarchy-operation-class';
68
74
  export * from './partner-hierarchy-type-class';
69
75
  export * from './partner-relation-class';
70
76
  export * from './partner-relation-type-class';
@@ -83,6 +89,7 @@ export * from './update-partner-hierarchy-node-request-dto';
83
89
  export * from './update-partner-hierarchy-node-response-class';
84
90
  export * from './update-partner-hierarchy-request-dto';
85
91
  export * from './update-partner-hierarchy-response-class';
92
+ export * from './update-partner-hierarchy-tree-request-body-dto';
86
93
  export * from './update-partner-hierarchy-type-request-dto';
87
94
  export * from './update-partner-hierarchy-type-response-class';
88
95
  export * from './update-partner-relation-request-dto-rest';
@@ -91,3 +98,5 @@ export * from './update-partner-response-class';
91
98
  export * from './update-partner-type-request-dto';
92
99
  export * from './update-partner-type-response-class';
93
100
  export * from './update-tag-response-class';
101
+ export * from './validate-partner-request-dto';
102
+ export * from './validate-partner-response-class';
@@ -0,0 +1,49 @@
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 ListPartnerHierarchyOperationsResponseClass
22
+ */
23
+ export interface ListPartnerHierarchyOperationsResponseClass {
24
+ /**
25
+ * The list of partner hierarchy operationss.
26
+ * @type {Array<PartnerHierarchyOperationClass>}
27
+ * @memberof ListPartnerHierarchyOperationsResponseClass
28
+ */
29
+ 'items': Array<PartnerHierarchyOperationClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListPartnerHierarchyOperationsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListPartnerHierarchyOperationsResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total amount of items.
44
+ * @type {number}
45
+ * @memberof ListPartnerHierarchyOperationsResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
@@ -0,0 +1,36 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface PartnerHierarchyAsyncOperationResponseClass
21
+ */
22
+ export interface PartnerHierarchyAsyncOperationResponseClass {
23
+ /**
24
+ * Code of the long-running operation that is processing the hierarchy file.
25
+ * @type {string}
26
+ * @memberof PartnerHierarchyAsyncOperationResponseClass
27
+ */
28
+ 'operationCode': string;
29
+ /**
30
+ * Current operation status. Use the hierarchy operations endpoint to check progress.
31
+ * @type {string}
32
+ * @memberof PartnerHierarchyAsyncOperationResponseClass
33
+ */
34
+ 'status': string;
35
+ }
36
+
@@ -55,7 +55,7 @@ export interface PartnerHierarchyClass {
55
55
  * @type {string}
56
56
  * @memberof PartnerHierarchyClass
57
57
  */
58
- 'lockedByOperationCode': string;
58
+ 'lockedByOperationCode'?: string;
59
59
  /**
60
60
  * Time at which the object was created.
61
61
  * @type {string}
@@ -44,13 +44,13 @@ export interface PartnerHierarchyNodeClass {
44
44
  * @type {string}
45
45
  * @memberof PartnerHierarchyNodeClass
46
46
  */
47
- 'partnerCode': string;
47
+ 'partnerCode'?: string;
48
48
  /**
49
49
  * Parent node code. Empty when this is the root.
50
50
  * @type {string}
51
51
  * @memberof PartnerHierarchyNodeClass
52
52
  */
53
- 'parentNodeCode': string;
53
+ 'parentNodeCode'?: string;
54
54
  /**
55
55
  * Role code at this position.
56
56
  * @type {string}
@@ -104,12 +104,12 @@ export interface PartnerHierarchyNodeClass {
104
104
  * @type {PartnerClass}
105
105
  * @memberof PartnerHierarchyNodeClass
106
106
  */
107
- 'partner': PartnerClass;
107
+ 'partner'?: PartnerClass;
108
108
  /**
109
109
  * Parent node in the same hierarchy.
110
110
  * @type {PartnerHierarchyNodeClass}
111
111
  * @memberof PartnerHierarchyNodeClass
112
112
  */
113
- 'parentNode': PartnerHierarchyNodeClass;
113
+ 'parentNode'?: PartnerHierarchyNodeClass;
114
114
  }
115
115
 
@@ -44,13 +44,13 @@ export interface PartnerHierarchyNodeHistoryClass {
44
44
  * @type {string}
45
45
  * @memberof PartnerHierarchyNodeHistoryClass
46
46
  */
47
- 'partnerCode': string;
47
+ 'partnerCode'?: string;
48
48
  /**
49
49
  * Parent node code during this interval.
50
50
  * @type {string}
51
51
  * @memberof PartnerHierarchyNodeHistoryClass
52
52
  */
53
- 'parentNodeCode': string;
53
+ 'parentNodeCode'?: string;
54
54
  /**
55
55
  * Role code during this interval.
56
56
  * @type {string}
@@ -98,6 +98,6 @@ export interface PartnerHierarchyNodeHistoryClass {
98
98
  * @type {PartnerClass}
99
99
  * @memberof PartnerHierarchyNodeHistoryClass
100
100
  */
101
- 'partner': PartnerClass;
101
+ 'partner'?: PartnerClass;
102
102
  }
103
103
 
@@ -31,13 +31,13 @@ export interface PartnerHierarchyNodeTreeClass {
31
31
  * @type {string}
32
32
  * @memberof PartnerHierarchyNodeTreeClass
33
33
  */
34
- 'partnerCode': string;
34
+ 'partnerCode'?: string;
35
35
  /**
36
- * Assigned partner display name.
36
+ * Display name of the assigned partner, if this position is filled.
37
37
  * @type {string}
38
38
  * @memberof PartnerHierarchyNodeTreeClass
39
39
  */
40
- 'partnerName': string;
40
+ 'partnerName'?: string;
41
41
  /**
42
42
  * Role code at this position.
43
43
  * @type {string}
@@ -49,7 +49,7 @@ export interface PartnerHierarchyNodeTreeClass {
49
49
  * @type {string}
50
50
  * @memberof PartnerHierarchyNodeTreeClass
51
51
  */
52
- 'parentNodeCode': string;
52
+ 'parentNodeCode'?: string;
53
53
  /**
54
54
  * Depth from root (root = 0).
55
55
  * @type {number}
@@ -85,13 +85,13 @@ export interface PartnerHierarchyNodeTreeClass {
85
85
  * @type {string}
86
86
  * @memberof PartnerHierarchyNodeTreeClass
87
87
  */
88
- 'nextPageToken': string;
88
+ 'nextPageToken'?: string;
89
89
  /**
90
90
  * Number of children returned in this page.
91
91
  * @type {number}
92
92
  * @memberof PartnerHierarchyNodeTreeClass
93
93
  */
94
- 'itemsPerPage': number;
94
+ 'itemsPerPage'?: number;
95
95
  /**
96
96
  * Loaded direct children (one level).
97
97
  * @type {Array<PartnerHierarchyNodeTreeClass>}
@@ -0,0 +1,96 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface PartnerHierarchyOperationClass
21
+ */
22
+ export interface PartnerHierarchyOperationClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof PartnerHierarchyOperationClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique code identifying this hierarchy operation.
31
+ * @type {string}
32
+ * @memberof PartnerHierarchyOperationClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * Code of the hierarchy this operation belongs to.
37
+ * @type {string}
38
+ * @memberof PartnerHierarchyOperationClass
39
+ */
40
+ 'partnerHierarchyCode'?: string;
41
+ /**
42
+ * Operation type, such as FULL_UPDATE, BATCH_ADD, or BUILD_TREE.
43
+ * @type {string}
44
+ * @memberof PartnerHierarchyOperationClass
45
+ */
46
+ 'type'?: string;
47
+ /**
48
+ * Current operation status, such as PENDING, PROCESSING, DONE, or FAILED.
49
+ * @type {string}
50
+ * @memberof PartnerHierarchyOperationClass
51
+ */
52
+ 'status'?: string;
53
+ /**
54
+ * Uploaded file key used by this operation. Empty for operations that do not read an uploaded file.
55
+ * @type {string}
56
+ * @memberof PartnerHierarchyOperationClass
57
+ */
58
+ 's3Key': string;
59
+ /**
60
+ * Failure reason when the operation status is FAILED.
61
+ * @type {string}
62
+ * @memberof PartnerHierarchyOperationClass
63
+ */
64
+ 'error': string;
65
+ /**
66
+ * Time when the operation finished.
67
+ * @type {string}
68
+ * @memberof PartnerHierarchyOperationClass
69
+ */
70
+ 'completedAt': string;
71
+ /**
72
+ * Time at which the object was created.
73
+ * @type {string}
74
+ * @memberof PartnerHierarchyOperationClass
75
+ */
76
+ 'createdAt': string;
77
+ /**
78
+ * Time at which the object was updated.
79
+ * @type {string}
80
+ * @memberof PartnerHierarchyOperationClass
81
+ */
82
+ 'updatedAt': string;
83
+ /**
84
+ * Identifier of the user who created the record.
85
+ * @type {string}
86
+ * @memberof PartnerHierarchyOperationClass
87
+ */
88
+ 'createdBy': string;
89
+ /**
90
+ * Identifier of the user who last updated the record.
91
+ * @type {string}
92
+ * @memberof PartnerHierarchyOperationClass
93
+ */
94
+ 'updatedBy': string;
95
+ }
96
+
@@ -0,0 +1,30 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface UpdatePartnerHierarchyTreeRequestBodyDto
21
+ */
22
+ export interface UpdatePartnerHierarchyTreeRequestBodyDto {
23
+ /**
24
+ * S3 object key returned by the upload URL endpoint after the hierarchy tree file is uploaded.
25
+ * @type {string}
26
+ * @memberof UpdatePartnerHierarchyTreeRequestBodyDto
27
+ */
28
+ 's3Key': string;
29
+ }
30
+
@@ -0,0 +1,36 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ValidatePartnerRequestDto
21
+ */
22
+ export interface ValidatePartnerRequestDto {
23
+ /**
24
+ * The unique partner number used to identify the partner.
25
+ * @type {string}
26
+ * @memberof ValidatePartnerRequestDto
27
+ */
28
+ 'partnerNumber': string;
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}
32
+ * @memberof ValidatePartnerRequestDto
33
+ */
34
+ 'validationFields'?: object;
35
+ }
36
+
@@ -0,0 +1,36 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ValidatePartnerResponseClass
21
+ */
22
+ export interface ValidatePartnerResponseClass {
23
+ /**
24
+ * True when the partner was found and all provided validationFields matched. Also true when validationFields is absent or empty.
25
+ * @type {boolean}
26
+ * @memberof ValidatePartnerResponseClass
27
+ */
28
+ 'isValid': boolean;
29
+ /**
30
+ * Describes why validation failed. Possible values: \"Partner not found with partnerNumber: [partnerNumber]\" | \"Validation failed: field \\\"[name]\\\" was not found in partner data\" | \"Validation failed: value for field \\\"[name]\\\" does not match\". Only present when isValid is false.
31
+ * @type {string}
32
+ * @memberof ValidatePartnerResponseClass
33
+ */
34
+ 'errorMessage'?: string;
35
+ }
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk-node",
3
- "version": "1.22.1-beta.16",
3
+ "version": "1.22.1-beta.18",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [