@emilgroup/partner-sdk-node 1.23.1-beta.6 → 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 -1170
- package/api/partner-hierarchy-nodes-api.ts +0 -1201
- package/api/partner-hierarchy-operations-api.ts +0 -367
- package/api/partner-hierarchy-types-api.ts +0 -683
- package/dist/api/partner-hierarchies-api.d.ts +0 -655
- package/dist/api/partner-hierarchies-api.js +0 -1041
- package/dist/api/partner-hierarchy-nodes-api.d.ts +0 -674
- package/dist/api/partner-hierarchy-nodes-api.js +0 -1053
- package/dist/api/partner-hierarchy-operations-api.d.ts +0 -215
- package/dist/api/partner-hierarchy-operations-api.js +0 -362
- package/dist/api/partner-hierarchy-types-api.d.ts +0 -385
- package/dist/api/partner-hierarchy-types-api.js +0 -640
- 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-node@1.23.1-beta.
|
|
20
|
+
npm install @emilgroup/partner-sdk-node@1.23.1-beta.7 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk-node@1.23.1-beta.
|
|
24
|
+
yarn add @emilgroup/partner-sdk-node@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
|
|
@@ -330,7 +330,7 @@ export const BlacklistApiFp = function(configuration?: Configuration) {
|
|
|
330
330
|
* @param {*} [options] Override http request option.
|
|
331
331
|
* @throws {RequiredError}
|
|
332
332
|
*/
|
|
333
|
-
async deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
333
|
+
async deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
334
334
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBlacklistItem(code, authorization, options);
|
|
335
335
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
336
336
|
},
|
|
@@ -405,7 +405,7 @@ export const BlacklistApiFactory = function (configuration?: Configuration, base
|
|
|
405
405
|
* @param {*} [options] Override http request option.
|
|
406
406
|
* @throws {RequiredError}
|
|
407
407
|
*/
|
|
408
|
-
deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
408
|
+
deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
409
409
|
return localVarFp.deleteBlacklistItem(code, authorization, options).then((request) => request(axios, basePath));
|
|
410
410
|
},
|
|
411
411
|
/**
|
|
@@ -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
|
|
@@ -391,7 +391,7 @@ export const BlacklistReasonsApiFp = function(configuration?: Configuration) {
|
|
|
391
391
|
* @param {*} [options] Override http request option.
|
|
392
392
|
* @throws {RequiredError}
|
|
393
393
|
*/
|
|
394
|
-
async deleteBlacklistReason(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
394
|
+
async deleteBlacklistReason(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
395
395
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBlacklistReason(code, authorization, options);
|
|
396
396
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
397
397
|
},
|
|
@@ -480,7 +480,7 @@ export const BlacklistReasonsApiFactory = function (configuration?: Configuratio
|
|
|
480
480
|
* @param {*} [options] Override http request option.
|
|
481
481
|
* @throws {RequiredError}
|
|
482
482
|
*/
|
|
483
|
-
deleteBlacklistReason(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
483
|
+
deleteBlacklistReason(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
484
484
|
return localVarFp.deleteBlacklistReason(code, authorization, options).then((request) => request(axios, basePath));
|
|
485
485
|
},
|
|
486
486
|
/**
|
|
@@ -29,10 +29,10 @@ import { InlineResponse503 } from '../models';
|
|
|
29
29
|
import { URL, URLSearchParams } from 'url';
|
|
30
30
|
const FormData = require('form-data');
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* DefaultApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
* 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.
|
|
@@ -70,11 +70,11 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* DefaultApi - functional programming interface
|
|
74
74
|
* @export
|
|
75
75
|
*/
|
|
76
|
-
export const
|
|
77
|
-
const localVarAxiosParamCreator =
|
|
76
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
77
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
78
78
|
return {
|
|
79
79
|
/**
|
|
80
80
|
* 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.
|
|
@@ -90,11 +90,11 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* DefaultApi - factory interface
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
export const
|
|
97
|
-
const localVarFp =
|
|
96
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
97
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* 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.
|
|
@@ -109,20 +109,20 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* DefaultApi - object-oriented interface
|
|
113
113
|
* @export
|
|
114
|
-
* @class
|
|
114
|
+
* @class DefaultApi
|
|
115
115
|
* @extends {BaseAPI}
|
|
116
116
|
*/
|
|
117
|
-
export class
|
|
117
|
+
export class DefaultApi extends BaseAPI {
|
|
118
118
|
/**
|
|
119
119
|
* 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.
|
|
120
120
|
* @summary Health Check
|
|
121
121
|
* @param {*} [options] Override http request option.
|
|
122
122
|
* @throws {RequiredError}
|
|
123
|
-
* @memberof
|
|
123
|
+
* @memberof DefaultApi
|
|
124
124
|
*/
|
|
125
125
|
public check(options?: AxiosRequestConfig) {
|
|
126
|
-
return
|
|
126
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
127
127
|
}
|
|
128
128
|
}
|
package/api/partners-api.ts
CHANGED
|
@@ -302,11 +302,11 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
302
302
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
303
303
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
304
304
|
* @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.
|
|
305
|
-
* @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
|
|
305
|
+
* @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>
|
|
306
306
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
307
|
-
* @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
|
|
307
|
+
* @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>
|
|
308
308
|
* @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>
|
|
309
|
-
* @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
|
|
309
|
+
* @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>
|
|
310
310
|
* @param {*} [options] Override http request option.
|
|
311
311
|
* @throws {RequiredError}
|
|
312
312
|
*/
|
|
@@ -443,86 +443,6 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
443
443
|
|
|
444
444
|
|
|
445
445
|
|
|
446
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
447
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
448
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
449
|
-
|
|
450
|
-
return {
|
|
451
|
-
url: toPathString(localVarUrlObj),
|
|
452
|
-
options: localVarRequestOptions,
|
|
453
|
-
};
|
|
454
|
-
},
|
|
455
|
-
/**
|
|
456
|
-
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
457
|
-
* @summary List sub-partners
|
|
458
|
-
* @param {string} code Unique identifier for the object.
|
|
459
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
460
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
461
|
-
* @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.
|
|
462
|
-
* @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>
|
|
463
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
464
|
-
* @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>
|
|
465
|
-
* @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>
|
|
466
|
-
* @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>
|
|
467
|
-
* @param {*} [options] Override http request option.
|
|
468
|
-
* @throws {RequiredError}
|
|
469
|
-
*/
|
|
470
|
-
listSubPartners: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
471
|
-
// verify required parameter 'code' is not null or undefined
|
|
472
|
-
assertParamExists('listSubPartners', 'code', code)
|
|
473
|
-
const localVarPath = `/partnerservice/v1/partners/{code}/sub-partners`
|
|
474
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
475
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
476
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
477
|
-
let baseOptions;
|
|
478
|
-
let baseAccessToken;
|
|
479
|
-
if (configuration) {
|
|
480
|
-
baseOptions = configuration.baseOptions;
|
|
481
|
-
baseAccessToken = configuration.accessToken;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
485
|
-
const localVarHeaderParameter = {} as any;
|
|
486
|
-
const localVarQueryParameter = {} as any;
|
|
487
|
-
|
|
488
|
-
// authentication bearer required
|
|
489
|
-
// http bearer authentication required
|
|
490
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
491
|
-
|
|
492
|
-
if (pageSize !== undefined) {
|
|
493
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
if (pageToken !== undefined) {
|
|
497
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
if (filter !== undefined) {
|
|
501
|
-
localVarQueryParameter['filter'] = filter;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
if (search !== undefined) {
|
|
505
|
-
localVarQueryParameter['search'] = search;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
if (order !== undefined) {
|
|
509
|
-
localVarQueryParameter['order'] = order;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
if (expand !== undefined) {
|
|
513
|
-
localVarQueryParameter['expand'] = expand;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
if (filters !== undefined) {
|
|
517
|
-
localVarQueryParameter['filters'] = filters;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
521
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
446
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
527
447
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
528
448
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -809,11 +729,11 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
809
729
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
810
730
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
811
731
|
* @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.
|
|
812
|
-
* @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
|
|
732
|
+
* @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>
|
|
813
733
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
814
|
-
* @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
|
|
734
|
+
* @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>
|
|
815
735
|
* @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>
|
|
816
|
-
* @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
|
|
736
|
+
* @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>
|
|
817
737
|
* @param {*} [options] Override http request option.
|
|
818
738
|
* @throws {RequiredError}
|
|
819
739
|
*/
|
|
@@ -840,25 +760,6 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
840
760
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
841
761
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
842
762
|
},
|
|
843
|
-
/**
|
|
844
|
-
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
845
|
-
* @summary List sub-partners
|
|
846
|
-
* @param {string} code Unique identifier for the object.
|
|
847
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
848
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
849
|
-
* @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.
|
|
850
|
-
* @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>
|
|
851
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
852
|
-
* @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>
|
|
853
|
-
* @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>
|
|
854
|
-
* @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>
|
|
855
|
-
* @param {*} [options] Override http request option.
|
|
856
|
-
* @throws {RequiredError}
|
|
857
|
-
*/
|
|
858
|
-
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>> {
|
|
859
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
860
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
861
|
-
},
|
|
862
763
|
/**
|
|
863
764
|
* 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\"
|
|
864
765
|
* @summary Update the partner
|
|
@@ -982,11 +883,11 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
982
883
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
983
884
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
984
885
|
* @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.
|
|
985
|
-
* @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
|
|
886
|
+
* @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>
|
|
986
887
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
987
|
-
* @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
|
|
888
|
+
* @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>
|
|
988
889
|
* @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>
|
|
989
|
-
* @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
|
|
890
|
+
* @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>
|
|
990
891
|
* @param {*} [options] Override http request option.
|
|
991
892
|
* @throws {RequiredError}
|
|
992
893
|
*/
|
|
@@ -1011,24 +912,6 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
1011
912
|
listRelationsForPartner(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass> {
|
|
1012
913
|
return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1013
914
|
},
|
|
1014
|
-
/**
|
|
1015
|
-
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
1016
|
-
* @summary List sub-partners
|
|
1017
|
-
* @param {string} code Unique identifier for the object.
|
|
1018
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1019
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1020
|
-
* @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.
|
|
1021
|
-
* @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>
|
|
1022
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1023
|
-
* @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>
|
|
1024
|
-
* @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>
|
|
1025
|
-
* @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>
|
|
1026
|
-
* @param {*} [options] Override http request option.
|
|
1027
|
-
* @throws {RequiredError}
|
|
1028
|
-
*/
|
|
1029
|
-
listSubPartners(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass> {
|
|
1030
|
-
return localVarFp.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1031
|
-
},
|
|
1032
915
|
/**
|
|
1033
916
|
* 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\"
|
|
1034
917
|
* @summary Update the partner
|
|
@@ -1219,7 +1102,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1219
1102
|
readonly pageToken?: string
|
|
1220
1103
|
|
|
1221
1104
|
/**
|
|
1222
|
-
* 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
|
|
1105
|
+
* 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>
|
|
1223
1106
|
* @type {string}
|
|
1224
1107
|
* @memberof PartnersApiListPartners
|
|
1225
1108
|
*/
|
|
@@ -1233,7 +1116,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1233
1116
|
readonly search?: string
|
|
1234
1117
|
|
|
1235
1118
|
/**
|
|
1236
|
-
* 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
|
|
1119
|
+
* 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>
|
|
1237
1120
|
* @type {string}
|
|
1238
1121
|
* @memberof PartnersApiListPartners
|
|
1239
1122
|
*/
|
|
@@ -1247,7 +1130,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1247
1130
|
readonly expand?: string
|
|
1248
1131
|
|
|
1249
1132
|
/**
|
|
1250
|
-
* 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
|
|
1133
|
+
* 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>
|
|
1251
1134
|
* @type {string}
|
|
1252
1135
|
* @memberof PartnersApiListPartners
|
|
1253
1136
|
*/
|
|
@@ -1324,76 +1207,6 @@ export interface PartnersApiListRelationsForPartnerRequest {
|
|
|
1324
1207
|
readonly filters?: string
|
|
1325
1208
|
}
|
|
1326
1209
|
|
|
1327
|
-
/**
|
|
1328
|
-
* Request parameters for listSubPartners operation in PartnersApi.
|
|
1329
|
-
* @export
|
|
1330
|
-
* @interface PartnersApiListSubPartnersRequest
|
|
1331
|
-
*/
|
|
1332
|
-
export interface PartnersApiListSubPartnersRequest {
|
|
1333
|
-
/**
|
|
1334
|
-
* Unique identifier for the object.
|
|
1335
|
-
* @type {string}
|
|
1336
|
-
* @memberof PartnersApiListSubPartners
|
|
1337
|
-
*/
|
|
1338
|
-
readonly code: string
|
|
1339
|
-
|
|
1340
|
-
/**
|
|
1341
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1342
|
-
* @type {string}
|
|
1343
|
-
* @memberof PartnersApiListSubPartners
|
|
1344
|
-
*/
|
|
1345
|
-
readonly authorization?: string
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1349
|
-
* @type {number}
|
|
1350
|
-
* @memberof PartnersApiListSubPartners
|
|
1351
|
-
*/
|
|
1352
|
-
readonly pageSize?: number
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
* 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.
|
|
1356
|
-
* @type {string}
|
|
1357
|
-
* @memberof PartnersApiListSubPartners
|
|
1358
|
-
*/
|
|
1359
|
-
readonly pageToken?: string
|
|
1360
|
-
|
|
1361
|
-
/**
|
|
1362
|
-
* 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>
|
|
1363
|
-
* @type {string}
|
|
1364
|
-
* @memberof PartnersApiListSubPartners
|
|
1365
|
-
*/
|
|
1366
|
-
readonly filter?: string
|
|
1367
|
-
|
|
1368
|
-
/**
|
|
1369
|
-
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1370
|
-
* @type {string}
|
|
1371
|
-
* @memberof PartnersApiListSubPartners
|
|
1372
|
-
*/
|
|
1373
|
-
readonly search?: string
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* 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>
|
|
1377
|
-
* @type {string}
|
|
1378
|
-
* @memberof PartnersApiListSubPartners
|
|
1379
|
-
*/
|
|
1380
|
-
readonly order?: string
|
|
1381
|
-
|
|
1382
|
-
/**
|
|
1383
|
-
* 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>
|
|
1384
|
-
* @type {string}
|
|
1385
|
-
* @memberof PartnersApiListSubPartners
|
|
1386
|
-
*/
|
|
1387
|
-
readonly expand?: string
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* 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>
|
|
1391
|
-
* @type {string}
|
|
1392
|
-
* @memberof PartnersApiListSubPartners
|
|
1393
|
-
*/
|
|
1394
|
-
readonly filters?: string
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
1210
|
/**
|
|
1398
1211
|
* Request parameters for mergePartners operation in PartnersApi.
|
|
1399
1212
|
* @export
|
|
@@ -1590,18 +1403,6 @@ export class PartnersApi extends BaseAPI {
|
|
|
1590
1403
|
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));
|
|
1591
1404
|
}
|
|
1592
1405
|
|
|
1593
|
-
/**
|
|
1594
|
-
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
1595
|
-
* @summary List sub-partners
|
|
1596
|
-
* @param {PartnersApiListSubPartnersRequest} requestParameters Request parameters.
|
|
1597
|
-
* @param {*} [options] Override http request option.
|
|
1598
|
-
* @throws {RequiredError}
|
|
1599
|
-
* @memberof PartnersApi
|
|
1600
|
-
*/
|
|
1601
|
-
public listSubPartners(requestParameters: PartnersApiListSubPartnersRequest, options?: AxiosRequestConfig) {
|
|
1602
|
-
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));
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
1406
|
/**
|
|
1606
1407
|
* 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\"
|
|
1607
1408
|
* @summary Update the partner
|
package/api.ts
CHANGED
|
@@ -26,11 +26,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { BlacklistApi } from './api';
|
|
28
28
|
import { BlacklistReasonsApi } from './api';
|
|
29
|
-
import {
|
|
30
|
-
import { PartnerHierarchiesApi } from './api';
|
|
31
|
-
import { PartnerHierarchyNodesApi } from './api';
|
|
32
|
-
import { PartnerHierarchyOperationsApi } from './api';
|
|
33
|
-
import { PartnerHierarchyTypesApi } from './api';
|
|
29
|
+
import { DefaultApi } from './api';
|
|
34
30
|
import { PartnerInvitationsApi } from './api';
|
|
35
31
|
import { PartnerRelationsApi } from './api';
|
|
36
32
|
import { PartnerTagsApi } from './api';
|
|
@@ -41,11 +37,7 @@ import { PartnersApi } from './api';
|
|
|
41
37
|
|
|
42
38
|
export * from './api/blacklist-api';
|
|
43
39
|
export * from './api/blacklist-reasons-api';
|
|
44
|
-
export * from './api/
|
|
45
|
-
export * from './api/partner-hierarchies-api';
|
|
46
|
-
export * from './api/partner-hierarchy-nodes-api';
|
|
47
|
-
export * from './api/partner-hierarchy-operations-api';
|
|
48
|
-
export * from './api/partner-hierarchy-types-api';
|
|
40
|
+
export * from './api/default-api';
|
|
49
41
|
export * from './api/partner-invitations-api';
|
|
50
42
|
export * from './api/partner-relations-api';
|
|
51
43
|
export * from './api/partner-tags-api';
|
package/base.ts
CHANGED
|
@@ -60,7 +60,6 @@ export enum Environment {
|
|
|
60
60
|
Staging = 'https://apiv2-staging.emil.de',
|
|
61
61
|
Development = 'https://apiv2-dev.emil.de',
|
|
62
62
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
63
|
-
StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
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
|