@emilgroup/insurance-sdk-node 1.49.1 → 1.49.2-beta.0
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 +18 -8
- package/README.md +2 -2
- package/api/partner-links-api.ts +800 -0
- package/api/partner-roles-api.ts +683 -0
- package/api/policies-api.ts +13 -13
- package/api.ts +4 -2
- package/dist/api/partner-links-api.d.ts +450 -0
- package/dist/api/partner-links-api.js +738 -0
- package/dist/api/partner-roles-api.d.ts +385 -0
- package/dist/api/{policy-partner-roles-api.js → partner-roles-api.js} +136 -136
- package/dist/api/policies-api.d.ts +13 -13
- package/dist/api/policies-api.js +6 -6
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/models/create-account-request-dto.d.ts +1 -1
- package/dist/models/create-account-request-dto.js +1 -1
- package/dist/models/create-lead-request-dto.d.ts +12 -0
- package/dist/models/{update-policy-partner-role-request-dto.d.ts → create-partner-role-request-dto.d.ts} +5 -5
- package/dist/models/{get-policy-partner-role-response-class.d.ts → create-partner-role-response-class.d.ts} +7 -7
- package/dist/models/{update-policy-partner-role-response-class.d.ts → get-partner-link-response-class.d.ts} +7 -7
- package/dist/models/{create-policy-partner-role-response-class.d.ts → get-partner-role-response-class.d.ts} +7 -7
- package/dist/models/index.d.ts +16 -7
- package/dist/models/index.js +16 -7
- package/dist/models/lead-class.d.ts +7 -0
- package/dist/models/link-partner-request-dto.d.ts +54 -0
- package/dist/models/link-partner-response-class.d.ts +25 -0
- package/dist/models/{list-policy-partner-roles-response-class.d.ts → list-partner-links-response-class.d.ts} +8 -8
- package/dist/models/list-partner-roles-response-class.d.ts +31 -0
- package/dist/models/list-partner-roles-response-class.js +15 -0
- package/dist/models/partner-class.d.ts +60 -0
- package/dist/models/partner-class.js +15 -0
- package/dist/models/partner-link-class.d.ts +86 -0
- package/dist/models/partner-link-class.js +15 -0
- package/dist/models/{policy-partner-role-class.d.ts → partner-role-class.d.ts} +9 -9
- package/dist/models/partner-role-class.js +15 -0
- package/dist/models/policy-class.d.ts +7 -0
- package/dist/models/unlink-partner-response-class.d.ts +25 -0
- package/dist/models/unlink-partner-response-class.js +15 -0
- package/dist/models/update-partner-link-request-dto.d.ts +30 -0
- package/dist/models/update-partner-link-request-dto.js +15 -0
- package/dist/models/update-partner-link-response-class.d.ts +25 -0
- package/dist/models/update-partner-link-response-class.js +15 -0
- package/dist/models/{create-policy-partner-role-request-dto.d.ts → update-partner-role-request-dto.d.ts} +5 -5
- package/dist/models/update-partner-role-request-dto.js +15 -0
- package/dist/models/update-partner-role-response-class.d.ts +25 -0
- package/dist/models/update-partner-role-response-class.js +15 -0
- package/models/create-account-request-dto.ts +1 -1
- package/models/create-lead-request-dto.ts +12 -0
- package/models/{update-policy-partner-role-request-dto.ts → create-partner-role-request-dto.ts} +5 -5
- package/models/{get-policy-partner-role-response-class.ts → create-partner-role-response-class.ts} +7 -7
- package/models/{create-policy-partner-role-response-class.ts → get-partner-link-response-class.ts} +7 -7
- package/models/{update-policy-partner-role-response-class.ts → get-partner-role-response-class.ts} +7 -7
- package/models/index.ts +16 -7
- package/models/lead-class.ts +7 -0
- package/models/link-partner-request-dto.ts +60 -0
- package/models/link-partner-response-class.ts +31 -0
- package/models/{list-policy-partner-roles-response-class.ts → list-partner-links-response-class.ts} +8 -8
- package/models/list-partner-roles-response-class.ts +37 -0
- package/models/partner-class.ts +66 -0
- package/models/partner-link-class.ts +92 -0
- package/models/{policy-partner-role-class.ts → partner-role-class.ts} +9 -9
- package/models/policy-class.ts +7 -0
- package/models/unlink-partner-response-class.ts +31 -0
- package/models/update-partner-link-request-dto.ts +36 -0
- package/models/update-partner-link-response-class.ts +31 -0
- package/models/{create-policy-partner-role-request-dto.ts → update-partner-role-request-dto.ts} +5 -5
- package/models/update-partner-role-response-class.ts +31 -0
- package/package.json +1 -1
- package/api/policy-partner-roles-api.ts +0 -683
- package/dist/api/policy-partner-roles-api.d.ts +0 -385
- /package/dist/models/{create-policy-partner-role-request-dto.js → create-partner-role-request-dto.js} +0 -0
- /package/dist/models/{create-policy-partner-role-response-class.js → create-partner-role-response-class.js} +0 -0
- /package/dist/models/{get-policy-partner-role-response-class.js → get-partner-link-response-class.js} +0 -0
- /package/dist/models/{list-policy-partner-roles-response-class.js → get-partner-role-response-class.js} +0 -0
- /package/dist/models/{policy-partner-role-class.js → link-partner-request-dto.js} +0 -0
- /package/dist/models/{update-policy-partner-role-request-dto.js → link-partner-response-class.js} +0 -0
- /package/dist/models/{update-policy-partner-role-response-class.js → list-partner-links-response-class.js} +0 -0
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.PartnerRolesApi = exports.PartnerRolesApiFactory = exports.PartnerRolesApiFp = exports.PartnerRolesApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,30 +90,30 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* PartnerRolesApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create a
|
|
101
|
-
* @summary Create the
|
|
102
|
-
* @param {
|
|
100
|
+
* This will create a partner role.
|
|
101
|
+
* @summary Create the partner role
|
|
102
|
+
* @param {CreatePartnerRoleRequestDto} createPartnerRoleRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
createPartnerRole: function (createPartnerRoleRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
// verify required parameter '
|
|
115
|
-
(0, common_1.assertParamExists)('
|
|
116
|
-
localVarPath = "/insuranceservice/v1/
|
|
114
|
+
// verify required parameter 'createPartnerRoleRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createPartnerRole', 'createPartnerRoleRequestDto', createPartnerRoleRequestDto);
|
|
116
|
+
localVarPath = "/insuranceservice/v1/partner-roles";
|
|
117
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
118
|
if (configuration) {
|
|
119
119
|
baseOptions = configuration.baseOptions;
|
|
@@ -136,7 +136,7 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
138
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPartnerRoleRequestDto, localVarRequestOptions, configuration);
|
|
140
140
|
return [2 /*return*/, {
|
|
141
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
142
|
options: localVarRequestOptions,
|
|
@@ -146,14 +146,14 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
* Permanently deletes the
|
|
150
|
-
* @summary Delete the
|
|
149
|
+
* Permanently deletes the partner role. Supply the unique code that was returned when you created the partner role and this will delete it.
|
|
150
|
+
* @summary Delete the partner role
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
deletePartnerRole: function (code, authorization, options) {
|
|
157
157
|
if (options === void 0) { options = {}; }
|
|
158
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -161,8 +161,8 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
161
161
|
switch (_a.label) {
|
|
162
162
|
case 0:
|
|
163
163
|
// verify required parameter 'code' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('
|
|
165
|
-
localVarPath = "/insuranceservice/v1/
|
|
164
|
+
(0, common_1.assertParamExists)('deletePartnerRole', 'code', code);
|
|
165
|
+
localVarPath = "/insuranceservice/v1/partner-roles/{code}"
|
|
166
166
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
167
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
168
|
if (configuration) {
|
|
@@ -194,14 +194,14 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* Retrieves the details of the
|
|
198
|
-
* @summary Retrieve the
|
|
197
|
+
* Retrieves the details of the partner role that was previously created. Supply the unique partner role code that was returned when you created it and Emil Api will return the corresponding partner role information.
|
|
198
|
+
* @summary Retrieve the partner role
|
|
199
199
|
* @param {string} code Unique identifier for the object.
|
|
200
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
*/
|
|
204
|
-
|
|
204
|
+
getPartnerRole: function (code, authorization, options) {
|
|
205
205
|
if (options === void 0) { options = {}; }
|
|
206
206
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -209,8 +209,8 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
209
209
|
switch (_a.label) {
|
|
210
210
|
case 0:
|
|
211
211
|
// verify required parameter 'code' is not null or undefined
|
|
212
|
-
(0, common_1.assertParamExists)('
|
|
213
|
-
localVarPath = "/insuranceservice/v1/
|
|
212
|
+
(0, common_1.assertParamExists)('getPartnerRole', 'code', code);
|
|
213
|
+
localVarPath = "/insuranceservice/v1/partner-roles/{code}"
|
|
214
214
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
215
215
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
216
|
if (configuration) {
|
|
@@ -242,27 +242,27 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
242
242
|
});
|
|
243
243
|
},
|
|
244
244
|
/**
|
|
245
|
-
* Returns a list of
|
|
246
|
-
* @summary List
|
|
245
|
+
* Returns a list of partner roles you have previously created. The partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
246
|
+
* @summary List partner roles
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
248
|
* @param {number} [pageSize] Page size.
|
|
249
249
|
* @param {string} [pageToken] Page token.
|
|
250
|
-
* @param {
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
253
|
-
* @param {
|
|
250
|
+
* @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: name, productSlug</i>
|
|
251
|
+
* @param {string} [search] Search query.
|
|
252
|
+
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, name, productSlug, createdAt, updatedAt</i>
|
|
253
|
+
* @param {string} [expand] This entity has no expand parameters
|
|
254
254
|
* @param {string} [filters]
|
|
255
255
|
* @param {*} [options] Override http request option.
|
|
256
256
|
* @throws {RequiredError}
|
|
257
257
|
*/
|
|
258
|
-
|
|
258
|
+
listPartnerRole: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
259
|
if (options === void 0) { options = {}; }
|
|
260
260
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
261
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
262
262
|
return __generator(this, function (_a) {
|
|
263
263
|
switch (_a.label) {
|
|
264
264
|
case 0:
|
|
265
|
-
localVarPath = "/insuranceservice/v1/
|
|
265
|
+
localVarPath = "/insuranceservice/v1/partner-roles";
|
|
266
266
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
267
267
|
if (configuration) {
|
|
268
268
|
baseOptions = configuration.baseOptions;
|
|
@@ -314,15 +314,15 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
316
|
/**
|
|
317
|
-
* Updates the specified
|
|
318
|
-
* @summary Update the
|
|
317
|
+
* Updates the specified partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
318
|
+
* @summary Update the partner role
|
|
319
319
|
* @param {string} code Unique identifier for the object.
|
|
320
|
-
* @param {
|
|
320
|
+
* @param {UpdatePartnerRoleRequestDto} updatePartnerRoleRequestDto
|
|
321
321
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
322
322
|
* @param {*} [options] Override http request option.
|
|
323
323
|
* @throws {RequiredError}
|
|
324
324
|
*/
|
|
325
|
-
|
|
325
|
+
updatePartnerRole: function (code, updatePartnerRoleRequestDto, authorization, options) {
|
|
326
326
|
if (options === void 0) { options = {}; }
|
|
327
327
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
328
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -330,10 +330,10 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
330
330
|
switch (_a.label) {
|
|
331
331
|
case 0:
|
|
332
332
|
// verify required parameter 'code' is not null or undefined
|
|
333
|
-
(0, common_1.assertParamExists)('
|
|
334
|
-
// verify required parameter '
|
|
335
|
-
(0, common_1.assertParamExists)('
|
|
336
|
-
localVarPath = "/insuranceservice/v1/
|
|
333
|
+
(0, common_1.assertParamExists)('updatePartnerRole', 'code', code);
|
|
334
|
+
// verify required parameter 'updatePartnerRoleRequestDto' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('updatePartnerRole', 'updatePartnerRoleRequestDto', updatePartnerRoleRequestDto);
|
|
336
|
+
localVarPath = "/insuranceservice/v1/partner-roles/{code}"
|
|
337
337
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
338
338
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
339
339
|
if (configuration) {
|
|
@@ -357,7 +357,7 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
357
357
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
358
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
359
359
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
360
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
360
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePartnerRoleRequestDto, localVarRequestOptions, configuration);
|
|
361
361
|
return [2 /*return*/, {
|
|
362
362
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
363
363
|
options: localVarRequestOptions,
|
|
@@ -368,28 +368,28 @@ var PolicyPartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
368
368
|
},
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
|
-
exports.
|
|
371
|
+
exports.PartnerRolesApiAxiosParamCreator = PartnerRolesApiAxiosParamCreator;
|
|
372
372
|
/**
|
|
373
|
-
*
|
|
373
|
+
* PartnerRolesApi - functional programming interface
|
|
374
374
|
* @export
|
|
375
375
|
*/
|
|
376
|
-
var
|
|
377
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
376
|
+
var PartnerRolesApiFp = function (configuration) {
|
|
377
|
+
var localVarAxiosParamCreator = (0, exports.PartnerRolesApiAxiosParamCreator)(configuration);
|
|
378
378
|
return {
|
|
379
379
|
/**
|
|
380
|
-
* This will create a
|
|
381
|
-
* @summary Create the
|
|
382
|
-
* @param {
|
|
380
|
+
* This will create a partner role.
|
|
381
|
+
* @summary Create the partner role
|
|
382
|
+
* @param {CreatePartnerRoleRequestDto} createPartnerRoleRequestDto
|
|
383
383
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
*/
|
|
387
|
-
|
|
387
|
+
createPartnerRole: function (createPartnerRoleRequestDto, authorization, options) {
|
|
388
388
|
return __awaiter(this, void 0, void 0, function () {
|
|
389
389
|
var localVarAxiosArgs;
|
|
390
390
|
return __generator(this, function (_a) {
|
|
391
391
|
switch (_a.label) {
|
|
392
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
392
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPartnerRole(createPartnerRoleRequestDto, authorization, options)];
|
|
393
393
|
case 1:
|
|
394
394
|
localVarAxiosArgs = _a.sent();
|
|
395
395
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -398,19 +398,19 @@ var PolicyPartnerRolesApiFp = function (configuration) {
|
|
|
398
398
|
});
|
|
399
399
|
},
|
|
400
400
|
/**
|
|
401
|
-
* Permanently deletes the
|
|
402
|
-
* @summary Delete the
|
|
401
|
+
* Permanently deletes the partner role. Supply the unique code that was returned when you created the partner role and this will delete it.
|
|
402
|
+
* @summary Delete the partner role
|
|
403
403
|
* @param {string} code Unique identifier for the object.
|
|
404
404
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
405
405
|
* @param {*} [options] Override http request option.
|
|
406
406
|
* @throws {RequiredError}
|
|
407
407
|
*/
|
|
408
|
-
|
|
408
|
+
deletePartnerRole: function (code, authorization, options) {
|
|
409
409
|
return __awaiter(this, void 0, void 0, function () {
|
|
410
410
|
var localVarAxiosArgs;
|
|
411
411
|
return __generator(this, function (_a) {
|
|
412
412
|
switch (_a.label) {
|
|
413
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
413
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePartnerRole(code, authorization, options)];
|
|
414
414
|
case 1:
|
|
415
415
|
localVarAxiosArgs = _a.sent();
|
|
416
416
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -419,19 +419,19 @@ var PolicyPartnerRolesApiFp = function (configuration) {
|
|
|
419
419
|
});
|
|
420
420
|
},
|
|
421
421
|
/**
|
|
422
|
-
* Retrieves the details of the
|
|
423
|
-
* @summary Retrieve the
|
|
422
|
+
* Retrieves the details of the partner role that was previously created. Supply the unique partner role code that was returned when you created it and Emil Api will return the corresponding partner role information.
|
|
423
|
+
* @summary Retrieve the partner role
|
|
424
424
|
* @param {string} code Unique identifier for the object.
|
|
425
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
426
|
* @param {*} [options] Override http request option.
|
|
427
427
|
* @throws {RequiredError}
|
|
428
428
|
*/
|
|
429
|
-
|
|
429
|
+
getPartnerRole: function (code, authorization, options) {
|
|
430
430
|
return __awaiter(this, void 0, void 0, function () {
|
|
431
431
|
var localVarAxiosArgs;
|
|
432
432
|
return __generator(this, function (_a) {
|
|
433
433
|
switch (_a.label) {
|
|
434
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
434
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerRole(code, authorization, options)];
|
|
435
435
|
case 1:
|
|
436
436
|
localVarAxiosArgs = _a.sent();
|
|
437
437
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -440,25 +440,25 @@ var PolicyPartnerRolesApiFp = function (configuration) {
|
|
|
440
440
|
});
|
|
441
441
|
},
|
|
442
442
|
/**
|
|
443
|
-
* Returns a list of
|
|
444
|
-
* @summary List
|
|
443
|
+
* Returns a list of partner roles you have previously created. The partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
444
|
+
* @summary List partner roles
|
|
445
445
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
446
446
|
* @param {number} [pageSize] Page size.
|
|
447
447
|
* @param {string} [pageToken] Page token.
|
|
448
|
-
* @param {
|
|
449
|
-
* @param {
|
|
450
|
-
* @param {
|
|
451
|
-
* @param {
|
|
448
|
+
* @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: name, productSlug</i>
|
|
449
|
+
* @param {string} [search] Search query.
|
|
450
|
+
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, name, productSlug, createdAt, updatedAt</i>
|
|
451
|
+
* @param {string} [expand] This entity has no expand parameters
|
|
452
452
|
* @param {string} [filters]
|
|
453
453
|
* @param {*} [options] Override http request option.
|
|
454
454
|
* @throws {RequiredError}
|
|
455
455
|
*/
|
|
456
|
-
|
|
456
|
+
listPartnerRole: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
457
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
458
458
|
var localVarAxiosArgs;
|
|
459
459
|
return __generator(this, function (_a) {
|
|
460
460
|
switch (_a.label) {
|
|
461
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartnerRole(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
462
462
|
case 1:
|
|
463
463
|
localVarAxiosArgs = _a.sent();
|
|
464
464
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -467,20 +467,20 @@ var PolicyPartnerRolesApiFp = function (configuration) {
|
|
|
467
467
|
});
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
|
-
* Updates the specified
|
|
471
|
-
* @summary Update the
|
|
470
|
+
* Updates the specified partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
471
|
+
* @summary Update the partner role
|
|
472
472
|
* @param {string} code Unique identifier for the object.
|
|
473
|
-
* @param {
|
|
473
|
+
* @param {UpdatePartnerRoleRequestDto} updatePartnerRoleRequestDto
|
|
474
474
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
475
475
|
* @param {*} [options] Override http request option.
|
|
476
476
|
* @throws {RequiredError}
|
|
477
477
|
*/
|
|
478
|
-
|
|
478
|
+
updatePartnerRole: function (code, updatePartnerRoleRequestDto, authorization, options) {
|
|
479
479
|
return __awaiter(this, void 0, void 0, function () {
|
|
480
480
|
var localVarAxiosArgs;
|
|
481
481
|
return __generator(this, function (_a) {
|
|
482
482
|
switch (_a.label) {
|
|
483
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
483
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePartnerRole(code, updatePartnerRoleRequestDto, authorization, options)];
|
|
484
484
|
case 1:
|
|
485
485
|
localVarAxiosArgs = _a.sent();
|
|
486
486
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -490,151 +490,151 @@ var PolicyPartnerRolesApiFp = function (configuration) {
|
|
|
490
490
|
},
|
|
491
491
|
};
|
|
492
492
|
};
|
|
493
|
-
exports.
|
|
493
|
+
exports.PartnerRolesApiFp = PartnerRolesApiFp;
|
|
494
494
|
/**
|
|
495
|
-
*
|
|
495
|
+
* PartnerRolesApi - factory interface
|
|
496
496
|
* @export
|
|
497
497
|
*/
|
|
498
|
-
var
|
|
499
|
-
var localVarFp = (0, exports.
|
|
498
|
+
var PartnerRolesApiFactory = function (configuration, basePath, axios) {
|
|
499
|
+
var localVarFp = (0, exports.PartnerRolesApiFp)(configuration);
|
|
500
500
|
return {
|
|
501
501
|
/**
|
|
502
|
-
* This will create a
|
|
503
|
-
* @summary Create the
|
|
504
|
-
* @param {
|
|
502
|
+
* This will create a partner role.
|
|
503
|
+
* @summary Create the partner role
|
|
504
|
+
* @param {CreatePartnerRoleRequestDto} createPartnerRoleRequestDto
|
|
505
505
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
506
506
|
* @param {*} [options] Override http request option.
|
|
507
507
|
* @throws {RequiredError}
|
|
508
508
|
*/
|
|
509
|
-
|
|
510
|
-
return localVarFp.
|
|
509
|
+
createPartnerRole: function (createPartnerRoleRequestDto, authorization, options) {
|
|
510
|
+
return localVarFp.createPartnerRole(createPartnerRoleRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
511
511
|
},
|
|
512
512
|
/**
|
|
513
|
-
* Permanently deletes the
|
|
514
|
-
* @summary Delete the
|
|
513
|
+
* Permanently deletes the partner role. Supply the unique code that was returned when you created the partner role and this will delete it.
|
|
514
|
+
* @summary Delete the partner role
|
|
515
515
|
* @param {string} code Unique identifier for the object.
|
|
516
516
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
517
517
|
* @param {*} [options] Override http request option.
|
|
518
518
|
* @throws {RequiredError}
|
|
519
519
|
*/
|
|
520
|
-
|
|
521
|
-
return localVarFp.
|
|
520
|
+
deletePartnerRole: function (code, authorization, options) {
|
|
521
|
+
return localVarFp.deletePartnerRole(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
522
522
|
},
|
|
523
523
|
/**
|
|
524
|
-
* Retrieves the details of the
|
|
525
|
-
* @summary Retrieve the
|
|
524
|
+
* Retrieves the details of the partner role that was previously created. Supply the unique partner role code that was returned when you created it and Emil Api will return the corresponding partner role information.
|
|
525
|
+
* @summary Retrieve the partner role
|
|
526
526
|
* @param {string} code Unique identifier for the object.
|
|
527
527
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
528
528
|
* @param {*} [options] Override http request option.
|
|
529
529
|
* @throws {RequiredError}
|
|
530
530
|
*/
|
|
531
|
-
|
|
532
|
-
return localVarFp.
|
|
531
|
+
getPartnerRole: function (code, authorization, options) {
|
|
532
|
+
return localVarFp.getPartnerRole(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
533
533
|
},
|
|
534
534
|
/**
|
|
535
|
-
* Returns a list of
|
|
536
|
-
* @summary List
|
|
535
|
+
* Returns a list of partner roles you have previously created. The partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
536
|
+
* @summary List partner roles
|
|
537
537
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
538
538
|
* @param {number} [pageSize] Page size.
|
|
539
539
|
* @param {string} [pageToken] Page token.
|
|
540
|
-
* @param {
|
|
541
|
-
* @param {
|
|
542
|
-
* @param {
|
|
543
|
-
* @param {
|
|
540
|
+
* @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: name, productSlug</i>
|
|
541
|
+
* @param {string} [search] Search query.
|
|
542
|
+
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, name, productSlug, createdAt, updatedAt</i>
|
|
543
|
+
* @param {string} [expand] This entity has no expand parameters
|
|
544
544
|
* @param {string} [filters]
|
|
545
545
|
* @param {*} [options] Override http request option.
|
|
546
546
|
* @throws {RequiredError}
|
|
547
547
|
*/
|
|
548
|
-
|
|
549
|
-
return localVarFp.
|
|
548
|
+
listPartnerRole: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
549
|
+
return localVarFp.listPartnerRole(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
550
550
|
},
|
|
551
551
|
/**
|
|
552
|
-
* Updates the specified
|
|
553
|
-
* @summary Update the
|
|
552
|
+
* Updates the specified partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
553
|
+
* @summary Update the partner role
|
|
554
554
|
* @param {string} code Unique identifier for the object.
|
|
555
|
-
* @param {
|
|
555
|
+
* @param {UpdatePartnerRoleRequestDto} updatePartnerRoleRequestDto
|
|
556
556
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
557
557
|
* @param {*} [options] Override http request option.
|
|
558
558
|
* @throws {RequiredError}
|
|
559
559
|
*/
|
|
560
|
-
|
|
561
|
-
return localVarFp.
|
|
560
|
+
updatePartnerRole: function (code, updatePartnerRoleRequestDto, authorization, options) {
|
|
561
|
+
return localVarFp.updatePartnerRole(code, updatePartnerRoleRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
562
562
|
},
|
|
563
563
|
};
|
|
564
564
|
};
|
|
565
|
-
exports.
|
|
565
|
+
exports.PartnerRolesApiFactory = PartnerRolesApiFactory;
|
|
566
566
|
/**
|
|
567
|
-
*
|
|
567
|
+
* PartnerRolesApi - object-oriented interface
|
|
568
568
|
* @export
|
|
569
|
-
* @class
|
|
569
|
+
* @class PartnerRolesApi
|
|
570
570
|
* @extends {BaseAPI}
|
|
571
571
|
*/
|
|
572
|
-
var
|
|
573
|
-
__extends(
|
|
574
|
-
function
|
|
572
|
+
var PartnerRolesApi = /** @class */ (function (_super) {
|
|
573
|
+
__extends(PartnerRolesApi, _super);
|
|
574
|
+
function PartnerRolesApi() {
|
|
575
575
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
576
576
|
}
|
|
577
577
|
/**
|
|
578
|
-
* This will create a
|
|
579
|
-
* @summary Create the
|
|
580
|
-
* @param {
|
|
578
|
+
* This will create a partner role.
|
|
579
|
+
* @summary Create the partner role
|
|
580
|
+
* @param {PartnerRolesApiCreatePartnerRoleRequest} requestParameters Request parameters.
|
|
581
581
|
* @param {*} [options] Override http request option.
|
|
582
582
|
* @throws {RequiredError}
|
|
583
|
-
* @memberof
|
|
583
|
+
* @memberof PartnerRolesApi
|
|
584
584
|
*/
|
|
585
|
-
|
|
585
|
+
PartnerRolesApi.prototype.createPartnerRole = function (requestParameters, options) {
|
|
586
586
|
var _this = this;
|
|
587
|
-
return (0, exports.
|
|
587
|
+
return (0, exports.PartnerRolesApiFp)(this.configuration).createPartnerRole(requestParameters.createPartnerRoleRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
588
588
|
};
|
|
589
589
|
/**
|
|
590
|
-
* Permanently deletes the
|
|
591
|
-
* @summary Delete the
|
|
592
|
-
* @param {
|
|
590
|
+
* Permanently deletes the partner role. Supply the unique code that was returned when you created the partner role and this will delete it.
|
|
591
|
+
* @summary Delete the partner role
|
|
592
|
+
* @param {PartnerRolesApiDeletePartnerRoleRequest} requestParameters Request parameters.
|
|
593
593
|
* @param {*} [options] Override http request option.
|
|
594
594
|
* @throws {RequiredError}
|
|
595
|
-
* @memberof
|
|
595
|
+
* @memberof PartnerRolesApi
|
|
596
596
|
*/
|
|
597
|
-
|
|
597
|
+
PartnerRolesApi.prototype.deletePartnerRole = function (requestParameters, options) {
|
|
598
598
|
var _this = this;
|
|
599
|
-
return (0, exports.
|
|
599
|
+
return (0, exports.PartnerRolesApiFp)(this.configuration).deletePartnerRole(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
600
600
|
};
|
|
601
601
|
/**
|
|
602
|
-
* Retrieves the details of the
|
|
603
|
-
* @summary Retrieve the
|
|
604
|
-
* @param {
|
|
602
|
+
* Retrieves the details of the partner role that was previously created. Supply the unique partner role code that was returned when you created it and Emil Api will return the corresponding partner role information.
|
|
603
|
+
* @summary Retrieve the partner role
|
|
604
|
+
* @param {PartnerRolesApiGetPartnerRoleRequest} requestParameters Request parameters.
|
|
605
605
|
* @param {*} [options] Override http request option.
|
|
606
606
|
* @throws {RequiredError}
|
|
607
|
-
* @memberof
|
|
607
|
+
* @memberof PartnerRolesApi
|
|
608
608
|
*/
|
|
609
|
-
|
|
609
|
+
PartnerRolesApi.prototype.getPartnerRole = function (requestParameters, options) {
|
|
610
610
|
var _this = this;
|
|
611
|
-
return (0, exports.
|
|
611
|
+
return (0, exports.PartnerRolesApiFp)(this.configuration).getPartnerRole(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
612
612
|
};
|
|
613
613
|
/**
|
|
614
|
-
* Returns a list of
|
|
615
|
-
* @summary List
|
|
616
|
-
* @param {
|
|
614
|
+
* Returns a list of partner roles you have previously created. The partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
615
|
+
* @summary List partner roles
|
|
616
|
+
* @param {PartnerRolesApiListPartnerRoleRequest} requestParameters Request parameters.
|
|
617
617
|
* @param {*} [options] Override http request option.
|
|
618
618
|
* @throws {RequiredError}
|
|
619
|
-
* @memberof
|
|
619
|
+
* @memberof PartnerRolesApi
|
|
620
620
|
*/
|
|
621
|
-
|
|
621
|
+
PartnerRolesApi.prototype.listPartnerRole = function (requestParameters, options) {
|
|
622
622
|
var _this = this;
|
|
623
623
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
624
|
-
return (0, exports.
|
|
624
|
+
return (0, exports.PartnerRolesApiFp)(this.configuration).listPartnerRole(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); });
|
|
625
625
|
};
|
|
626
626
|
/**
|
|
627
|
-
* Updates the specified
|
|
628
|
-
* @summary Update the
|
|
629
|
-
* @param {
|
|
627
|
+
* Updates the specified partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
628
|
+
* @summary Update the partner role
|
|
629
|
+
* @param {PartnerRolesApiUpdatePartnerRoleRequest} requestParameters Request parameters.
|
|
630
630
|
* @param {*} [options] Override http request option.
|
|
631
631
|
* @throws {RequiredError}
|
|
632
|
-
* @memberof
|
|
632
|
+
* @memberof PartnerRolesApi
|
|
633
633
|
*/
|
|
634
|
-
|
|
634
|
+
PartnerRolesApi.prototype.updatePartnerRole = function (requestParameters, options) {
|
|
635
635
|
var _this = this;
|
|
636
|
-
return (0, exports.
|
|
636
|
+
return (0, exports.PartnerRolesApiFp)(this.configuration).updatePartnerRole(requestParameters.code, requestParameters.updatePartnerRoleRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
637
637
|
};
|
|
638
|
-
return
|
|
638
|
+
return PartnerRolesApi;
|
|
639
639
|
}(base_1.BaseAPI));
|
|
640
|
-
exports.
|
|
640
|
+
exports.PartnerRolesApi = PartnerRolesApi;
|