@emilgroup/partner-sdk 1.15.1-beta.0 → 1.15.1-beta.1
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/README.md +2 -2
- package/api/partners-api.ts +20 -7
- package/dist/api/partners-api.d.ts +12 -3
- package/dist/api/partners-api.js +13 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/partner-sdk@1.15.1-beta.
|
|
20
|
+
npm install @emilgroup/partner-sdk@1.15.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/partner-sdk@1.15.1-beta.
|
|
24
|
+
yarn add @emilgroup/partner-sdk@1.15.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PartnersApi`.
|
package/api/partners-api.ts
CHANGED
|
@@ -53,15 +53,19 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
53
53
|
/**
|
|
54
54
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
55
55
|
* @summary Retrieve the create or update partner from account
|
|
56
|
+
* @param {any} code Unique identifier for the object.
|
|
56
57
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
57
58
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
59
|
* @param {*} [options] Override http request option.
|
|
59
60
|
* @throws {RequiredError}
|
|
60
61
|
*/
|
|
61
|
-
createOrUpdatePartnerFromAccount: async (createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62
|
+
createOrUpdatePartnerFromAccount: async (code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
63
|
+
// verify required parameter 'code' is not null or undefined
|
|
64
|
+
assertParamExists('createOrUpdatePartnerFromAccount', 'code', code)
|
|
62
65
|
// verify required parameter 'createOrUpdatePartnerFromAccountRequestDto' is not null or undefined
|
|
63
66
|
assertParamExists('createOrUpdatePartnerFromAccount', 'createOrUpdatePartnerFromAccountRequestDto', createOrUpdatePartnerFromAccountRequestDto)
|
|
64
|
-
const localVarPath = `/partnerservice/v1/partners/create-or-update-partner-from-account
|
|
67
|
+
const localVarPath = `/partnerservice/v1/partners/create-or-update-partner-from-account`
|
|
68
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
65
69
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
70
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
67
71
|
let baseOptions;
|
|
@@ -555,13 +559,14 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
555
559
|
/**
|
|
556
560
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
557
561
|
* @summary Retrieve the create or update partner from account
|
|
562
|
+
* @param {any} code Unique identifier for the object.
|
|
558
563
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
559
564
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
560
565
|
* @param {*} [options] Override http request option.
|
|
561
566
|
* @throws {RequiredError}
|
|
562
567
|
*/
|
|
563
|
-
async createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass>> {
|
|
564
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto, authorization, options);
|
|
568
|
+
async createOrUpdatePartnerFromAccount(code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass>> {
|
|
569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrUpdatePartnerFromAccount(code, createOrUpdatePartnerFromAccountRequestDto, authorization, options);
|
|
565
570
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
566
571
|
},
|
|
567
572
|
/**
|
|
@@ -689,13 +694,14 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
689
694
|
/**
|
|
690
695
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
691
696
|
* @summary Retrieve the create or update partner from account
|
|
697
|
+
* @param {any} code Unique identifier for the object.
|
|
692
698
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
693
699
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
694
700
|
* @param {*} [options] Override http request option.
|
|
695
701
|
* @throws {RequiredError}
|
|
696
702
|
*/
|
|
697
|
-
createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass> {
|
|
698
|
-
return localVarFp.createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
703
|
+
createOrUpdatePartnerFromAccount(code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass> {
|
|
704
|
+
return localVarFp.createOrUpdatePartnerFromAccount(code, createOrUpdatePartnerFromAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
699
705
|
},
|
|
700
706
|
/**
|
|
701
707
|
* This will create a partner. **Required Permissions** \"partner-management.partners.create\"
|
|
@@ -810,6 +816,13 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
810
816
|
* @interface PartnersApiCreateOrUpdatePartnerFromAccountRequest
|
|
811
817
|
*/
|
|
812
818
|
export interface PartnersApiCreateOrUpdatePartnerFromAccountRequest {
|
|
819
|
+
/**
|
|
820
|
+
* Unique identifier for the object.
|
|
821
|
+
* @type {any}
|
|
822
|
+
* @memberof PartnersApiCreateOrUpdatePartnerFromAccount
|
|
823
|
+
*/
|
|
824
|
+
readonly code: any
|
|
825
|
+
|
|
813
826
|
/**
|
|
814
827
|
*
|
|
815
828
|
* @type {CreateOrUpdatePartnerFromAccountRequestDto}
|
|
@@ -1121,7 +1134,7 @@ export class PartnersApi extends BaseAPI {
|
|
|
1121
1134
|
* @memberof PartnersApi
|
|
1122
1135
|
*/
|
|
1123
1136
|
public createOrUpdatePartnerFromAccount(requestParameters: PartnersApiCreateOrUpdatePartnerFromAccountRequest, options?: AxiosRequestConfig) {
|
|
1124
|
-
return PartnersApiFp(this.configuration).createOrUpdatePartnerFromAccount(requestParameters.createOrUpdatePartnerFromAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1137
|
+
return PartnersApiFp(this.configuration).createOrUpdatePartnerFromAccount(requestParameters.code, requestParameters.createOrUpdatePartnerFromAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1125
1138
|
}
|
|
1126
1139
|
|
|
1127
1140
|
/**
|
|
@@ -32,12 +32,13 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
32
32
|
/**
|
|
33
33
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
34
34
|
* @summary Retrieve the create or update partner from account
|
|
35
|
+
* @param {any} code Unique identifier for the object.
|
|
35
36
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
36
37
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
37
38
|
* @param {*} [options] Override http request option.
|
|
38
39
|
* @throws {RequiredError}
|
|
39
40
|
*/
|
|
40
|
-
createOrUpdatePartnerFromAccount: (createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
createOrUpdatePartnerFromAccount: (code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
42
|
/**
|
|
42
43
|
* This will create a partner. **Required Permissions** \"partner-management.partners.create\"
|
|
43
44
|
* @summary Create the partner
|
|
@@ -135,12 +136,13 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
135
136
|
/**
|
|
136
137
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
137
138
|
* @summary Retrieve the create or update partner from account
|
|
139
|
+
* @param {any} code Unique identifier for the object.
|
|
138
140
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
139
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
140
142
|
* @param {*} [options] Override http request option.
|
|
141
143
|
* @throws {RequiredError}
|
|
142
144
|
*/
|
|
143
|
-
createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass>>;
|
|
145
|
+
createOrUpdatePartnerFromAccount(code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass>>;
|
|
144
146
|
/**
|
|
145
147
|
* This will create a partner. **Required Permissions** \"partner-management.partners.create\"
|
|
146
148
|
* @summary Create the partner
|
|
@@ -238,12 +240,13 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
238
240
|
/**
|
|
239
241
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
240
242
|
* @summary Retrieve the create or update partner from account
|
|
243
|
+
* @param {any} code Unique identifier for the object.
|
|
241
244
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
242
245
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
243
246
|
* @param {*} [options] Override http request option.
|
|
244
247
|
* @throws {RequiredError}
|
|
245
248
|
*/
|
|
246
|
-
createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass>;
|
|
249
|
+
createOrUpdatePartnerFromAccount(code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass>;
|
|
247
250
|
/**
|
|
248
251
|
* This will create a partner. **Required Permissions** \"partner-management.partners.create\"
|
|
249
252
|
* @summary Create the partner
|
|
@@ -339,6 +342,12 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
339
342
|
* @interface PartnersApiCreateOrUpdatePartnerFromAccountRequest
|
|
340
343
|
*/
|
|
341
344
|
export interface PartnersApiCreateOrUpdatePartnerFromAccountRequest {
|
|
345
|
+
/**
|
|
346
|
+
* Unique identifier for the object.
|
|
347
|
+
* @type {any}
|
|
348
|
+
* @memberof PartnersApiCreateOrUpdatePartnerFromAccount
|
|
349
|
+
*/
|
|
350
|
+
readonly code: any;
|
|
342
351
|
/**
|
|
343
352
|
*
|
|
344
353
|
* @type {CreateOrUpdatePartnerFromAccountRequestDto}
|
package/dist/api/partners-api.js
CHANGED
|
@@ -95,21 +95,25 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
97
97
|
* @summary Retrieve the create or update partner from account
|
|
98
|
+
* @param {any} code Unique identifier for the object.
|
|
98
99
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
99
100
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
101
|
* @param {*} [options] Override http request option.
|
|
101
102
|
* @throws {RequiredError}
|
|
102
103
|
*/
|
|
103
|
-
createOrUpdatePartnerFromAccount: function (createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
|
|
104
|
+
createOrUpdatePartnerFromAccount: function (code, createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
|
|
104
105
|
if (options === void 0) { options = {}; }
|
|
105
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
107
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
108
|
return __generator(this, function (_a) {
|
|
108
109
|
switch (_a.label) {
|
|
109
110
|
case 0:
|
|
111
|
+
// verify required parameter 'code' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('createOrUpdatePartnerFromAccount', 'code', code);
|
|
110
113
|
// verify required parameter 'createOrUpdatePartnerFromAccountRequestDto' is not null or undefined
|
|
111
114
|
(0, common_1.assertParamExists)('createOrUpdatePartnerFromAccount', 'createOrUpdatePartnerFromAccountRequestDto', createOrUpdatePartnerFromAccountRequestDto);
|
|
112
|
-
localVarPath = "/partnerservice/v1/partners/create-or-update-partner-from-account"
|
|
115
|
+
localVarPath = "/partnerservice/v1/partners/create-or-update-partner-from-account"
|
|
116
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
113
117
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
118
|
if (configuration) {
|
|
115
119
|
baseOptions = configuration.baseOptions;
|
|
@@ -605,17 +609,18 @@ var PartnersApiFp = function (configuration) {
|
|
|
605
609
|
/**
|
|
606
610
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
607
611
|
* @summary Retrieve the create or update partner from account
|
|
612
|
+
* @param {any} code Unique identifier for the object.
|
|
608
613
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
609
614
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
610
615
|
* @param {*} [options] Override http request option.
|
|
611
616
|
* @throws {RequiredError}
|
|
612
617
|
*/
|
|
613
|
-
createOrUpdatePartnerFromAccount: function (createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
|
|
618
|
+
createOrUpdatePartnerFromAccount: function (code, createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
|
|
614
619
|
return __awaiter(this, void 0, void 0, function () {
|
|
615
620
|
var localVarAxiosArgs;
|
|
616
621
|
return __generator(this, function (_a) {
|
|
617
622
|
switch (_a.label) {
|
|
618
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto, authorization, options)];
|
|
623
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrUpdatePartnerFromAccount(code, createOrUpdatePartnerFromAccountRequestDto, authorization, options)];
|
|
619
624
|
case 1:
|
|
620
625
|
localVarAxiosArgs = _a.sent();
|
|
621
626
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -820,13 +825,14 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
820
825
|
/**
|
|
821
826
|
* Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
|
|
822
827
|
* @summary Retrieve the create or update partner from account
|
|
828
|
+
* @param {any} code Unique identifier for the object.
|
|
823
829
|
* @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
|
|
824
830
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
825
831
|
* @param {*} [options] Override http request option.
|
|
826
832
|
* @throws {RequiredError}
|
|
827
833
|
*/
|
|
828
|
-
createOrUpdatePartnerFromAccount: function (createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
|
|
829
|
-
return localVarFp.createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
834
|
+
createOrUpdatePartnerFromAccount: function (code, createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
|
|
835
|
+
return localVarFp.createOrUpdatePartnerFromAccount(code, createOrUpdatePartnerFromAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
830
836
|
},
|
|
831
837
|
/**
|
|
832
838
|
* This will create a partner. **Required Permissions** \"partner-management.partners.create\"
|
|
@@ -956,7 +962,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
956
962
|
*/
|
|
957
963
|
PartnersApi.prototype.createOrUpdatePartnerFromAccount = function (requestParameters, options) {
|
|
958
964
|
var _this = this;
|
|
959
|
-
return (0, exports.PartnersApiFp)(this.configuration).createOrUpdatePartnerFromAccount(requestParameters.createOrUpdatePartnerFromAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
965
|
+
return (0, exports.PartnersApiFp)(this.configuration).createOrUpdatePartnerFromAccount(requestParameters.code, requestParameters.createOrUpdatePartnerFromAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
960
966
|
};
|
|
961
967
|
/**
|
|
962
968
|
* This will create a partner. **Required Permissions** \"partner-management.partners.create\"
|