@emilgroup/billing-v2-sdk 0.0.0-stage → 1.0.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/.openapi-generator/FILES +93 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +50 -2
- package/api/bill-runs-api.ts +468 -0
- package/api/bills-api.ts +145 -0
- package/api/invoices-api.ts +1530 -0
- package/api/jobs-api.ts +756 -0
- package/api/policy-billings-api.ts +591 -0
- package/api.ts +35 -0
- package/base.ts +588 -0
- package/common.ts +199 -0
- package/configuration.ts +130 -0
- package/dist/api/bill-runs-api.d.ts +266 -0
- package/dist/api/bill-runs-api.js +466 -0
- package/dist/api/bills-api.d.ts +87 -0
- package/dist/api/bills-api.js +207 -0
- package/dist/api/invoices-api.d.ts +847 -0
- package/dist/api/invoices-api.js +1353 -0
- package/dist/api/jobs-api.d.ts +426 -0
- package/dist/api/jobs-api.js +708 -0
- package/dist/api/policy-billings-api.d.ts +332 -0
- package/dist/api/policy-billings-api.js +561 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +34 -0
- package/dist/base.d.ts +120 -0
- package/dist/base.js +604 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +106 -0
- package/dist/configuration.js +54 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/any.d.ts +25 -0
- package/dist/models/any.js +15 -0
- package/dist/models/bill-item.d.ts +132 -0
- package/dist/models/bill-item.js +15 -0
- package/dist/models/bill-run.d.ts +145 -0
- package/dist/models/bill-run.js +15 -0
- package/dist/models/bill.d.ts +194 -0
- package/dist/models/bill.js +15 -0
- package/dist/models/cancel-job-response.d.ts +25 -0
- package/dist/models/cancel-job-response.js +15 -0
- package/dist/models/create-correction-invoices-request.d.ts +72 -0
- package/dist/models/create-correction-invoices-request.js +15 -0
- package/dist/models/create-correction-invoices-response.d.ts +31 -0
- package/dist/models/create-correction-invoices-response.js +15 -0
- package/dist/models/create-detail-export-job-request.d.ts +56 -0
- package/dist/models/create-detail-export-job-request.js +15 -0
- package/dist/models/create-detail-export-job-response.d.ts +25 -0
- package/dist/models/create-detail-export-job-response.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-request.d.ts +42 -0
- package/dist/models/create-estimated-invoice-for-interval-request.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-response.d.ts +25 -0
- package/dist/models/create-estimated-invoice-for-interval-response.js +15 -0
- package/dist/models/create-estimated-invoice-request.d.ts +36 -0
- package/dist/models/create-estimated-invoice-request.js +15 -0
- package/dist/models/create-estimated-invoice-response.d.ts +25 -0
- package/dist/models/create-estimated-invoice-response.js +15 -0
- package/dist/models/create-export-job-request.d.ts +68 -0
- package/dist/models/create-export-job-request.js +15 -0
- package/dist/models/create-export-job-response.d.ts +25 -0
- package/dist/models/create-export-job-response.js +15 -0
- package/dist/models/create-initial-invoice-request.d.ts +72 -0
- package/dist/models/create-initial-invoice-request.js +15 -0
- package/dist/models/create-initial-invoice-response.d.ts +25 -0
- package/dist/models/create-initial-invoice-response.js +15 -0
- package/dist/models/create-invoice-request.d.ts +67 -0
- package/dist/models/create-invoice-request.js +15 -0
- package/dist/models/create-invoice-response.d.ts +25 -0
- package/dist/models/create-invoice-response.js +15 -0
- package/dist/models/create-invoice-status-body.d.ts +24 -0
- package/dist/models/create-invoice-status-body.js +15 -0
- package/dist/models/create-invoice-status-response.d.ts +25 -0
- package/dist/models/create-invoice-status-response.js +15 -0
- package/dist/models/create-item-request.d.ts +36 -0
- package/dist/models/create-item-request.js +15 -0
- package/dist/models/create-policy-billing-request.d.ts +42 -0
- package/dist/models/create-policy-billing-request.js +15 -0
- package/dist/models/create-policy-billing-response.d.ts +25 -0
- package/dist/models/create-policy-billing-response.js +15 -0
- package/dist/models/create-recurring-invoice-request.d.ts +72 -0
- package/dist/models/create-recurring-invoice-request.js +15 -0
- package/dist/models/create-recurring-invoice-response.d.ts +31 -0
- package/dist/models/create-recurring-invoice-response.js +15 -0
- package/dist/models/create-termination-invoice-request.d.ts +60 -0
- package/dist/models/create-termination-invoice-request.js +15 -0
- package/dist/models/create-termination-invoice-response.d.ts +25 -0
- package/dist/models/create-termination-invoice-response.js +15 -0
- package/dist/models/create-withdraw-invoice-request.d.ts +48 -0
- package/dist/models/create-withdraw-invoice-request.js +15 -0
- package/dist/models/create-withdraw-invoice-response.d.ts +25 -0
- package/dist/models/create-withdraw-invoice-response.js +15 -0
- package/dist/models/estimate-history-entry.d.ts +36 -0
- package/dist/models/estimate-history-entry.js +15 -0
- package/dist/models/export-column.d.ts +36 -0
- package/dist/models/export-column.js +15 -0
- package/dist/models/filter-field.d.ts +110 -0
- package/dist/models/filter-field.js +15 -0
- package/dist/models/filter-value.d.ts +37 -0
- package/dist/models/filter-value.js +15 -0
- package/dist/models/get-bill-response.d.ts +25 -0
- package/dist/models/get-bill-response.js +15 -0
- package/dist/models/get-bill-run-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-bill-run-filter-catalog-response.js +15 -0
- package/dist/models/get-bill-run-response.d.ts +25 -0
- package/dist/models/get-bill-run-response.js +15 -0
- package/dist/models/get-invoice-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-invoice-filter-catalog-response.js +15 -0
- package/dist/models/get-invoice-response.d.ts +25 -0
- package/dist/models/get-invoice-response.js +15 -0
- package/dist/models/get-job-download-response.d.ts +25 -0
- package/dist/models/get-job-download-response.js +15 -0
- package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-job-filter-catalog-response.js +15 -0
- package/dist/models/get-job-response.d.ts +25 -0
- package/dist/models/get-job-response.js +15 -0
- package/dist/models/get-policies-billing-date-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-policies-billing-date-filter-catalog-response.js +15 -0
- package/dist/models/get-policies-billing-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-policies-billing-filter-catalog-response.js +15 -0
- package/dist/models/get-policy-billing-response.d.ts +25 -0
- package/dist/models/get-policy-billing-response.js +15 -0
- package/dist/models/highlight.d.ts +30 -0
- package/dist/models/highlight.js +15 -0
- package/dist/models/index.d.ts +75 -0
- package/dist/models/index.js +91 -0
- package/dist/models/invoice-item.d.ts +204 -0
- package/dist/models/invoice-item.js +15 -0
- package/dist/models/invoice-payment.d.ts +108 -0
- package/dist/models/invoice-payment.js +15 -0
- package/dist/models/invoice-payments.d.ts +25 -0
- package/dist/models/invoice-payments.js +15 -0
- package/dist/models/invoice-status.d.ts +54 -0
- package/dist/models/invoice-status.js +15 -0
- package/dist/models/invoice.d.ts +275 -0
- package/dist/models/invoice.js +15 -0
- package/dist/models/job-download.d.ts +36 -0
- package/dist/models/job-download.js +15 -0
- package/dist/models/job-error.d.ts +30 -0
- package/dist/models/job-error.js +15 -0
- package/dist/models/job-progress.d.ts +36 -0
- package/dist/models/job-progress.js +15 -0
- package/dist/models/job.d.ts +134 -0
- package/dist/models/job.js +15 -0
- package/dist/models/list-bill-runs-response.d.ts +37 -0
- package/dist/models/list-bill-runs-response.js +15 -0
- package/dist/models/list-invoices-response.d.ts +37 -0
- package/dist/models/list-invoices-response.js +15 -0
- package/dist/models/list-jobs-response.d.ts +37 -0
- package/dist/models/list-jobs-response.js +15 -0
- package/dist/models/list-policies-billing-dates-response.d.ts +37 -0
- package/dist/models/list-policies-billing-dates-response.js +15 -0
- package/dist/models/list-policies-billings-response.d.ts +37 -0
- package/dist/models/list-policies-billings-response.js +15 -0
- package/dist/models/list-request.d.ts +60 -0
- package/dist/models/list-request.js +15 -0
- package/dist/models/localized-text.d.ts +30 -0
- package/dist/models/localized-text.js +15 -0
- package/dist/models/match.d.ts +69 -0
- package/dist/models/match.js +15 -0
- package/dist/models/payment-term.d.ts +42 -0
- package/dist/models/payment-term.js +15 -0
- package/dist/models/policy-billing.d.ts +139 -0
- package/dist/models/policy-billing.js +15 -0
- package/dist/models/request-bill-run-request.d.ts +30 -0
- package/dist/models/request-bill-run-request.js +15 -0
- package/dist/models/request-bill-run-response.d.ts +25 -0
- package/dist/models/request-bill-run-response.js +15 -0
- package/dist/models/resolved-billing-config.d.ts +130 -0
- package/dist/models/resolved-billing-config.js +15 -0
- package/dist/models/revert-invoice-request.d.ts +24 -0
- package/dist/models/revert-invoice-request.js +15 -0
- package/dist/models/revert-invoice-response.d.ts +25 -0
- package/dist/models/revert-invoice-response.js +15 -0
- package/dist/models/slice.d.ts +30 -0
- package/dist/models/slice.js +15 -0
- package/dist/models/status.d.ts +37 -0
- package/dist/models/status.js +15 -0
- package/dist/models/tax.d.ts +30 -0
- package/dist/models/tax.js +15 -0
- package/dist/models/update-policy-billing-body.d.ts +24 -0
- package/dist/models/update-policy-billing-body.js +15 -0
- package/dist/models/update-policy-billing-response.d.ts +25 -0
- package/dist/models/update-policy-billing-response.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/any.ts +32 -0
- package/models/bill-item.ts +138 -0
- package/models/bill-run.ts +151 -0
- package/models/bill.ts +200 -0
- package/models/cancel-job-response.ts +31 -0
- package/models/create-correction-invoices-request.ts +78 -0
- package/models/create-correction-invoices-response.ts +37 -0
- package/models/create-detail-export-job-request.ts +60 -0
- package/models/create-detail-export-job-response.ts +31 -0
- package/models/create-estimated-invoice-for-interval-request.ts +48 -0
- package/models/create-estimated-invoice-for-interval-response.ts +31 -0
- package/models/create-estimated-invoice-request.ts +42 -0
- package/models/create-estimated-invoice-response.ts +31 -0
- package/models/create-export-job-request.ts +74 -0
- package/models/create-export-job-response.ts +31 -0
- package/models/create-initial-invoice-request.ts +78 -0
- package/models/create-initial-invoice-response.ts +31 -0
- package/models/create-invoice-request.ts +73 -0
- package/models/create-invoice-response.ts +31 -0
- package/models/create-invoice-status-body.ts +30 -0
- package/models/create-invoice-status-response.ts +31 -0
- package/models/create-item-request.ts +42 -0
- package/models/create-policy-billing-request.ts +48 -0
- package/models/create-policy-billing-response.ts +31 -0
- package/models/create-recurring-invoice-request.ts +78 -0
- package/models/create-recurring-invoice-response.ts +37 -0
- package/models/create-termination-invoice-request.ts +66 -0
- package/models/create-termination-invoice-response.ts +31 -0
- package/models/create-withdraw-invoice-request.ts +54 -0
- package/models/create-withdraw-invoice-response.ts +31 -0
- package/models/estimate-history-entry.ts +42 -0
- package/models/export-column.ts +42 -0
- package/models/filter-field.ts +116 -0
- package/models/filter-value.ts +43 -0
- package/models/get-bill-response.ts +31 -0
- package/models/get-bill-run-filter-catalog-response.ts +37 -0
- package/models/get-bill-run-response.ts +31 -0
- package/models/get-invoice-filter-catalog-response.ts +37 -0
- package/models/get-invoice-response.ts +31 -0
- package/models/get-job-download-response.ts +31 -0
- package/models/get-job-filter-catalog-response.ts +37 -0
- package/models/get-job-response.ts +31 -0
- package/models/get-policies-billing-date-filter-catalog-response.ts +37 -0
- package/models/get-policies-billing-filter-catalog-response.ts +37 -0
- package/models/get-policy-billing-response.ts +31 -0
- package/models/highlight.ts +36 -0
- package/models/index.ts +75 -0
- package/models/invoice-item.ts +210 -0
- package/models/invoice-payment.ts +114 -0
- package/models/invoice-payments.ts +31 -0
- package/models/invoice-status.ts +60 -0
- package/models/invoice.ts +281 -0
- package/models/job-download.ts +42 -0
- package/models/job-error.ts +36 -0
- package/models/job-progress.ts +42 -0
- package/models/job.ts +140 -0
- package/models/list-bill-runs-response.ts +43 -0
- package/models/list-invoices-response.ts +43 -0
- package/models/list-jobs-response.ts +43 -0
- package/models/list-policies-billing-dates-response.ts +43 -0
- package/models/list-policies-billings-response.ts +43 -0
- package/models/list-request.ts +66 -0
- package/models/localized-text.ts +36 -0
- package/models/match.ts +75 -0
- package/models/payment-term.ts +48 -0
- package/models/policy-billing.ts +145 -0
- package/models/request-bill-run-request.ts +36 -0
- package/models/request-bill-run-response.ts +31 -0
- package/models/resolved-billing-config.ts +134 -0
- package/models/revert-invoice-request.ts +30 -0
- package/models/revert-invoice-response.ts +31 -0
- package/models/slice.ts +36 -0
- package/models/status.ts +43 -0
- package/models/tax.ts +36 -0
- package/models/update-policy-billing-body.ts +30 -0
- package/models/update-policy-billing-response.ts +31 -0
- package/package.json +25 -4
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,708 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Billing Service
|
|
6
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0
|
|
9
|
+
*
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* JobsApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var JobsApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* This call is not available yet and answers Unimplemented.
|
|
97
|
+
* @summary Cancels a job.
|
|
98
|
+
* @param {string} code The job\'s code.
|
|
99
|
+
* @param {object} body
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
jobServiceCancelJob: function (code, body, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
// verify required parameter 'code' is not null or undefined
|
|
109
|
+
(0, common_1.assertParamExists)('jobServiceCancelJob', 'code', code);
|
|
110
|
+
// verify required parameter 'body' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('jobServiceCancelJob', 'body', body);
|
|
112
|
+
localVarPath = "/billingservice/v2/jobs/{code}:cancel"
|
|
113
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
114
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
120
|
+
localVarHeaderParameter = {};
|
|
121
|
+
localVarQueryParameter = {};
|
|
122
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
123
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
126
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
127
|
+
return [2 /*return*/, {
|
|
128
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
129
|
+
options: localVarRequestOptions,
|
|
130
|
+
}];
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* This call is not available yet and answers Unimplemented.
|
|
136
|
+
* @summary Creates a job that exports one invoice as a workbook.
|
|
137
|
+
* @param {CreateDetailExportJobRequest} body The request of `CreateDetailExportJob`.
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
jobServiceCreateDetailExportJob: function (body, options) {
|
|
142
|
+
if (options === void 0) { options = {}; }
|
|
143
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
144
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
145
|
+
return __generator(this, function (_a) {
|
|
146
|
+
// verify required parameter 'body' is not null or undefined
|
|
147
|
+
(0, common_1.assertParamExists)('jobServiceCreateDetailExportJob', 'body', body);
|
|
148
|
+
localVarPath = "/billingservice/v2/exports:detail";
|
|
149
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
150
|
+
if (configuration) {
|
|
151
|
+
baseOptions = configuration.baseOptions;
|
|
152
|
+
baseAccessToken = configuration.accessToken;
|
|
153
|
+
}
|
|
154
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
155
|
+
localVarHeaderParameter = {};
|
|
156
|
+
localVarQueryParameter = {};
|
|
157
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
158
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
159
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
160
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
161
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
162
|
+
return [2 /*return*/, {
|
|
163
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
164
|
+
options: localVarRequestOptions,
|
|
165
|
+
}];
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
},
|
|
169
|
+
/**
|
|
170
|
+
* This call is not available yet and answers Unimplemented.
|
|
171
|
+
* @summary Creates a job that exports a billing list as a file.
|
|
172
|
+
* @param {CreateExportJobRequest} body The request of `CreateExportJob`.
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
jobServiceCreateExportJob: function (body, options) {
|
|
177
|
+
if (options === void 0) { options = {}; }
|
|
178
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
179
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
180
|
+
return __generator(this, function (_a) {
|
|
181
|
+
// verify required parameter 'body' is not null or undefined
|
|
182
|
+
(0, common_1.assertParamExists)('jobServiceCreateExportJob', 'body', body);
|
|
183
|
+
localVarPath = "/billingservice/v2/exports";
|
|
184
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
185
|
+
if (configuration) {
|
|
186
|
+
baseOptions = configuration.baseOptions;
|
|
187
|
+
baseAccessToken = configuration.accessToken;
|
|
188
|
+
}
|
|
189
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
190
|
+
localVarHeaderParameter = {};
|
|
191
|
+
localVarQueryParameter = {};
|
|
192
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
193
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
194
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
196
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
197
|
+
return [2 /*return*/, {
|
|
198
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
199
|
+
options: localVarRequestOptions,
|
|
200
|
+
}];
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
* This call is not available yet and answers Unimplemented.
|
|
206
|
+
* @summary Returns one of the caller\'s jobs.
|
|
207
|
+
* @param {string} code The job\'s code.
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
jobServiceGetJob: function (code, options) {
|
|
212
|
+
if (options === void 0) { options = {}; }
|
|
213
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
215
|
+
return __generator(this, function (_a) {
|
|
216
|
+
// verify required parameter 'code' is not null or undefined
|
|
217
|
+
(0, common_1.assertParamExists)('jobServiceGetJob', 'code', code);
|
|
218
|
+
localVarPath = "/billingservice/v2/jobs/{code}"
|
|
219
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
220
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
baseAccessToken = configuration.accessToken;
|
|
224
|
+
}
|
|
225
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
226
|
+
localVarHeaderParameter = {};
|
|
227
|
+
localVarQueryParameter = {};
|
|
228
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
229
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
230
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
231
|
+
return [2 /*return*/, {
|
|
232
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
}];
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
},
|
|
238
|
+
/**
|
|
239
|
+
* This call is not available yet and answers Unimplemented.
|
|
240
|
+
* @summary Returns a signed link to the job\'s file.
|
|
241
|
+
* @param {string} code The job\'s code.
|
|
242
|
+
* @param {string} [artifact] The file to download: `output`, the export file. It is the default and the only file a billing job has.
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @throws {RequiredError}
|
|
245
|
+
*/
|
|
246
|
+
jobServiceGetJobDownload: function (code, artifact, options) {
|
|
247
|
+
if (options === void 0) { options = {}; }
|
|
248
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
249
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
// verify required parameter 'code' is not null or undefined
|
|
252
|
+
(0, common_1.assertParamExists)('jobServiceGetJobDownload', 'code', code);
|
|
253
|
+
localVarPath = "/billingservice/v2/jobs/{code}:download"
|
|
254
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
255
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
256
|
+
if (configuration) {
|
|
257
|
+
baseOptions = configuration.baseOptions;
|
|
258
|
+
baseAccessToken = configuration.accessToken;
|
|
259
|
+
}
|
|
260
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
261
|
+
localVarHeaderParameter = {};
|
|
262
|
+
localVarQueryParameter = {};
|
|
263
|
+
if (artifact !== undefined) {
|
|
264
|
+
localVarQueryParameter['artifact'] = artifact;
|
|
265
|
+
}
|
|
266
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
267
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
268
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
269
|
+
return [2 /*return*/, {
|
|
270
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
271
|
+
options: localVarRequestOptions,
|
|
272
|
+
}];
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
* This call is not available yet and answers Unimplemented.
|
|
278
|
+
* @summary Returns the filter catalog of the job list.
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
jobServiceGetJobFilterCatalog: function (options) {
|
|
283
|
+
if (options === void 0) { options = {}; }
|
|
284
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
285
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
286
|
+
return __generator(this, function (_a) {
|
|
287
|
+
localVarPath = "/billingservice/v2/jobs:filterCatalog";
|
|
288
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
289
|
+
if (configuration) {
|
|
290
|
+
baseOptions = configuration.baseOptions;
|
|
291
|
+
baseAccessToken = configuration.accessToken;
|
|
292
|
+
}
|
|
293
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
294
|
+
localVarHeaderParameter = {};
|
|
295
|
+
localVarQueryParameter = {};
|
|
296
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
297
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
299
|
+
return [2 /*return*/, {
|
|
300
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
301
|
+
options: localVarRequestOptions,
|
|
302
|
+
}];
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* This call is not available yet and answers Unimplemented.
|
|
308
|
+
* @summary Lists the caller\'s jobs.
|
|
309
|
+
* @param {number} [pageSize]
|
|
310
|
+
* @param {string} [pageToken]
|
|
311
|
+
* @param {string} [filter]
|
|
312
|
+
* @param {string} [search]
|
|
313
|
+
* @param {string} [order]
|
|
314
|
+
* @param {string} [expand]
|
|
315
|
+
* @param {string} [filters]
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
*/
|
|
319
|
+
jobServiceListJobs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
320
|
+
if (options === void 0) { options = {}; }
|
|
321
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
322
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
323
|
+
return __generator(this, function (_a) {
|
|
324
|
+
localVarPath = "/billingservice/v2/jobs";
|
|
325
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
326
|
+
if (configuration) {
|
|
327
|
+
baseOptions = configuration.baseOptions;
|
|
328
|
+
baseAccessToken = configuration.accessToken;
|
|
329
|
+
}
|
|
330
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
331
|
+
localVarHeaderParameter = {};
|
|
332
|
+
localVarQueryParameter = {};
|
|
333
|
+
if (pageSize !== undefined) {
|
|
334
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
335
|
+
}
|
|
336
|
+
if (pageToken !== undefined) {
|
|
337
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
338
|
+
}
|
|
339
|
+
if (filter !== undefined) {
|
|
340
|
+
localVarQueryParameter['filter'] = filter;
|
|
341
|
+
}
|
|
342
|
+
if (search !== undefined) {
|
|
343
|
+
localVarQueryParameter['search'] = search;
|
|
344
|
+
}
|
|
345
|
+
if (order !== undefined) {
|
|
346
|
+
localVarQueryParameter['order'] = order;
|
|
347
|
+
}
|
|
348
|
+
if (expand !== undefined) {
|
|
349
|
+
localVarQueryParameter['expand'] = expand;
|
|
350
|
+
}
|
|
351
|
+
if (filters !== undefined) {
|
|
352
|
+
localVarQueryParameter['filters'] = filters;
|
|
353
|
+
}
|
|
354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
355
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
357
|
+
return [2 /*return*/, {
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
}];
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
},
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
|
|
367
|
+
/**
|
|
368
|
+
* JobsApi - functional programming interface
|
|
369
|
+
* @export
|
|
370
|
+
*/
|
|
371
|
+
var JobsApiFp = function (configuration) {
|
|
372
|
+
var localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
|
|
373
|
+
return {
|
|
374
|
+
/**
|
|
375
|
+
* This call is not available yet and answers Unimplemented.
|
|
376
|
+
* @summary Cancels a job.
|
|
377
|
+
* @param {string} code The job\'s code.
|
|
378
|
+
* @param {object} body
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
jobServiceCancelJob: function (code, body, options) {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
384
|
+
var localVarAxiosArgs;
|
|
385
|
+
return __generator(this, function (_a) {
|
|
386
|
+
switch (_a.label) {
|
|
387
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceCancelJob(code, body, options)];
|
|
388
|
+
case 1:
|
|
389
|
+
localVarAxiosArgs = _a.sent();
|
|
390
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
},
|
|
395
|
+
/**
|
|
396
|
+
* This call is not available yet and answers Unimplemented.
|
|
397
|
+
* @summary Creates a job that exports one invoice as a workbook.
|
|
398
|
+
* @param {CreateDetailExportJobRequest} body The request of `CreateDetailExportJob`.
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
jobServiceCreateDetailExportJob: function (body, options) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
404
|
+
var localVarAxiosArgs;
|
|
405
|
+
return __generator(this, function (_a) {
|
|
406
|
+
switch (_a.label) {
|
|
407
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceCreateDetailExportJob(body, options)];
|
|
408
|
+
case 1:
|
|
409
|
+
localVarAxiosArgs = _a.sent();
|
|
410
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
});
|
|
414
|
+
},
|
|
415
|
+
/**
|
|
416
|
+
* This call is not available yet and answers Unimplemented.
|
|
417
|
+
* @summary Creates a job that exports a billing list as a file.
|
|
418
|
+
* @param {CreateExportJobRequest} body The request of `CreateExportJob`.
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
jobServiceCreateExportJob: function (body, options) {
|
|
423
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
424
|
+
var localVarAxiosArgs;
|
|
425
|
+
return __generator(this, function (_a) {
|
|
426
|
+
switch (_a.label) {
|
|
427
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceCreateExportJob(body, options)];
|
|
428
|
+
case 1:
|
|
429
|
+
localVarAxiosArgs = _a.sent();
|
|
430
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
},
|
|
435
|
+
/**
|
|
436
|
+
* This call is not available yet and answers Unimplemented.
|
|
437
|
+
* @summary Returns one of the caller\'s jobs.
|
|
438
|
+
* @param {string} code The job\'s code.
|
|
439
|
+
* @param {*} [options] Override http request option.
|
|
440
|
+
* @throws {RequiredError}
|
|
441
|
+
*/
|
|
442
|
+
jobServiceGetJob: function (code, options) {
|
|
443
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
444
|
+
var localVarAxiosArgs;
|
|
445
|
+
return __generator(this, function (_a) {
|
|
446
|
+
switch (_a.label) {
|
|
447
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceGetJob(code, options)];
|
|
448
|
+
case 1:
|
|
449
|
+
localVarAxiosArgs = _a.sent();
|
|
450
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
},
|
|
455
|
+
/**
|
|
456
|
+
* This call is not available yet and answers Unimplemented.
|
|
457
|
+
* @summary Returns a signed link to the job\'s file.
|
|
458
|
+
* @param {string} code The job\'s code.
|
|
459
|
+
* @param {string} [artifact] The file to download: `output`, the export file. It is the default and the only file a billing job has.
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
jobServiceGetJobDownload: function (code, artifact, options) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
465
|
+
var localVarAxiosArgs;
|
|
466
|
+
return __generator(this, function (_a) {
|
|
467
|
+
switch (_a.label) {
|
|
468
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceGetJobDownload(code, artifact, options)];
|
|
469
|
+
case 1:
|
|
470
|
+
localVarAxiosArgs = _a.sent();
|
|
471
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
* This call is not available yet and answers Unimplemented.
|
|
478
|
+
* @summary Returns the filter catalog of the job list.
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
jobServiceGetJobFilterCatalog: function (options) {
|
|
483
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
484
|
+
var localVarAxiosArgs;
|
|
485
|
+
return __generator(this, function (_a) {
|
|
486
|
+
switch (_a.label) {
|
|
487
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceGetJobFilterCatalog(options)];
|
|
488
|
+
case 1:
|
|
489
|
+
localVarAxiosArgs = _a.sent();
|
|
490
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
},
|
|
495
|
+
/**
|
|
496
|
+
* This call is not available yet and answers Unimplemented.
|
|
497
|
+
* @summary Lists the caller\'s jobs.
|
|
498
|
+
* @param {number} [pageSize]
|
|
499
|
+
* @param {string} [pageToken]
|
|
500
|
+
* @param {string} [filter]
|
|
501
|
+
* @param {string} [search]
|
|
502
|
+
* @param {string} [order]
|
|
503
|
+
* @param {string} [expand]
|
|
504
|
+
* @param {string} [filters]
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
jobServiceListJobs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
509
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
510
|
+
var localVarAxiosArgs;
|
|
511
|
+
return __generator(this, function (_a) {
|
|
512
|
+
switch (_a.label) {
|
|
513
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceListJobs(pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
514
|
+
case 1:
|
|
515
|
+
localVarAxiosArgs = _a.sent();
|
|
516
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
});
|
|
520
|
+
},
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
exports.JobsApiFp = JobsApiFp;
|
|
524
|
+
/**
|
|
525
|
+
* JobsApi - factory interface
|
|
526
|
+
* @export
|
|
527
|
+
*/
|
|
528
|
+
var JobsApiFactory = function (configuration, basePath, axios) {
|
|
529
|
+
var localVarFp = (0, exports.JobsApiFp)(configuration);
|
|
530
|
+
return {
|
|
531
|
+
/**
|
|
532
|
+
* This call is not available yet and answers Unimplemented.
|
|
533
|
+
* @summary Cancels a job.
|
|
534
|
+
* @param {string} code The job\'s code.
|
|
535
|
+
* @param {object} body
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
jobServiceCancelJob: function (code, body, options) {
|
|
540
|
+
return localVarFp.jobServiceCancelJob(code, body, options).then(function (request) { return request(axios, basePath); });
|
|
541
|
+
},
|
|
542
|
+
/**
|
|
543
|
+
* This call is not available yet and answers Unimplemented.
|
|
544
|
+
* @summary Creates a job that exports one invoice as a workbook.
|
|
545
|
+
* @param {CreateDetailExportJobRequest} body The request of `CreateDetailExportJob`.
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
jobServiceCreateDetailExportJob: function (body, options) {
|
|
550
|
+
return localVarFp.jobServiceCreateDetailExportJob(body, options).then(function (request) { return request(axios, basePath); });
|
|
551
|
+
},
|
|
552
|
+
/**
|
|
553
|
+
* This call is not available yet and answers Unimplemented.
|
|
554
|
+
* @summary Creates a job that exports a billing list as a file.
|
|
555
|
+
* @param {CreateExportJobRequest} body The request of `CreateExportJob`.
|
|
556
|
+
* @param {*} [options] Override http request option.
|
|
557
|
+
* @throws {RequiredError}
|
|
558
|
+
*/
|
|
559
|
+
jobServiceCreateExportJob: function (body, options) {
|
|
560
|
+
return localVarFp.jobServiceCreateExportJob(body, options).then(function (request) { return request(axios, basePath); });
|
|
561
|
+
},
|
|
562
|
+
/**
|
|
563
|
+
* This call is not available yet and answers Unimplemented.
|
|
564
|
+
* @summary Returns one of the caller\'s jobs.
|
|
565
|
+
* @param {string} code The job\'s code.
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
jobServiceGetJob: function (code, options) {
|
|
570
|
+
return localVarFp.jobServiceGetJob(code, options).then(function (request) { return request(axios, basePath); });
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
* This call is not available yet and answers Unimplemented.
|
|
574
|
+
* @summary Returns a signed link to the job\'s file.
|
|
575
|
+
* @param {string} code The job\'s code.
|
|
576
|
+
* @param {string} [artifact] The file to download: `output`, the export file. It is the default and the only file a billing job has.
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
jobServiceGetJobDownload: function (code, artifact, options) {
|
|
581
|
+
return localVarFp.jobServiceGetJobDownload(code, artifact, options).then(function (request) { return request(axios, basePath); });
|
|
582
|
+
},
|
|
583
|
+
/**
|
|
584
|
+
* This call is not available yet and answers Unimplemented.
|
|
585
|
+
* @summary Returns the filter catalog of the job list.
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
jobServiceGetJobFilterCatalog: function (options) {
|
|
590
|
+
return localVarFp.jobServiceGetJobFilterCatalog(options).then(function (request) { return request(axios, basePath); });
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
* This call is not available yet and answers Unimplemented.
|
|
594
|
+
* @summary Lists the caller\'s jobs.
|
|
595
|
+
* @param {number} [pageSize]
|
|
596
|
+
* @param {string} [pageToken]
|
|
597
|
+
* @param {string} [filter]
|
|
598
|
+
* @param {string} [search]
|
|
599
|
+
* @param {string} [order]
|
|
600
|
+
* @param {string} [expand]
|
|
601
|
+
* @param {string} [filters]
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
*/
|
|
605
|
+
jobServiceListJobs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
606
|
+
return localVarFp.jobServiceListJobs(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
607
|
+
},
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
exports.JobsApiFactory = JobsApiFactory;
|
|
611
|
+
/**
|
|
612
|
+
* JobsApi - object-oriented interface
|
|
613
|
+
* @export
|
|
614
|
+
* @class JobsApi
|
|
615
|
+
* @extends {BaseAPI}
|
|
616
|
+
*/
|
|
617
|
+
var JobsApi = /** @class */ (function (_super) {
|
|
618
|
+
__extends(JobsApi, _super);
|
|
619
|
+
function JobsApi() {
|
|
620
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* This call is not available yet and answers Unimplemented.
|
|
624
|
+
* @summary Cancels a job.
|
|
625
|
+
* @param {JobsApiJobServiceCancelJobRequest} requestParameters Request parameters.
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
* @memberof JobsApi
|
|
629
|
+
*/
|
|
630
|
+
JobsApi.prototype.jobServiceCancelJob = function (requestParameters, options) {
|
|
631
|
+
var _this = this;
|
|
632
|
+
return (0, exports.JobsApiFp)(this.configuration).jobServiceCancelJob(requestParameters.code, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* This call is not available yet and answers Unimplemented.
|
|
636
|
+
* @summary Creates a job that exports one invoice as a workbook.
|
|
637
|
+
* @param {JobsApiJobServiceCreateDetailExportJobRequest} requestParameters Request parameters.
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
* @memberof JobsApi
|
|
641
|
+
*/
|
|
642
|
+
JobsApi.prototype.jobServiceCreateDetailExportJob = function (requestParameters, options) {
|
|
643
|
+
var _this = this;
|
|
644
|
+
return (0, exports.JobsApiFp)(this.configuration).jobServiceCreateDetailExportJob(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* This call is not available yet and answers Unimplemented.
|
|
648
|
+
* @summary Creates a job that exports a billing list as a file.
|
|
649
|
+
* @param {JobsApiJobServiceCreateExportJobRequest} requestParameters Request parameters.
|
|
650
|
+
* @param {*} [options] Override http request option.
|
|
651
|
+
* @throws {RequiredError}
|
|
652
|
+
* @memberof JobsApi
|
|
653
|
+
*/
|
|
654
|
+
JobsApi.prototype.jobServiceCreateExportJob = function (requestParameters, options) {
|
|
655
|
+
var _this = this;
|
|
656
|
+
return (0, exports.JobsApiFp)(this.configuration).jobServiceCreateExportJob(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
* This call is not available yet and answers Unimplemented.
|
|
660
|
+
* @summary Returns one of the caller\'s jobs.
|
|
661
|
+
* @param {JobsApiJobServiceGetJobRequest} requestParameters Request parameters.
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
* @memberof JobsApi
|
|
665
|
+
*/
|
|
666
|
+
JobsApi.prototype.jobServiceGetJob = function (requestParameters, options) {
|
|
667
|
+
var _this = this;
|
|
668
|
+
return (0, exports.JobsApiFp)(this.configuration).jobServiceGetJob(requestParameters.code, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* This call is not available yet and answers Unimplemented.
|
|
672
|
+
* @summary Returns a signed link to the job\'s file.
|
|
673
|
+
* @param {JobsApiJobServiceGetJobDownloadRequest} requestParameters Request parameters.
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
* @memberof JobsApi
|
|
677
|
+
*/
|
|
678
|
+
JobsApi.prototype.jobServiceGetJobDownload = function (requestParameters, options) {
|
|
679
|
+
var _this = this;
|
|
680
|
+
return (0, exports.JobsApiFp)(this.configuration).jobServiceGetJobDownload(requestParameters.code, requestParameters.artifact, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
681
|
+
};
|
|
682
|
+
/**
|
|
683
|
+
* This call is not available yet and answers Unimplemented.
|
|
684
|
+
* @summary Returns the filter catalog of the job list.
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
* @memberof JobsApi
|
|
688
|
+
*/
|
|
689
|
+
JobsApi.prototype.jobServiceGetJobFilterCatalog = function (options) {
|
|
690
|
+
var _this = this;
|
|
691
|
+
return (0, exports.JobsApiFp)(this.configuration).jobServiceGetJobFilterCatalog(this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
692
|
+
};
|
|
693
|
+
/**
|
|
694
|
+
* This call is not available yet and answers Unimplemented.
|
|
695
|
+
* @summary Lists the caller\'s jobs.
|
|
696
|
+
* @param {JobsApiJobServiceListJobsRequest} requestParameters Request parameters.
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
* @memberof JobsApi
|
|
700
|
+
*/
|
|
701
|
+
JobsApi.prototype.jobServiceListJobs = function (requestParameters, options) {
|
|
702
|
+
var _this = this;
|
|
703
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
704
|
+
return (0, exports.JobsApiFp)(this.configuration).jobServiceListJobs(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
705
|
+
};
|
|
706
|
+
return JobsApi;
|
|
707
|
+
}(base_1.BaseAPI));
|
|
708
|
+
exports.JobsApi = JobsApi;
|