@emilgroup/partner-sdk 1.23.1-beta.5 → 1.23.1-beta.7
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 +1 -42
- package/README.md +2 -2
- package/api/blacklist-api.ts +3 -3
- package/api/blacklist-reasons-api.ts +3 -3
- package/api/{health-api.ts → default-api.ts} +13 -13
- package/api/partners-api.ts +12 -211
- package/api.ts +2 -10
- package/base.ts +0 -1
- package/dist/api/blacklist-api.d.ts +4 -4
- package/dist/api/blacklist-reasons-api.d.ts +4 -4
- package/dist/api/{health-api.d.ts → default-api.d.ts} +10 -10
- package/dist/api/{health-api.js → default-api.js} +22 -22
- package/dist/api/partners-api.d.ts +12 -130
- package/dist/api/partners-api.js +9 -143
- package/dist/api.d.ts +1 -5
- package/dist/api.js +1 -5
- package/dist/base.d.ts +1 -2
- package/dist/base.js +0 -1
- package/dist/models/index.d.ts +0 -37
- package/dist/models/index.js +0 -37
- package/dist/models/list-blacklist-items-response-class.d.ts +0 -12
- package/dist/models/list-partner-relation-class.d.ts +6 -18
- package/dist/models/list-partner-relation-types-class.d.ts +6 -18
- package/dist/models/list-partner-types-response-class.d.ts +6 -18
- package/dist/models/list-partner-versions-response-class.d.ts +6 -18
- package/dist/models/list-partners-response-class.d.ts +0 -12
- package/dist/models/list-related-partners-response-class.d.ts +6 -18
- package/dist/models/list-tags-response-class.d.ts +6 -18
- package/dist/models/partner-class.d.ts +0 -6
- package/dist/models/update-blacklist-reason-status-request-dto.d.ts +1 -1
- package/models/index.ts +0 -37
- package/models/list-blacklist-items-response-class.ts +0 -12
- package/models/list-partner-relation-class.ts +6 -18
- package/models/list-partner-relation-types-class.ts +6 -18
- package/models/list-partner-types-response-class.ts +6 -18
- package/models/list-partner-versions-response-class.ts +6 -18
- package/models/list-partners-response-class.ts +0 -12
- package/models/list-related-partners-response-class.ts +6 -18
- package/models/list-tags-response-class.ts +6 -18
- package/models/partner-class.ts +0 -6
- package/models/update-blacklist-reason-status-request-dto.ts +1 -1
- package/package.json +2 -2
- package/api/partner-hierarchies-api.ts +0 -1166
- package/api/partner-hierarchy-nodes-api.ts +0 -1197
- package/api/partner-hierarchy-operations-api.ts +0 -363
- package/api/partner-hierarchy-types-api.ts +0 -679
- package/dist/api/partner-hierarchies-api.d.ts +0 -655
- package/dist/api/partner-hierarchies-api.js +0 -1037
- package/dist/api/partner-hierarchy-nodes-api.d.ts +0 -674
- package/dist/api/partner-hierarchy-nodes-api.js +0 -1049
- package/dist/api/partner-hierarchy-operations-api.d.ts +0 -215
- package/dist/api/partner-hierarchy-operations-api.js +0 -358
- package/dist/api/partner-hierarchy-types-api.d.ts +0 -385
- package/dist/api/partner-hierarchy-types-api.js +0 -636
- package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +0 -30
- package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +0 -15
- package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +0 -42
- package/dist/models/create-partner-hierarchy-node-request-dto.js +0 -15
- package/dist/models/create-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/create-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/create-partner-hierarchy-request-dto.d.ts +0 -30
- package/dist/models/create-partner-hierarchy-request-dto.js +0 -15
- package/dist/models/create-partner-hierarchy-response-class.d.ts +0 -25
- package/dist/models/create-partner-hierarchy-response-class.js +0 -15
- package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +0 -30
- package/dist/models/create-partner-hierarchy-type-request-dto.js +0 -15
- package/dist/models/create-partner-hierarchy-type-response-class.d.ts +0 -25
- package/dist/models/create-partner-hierarchy-type-response-class.js +0 -15
- package/dist/models/delete-by-code-response-class.d.ts +0 -24
- package/dist/models/delete-by-code-response-class.js +0 -15
- package/dist/models/generate-upload-url-response-class.d.ts +0 -36
- package/dist/models/generate-upload-url-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-operation-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-operation-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +0 -60
- package/dist/models/get-partner-hierarchy-tree-file-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-tree-response-class.js +0 -15
- package/dist/models/get-partner-hierarchy-type-response-class.d.ts +0 -25
- package/dist/models/get-partner-hierarchy-type-response-class.js +0 -15
- package/dist/models/list-partner-hierarchies-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchies-response-class.js +0 -15
- package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchy-node-history-response-class.js +0 -15
- package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchy-nodes-response-class.js +0 -15
- package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchy-operations-response-class.js +0 -15
- package/dist/models/list-partner-hierarchy-types-response-class.d.ts +0 -43
- package/dist/models/list-partner-hierarchy-types-response-class.js +0 -15
- package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +0 -30
- package/dist/models/move-partner-hierarchy-node-request-dto.js +0 -15
- package/dist/models/move-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/move-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +0 -30
- package/dist/models/partner-hierarchy-async-operation-response-class.js +0 -15
- package/dist/models/partner-hierarchy-class.d.ts +0 -72
- package/dist/models/partner-hierarchy-class.js +0 -15
- package/dist/models/partner-hierarchy-node-class.d.ts +0 -109
- package/dist/models/partner-hierarchy-node-class.js +0 -15
- package/dist/models/partner-hierarchy-node-history-class.d.ts +0 -97
- package/dist/models/partner-hierarchy-node-history-class.js +0 -15
- package/dist/models/partner-hierarchy-node-tree-class.d.ts +0 -96
- package/dist/models/partner-hierarchy-node-tree-class.js +0 -15
- package/dist/models/partner-hierarchy-operation-class.d.ts +0 -110
- package/dist/models/partner-hierarchy-operation-class.js +0 -27
- package/dist/models/partner-hierarchy-type-class.d.ts +0 -66
- package/dist/models/partner-hierarchy-type-class.js +0 -15
- package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/unassign-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +0 -30
- package/dist/models/update-partner-hierarchy-node-request-dto.js +0 -15
- package/dist/models/update-partner-hierarchy-node-response-class.d.ts +0 -25
- package/dist/models/update-partner-hierarchy-node-response-class.js +0 -15
- package/dist/models/update-partner-hierarchy-request-dto.d.ts +0 -24
- package/dist/models/update-partner-hierarchy-request-dto.js +0 -15
- package/dist/models/update-partner-hierarchy-response-class.d.ts +0 -25
- package/dist/models/update-partner-hierarchy-response-class.js +0 -15
- package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +0 -24
- package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +0 -15
- package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +0 -30
- package/dist/models/update-partner-hierarchy-type-request-dto.js +0 -15
- package/dist/models/update-partner-hierarchy-type-response-class.d.ts +0 -25
- package/dist/models/update-partner-hierarchy-type-response-class.js +0 -15
- package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +0 -36
- package/models/create-partner-hierarchy-node-request-dto.ts +0 -48
- package/models/create-partner-hierarchy-node-response-class.ts +0 -31
- package/models/create-partner-hierarchy-request-dto.ts +0 -36
- package/models/create-partner-hierarchy-response-class.ts +0 -31
- package/models/create-partner-hierarchy-type-request-dto.ts +0 -36
- package/models/create-partner-hierarchy-type-response-class.ts +0 -31
- package/models/delete-by-code-response-class.ts +0 -30
- package/models/generate-upload-url-response-class.ts +0 -42
- package/models/get-partner-hierarchy-node-response-class.ts +0 -31
- package/models/get-partner-hierarchy-operation-response-class.ts +0 -31
- package/models/get-partner-hierarchy-response-class.ts +0 -31
- package/models/get-partner-hierarchy-tree-file-response-class.ts +0 -66
- package/models/get-partner-hierarchy-tree-response-class.ts +0 -31
- package/models/get-partner-hierarchy-type-response-class.ts +0 -31
- package/models/list-partner-hierarchies-response-class.ts +0 -49
- package/models/list-partner-hierarchy-node-history-response-class.ts +0 -49
- package/models/list-partner-hierarchy-nodes-response-class.ts +0 -49
- package/models/list-partner-hierarchy-operations-response-class.ts +0 -49
- package/models/list-partner-hierarchy-types-response-class.ts +0 -49
- package/models/move-partner-hierarchy-node-request-dto.ts +0 -36
- package/models/move-partner-hierarchy-node-response-class.ts +0 -31
- package/models/partner-hierarchy-async-operation-response-class.ts +0 -36
- package/models/partner-hierarchy-class.ts +0 -78
- package/models/partner-hierarchy-node-class.ts +0 -115
- package/models/partner-hierarchy-node-history-class.ts +0 -103
- package/models/partner-hierarchy-node-tree-class.ts +0 -102
- package/models/partner-hierarchy-operation-class.ts +0 -120
- package/models/partner-hierarchy-type-class.ts +0 -72
- package/models/unassign-partner-hierarchy-node-response-class.ts +0 -31
- package/models/update-partner-hierarchy-node-request-dto.ts +0 -36
- package/models/update-partner-hierarchy-node-response-class.ts +0 -31
- package/models/update-partner-hierarchy-request-dto.ts +0 -30
- package/models/update-partner-hierarchy-response-class.ts +0 -31
- package/models/update-partner-hierarchy-tree-request-body-dto.ts +0 -30
- package/models/update-partner-hierarchy-type-request-dto.ts +0 -36
- package/models/update-partner-hierarchy-type-response-class.ts +0 -31
package/.openapi-generator/FILES
CHANGED
|
@@ -5,11 +5,7 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/blacklist-api.ts
|
|
7
7
|
api/blacklist-reasons-api.ts
|
|
8
|
-
api/
|
|
9
|
-
api/partner-hierarchies-api.ts
|
|
10
|
-
api/partner-hierarchy-nodes-api.ts
|
|
11
|
-
api/partner-hierarchy-operations-api.ts
|
|
12
|
-
api/partner-hierarchy-types-api.ts
|
|
8
|
+
api/default-api.ts
|
|
13
9
|
api/partner-invitations-api.ts
|
|
14
10
|
api/partner-relations-api.ts
|
|
15
11
|
api/partner-tags-api.ts
|
|
@@ -21,7 +17,6 @@ common.ts
|
|
|
21
17
|
configuration.ts
|
|
22
18
|
git_push.sh
|
|
23
19
|
index.ts
|
|
24
|
-
models/batch-create-partner-hierarchy-nodes-request-dto.ts
|
|
25
20
|
models/blacklist-item-class.ts
|
|
26
21
|
models/blacklist-reason-class.ts
|
|
27
22
|
models/create-blacklist-item-request-dto.ts
|
|
@@ -30,12 +25,6 @@ models/create-blacklist-reason-request-dto.ts
|
|
|
30
25
|
models/create-blacklist-reason-response-class.ts
|
|
31
26
|
models/create-or-update-partner-from-account-request-dto.ts
|
|
32
27
|
models/create-or-update-partner-from-account-response-class.ts
|
|
33
|
-
models/create-partner-hierarchy-node-request-dto.ts
|
|
34
|
-
models/create-partner-hierarchy-node-response-class.ts
|
|
35
|
-
models/create-partner-hierarchy-request-dto.ts
|
|
36
|
-
models/create-partner-hierarchy-response-class.ts
|
|
37
|
-
models/create-partner-hierarchy-type-request-dto.ts
|
|
38
|
-
models/create-partner-hierarchy-type-response-class.ts
|
|
39
28
|
models/create-partner-relation-request-dto-rest.ts
|
|
40
29
|
models/create-partner-relation-response-class.ts
|
|
41
30
|
models/create-partner-request-dto.ts
|
|
@@ -44,17 +33,9 @@ models/create-partner-type-request-dto.ts
|
|
|
44
33
|
models/create-partner-type-response-class.ts
|
|
45
34
|
models/create-tag-request-dto.ts
|
|
46
35
|
models/create-tag-response-class.ts
|
|
47
|
-
models/delete-by-code-response-class.ts
|
|
48
36
|
models/delete-response-class.ts
|
|
49
|
-
models/generate-upload-url-response-class.ts
|
|
50
37
|
models/get-blacklist-item-response-class.ts
|
|
51
38
|
models/get-blacklist-reason-response-class.ts
|
|
52
|
-
models/get-partner-hierarchy-node-response-class.ts
|
|
53
|
-
models/get-partner-hierarchy-operation-response-class.ts
|
|
54
|
-
models/get-partner-hierarchy-response-class.ts
|
|
55
|
-
models/get-partner-hierarchy-tree-file-response-class.ts
|
|
56
|
-
models/get-partner-hierarchy-tree-response-class.ts
|
|
57
|
-
models/get-partner-hierarchy-type-response-class.ts
|
|
58
39
|
models/get-partner-relation-class.ts
|
|
59
40
|
models/get-partner-relation-type-class.ts
|
|
60
41
|
models/get-partner-response-class.ts
|
|
@@ -71,11 +52,6 @@ models/invite-partner-to-eisrequest-dto.ts
|
|
|
71
52
|
models/is-blacklisted-response-class.ts
|
|
72
53
|
models/list-blacklist-items-response-class.ts
|
|
73
54
|
models/list-blacklist-reasons-response-class.ts
|
|
74
|
-
models/list-partner-hierarchies-response-class.ts
|
|
75
|
-
models/list-partner-hierarchy-node-history-response-class.ts
|
|
76
|
-
models/list-partner-hierarchy-nodes-response-class.ts
|
|
77
|
-
models/list-partner-hierarchy-operations-response-class.ts
|
|
78
|
-
models/list-partner-hierarchy-types-response-class.ts
|
|
79
55
|
models/list-partner-relation-class.ts
|
|
80
56
|
models/list-partner-relation-types-class.ts
|
|
81
57
|
models/list-partner-types-response-class.ts
|
|
@@ -87,16 +63,7 @@ models/map-partner-to-account-response-class.ts
|
|
|
87
63
|
models/mapped-account-from-partner-class.ts
|
|
88
64
|
models/merge-partners-request-dto.ts
|
|
89
65
|
models/merge-partners-response-class.ts
|
|
90
|
-
models/move-partner-hierarchy-node-request-dto.ts
|
|
91
|
-
models/move-partner-hierarchy-node-response-class.ts
|
|
92
66
|
models/partner-class.ts
|
|
93
|
-
models/partner-hierarchy-async-operation-response-class.ts
|
|
94
|
-
models/partner-hierarchy-class.ts
|
|
95
|
-
models/partner-hierarchy-node-class.ts
|
|
96
|
-
models/partner-hierarchy-node-history-class.ts
|
|
97
|
-
models/partner-hierarchy-node-tree-class.ts
|
|
98
|
-
models/partner-hierarchy-operation-class.ts
|
|
99
|
-
models/partner-hierarchy-type-class.ts
|
|
100
67
|
models/partner-relation-class.ts
|
|
101
68
|
models/partner-relation-type-class.ts
|
|
102
69
|
models/partner-type-class.ts
|
|
@@ -106,17 +73,9 @@ models/related-partner-data-class.ts
|
|
|
106
73
|
models/role-class.ts
|
|
107
74
|
models/tag-class.ts
|
|
108
75
|
models/tag-partner-request-dto-rest.ts
|
|
109
|
-
models/unassign-partner-hierarchy-node-response-class.ts
|
|
110
76
|
models/update-blacklist-reason-request-dto.ts
|
|
111
77
|
models/update-blacklist-reason-response-class.ts
|
|
112
78
|
models/update-blacklist-reason-status-request-dto.ts
|
|
113
|
-
models/update-partner-hierarchy-node-request-dto.ts
|
|
114
|
-
models/update-partner-hierarchy-node-response-class.ts
|
|
115
|
-
models/update-partner-hierarchy-request-dto.ts
|
|
116
|
-
models/update-partner-hierarchy-response-class.ts
|
|
117
|
-
models/update-partner-hierarchy-tree-request-body-dto.ts
|
|
118
|
-
models/update-partner-hierarchy-type-request-dto.ts
|
|
119
|
-
models/update-partner-hierarchy-type-response-class.ts
|
|
120
79
|
models/update-partner-relation-request-dto-rest.ts
|
|
121
80
|
models/update-partner-request-dto.ts
|
|
122
81
|
models/update-partner-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/partner-sdk@1.23.1-beta.
|
|
20
|
+
npm install @emilgroup/partner-sdk@1.23.1-beta.7 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk@1.23.1-beta.
|
|
24
|
+
yarn add @emilgroup/partner-sdk@1.23.1-beta.7
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PartnersApi`.
|
package/api/blacklist-api.ts
CHANGED
|
@@ -25,7 +25,7 @@ import { CreateBlacklistItemRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateBlacklistItemResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetBlacklistItemResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
@@ -326,7 +326,7 @@ export const BlacklistApiFp = function(configuration?: Configuration) {
|
|
|
326
326
|
* @param {*} [options] Override http request option.
|
|
327
327
|
* @throws {RequiredError}
|
|
328
328
|
*/
|
|
329
|
-
async deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
329
|
+
async deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
330
330
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBlacklistItem(code, authorization, options);
|
|
331
331
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
332
332
|
},
|
|
@@ -401,7 +401,7 @@ export const BlacklistApiFactory = function (configuration?: Configuration, base
|
|
|
401
401
|
* @param {*} [options] Override http request option.
|
|
402
402
|
* @throws {RequiredError}
|
|
403
403
|
*/
|
|
404
|
-
deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
404
|
+
deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
405
405
|
return localVarFp.deleteBlacklistItem(code, authorization, options).then((request) => request(axios, basePath));
|
|
406
406
|
},
|
|
407
407
|
/**
|
|
@@ -25,7 +25,7 @@ import { CreateBlacklistReasonRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateBlacklistReasonResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetBlacklistReasonResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
@@ -387,7 +387,7 @@ export const BlacklistReasonsApiFp = function(configuration?: Configuration) {
|
|
|
387
387
|
* @param {*} [options] Override http request option.
|
|
388
388
|
* @throws {RequiredError}
|
|
389
389
|
*/
|
|
390
|
-
async deleteBlacklistReason(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
390
|
+
async deleteBlacklistReason(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
391
391
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBlacklistReason(code, authorization, options);
|
|
392
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
393
|
},
|
|
@@ -476,7 +476,7 @@ export const BlacklistReasonsApiFactory = function (configuration?: Configuratio
|
|
|
476
476
|
* @param {*} [options] Override http request option.
|
|
477
477
|
* @throws {RequiredError}
|
|
478
478
|
*/
|
|
479
|
-
deleteBlacklistReason(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
479
|
+
deleteBlacklistReason(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
480
480
|
return localVarFp.deleteBlacklistReason(code, authorization, options).then((request) => request(axios, basePath));
|
|
481
481
|
},
|
|
482
482
|
/**
|
|
@@ -25,10 +25,10 @@ import { InlineResponse200 } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { InlineResponse503 } from '../models';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* DefaultApi - axios parameter creator
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
34
|
* Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
@@ -66,11 +66,11 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* DefaultApi - functional programming interface
|
|
70
70
|
* @export
|
|
71
71
|
*/
|
|
72
|
-
export const
|
|
73
|
-
const localVarAxiosParamCreator =
|
|
72
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
74
74
|
return {
|
|
75
75
|
/**
|
|
76
76
|
* Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
@@ -86,11 +86,11 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* DefaultApi - factory interface
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
export const
|
|
93
|
-
const localVarFp =
|
|
92
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
93
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
96
|
* Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
@@ -105,20 +105,20 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* DefaultApi - object-oriented interface
|
|
109
109
|
* @export
|
|
110
|
-
* @class
|
|
110
|
+
* @class DefaultApi
|
|
111
111
|
* @extends {BaseAPI}
|
|
112
112
|
*/
|
|
113
|
-
export class
|
|
113
|
+
export class DefaultApi extends BaseAPI {
|
|
114
114
|
/**
|
|
115
115
|
* Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
116
116
|
* @summary Health Check
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
|
-
* @memberof
|
|
119
|
+
* @memberof DefaultApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return
|
|
122
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
package/api/partners-api.ts
CHANGED
|
@@ -298,11 +298,11 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
298
298
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
299
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
300
300
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
301
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode
|
|
301
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
302
302
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
303
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels
|
|
303
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
|
|
304
304
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags, partnerTagLabels<i>
|
|
305
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode
|
|
305
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
306
306
|
* @param {*} [options] Override http request option.
|
|
307
307
|
* @throws {RequiredError}
|
|
308
308
|
*/
|
|
@@ -439,86 +439,6 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
439
439
|
|
|
440
440
|
|
|
441
441
|
|
|
442
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
443
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
444
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
445
|
-
|
|
446
|
-
return {
|
|
447
|
-
url: toPathString(localVarUrlObj),
|
|
448
|
-
options: localVarRequestOptions,
|
|
449
|
-
};
|
|
450
|
-
},
|
|
451
|
-
/**
|
|
452
|
-
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
453
|
-
* @summary List sub-partners
|
|
454
|
-
* @param {string} code Unique identifier for the object.
|
|
455
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
456
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
457
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
458
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
459
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
460
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
461
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags, partnerTagLabels<i>
|
|
462
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
463
|
-
* @param {*} [options] Override http request option.
|
|
464
|
-
* @throws {RequiredError}
|
|
465
|
-
*/
|
|
466
|
-
listSubPartners: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
467
|
-
// verify required parameter 'code' is not null or undefined
|
|
468
|
-
assertParamExists('listSubPartners', 'code', code)
|
|
469
|
-
const localVarPath = `/partnerservice/v1/partners/{code}/sub-partners`
|
|
470
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
471
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
472
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
473
|
-
let baseOptions;
|
|
474
|
-
let baseAccessToken;
|
|
475
|
-
if (configuration) {
|
|
476
|
-
baseOptions = configuration.baseOptions;
|
|
477
|
-
baseAccessToken = configuration.accessToken;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
481
|
-
const localVarHeaderParameter = {} as any;
|
|
482
|
-
const localVarQueryParameter = {} as any;
|
|
483
|
-
|
|
484
|
-
// authentication bearer required
|
|
485
|
-
// http bearer authentication required
|
|
486
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
487
|
-
|
|
488
|
-
if (pageSize !== undefined) {
|
|
489
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
if (pageToken !== undefined) {
|
|
493
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
if (filter !== undefined) {
|
|
497
|
-
localVarQueryParameter['filter'] = filter;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
if (search !== undefined) {
|
|
501
|
-
localVarQueryParameter['search'] = search;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
if (order !== undefined) {
|
|
505
|
-
localVarQueryParameter['order'] = order;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
if (expand !== undefined) {
|
|
509
|
-
localVarQueryParameter['expand'] = expand;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
if (filters !== undefined) {
|
|
513
|
-
localVarQueryParameter['filters'] = filters;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
517
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
442
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
523
443
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
524
444
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -805,11 +725,11 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
805
725
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
806
726
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
807
727
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
808
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode
|
|
728
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
809
729
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
810
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels
|
|
730
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
|
|
811
731
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags, partnerTagLabels<i>
|
|
812
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode
|
|
732
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
813
733
|
* @param {*} [options] Override http request option.
|
|
814
734
|
* @throws {RequiredError}
|
|
815
735
|
*/
|
|
@@ -836,25 +756,6 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
836
756
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
837
757
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
838
758
|
},
|
|
839
|
-
/**
|
|
840
|
-
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
841
|
-
* @summary List sub-partners
|
|
842
|
-
* @param {string} code Unique identifier for the object.
|
|
843
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
844
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
845
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
846
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
847
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
848
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
849
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags, partnerTagLabels<i>
|
|
850
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
851
|
-
* @param {*} [options] Override http request option.
|
|
852
|
-
* @throws {RequiredError}
|
|
853
|
-
*/
|
|
854
|
-
async listSubPartners(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>> {
|
|
855
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
856
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
857
|
-
},
|
|
858
759
|
/**
|
|
859
760
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
|
|
860
761
|
* @summary Update the partner
|
|
@@ -978,11 +879,11 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
978
879
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
979
880
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
980
881
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
981
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode
|
|
882
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
982
883
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
983
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels
|
|
884
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
|
|
984
885
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags, partnerTagLabels<i>
|
|
985
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode
|
|
886
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
986
887
|
* @param {*} [options] Override http request option.
|
|
987
888
|
* @throws {RequiredError}
|
|
988
889
|
*/
|
|
@@ -1007,24 +908,6 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
1007
908
|
listRelationsForPartner(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass> {
|
|
1008
909
|
return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1009
910
|
},
|
|
1010
|
-
/**
|
|
1011
|
-
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
1012
|
-
* @summary List sub-partners
|
|
1013
|
-
* @param {string} code Unique identifier for the object.
|
|
1014
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1015
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1016
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1017
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1018
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1019
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
1020
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags, partnerTagLabels<i>
|
|
1021
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1022
|
-
* @param {*} [options] Override http request option.
|
|
1023
|
-
* @throws {RequiredError}
|
|
1024
|
-
*/
|
|
1025
|
-
listSubPartners(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass> {
|
|
1026
|
-
return localVarFp.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1027
|
-
},
|
|
1028
911
|
/**
|
|
1029
912
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
|
|
1030
913
|
* @summary Update the partner
|
|
@@ -1215,7 +1098,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1215
1098
|
readonly pageToken?: string
|
|
1216
1099
|
|
|
1217
1100
|
/**
|
|
1218
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode
|
|
1101
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
1219
1102
|
* @type {string}
|
|
1220
1103
|
* @memberof PartnersApiListPartners
|
|
1221
1104
|
*/
|
|
@@ -1229,7 +1112,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1229
1112
|
readonly search?: string
|
|
1230
1113
|
|
|
1231
1114
|
/**
|
|
1232
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels
|
|
1115
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
|
|
1233
1116
|
* @type {string}
|
|
1234
1117
|
* @memberof PartnersApiListPartners
|
|
1235
1118
|
*/
|
|
@@ -1243,7 +1126,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1243
1126
|
readonly expand?: string
|
|
1244
1127
|
|
|
1245
1128
|
/**
|
|
1246
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode
|
|
1129
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
1247
1130
|
* @type {string}
|
|
1248
1131
|
* @memberof PartnersApiListPartners
|
|
1249
1132
|
*/
|
|
@@ -1320,76 +1203,6 @@ export interface PartnersApiListRelationsForPartnerRequest {
|
|
|
1320
1203
|
readonly filters?: string
|
|
1321
1204
|
}
|
|
1322
1205
|
|
|
1323
|
-
/**
|
|
1324
|
-
* Request parameters for listSubPartners operation in PartnersApi.
|
|
1325
|
-
* @export
|
|
1326
|
-
* @interface PartnersApiListSubPartnersRequest
|
|
1327
|
-
*/
|
|
1328
|
-
export interface PartnersApiListSubPartnersRequest {
|
|
1329
|
-
/**
|
|
1330
|
-
* Unique identifier for the object.
|
|
1331
|
-
* @type {string}
|
|
1332
|
-
* @memberof PartnersApiListSubPartners
|
|
1333
|
-
*/
|
|
1334
|
-
readonly code: string
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1338
|
-
* @type {string}
|
|
1339
|
-
* @memberof PartnersApiListSubPartners
|
|
1340
|
-
*/
|
|
1341
|
-
readonly authorization?: string
|
|
1342
|
-
|
|
1343
|
-
/**
|
|
1344
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1345
|
-
* @type {number}
|
|
1346
|
-
* @memberof PartnersApiListSubPartners
|
|
1347
|
-
*/
|
|
1348
|
-
readonly pageSize?: number
|
|
1349
|
-
|
|
1350
|
-
/**
|
|
1351
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1352
|
-
* @type {string}
|
|
1353
|
-
* @memberof PartnersApiListSubPartners
|
|
1354
|
-
*/
|
|
1355
|
-
readonly pageToken?: string
|
|
1356
|
-
|
|
1357
|
-
/**
|
|
1358
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1359
|
-
* @type {string}
|
|
1360
|
-
* @memberof PartnersApiListSubPartners
|
|
1361
|
-
*/
|
|
1362
|
-
readonly filter?: string
|
|
1363
|
-
|
|
1364
|
-
/**
|
|
1365
|
-
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1366
|
-
* @type {string}
|
|
1367
|
-
* @memberof PartnersApiListSubPartners
|
|
1368
|
-
*/
|
|
1369
|
-
readonly search?: string
|
|
1370
|
-
|
|
1371
|
-
/**
|
|
1372
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
1373
|
-
* @type {string}
|
|
1374
|
-
* @memberof PartnersApiListSubPartners
|
|
1375
|
-
*/
|
|
1376
|
-
readonly order?: string
|
|
1377
|
-
|
|
1378
|
-
/**
|
|
1379
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags, partnerTagLabels<i>
|
|
1380
|
-
* @type {string}
|
|
1381
|
-
* @memberof PartnersApiListSubPartners
|
|
1382
|
-
*/
|
|
1383
|
-
readonly expand?: string
|
|
1384
|
-
|
|
1385
|
-
/**
|
|
1386
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1387
|
-
* @type {string}
|
|
1388
|
-
* @memberof PartnersApiListSubPartners
|
|
1389
|
-
*/
|
|
1390
|
-
readonly filters?: string
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
1206
|
/**
|
|
1394
1207
|
* Request parameters for mergePartners operation in PartnersApi.
|
|
1395
1208
|
* @export
|
|
@@ -1586,18 +1399,6 @@ export class PartnersApi extends BaseAPI {
|
|
|
1586
1399
|
return PartnersApiFp(this.configuration).listRelationsForPartner(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1587
1400
|
}
|
|
1588
1401
|
|
|
1589
|
-
/**
|
|
1590
|
-
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
1591
|
-
* @summary List sub-partners
|
|
1592
|
-
* @param {PartnersApiListSubPartnersRequest} requestParameters Request parameters.
|
|
1593
|
-
* @param {*} [options] Override http request option.
|
|
1594
|
-
* @throws {RequiredError}
|
|
1595
|
-
* @memberof PartnersApi
|
|
1596
|
-
*/
|
|
1597
|
-
public listSubPartners(requestParameters: PartnersApiListSubPartnersRequest, options?: AxiosRequestConfig) {
|
|
1598
|
-
return PartnersApiFp(this.configuration).listSubPartners(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
1402
|
/**
|
|
1602
1403
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
|
|
1603
1404
|
* @summary Update the partner
|
package/api.ts
CHANGED
|
@@ -22,11 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { BlacklistApi } from './api';
|
|
24
24
|
import { BlacklistReasonsApi } from './api';
|
|
25
|
-
import {
|
|
26
|
-
import { PartnerHierarchiesApi } from './api';
|
|
27
|
-
import { PartnerHierarchyNodesApi } from './api';
|
|
28
|
-
import { PartnerHierarchyOperationsApi } from './api';
|
|
29
|
-
import { PartnerHierarchyTypesApi } from './api';
|
|
25
|
+
import { DefaultApi } from './api';
|
|
30
26
|
import { PartnerInvitationsApi } from './api';
|
|
31
27
|
import { PartnerRelationsApi } from './api';
|
|
32
28
|
import { PartnerTagsApi } from './api';
|
|
@@ -37,11 +33,7 @@ import { PartnersApi } from './api';
|
|
|
37
33
|
|
|
38
34
|
export * from './api/blacklist-api';
|
|
39
35
|
export * from './api/blacklist-reasons-api';
|
|
40
|
-
export * from './api/
|
|
41
|
-
export * from './api/partner-hierarchies-api';
|
|
42
|
-
export * from './api/partner-hierarchy-nodes-api';
|
|
43
|
-
export * from './api/partner-hierarchy-operations-api';
|
|
44
|
-
export * from './api/partner-hierarchy-types-api';
|
|
36
|
+
export * from './api/default-api';
|
|
45
37
|
export * from './api/partner-invitations-api';
|
|
46
38
|
export * from './api/partner-relations-api';
|
|
47
39
|
export * from './api/partner-tags-api';
|
package/base.ts
CHANGED
|
@@ -53,7 +53,6 @@ export enum Environment {
|
|
|
53
53
|
Staging = 'https://apiv2-staging.emil.de',
|
|
54
54
|
Development = 'https://apiv2-dev.emil.de',
|
|
55
55
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
56
|
-
StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
let _retry_count = 0
|
|
@@ -14,7 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateBlacklistItemRequestDto } from '../models';
|
|
16
16
|
import { CreateBlacklistItemResponseClass } from '../models';
|
|
17
|
-
import {
|
|
17
|
+
import { DeleteResponseClass } from '../models';
|
|
18
18
|
import { GetBlacklistItemResponseClass } from '../models';
|
|
19
19
|
import { IsBlacklistedResponseClass } from '../models';
|
|
20
20
|
import { ListBlacklistItemsResponseClass } from '../models';
|
|
@@ -97,7 +97,7 @@ export declare const BlacklistApiFp: (configuration?: Configuration) => {
|
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
|
-
deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
100
|
+
deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
101
101
|
/**
|
|
102
102
|
* Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
|
|
103
103
|
* @summary Retrieve the blacklist item
|
|
@@ -154,7 +154,7 @@ export declare const BlacklistApiFactory: (configuration?: Configuration, basePa
|
|
|
154
154
|
* @param {*} [options] Override http request option.
|
|
155
155
|
* @throws {RequiredError}
|
|
156
156
|
*/
|
|
157
|
-
deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
157
|
+
deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
158
158
|
/**
|
|
159
159
|
* Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
|
|
160
160
|
* @summary Retrieve the blacklist item
|
|
@@ -344,7 +344,7 @@ export declare class BlacklistApi extends BaseAPI {
|
|
|
344
344
|
* @throws {RequiredError}
|
|
345
345
|
* @memberof BlacklistApi
|
|
346
346
|
*/
|
|
347
|
-
deleteBlacklistItem(requestParameters: BlacklistApiDeleteBlacklistItemRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
347
|
+
deleteBlacklistItem(requestParameters: BlacklistApiDeleteBlacklistItemRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
|
|
348
348
|
/**
|
|
349
349
|
* Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
|
|
350
350
|
* @summary Retrieve the blacklist item
|