@emilgroup/partner-sdk-node 1.14.1-beta.0 → 1.14.1-beta.2
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 +2 -0
- package/README.md +2 -2
- package/api/partners-api.ts +120 -0
- package/dist/api/default-api.js +18 -5
- package/dist/api/partner-invitations-api.js +18 -5
- package/dist/api/partner-relations-api.js +60 -23
- package/dist/api/partner-tags-api.js +46 -17
- package/dist/api/partner-types-api.js +46 -17
- package/dist/api/partner-versions-api.js +25 -8
- package/dist/api/partners-api.d.ts +66 -0
- package/dist/api/partners-api.js +163 -23
- package/dist/base.js +25 -15
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/create-or-update-partner-from-account-request-dto.d.ts +30 -0
- package/dist/models/create-or-update-partner-from-account-request-dto.js +15 -0
- package/dist/models/create-or-update-partner-from-account-response-class.d.ts +25 -0
- package/dist/models/create-or-update-partner-from-account-response-class.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/partner-class.d.ts +3 -2
- package/models/create-or-update-partner-from-account-request-dto.ts +36 -0
- package/models/create-or-update-partner-from-account-response-class.ts +31 -0
- package/models/index.ts +2 -0
- package/models/partner-class.ts +3 -2
- package/package.json +4 -4
package/dist/base.js
CHANGED
|
@@ -54,13 +54,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
54
54
|
}) : function(o, v) {
|
|
55
55
|
o["default"] = v;
|
|
56
56
|
});
|
|
57
|
-
var __importStar = (this && this.__importStar) || function (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
57
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
58
|
+
var ownKeys = function(o) {
|
|
59
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
60
|
+
var ar = [];
|
|
61
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
62
|
+
return ar;
|
|
63
|
+
};
|
|
64
|
+
return ownKeys(o);
|
|
65
|
+
};
|
|
66
|
+
return function (mod) {
|
|
67
|
+
if (mod && mod.__esModule) return mod;
|
|
68
|
+
var result = {};
|
|
69
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
70
|
+
__setModuleDefault(result, mod);
|
|
71
|
+
return result;
|
|
72
|
+
};
|
|
73
|
+
})();
|
|
64
74
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
65
75
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
66
76
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -71,8 +81,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
71
81
|
});
|
|
72
82
|
};
|
|
73
83
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
74
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
75
|
-
return g =
|
|
84
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
85
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
76
86
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
77
87
|
function step(op) {
|
|
78
88
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -101,7 +111,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
101
111
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
102
112
|
};
|
|
103
113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104
|
-
exports.RequiredError = exports.BaseAPI = exports.
|
|
114
|
+
exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
115
|
+
exports.resetRetry = resetRetry;
|
|
105
116
|
var configuration_1 = require("./configuration");
|
|
106
117
|
// Some imports not used depending on template conditions
|
|
107
118
|
// @ts-ignore
|
|
@@ -132,13 +143,12 @@ var Environment;
|
|
|
132
143
|
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
133
144
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
134
145
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
135
|
-
})(Environment
|
|
146
|
+
})(Environment || (exports.Environment = Environment = {}));
|
|
136
147
|
var _retry_count = 0;
|
|
137
148
|
var _retry = null;
|
|
138
149
|
function resetRetry() {
|
|
139
150
|
_retry_count = 0;
|
|
140
151
|
}
|
|
141
|
-
exports.resetRetry = resetRetry;
|
|
142
152
|
var NETWORK_ERROR_MESSAGE = "Network Error";
|
|
143
153
|
/**
|
|
144
154
|
*
|
|
@@ -162,9 +172,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
162
172
|
}
|
|
163
173
|
this.attachInterceptor(axios);
|
|
164
174
|
}
|
|
165
|
-
BaseAPI.prototype.initialize = function (
|
|
166
|
-
|
|
167
|
-
|
|
175
|
+
BaseAPI.prototype.initialize = function () {
|
|
176
|
+
return __awaiter(this, arguments, void 0, function (env) {
|
|
177
|
+
if (env === void 0) { env = Environment.Production; }
|
|
168
178
|
return __generator(this, function (_a) {
|
|
169
179
|
switch (_a.label) {
|
|
170
180
|
case 0:
|
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL PartnerService
|
|
69
69
|
* The EMIL PartnerService API description
|
package/dist/common.js
CHANGED
|
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37
|
-
return g =
|
|
36
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
37
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
38
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
39
|
function step(op) {
|
|
40
40
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -0,0 +1,30 @@
|
|
|
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 CreateOrUpdatePartnerFromAccountRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateOrUpdatePartnerFromAccountRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the account that this object belongs to.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateOrUpdatePartnerFromAccountRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'accountCode'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the partner that this object belongs to.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateOrUpdatePartnerFromAccountRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'partnerCode'?: string;
|
|
30
|
+
}
|
|
@@ -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,25 @@
|
|
|
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 { PartnerClass } from './partner-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateOrUpdatePartnerFromAccountResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateOrUpdatePartnerFromAccountResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The partner response.
|
|
21
|
+
* @type {PartnerClass}
|
|
22
|
+
* @memberof CreateOrUpdatePartnerFromAccountResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'partner': PartnerClass;
|
|
25
|
+
}
|
|
@@ -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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './create-or-update-partner-from-account-request-dto';
|
|
2
|
+
export * from './create-or-update-partner-from-account-response-class';
|
|
1
3
|
export * from './create-partner-relation-request-dto-rest';
|
|
2
4
|
export * from './create-partner-relation-response-class';
|
|
3
5
|
export * from './create-partner-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-or-update-partner-from-account-request-dto"), exports);
|
|
18
|
+
__exportStar(require("./create-or-update-partner-from-account-response-class"), exports);
|
|
17
19
|
__exportStar(require("./create-partner-relation-request-dto-rest"), exports);
|
|
18
20
|
__exportStar(require("./create-partner-relation-response-class"), exports);
|
|
19
21
|
__exportStar(require("./create-partner-request-dto"), exports);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { PartnerTypeClass } from './partner-type-class';
|
|
13
|
+
import { TagClass } from './tag-class';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -72,10 +73,10 @@ export interface PartnerClass {
|
|
|
72
73
|
'version': number;
|
|
73
74
|
/**
|
|
74
75
|
* Tags that the partner is associated with
|
|
75
|
-
* @type {Array<
|
|
76
|
+
* @type {Array<TagClass>}
|
|
76
77
|
* @memberof PartnerClass
|
|
77
78
|
*/
|
|
78
|
-
'tags': Array<
|
|
79
|
+
'tags': Array<TagClass>;
|
|
79
80
|
/**
|
|
80
81
|
* The user code of the partner
|
|
81
82
|
* @type {string}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 CreateOrUpdatePartnerFromAccountRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateOrUpdatePartnerFromAccountRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier of the account that this object belongs to.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateOrUpdatePartnerFromAccountRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'accountCode'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier of the partner that this object belongs to.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateOrUpdatePartnerFromAccountRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'partnerCode'?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { PartnerClass } from './partner-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateOrUpdatePartnerFromAccountResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateOrUpdatePartnerFromAccountResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The partner response.
|
|
26
|
+
* @type {PartnerClass}
|
|
27
|
+
* @memberof CreateOrUpdatePartnerFromAccountResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'partner': PartnerClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './create-or-update-partner-from-account-request-dto';
|
|
2
|
+
export * from './create-or-update-partner-from-account-response-class';
|
|
1
3
|
export * from './create-partner-relation-request-dto-rest';
|
|
2
4
|
export * from './create-partner-relation-response-class';
|
|
3
5
|
export * from './create-partner-request-dto';
|
package/models/partner-class.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { PartnerTypeClass } from './partner-type-class';
|
|
17
|
+
import { TagClass } from './tag-class';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
@@ -77,10 +78,10 @@ export interface PartnerClass {
|
|
|
77
78
|
'version': number;
|
|
78
79
|
/**
|
|
79
80
|
* Tags that the partner is associated with
|
|
80
|
-
* @type {Array<
|
|
81
|
+
* @type {Array<TagClass>}
|
|
81
82
|
* @memberof PartnerClass
|
|
82
83
|
*/
|
|
83
|
-
'tags': Array<
|
|
84
|
+
'tags': Array<TagClass>;
|
|
84
85
|
/**
|
|
85
86
|
* The user code of the partner
|
|
86
87
|
* @type {string}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/partner-sdk-node",
|
|
3
|
-
"version": "1.14.1-beta.
|
|
3
|
+
"version": "1.14.1-beta.2",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/partner-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^
|
|
21
|
+
"axios": "^1.9.0",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^
|
|
27
|
-
"typescript": "^
|
|
26
|
+
"@types/node": "^22.15.18",
|
|
27
|
+
"typescript": "^5.8"
|
|
28
28
|
}
|
|
29
29
|
}
|