@gewis/sudosos-client 0.0.0-develop.d4ebe23 → 0.0.0-develop.dabdc9d
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/dist/api.d.ts +10 -2
- package/dist/api.js +10 -5
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -11031,12 +11031,13 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
11031
11031
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
11032
11032
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
11033
11033
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
11034
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
11034
11035
|
* @param {number} [take] How many entries the endpoint should return
|
|
11035
11036
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
11036
11037
|
* @param {*} [options] Override http request option.
|
|
11037
11038
|
* @throws {RequiredError}
|
|
11038
11039
|
*/
|
|
11039
|
-
getAllInvoices: (toId?: number, invoiceId?: number, currentState?: GetAllInvoicesCurrentStateEnum, returnEntries?: boolean, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11040
|
+
getAllInvoices: (toId?: number, invoiceId?: number, currentState?: GetAllInvoicesCurrentStateEnum, returnEntries?: boolean, fromDate?: string, tillDate?: string, description?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11040
11041
|
/**
|
|
11041
11042
|
*
|
|
11042
11043
|
* @summary Get eligible transactions for invoice creation.
|
|
@@ -11130,12 +11131,13 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
|
11130
11131
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
11131
11132
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
11132
11133
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
11134
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
11133
11135
|
* @param {number} [take] How many entries the endpoint should return
|
|
11134
11136
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
11135
11137
|
* @param {*} [options] Override http request option.
|
|
11136
11138
|
* @throws {RequiredError}
|
|
11137
11139
|
*/
|
|
11138
|
-
getAllInvoices(toId?: number, invoiceId?: number, currentState?: GetAllInvoicesCurrentStateEnum, returnEntries?: boolean, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedInvoiceResponse>>;
|
|
11140
|
+
getAllInvoices(toId?: number, invoiceId?: number, currentState?: GetAllInvoicesCurrentStateEnum, returnEntries?: boolean, fromDate?: string, tillDate?: string, description?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedInvoiceResponse>>;
|
|
11139
11141
|
/**
|
|
11140
11142
|
*
|
|
11141
11143
|
* @summary Get eligible transactions for invoice creation.
|
|
@@ -11358,6 +11360,12 @@ export interface InvoicesApiGetAllInvoicesRequest {
|
|
|
11358
11360
|
* @memberof InvoicesApiGetAllInvoices
|
|
11359
11361
|
*/
|
|
11360
11362
|
readonly tillDate?: string;
|
|
11363
|
+
/**
|
|
11364
|
+
* Filter invoices by description (partial match)
|
|
11365
|
+
* @type {string}
|
|
11366
|
+
* @memberof InvoicesApiGetAllInvoices
|
|
11367
|
+
*/
|
|
11368
|
+
readonly description?: string;
|
|
11361
11369
|
/**
|
|
11362
11370
|
* How many entries the endpoint should return
|
|
11363
11371
|
* @type {number}
|
package/dist/api.js
CHANGED
|
@@ -5808,12 +5808,13 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5808
5808
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
5809
5809
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
5810
5810
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
5811
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
5811
5812
|
* @param {number} [take] How many entries the endpoint should return
|
|
5812
5813
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
5813
5814
|
* @param {*} [options] Override http request option.
|
|
5814
5815
|
* @throws {RequiredError}
|
|
5815
5816
|
*/
|
|
5816
|
-
getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options = {}) => {
|
|
5817
|
+
getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options = {}) => {
|
|
5817
5818
|
const localVarPath = `/invoices`;
|
|
5818
5819
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5819
5820
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5845,6 +5846,9 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5845
5846
|
if (tillDate !== undefined) {
|
|
5846
5847
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
5847
5848
|
}
|
|
5849
|
+
if (description !== undefined) {
|
|
5850
|
+
localVarQueryParameter['description'] = description;
|
|
5851
|
+
}
|
|
5848
5852
|
if (take !== undefined) {
|
|
5849
5853
|
localVarQueryParameter['take'] = take;
|
|
5850
5854
|
}
|
|
@@ -6139,13 +6143,14 @@ const InvoicesApiFp = function (configuration) {
|
|
|
6139
6143
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
6140
6144
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
6141
6145
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
6146
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
6142
6147
|
* @param {number} [take] How many entries the endpoint should return
|
|
6143
6148
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
6144
6149
|
* @param {*} [options] Override http request option.
|
|
6145
6150
|
* @throws {RequiredError}
|
|
6146
6151
|
*/
|
|
6147
|
-
async getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options) {
|
|
6148
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options);
|
|
6152
|
+
async getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options) {
|
|
6153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options);
|
|
6149
6154
|
const index = configuration?.serverIndex ?? 0;
|
|
6150
6155
|
const operationBasePath = base_1.operationServerMap['InvoicesApi.getAllInvoices']?.[index]?.url;
|
|
6151
6156
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -6282,7 +6287,7 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
6282
6287
|
* @throws {RequiredError}
|
|
6283
6288
|
*/
|
|
6284
6289
|
getAllInvoices(requestParameters = {}, options) {
|
|
6285
|
-
return localVarFp.getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
6290
|
+
return localVarFp.getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
6286
6291
|
},
|
|
6287
6292
|
/**
|
|
6288
6293
|
*
|
|
@@ -6396,7 +6401,7 @@ class InvoicesApi extends base_1.BaseAPI {
|
|
|
6396
6401
|
* @memberof InvoicesApi
|
|
6397
6402
|
*/
|
|
6398
6403
|
getAllInvoices(requestParameters = {}, options) {
|
|
6399
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
6404
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
6400
6405
|
}
|
|
6401
6406
|
/**
|
|
6402
6407
|
*
|
package/package.json
CHANGED