@emilgroup/partner-sdk-node 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 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.15.1-beta.0 --save
20
+ npm install @emilgroup/partner-sdk-node@1.15.1-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/partner-sdk-node@1.15.1-beta.0
24
+ yarn add @emilgroup/partner-sdk-node@1.15.1-beta.1
25
25
  ```
26
26
 
27
27
  And then you can import `PartnersApi`.
@@ -57,15 +57,19 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
57
57
  /**
58
58
  * Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
59
59
  * @summary Retrieve the create or update partner from account
60
+ * @param {any} code Unique identifier for the object.
60
61
  * @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
61
62
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
62
63
  * @param {*} [options] Override http request option.
63
64
  * @throws {RequiredError}
64
65
  */
65
- createOrUpdatePartnerFromAccount: async (createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
66
+ createOrUpdatePartnerFromAccount: async (code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
67
+ // verify required parameter 'code' is not null or undefined
68
+ assertParamExists('createOrUpdatePartnerFromAccount', 'code', code)
66
69
  // verify required parameter 'createOrUpdatePartnerFromAccountRequestDto' is not null or undefined
67
70
  assertParamExists('createOrUpdatePartnerFromAccount', 'createOrUpdatePartnerFromAccountRequestDto', createOrUpdatePartnerFromAccountRequestDto)
68
- const localVarPath = `/partnerservice/v1/partners/create-or-update-partner-from-account`;
71
+ const localVarPath = `/partnerservice/v1/partners/create-or-update-partner-from-account`
72
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
69
73
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
70
74
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71
75
  let baseOptions;
@@ -559,13 +563,14 @@ export const PartnersApiFp = function(configuration?: Configuration) {
559
563
  /**
560
564
  * Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
561
565
  * @summary Retrieve the create or update partner from account
566
+ * @param {any} code Unique identifier for the object.
562
567
  * @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
563
568
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
564
569
  * @param {*} [options] Override http request option.
565
570
  * @throws {RequiredError}
566
571
  */
567
- async createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass>> {
568
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto, authorization, options);
572
+ async createOrUpdatePartnerFromAccount(code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass>> {
573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrUpdatePartnerFromAccount(code, createOrUpdatePartnerFromAccountRequestDto, authorization, options);
569
574
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
570
575
  },
571
576
  /**
@@ -693,13 +698,14 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
693
698
  /**
694
699
  * Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
695
700
  * @summary Retrieve the create or update partner from account
701
+ * @param {any} code Unique identifier for the object.
696
702
  * @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
697
703
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
698
704
  * @param {*} [options] Override http request option.
699
705
  * @throws {RequiredError}
700
706
  */
701
- createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass> {
702
- return localVarFp.createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
707
+ createOrUpdatePartnerFromAccount(code: any, createOrUpdatePartnerFromAccountRequestDto: CreateOrUpdatePartnerFromAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrUpdatePartnerFromAccountResponseClass> {
708
+ return localVarFp.createOrUpdatePartnerFromAccount(code, createOrUpdatePartnerFromAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
703
709
  },
704
710
  /**
705
711
  * This will create a partner. **Required Permissions** \"partner-management.partners.create\"
@@ -814,6 +820,13 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
814
820
  * @interface PartnersApiCreateOrUpdatePartnerFromAccountRequest
815
821
  */
816
822
  export interface PartnersApiCreateOrUpdatePartnerFromAccountRequest {
823
+ /**
824
+ * Unique identifier for the object.
825
+ * @type {any}
826
+ * @memberof PartnersApiCreateOrUpdatePartnerFromAccount
827
+ */
828
+ readonly code: any
829
+
817
830
  /**
818
831
  *
819
832
  * @type {CreateOrUpdatePartnerFromAccountRequestDto}
@@ -1125,7 +1138,7 @@ export class PartnersApi extends BaseAPI {
1125
1138
  * @memberof PartnersApi
1126
1139
  */
1127
1140
  public createOrUpdatePartnerFromAccount(requestParameters: PartnersApiCreateOrUpdatePartnerFromAccountRequest, options?: AxiosRequestConfig) {
1128
- return PartnersApiFp(this.configuration).createOrUpdatePartnerFromAccount(requestParameters.createOrUpdatePartnerFromAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1141
+ return PartnersApiFp(this.configuration).createOrUpdatePartnerFromAccount(requestParameters.code, requestParameters.createOrUpdatePartnerFromAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1129
1142
  }
1130
1143
 
1131
1144
  /**
@@ -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}
@@ -99,21 +99,25 @@ var PartnersApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
101
101
  * @summary Retrieve the create or update partner from account
102
+ * @param {any} code Unique identifier for the object.
102
103
  * @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
103
104
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
105
  * @param {*} [options] Override http request option.
105
106
  * @throws {RequiredError}
106
107
  */
107
- createOrUpdatePartnerFromAccount: function (createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
108
+ createOrUpdatePartnerFromAccount: function (code, createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
108
109
  if (options === void 0) { options = {}; }
109
110
  return __awaiter(_this, void 0, void 0, function () {
110
111
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
112
  return __generator(this, function (_a) {
112
113
  switch (_a.label) {
113
114
  case 0:
115
+ // verify required parameter 'code' is not null or undefined
116
+ (0, common_1.assertParamExists)('createOrUpdatePartnerFromAccount', 'code', code);
114
117
  // verify required parameter 'createOrUpdatePartnerFromAccountRequestDto' is not null or undefined
115
118
  (0, common_1.assertParamExists)('createOrUpdatePartnerFromAccount', 'createOrUpdatePartnerFromAccountRequestDto', createOrUpdatePartnerFromAccountRequestDto);
116
- localVarPath = "/partnerservice/v1/partners/create-or-update-partner-from-account";
119
+ localVarPath = "/partnerservice/v1/partners/create-or-update-partner-from-account"
120
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
117
121
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
122
  if (configuration) {
119
123
  baseOptions = configuration.baseOptions;
@@ -609,17 +613,18 @@ var PartnersApiFp = function (configuration) {
609
613
  /**
610
614
  * Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
611
615
  * @summary Retrieve the create or update partner from account
616
+ * @param {any} code Unique identifier for the object.
612
617
  * @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
613
618
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
614
619
  * @param {*} [options] Override http request option.
615
620
  * @throws {RequiredError}
616
621
  */
617
- createOrUpdatePartnerFromAccount: function (createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
622
+ createOrUpdatePartnerFromAccount: function (code, createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
618
623
  return __awaiter(this, void 0, void 0, function () {
619
624
  var localVarAxiosArgs;
620
625
  return __generator(this, function (_a) {
621
626
  switch (_a.label) {
622
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto, authorization, options)];
627
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrUpdatePartnerFromAccount(code, createOrUpdatePartnerFromAccountRequestDto, authorization, options)];
623
628
  case 1:
624
629
  localVarAxiosArgs = _a.sent();
625
630
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -824,13 +829,14 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
824
829
  /**
825
830
  * Creates or updates a partner from an account. Resolves the account by partner code if not provided. **Required Permissions** \"partner-management.partners.create\"
826
831
  * @summary Retrieve the create or update partner from account
832
+ * @param {any} code Unique identifier for the object.
827
833
  * @param {CreateOrUpdatePartnerFromAccountRequestDto} createOrUpdatePartnerFromAccountRequestDto
828
834
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
829
835
  * @param {*} [options] Override http request option.
830
836
  * @throws {RequiredError}
831
837
  */
832
- createOrUpdatePartnerFromAccount: function (createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
833
- return localVarFp.createOrUpdatePartnerFromAccount(createOrUpdatePartnerFromAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
838
+ createOrUpdatePartnerFromAccount: function (code, createOrUpdatePartnerFromAccountRequestDto, authorization, options) {
839
+ return localVarFp.createOrUpdatePartnerFromAccount(code, createOrUpdatePartnerFromAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
834
840
  },
835
841
  /**
836
842
  * This will create a partner. **Required Permissions** \"partner-management.partners.create\"
@@ -960,7 +966,7 @@ var PartnersApi = /** @class */ (function (_super) {
960
966
  */
961
967
  PartnersApi.prototype.createOrUpdatePartnerFromAccount = function (requestParameters, options) {
962
968
  var _this = this;
963
- return (0, exports.PartnersApiFp)(this.configuration).createOrUpdatePartnerFromAccount(requestParameters.createOrUpdatePartnerFromAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
969
+ return (0, exports.PartnersApiFp)(this.configuration).createOrUpdatePartnerFromAccount(requestParameters.code, requestParameters.createOrUpdatePartnerFromAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
964
970
  };
965
971
  /**
966
972
  * This will create a partner. **Required Permissions** \"partner-management.partners.create\"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk-node",
3
- "version": "1.15.1-beta.0",
3
+ "version": "1.15.1-beta.1",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [