@emilgroup/partner-sdk-node 1.11.1-beta.2 → 1.11.1-beta.3
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 +3 -0
- package/README.md +2 -2
- package/api/partners-api.ts +201 -0
- package/dist/api/partners-api.d.ts +119 -0
- package/dist/api/partners-api.js +134 -0
- package/dist/models/grouped-related-partners-class.d.ts +31 -0
- package/dist/models/grouped-related-partners-class.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/list-related-partners-response-class.d.ts +31 -0
- package/dist/models/list-related-partners-response-class.js +15 -0
- package/dist/models/partner-relation-type-class.d.ts +12 -0
- package/dist/models/related-partner-data-class.d.ts +108 -0
- package/dist/models/related-partner-data-class.js +15 -0
- package/models/grouped-related-partners-class.ts +37 -0
- package/models/index.ts +3 -0
- package/models/list-related-partners-response-class.ts +37 -0
- package/models/partner-relation-type-class.ts +12 -0
- package/models/related-partner-data-class.ts +114 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -30,6 +30,7 @@ models/get-partner-response-class.ts
|
|
|
30
30
|
models/get-partner-type-response-class.ts
|
|
31
31
|
models/get-partner-version-response-class.ts
|
|
32
32
|
models/get-tag-response-class.ts
|
|
33
|
+
models/grouped-related-partners-class.ts
|
|
33
34
|
models/index.ts
|
|
34
35
|
models/inline-response200.ts
|
|
35
36
|
models/inline-response503.ts
|
|
@@ -41,6 +42,7 @@ models/list-partner-relation-types-class.ts
|
|
|
41
42
|
models/list-partner-types-response-class.ts
|
|
42
43
|
models/list-partner-versions-response-class.ts
|
|
43
44
|
models/list-partners-response-class.ts
|
|
45
|
+
models/list-related-partners-response-class.ts
|
|
44
46
|
models/list-tags-response-class.ts
|
|
45
47
|
models/partner-class.ts
|
|
46
48
|
models/partner-relation-class.ts
|
|
@@ -48,6 +50,7 @@ models/partner-relation-type-class.ts
|
|
|
48
50
|
models/partner-type-class.ts
|
|
49
51
|
models/partner-type-custom-schema-dto.ts
|
|
50
52
|
models/permission-class.ts
|
|
53
|
+
models/related-partner-data-class.ts
|
|
51
54
|
models/role-class.ts
|
|
52
55
|
models/tag-class.ts
|
|
53
56
|
models/tag-partner-request-dto-rest.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.11.1-beta.
|
|
20
|
+
npm install @emilgroup/partner-sdk-node@1.11.1-beta.3 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk-node@1.11.1-beta.
|
|
24
|
+
yarn add @emilgroup/partner-sdk-node@1.11.1-beta.3
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PartnersApi`.
|
package/api/partners-api.ts
CHANGED
|
@@ -31,6 +31,8 @@ import { GetPartnerResponseClass } from '../models';
|
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { ListPartnersResponseClass } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
+
import { ListRelatedPartnersResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
34
36
|
import { TagPartnerRequestDtoRest } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
36
38
|
import { UpdatePartnerRequestDto } from '../models';
|
|
@@ -255,6 +257,86 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
255
257
|
|
|
256
258
|
|
|
257
259
|
|
|
260
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
263
|
+
|
|
264
|
+
return {
|
|
265
|
+
url: toPathString(localVarUrlObj),
|
|
266
|
+
options: localVarRequestOptions,
|
|
267
|
+
};
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
271
|
+
* @summary List grouped relations for partner
|
|
272
|
+
* @param {string} code
|
|
273
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
274
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
275
|
+
* @param {any} [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.
|
|
276
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
277
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
278
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
279
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
280
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
listRelationsForPartner: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
285
|
+
// verify required parameter 'code' is not null or undefined
|
|
286
|
+
assertParamExists('listRelationsForPartner', 'code', code)
|
|
287
|
+
const localVarPath = `/partnerservice/v1/partners/{code}/relations`
|
|
288
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
291
|
+
let baseOptions;
|
|
292
|
+
let baseAccessToken;
|
|
293
|
+
if (configuration) {
|
|
294
|
+
baseOptions = configuration.baseOptions;
|
|
295
|
+
baseAccessToken = configuration.accessToken;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
299
|
+
const localVarHeaderParameter = {} as any;
|
|
300
|
+
const localVarQueryParameter = {} as any;
|
|
301
|
+
|
|
302
|
+
// authentication bearer required
|
|
303
|
+
// http bearer authentication required
|
|
304
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
305
|
+
|
|
306
|
+
if (pageSize !== undefined) {
|
|
307
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if (pageToken !== undefined) {
|
|
311
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
if (filter !== undefined) {
|
|
315
|
+
localVarQueryParameter['filter'] = filter;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (search !== undefined) {
|
|
319
|
+
localVarQueryParameter['search'] = search;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (order !== undefined) {
|
|
323
|
+
localVarQueryParameter['order'] = order;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
if (expand !== undefined) {
|
|
327
|
+
localVarQueryParameter['expand'] = expand;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
if (filters !== undefined) {
|
|
331
|
+
localVarQueryParameter['filters'] = filters;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
335
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
258
340
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
341
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
342
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -431,6 +513,25 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
431
513
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
432
514
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
433
515
|
},
|
|
516
|
+
/**
|
|
517
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
518
|
+
* @summary List grouped relations for partner
|
|
519
|
+
* @param {string} code
|
|
520
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
522
|
+
* @param {any} [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.
|
|
523
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
524
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
525
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
526
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
527
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
async listRelationsForPartner(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRelatedPartnersResponseClass>> {
|
|
532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
533
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
534
|
+
},
|
|
434
535
|
/**
|
|
435
536
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
436
537
|
* @summary Update the partner
|
|
@@ -518,6 +619,24 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
518
619
|
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass> {
|
|
519
620
|
return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
520
621
|
},
|
|
622
|
+
/**
|
|
623
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
624
|
+
* @summary List grouped relations for partner
|
|
625
|
+
* @param {string} code
|
|
626
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
627
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
628
|
+
* @param {any} [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.
|
|
629
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
630
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
631
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
632
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
633
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
*/
|
|
637
|
+
listRelationsForPartner(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass> {
|
|
638
|
+
return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
639
|
+
},
|
|
521
640
|
/**
|
|
522
641
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
523
642
|
* @summary Update the partner
|
|
@@ -678,6 +797,76 @@ export interface PartnersApiListPartnersRequest {
|
|
|
678
797
|
readonly filters?: string
|
|
679
798
|
}
|
|
680
799
|
|
|
800
|
+
/**
|
|
801
|
+
* Request parameters for listRelationsForPartner operation in PartnersApi.
|
|
802
|
+
* @export
|
|
803
|
+
* @interface PartnersApiListRelationsForPartnerRequest
|
|
804
|
+
*/
|
|
805
|
+
export interface PartnersApiListRelationsForPartnerRequest {
|
|
806
|
+
/**
|
|
807
|
+
*
|
|
808
|
+
* @type {string}
|
|
809
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
810
|
+
*/
|
|
811
|
+
readonly code: string
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
815
|
+
* @type {string}
|
|
816
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
817
|
+
*/
|
|
818
|
+
readonly authorization?: string
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
822
|
+
* @type {any}
|
|
823
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
824
|
+
*/
|
|
825
|
+
readonly pageSize?: any
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* 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.
|
|
829
|
+
* @type {any}
|
|
830
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
831
|
+
*/
|
|
832
|
+
readonly pageToken?: any
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* 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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
836
|
+
* @type {string}
|
|
837
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
838
|
+
*/
|
|
839
|
+
readonly filter?: string
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
843
|
+
* @type {any}
|
|
844
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
845
|
+
*/
|
|
846
|
+
readonly search?: any
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* 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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
850
|
+
* @type {string}
|
|
851
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
852
|
+
*/
|
|
853
|
+
readonly order?: string
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* 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: partner1, partner2, partnerRelationType<i>
|
|
857
|
+
* @type {string}
|
|
858
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
859
|
+
*/
|
|
860
|
+
readonly expand?: string
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* 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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
864
|
+
* @type {string}
|
|
865
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
866
|
+
*/
|
|
867
|
+
readonly filters?: string
|
|
868
|
+
}
|
|
869
|
+
|
|
681
870
|
/**
|
|
682
871
|
* Request parameters for tagPartner operation in PartnersApi.
|
|
683
872
|
* @export
|
|
@@ -789,6 +978,18 @@ export class PartnersApi extends BaseAPI {
|
|
|
789
978
|
return PartnersApiFp(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
790
979
|
}
|
|
791
980
|
|
|
981
|
+
/**
|
|
982
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
983
|
+
* @summary List grouped relations for partner
|
|
984
|
+
* @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
|
|
985
|
+
* @param {*} [options] Override http request option.
|
|
986
|
+
* @throws {RequiredError}
|
|
987
|
+
* @memberof PartnersApi
|
|
988
|
+
*/
|
|
989
|
+
public listRelationsForPartner(requestParameters: PartnersApiListRelationsForPartnerRequest, options?: AxiosRequestConfig) {
|
|
990
|
+
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));
|
|
991
|
+
}
|
|
992
|
+
|
|
792
993
|
/**
|
|
793
994
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
794
995
|
* @summary Update the partner
|
|
@@ -17,6 +17,7 @@ import { CreatePartnerResponseClass } from '../models';
|
|
|
17
17
|
import { DeleteResponseClass } from '../models';
|
|
18
18
|
import { GetPartnerResponseClass } from '../models';
|
|
19
19
|
import { ListPartnersResponseClass } from '../models';
|
|
20
|
+
import { ListRelatedPartnersResponseClass } from '../models';
|
|
20
21
|
import { TagPartnerRequestDtoRest } from '../models';
|
|
21
22
|
import { UpdatePartnerRequestDto } from '../models';
|
|
22
23
|
import { UpdatePartnerResponseClass } from '../models';
|
|
@@ -68,6 +69,22 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
68
69
|
* @throws {RequiredError}
|
|
69
70
|
*/
|
|
70
71
|
listPartners: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
72
|
+
/**
|
|
73
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
74
|
+
* @summary List grouped relations for partner
|
|
75
|
+
* @param {string} code
|
|
76
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
77
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
78
|
+
* @param {any} [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.
|
|
79
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
80
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
81
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
82
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
83
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
listRelationsForPartner: (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
88
|
/**
|
|
72
89
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
73
90
|
* @summary Update the partner
|
|
@@ -137,6 +154,22 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
137
154
|
* @throws {RequiredError}
|
|
138
155
|
*/
|
|
139
156
|
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>>;
|
|
157
|
+
/**
|
|
158
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
159
|
+
* @summary List grouped relations for partner
|
|
160
|
+
* @param {string} code
|
|
161
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
162
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
163
|
+
* @param {any} [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.
|
|
164
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
165
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
166
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
167
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
168
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
listRelationsForPartner(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRelatedPartnersResponseClass>>;
|
|
140
173
|
/**
|
|
141
174
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
142
175
|
* @summary Update the partner
|
|
@@ -206,6 +239,22 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
206
239
|
* @throws {RequiredError}
|
|
207
240
|
*/
|
|
208
241
|
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass>;
|
|
242
|
+
/**
|
|
243
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
244
|
+
* @summary List grouped relations for partner
|
|
245
|
+
* @param {string} code
|
|
246
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
247
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
248
|
+
* @param {any} [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.
|
|
249
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
250
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
251
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
252
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
253
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
listRelationsForPartner(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass>;
|
|
209
258
|
/**
|
|
210
259
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
211
260
|
* @summary Update the partner
|
|
@@ -345,6 +394,67 @@ export interface PartnersApiListPartnersRequest {
|
|
|
345
394
|
*/
|
|
346
395
|
readonly filters?: string;
|
|
347
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* Request parameters for listRelationsForPartner operation in PartnersApi.
|
|
399
|
+
* @export
|
|
400
|
+
* @interface PartnersApiListRelationsForPartnerRequest
|
|
401
|
+
*/
|
|
402
|
+
export interface PartnersApiListRelationsForPartnerRequest {
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
407
|
+
*/
|
|
408
|
+
readonly code: string;
|
|
409
|
+
/**
|
|
410
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
|
+
* @type {string}
|
|
412
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
413
|
+
*/
|
|
414
|
+
readonly authorization?: string;
|
|
415
|
+
/**
|
|
416
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
417
|
+
* @type {any}
|
|
418
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
419
|
+
*/
|
|
420
|
+
readonly pageSize?: any;
|
|
421
|
+
/**
|
|
422
|
+
* 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.
|
|
423
|
+
* @type {any}
|
|
424
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
425
|
+
*/
|
|
426
|
+
readonly pageToken?: any;
|
|
427
|
+
/**
|
|
428
|
+
* 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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
429
|
+
* @type {string}
|
|
430
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
431
|
+
*/
|
|
432
|
+
readonly filter?: string;
|
|
433
|
+
/**
|
|
434
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
435
|
+
* @type {any}
|
|
436
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
437
|
+
*/
|
|
438
|
+
readonly search?: any;
|
|
439
|
+
/**
|
|
440
|
+
* 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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
441
|
+
* @type {string}
|
|
442
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
443
|
+
*/
|
|
444
|
+
readonly order?: string;
|
|
445
|
+
/**
|
|
446
|
+
* 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: partner1, partner2, partnerRelationType<i>
|
|
447
|
+
* @type {string}
|
|
448
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
449
|
+
*/
|
|
450
|
+
readonly expand?: string;
|
|
451
|
+
/**
|
|
452
|
+
* 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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
453
|
+
* @type {string}
|
|
454
|
+
* @memberof PartnersApiListRelationsForPartner
|
|
455
|
+
*/
|
|
456
|
+
readonly filters?: string;
|
|
457
|
+
}
|
|
348
458
|
/**
|
|
349
459
|
* Request parameters for tagPartner operation in PartnersApi.
|
|
350
460
|
* @export
|
|
@@ -438,6 +548,15 @@ export declare class PartnersApi extends BaseAPI {
|
|
|
438
548
|
* @memberof PartnersApi
|
|
439
549
|
*/
|
|
440
550
|
listPartners(requestParameters?: PartnersApiListPartnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnersResponseClass, any>>;
|
|
551
|
+
/**
|
|
552
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
553
|
+
* @summary List grouped relations for partner
|
|
554
|
+
* @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
* @memberof PartnersApi
|
|
558
|
+
*/
|
|
559
|
+
listRelationsForPartner(requestParameters: PartnersApiListRelationsForPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRelatedPartnersResponseClass, any>>;
|
|
441
560
|
/**
|
|
442
561
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
443
562
|
* @summary Update the partner
|
package/dist/api/partners-api.js
CHANGED
|
@@ -317,6 +317,82 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
317
317
|
});
|
|
318
318
|
});
|
|
319
319
|
},
|
|
320
|
+
/**
|
|
321
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
322
|
+
* @summary List grouped relations for partner
|
|
323
|
+
* @param {string} code
|
|
324
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
325
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
326
|
+
* @param {any} [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.
|
|
327
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
328
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
329
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
330
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
331
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @throws {RequiredError}
|
|
334
|
+
*/
|
|
335
|
+
listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
336
|
+
if (options === void 0) { options = {}; }
|
|
337
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
338
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
339
|
+
return __generator(this, function (_a) {
|
|
340
|
+
switch (_a.label) {
|
|
341
|
+
case 0:
|
|
342
|
+
// verify required parameter 'code' is not null or undefined
|
|
343
|
+
(0, common_1.assertParamExists)('listRelationsForPartner', 'code', code);
|
|
344
|
+
localVarPath = "/partnerservice/v1/partners/{code}/relations"
|
|
345
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
346
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
347
|
+
if (configuration) {
|
|
348
|
+
baseOptions = configuration.baseOptions;
|
|
349
|
+
baseAccessToken = configuration.accessToken;
|
|
350
|
+
}
|
|
351
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
352
|
+
localVarHeaderParameter = {};
|
|
353
|
+
localVarQueryParameter = {};
|
|
354
|
+
// authentication bearer required
|
|
355
|
+
// http bearer authentication required
|
|
356
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
357
|
+
case 1:
|
|
358
|
+
// authentication bearer required
|
|
359
|
+
// http bearer authentication required
|
|
360
|
+
_a.sent();
|
|
361
|
+
if (pageSize !== undefined) {
|
|
362
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
363
|
+
}
|
|
364
|
+
if (pageToken !== undefined) {
|
|
365
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
366
|
+
}
|
|
367
|
+
if (filter !== undefined) {
|
|
368
|
+
localVarQueryParameter['filter'] = filter;
|
|
369
|
+
}
|
|
370
|
+
if (search !== undefined) {
|
|
371
|
+
localVarQueryParameter['search'] = search;
|
|
372
|
+
}
|
|
373
|
+
if (order !== undefined) {
|
|
374
|
+
localVarQueryParameter['order'] = order;
|
|
375
|
+
}
|
|
376
|
+
if (expand !== undefined) {
|
|
377
|
+
localVarQueryParameter['expand'] = expand;
|
|
378
|
+
}
|
|
379
|
+
if (filters !== undefined) {
|
|
380
|
+
localVarQueryParameter['filters'] = filters;
|
|
381
|
+
}
|
|
382
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
383
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
384
|
+
}
|
|
385
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
386
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
387
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
388
|
+
return [2 /*return*/, {
|
|
389
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
390
|
+
options: localVarRequestOptions,
|
|
391
|
+
}];
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
},
|
|
320
396
|
/**
|
|
321
397
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
322
398
|
* @summary Update the partner
|
|
@@ -524,6 +600,34 @@ var PartnersApiFp = function (configuration) {
|
|
|
524
600
|
});
|
|
525
601
|
});
|
|
526
602
|
},
|
|
603
|
+
/**
|
|
604
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
605
|
+
* @summary List grouped relations for partner
|
|
606
|
+
* @param {string} code
|
|
607
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
608
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
609
|
+
* @param {any} [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.
|
|
610
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
611
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
612
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
613
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
614
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
*/
|
|
618
|
+
listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
619
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
620
|
+
var localVarAxiosArgs;
|
|
621
|
+
return __generator(this, function (_a) {
|
|
622
|
+
switch (_a.label) {
|
|
623
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
624
|
+
case 1:
|
|
625
|
+
localVarAxiosArgs = _a.sent();
|
|
626
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
627
|
+
}
|
|
628
|
+
});
|
|
629
|
+
});
|
|
630
|
+
},
|
|
527
631
|
/**
|
|
528
632
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
529
633
|
* @summary Update the partner
|
|
@@ -629,6 +733,24 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
629
733
|
listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
630
734
|
return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
631
735
|
},
|
|
736
|
+
/**
|
|
737
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
738
|
+
* @summary List grouped relations for partner
|
|
739
|
+
* @param {string} code
|
|
740
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
741
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
742
|
+
* @param {any} [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.
|
|
743
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
744
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
745
|
+
* @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
746
|
+
* @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: partner1, partner2, partnerRelationType<i>
|
|
747
|
+
* @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @throws {RequiredError}
|
|
750
|
+
*/
|
|
751
|
+
listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
752
|
+
return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
753
|
+
},
|
|
632
754
|
/**
|
|
633
755
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
634
756
|
* @summary Update the partner
|
|
@@ -716,6 +838,18 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
716
838
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
717
839
|
return (0, exports.PartnersApiFp)(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
718
840
|
};
|
|
841
|
+
/**
|
|
842
|
+
* Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
843
|
+
* @summary List grouped relations for partner
|
|
844
|
+
* @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
* @memberof PartnersApi
|
|
848
|
+
*/
|
|
849
|
+
PartnersApi.prototype.listRelationsForPartner = function (requestParameters, options) {
|
|
850
|
+
var _this = this;
|
|
851
|
+
return (0, exports.PartnersApiFp)(this.configuration).listRelationsForPartner(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
852
|
+
};
|
|
719
853
|
/**
|
|
720
854
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
721
855
|
* @summary Update the partner
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { RelatedPartnerDataClass } from './related-partner-data-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GroupedRelatedPartnersClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GroupedRelatedPartnersClass {
|
|
19
|
+
/**
|
|
20
|
+
* Relation name for the group
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GroupedRelatedPartnersClass
|
|
23
|
+
*/
|
|
24
|
+
'relationName': string;
|
|
25
|
+
/**
|
|
26
|
+
* Relations belonging to the group
|
|
27
|
+
* @type {Array<RelatedPartnerDataClass>}
|
|
28
|
+
* @memberof GroupedRelatedPartnersClass
|
|
29
|
+
*/
|
|
30
|
+
'relatedPartners': Array<RelatedPartnerDataClass>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './get-partner-response-class';
|
|
|
13
13
|
export * from './get-partner-type-response-class';
|
|
14
14
|
export * from './get-partner-version-response-class';
|
|
15
15
|
export * from './get-tag-response-class';
|
|
16
|
+
export * from './grouped-related-partners-class';
|
|
16
17
|
export * from './inline-response200';
|
|
17
18
|
export * from './inline-response503';
|
|
18
19
|
export * from './invite-class';
|
|
@@ -23,6 +24,7 @@ export * from './list-partner-relation-types-class';
|
|
|
23
24
|
export * from './list-partner-types-response-class';
|
|
24
25
|
export * from './list-partner-versions-response-class';
|
|
25
26
|
export * from './list-partners-response-class';
|
|
27
|
+
export * from './list-related-partners-response-class';
|
|
26
28
|
export * from './list-tags-response-class';
|
|
27
29
|
export * from './partner-class';
|
|
28
30
|
export * from './partner-relation-class';
|
|
@@ -30,6 +32,7 @@ export * from './partner-relation-type-class';
|
|
|
30
32
|
export * from './partner-type-class';
|
|
31
33
|
export * from './partner-type-custom-schema-dto';
|
|
32
34
|
export * from './permission-class';
|
|
35
|
+
export * from './related-partner-data-class';
|
|
33
36
|
export * from './role-class';
|
|
34
37
|
export * from './tag-class';
|
|
35
38
|
export * from './tag-partner-request-dto-rest';
|
package/dist/models/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./get-partner-response-class"), exports);
|
|
|
29
29
|
__exportStar(require("./get-partner-type-response-class"), exports);
|
|
30
30
|
__exportStar(require("./get-partner-version-response-class"), exports);
|
|
31
31
|
__exportStar(require("./get-tag-response-class"), exports);
|
|
32
|
+
__exportStar(require("./grouped-related-partners-class"), exports);
|
|
32
33
|
__exportStar(require("./inline-response200"), exports);
|
|
33
34
|
__exportStar(require("./inline-response503"), exports);
|
|
34
35
|
__exportStar(require("./invite-class"), exports);
|
|
@@ -39,6 +40,7 @@ __exportStar(require("./list-partner-relation-types-class"), exports);
|
|
|
39
40
|
__exportStar(require("./list-partner-types-response-class"), exports);
|
|
40
41
|
__exportStar(require("./list-partner-versions-response-class"), exports);
|
|
41
42
|
__exportStar(require("./list-partners-response-class"), exports);
|
|
43
|
+
__exportStar(require("./list-related-partners-response-class"), exports);
|
|
42
44
|
__exportStar(require("./list-tags-response-class"), exports);
|
|
43
45
|
__exportStar(require("./partner-class"), exports);
|
|
44
46
|
__exportStar(require("./partner-relation-class"), exports);
|
|
@@ -46,6 +48,7 @@ __exportStar(require("./partner-relation-type-class"), exports);
|
|
|
46
48
|
__exportStar(require("./partner-type-class"), exports);
|
|
47
49
|
__exportStar(require("./partner-type-custom-schema-dto"), exports);
|
|
48
50
|
__exportStar(require("./permission-class"), exports);
|
|
51
|
+
__exportStar(require("./related-partner-data-class"), exports);
|
|
49
52
|
__exportStar(require("./role-class"), exports);
|
|
50
53
|
__exportStar(require("./tag-class"), exports);
|
|
51
54
|
__exportStar(require("./tag-partner-request-dto-rest"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { GroupedRelatedPartnersClass } from './grouped-related-partners-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListRelatedPartnersResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListRelatedPartnersResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The list of grouped relations for partner
|
|
21
|
+
* @type {Array<GroupedRelatedPartnersClass>}
|
|
22
|
+
* @memberof ListRelatedPartnersResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<GroupedRelatedPartnersClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Next page token.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListRelatedPartnersResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken': string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -75,4 +75,16 @@ export interface PartnerRelationTypeClass {
|
|
|
75
75
|
* @memberof PartnerRelationTypeClass
|
|
76
76
|
*/
|
|
77
77
|
'updatedBy': string;
|
|
78
|
+
/**
|
|
79
|
+
* The name of the relation from the perspective of the first partner
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PartnerRelationTypeClass
|
|
82
|
+
*/
|
|
83
|
+
'partner1RelationName': string;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the relation from the perspective of the second partner
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof PartnerRelationTypeClass
|
|
88
|
+
*/
|
|
89
|
+
'partner2RelationName': string;
|
|
78
90
|
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RelatedPartnerDataClass
|
|
16
|
+
*/
|
|
17
|
+
export interface RelatedPartnerDataClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RelatedPartnerDataClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Relation type slug to identify the type of the relation
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RelatedPartnerDataClass
|
|
28
|
+
*/
|
|
29
|
+
'partnerRelationTypeSlug': string;
|
|
30
|
+
/**
|
|
31
|
+
* Starting date of the relation - will default to current time if not provided
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RelatedPartnerDataClass
|
|
34
|
+
*/
|
|
35
|
+
'startDate': string;
|
|
36
|
+
/**
|
|
37
|
+
* Ending date of the relation - if not provided, the relation is considered active
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RelatedPartnerDataClass
|
|
40
|
+
*/
|
|
41
|
+
'endDate': string;
|
|
42
|
+
/**
|
|
43
|
+
* Any additional notes for the relation
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RelatedPartnerDataClass
|
|
46
|
+
*/
|
|
47
|
+
'note': string;
|
|
48
|
+
/**
|
|
49
|
+
* Time at which the object was created.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof RelatedPartnerDataClass
|
|
52
|
+
*/
|
|
53
|
+
'createdAt': string;
|
|
54
|
+
/**
|
|
55
|
+
* Time at which the object was updated.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof RelatedPartnerDataClass
|
|
58
|
+
*/
|
|
59
|
+
'updatedAt': string;
|
|
60
|
+
/**
|
|
61
|
+
* Identifier of the user who created the record.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof RelatedPartnerDataClass
|
|
64
|
+
*/
|
|
65
|
+
'createdBy': string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the user who last updated the record.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof RelatedPartnerDataClass
|
|
70
|
+
*/
|
|
71
|
+
'updatedBy': string;
|
|
72
|
+
/**
|
|
73
|
+
* Unique identifier of the partner that this object belongs to.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof RelatedPartnerDataClass
|
|
76
|
+
*/
|
|
77
|
+
'partnerCode': string;
|
|
78
|
+
/**
|
|
79
|
+
* The display name of the specified partner
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof RelatedPartnerDataClass
|
|
82
|
+
*/
|
|
83
|
+
'partnerDisplayName': string;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the relation from the perspective of the specified partner
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof RelatedPartnerDataClass
|
|
88
|
+
*/
|
|
89
|
+
'partnerRelationName': string;
|
|
90
|
+
/**
|
|
91
|
+
* Unique identifier of the related partner
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof RelatedPartnerDataClass
|
|
94
|
+
*/
|
|
95
|
+
'relatedPartnerCode': string;
|
|
96
|
+
/**
|
|
97
|
+
* The display name of the related partner
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof RelatedPartnerDataClass
|
|
100
|
+
*/
|
|
101
|
+
'relatedPartnerDisplayName': string;
|
|
102
|
+
/**
|
|
103
|
+
* The name of the relation from the perspective of the related partner
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof RelatedPartnerDataClass
|
|
106
|
+
*/
|
|
107
|
+
'relatedPartnerRelationName': string;
|
|
108
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL PartnerService
|
|
5
|
+
* The EMIL PartnerService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { RelatedPartnerDataClass } from './related-partner-data-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GroupedRelatedPartnersClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GroupedRelatedPartnersClass {
|
|
24
|
+
/**
|
|
25
|
+
* Relation name for the group
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GroupedRelatedPartnersClass
|
|
28
|
+
*/
|
|
29
|
+
'relationName': string;
|
|
30
|
+
/**
|
|
31
|
+
* Relations belonging to the group
|
|
32
|
+
* @type {Array<RelatedPartnerDataClass>}
|
|
33
|
+
* @memberof GroupedRelatedPartnersClass
|
|
34
|
+
*/
|
|
35
|
+
'relatedPartners': Array<RelatedPartnerDataClass>;
|
|
36
|
+
}
|
|
37
|
+
|
package/models/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './get-partner-response-class';
|
|
|
13
13
|
export * from './get-partner-type-response-class';
|
|
14
14
|
export * from './get-partner-version-response-class';
|
|
15
15
|
export * from './get-tag-response-class';
|
|
16
|
+
export * from './grouped-related-partners-class';
|
|
16
17
|
export * from './inline-response200';
|
|
17
18
|
export * from './inline-response503';
|
|
18
19
|
export * from './invite-class';
|
|
@@ -23,6 +24,7 @@ export * from './list-partner-relation-types-class';
|
|
|
23
24
|
export * from './list-partner-types-response-class';
|
|
24
25
|
export * from './list-partner-versions-response-class';
|
|
25
26
|
export * from './list-partners-response-class';
|
|
27
|
+
export * from './list-related-partners-response-class';
|
|
26
28
|
export * from './list-tags-response-class';
|
|
27
29
|
export * from './partner-class';
|
|
28
30
|
export * from './partner-relation-class';
|
|
@@ -30,6 +32,7 @@ export * from './partner-relation-type-class';
|
|
|
30
32
|
export * from './partner-type-class';
|
|
31
33
|
export * from './partner-type-custom-schema-dto';
|
|
32
34
|
export * from './permission-class';
|
|
35
|
+
export * from './related-partner-data-class';
|
|
33
36
|
export * from './role-class';
|
|
34
37
|
export * from './tag-class';
|
|
35
38
|
export * from './tag-partner-request-dto-rest';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL PartnerService
|
|
5
|
+
* The EMIL PartnerService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { GroupedRelatedPartnersClass } from './grouped-related-partners-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListRelatedPartnersResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListRelatedPartnersResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of grouped relations for partner
|
|
26
|
+
* @type {Array<GroupedRelatedPartnersClass>}
|
|
27
|
+
* @memberof ListRelatedPartnersResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<GroupedRelatedPartnersClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListRelatedPartnersResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -80,5 +80,17 @@ export interface PartnerRelationTypeClass {
|
|
|
80
80
|
* @memberof PartnerRelationTypeClass
|
|
81
81
|
*/
|
|
82
82
|
'updatedBy': string;
|
|
83
|
+
/**
|
|
84
|
+
* The name of the relation from the perspective of the first partner
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof PartnerRelationTypeClass
|
|
87
|
+
*/
|
|
88
|
+
'partner1RelationName': string;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the relation from the perspective of the second partner
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof PartnerRelationTypeClass
|
|
93
|
+
*/
|
|
94
|
+
'partner2RelationName': string;
|
|
83
95
|
}
|
|
84
96
|
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL PartnerService
|
|
5
|
+
* The EMIL PartnerService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface RelatedPartnerDataClass
|
|
21
|
+
*/
|
|
22
|
+
export interface RelatedPartnerDataClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof RelatedPartnerDataClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Relation type slug to identify the type of the relation
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RelatedPartnerDataClass
|
|
33
|
+
*/
|
|
34
|
+
'partnerRelationTypeSlug': string;
|
|
35
|
+
/**
|
|
36
|
+
* Starting date of the relation - will default to current time if not provided
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RelatedPartnerDataClass
|
|
39
|
+
*/
|
|
40
|
+
'startDate': string;
|
|
41
|
+
/**
|
|
42
|
+
* Ending date of the relation - if not provided, the relation is considered active
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof RelatedPartnerDataClass
|
|
45
|
+
*/
|
|
46
|
+
'endDate': string;
|
|
47
|
+
/**
|
|
48
|
+
* Any additional notes for the relation
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof RelatedPartnerDataClass
|
|
51
|
+
*/
|
|
52
|
+
'note': string;
|
|
53
|
+
/**
|
|
54
|
+
* Time at which the object was created.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof RelatedPartnerDataClass
|
|
57
|
+
*/
|
|
58
|
+
'createdAt': string;
|
|
59
|
+
/**
|
|
60
|
+
* Time at which the object was updated.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof RelatedPartnerDataClass
|
|
63
|
+
*/
|
|
64
|
+
'updatedAt': string;
|
|
65
|
+
/**
|
|
66
|
+
* Identifier of the user who created the record.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof RelatedPartnerDataClass
|
|
69
|
+
*/
|
|
70
|
+
'createdBy': string;
|
|
71
|
+
/**
|
|
72
|
+
* Identifier of the user who last updated the record.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof RelatedPartnerDataClass
|
|
75
|
+
*/
|
|
76
|
+
'updatedBy': string;
|
|
77
|
+
/**
|
|
78
|
+
* Unique identifier of the partner that this object belongs to.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof RelatedPartnerDataClass
|
|
81
|
+
*/
|
|
82
|
+
'partnerCode': string;
|
|
83
|
+
/**
|
|
84
|
+
* The display name of the specified partner
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof RelatedPartnerDataClass
|
|
87
|
+
*/
|
|
88
|
+
'partnerDisplayName': string;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the relation from the perspective of the specified partner
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof RelatedPartnerDataClass
|
|
93
|
+
*/
|
|
94
|
+
'partnerRelationName': string;
|
|
95
|
+
/**
|
|
96
|
+
* Unique identifier of the related partner
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof RelatedPartnerDataClass
|
|
99
|
+
*/
|
|
100
|
+
'relatedPartnerCode': string;
|
|
101
|
+
/**
|
|
102
|
+
* The display name of the related partner
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof RelatedPartnerDataClass
|
|
105
|
+
*/
|
|
106
|
+
'relatedPartnerDisplayName': string;
|
|
107
|
+
/**
|
|
108
|
+
* The name of the relation from the perspective of the related partner
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof RelatedPartnerDataClass
|
|
111
|
+
*/
|
|
112
|
+
'relatedPartnerRelationName': string;
|
|
113
|
+
}
|
|
114
|
+
|