@managespace/sdk 0.1.21 → 0.1.22

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.
@@ -0,0 +1,60 @@
1
+ /**
2
+ * ManageSpace API
3
+ * ManageSpace API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { BasePaginationQuery } from './base-pagination-query';
13
+ import type { PluginFilterItem } from './plugin-filter-item';
14
+ import type { SortOrder } from './sort-order';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetInvoicesQuery
19
+ */
20
+ export interface GetInvoicesQuery {
21
+ /**
22
+ * The pagination metadata
23
+ * @type {BasePaginationQuery}
24
+ * @memberof GetInvoicesQuery
25
+ */
26
+ pageOptions?: BasePaginationQuery;
27
+ /**
28
+ * The sort metadata
29
+ * @type {SortOrder}
30
+ * @memberof GetInvoicesQuery
31
+ */
32
+ sort?: SortOrder;
33
+ /**
34
+ * Status value and operator to filter by
35
+ * @type {PluginFilterItem}
36
+ * @memberof GetInvoicesQuery
37
+ */
38
+ status?: PluginFilterItem;
39
+ /**
40
+ * External customer ID value and operator to filter by
41
+ * @type {PluginFilterItem}
42
+ * @memberof GetInvoicesQuery
43
+ */
44
+ externalCustomerId?: PluginFilterItem;
45
+ /**
46
+ * Billing run ID value and operator to filter by
47
+ * @type {PluginFilterItem}
48
+ * @memberof GetInvoicesQuery
49
+ */
50
+ billingRunId?: PluginFilterItem;
51
+ }
52
+ /**
53
+ * Check if a given object implements the GetInvoicesQuery interface.
54
+ */
55
+ export declare function instanceOfGetInvoicesQuery(value: object): value is GetInvoicesQuery;
56
+ export declare function GetInvoicesQueryFromJSON(json: any): GetInvoicesQuery;
57
+ export declare function GetInvoicesQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoicesQuery;
58
+ export declare function GetInvoicesQueryToJSON(json: any): GetInvoicesQuery;
59
+ export declare function GetInvoicesQueryToJSONTyped(value?: GetInvoicesQuery | null, ignoreDiscriminator?: boolean): any;
60
+ //# sourceMappingURL=get-invoices-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-invoices-query.d.ts","sourceRoot":"","sources":["../../../src/generated/models/get-invoices-query.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAOnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAO7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAEnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAYvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAatH"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace API
6
+ * ManageSpace API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetInvoicesQueryToJSONTyped = exports.GetInvoicesQueryToJSON = exports.GetInvoicesQueryFromJSONTyped = exports.GetInvoicesQueryFromJSON = exports.instanceOfGetInvoicesQuery = void 0;
17
+ const base_pagination_query_1 = require("./base-pagination-query");
18
+ const plugin_filter_item_1 = require("./plugin-filter-item");
19
+ const sort_order_1 = require("./sort-order");
20
+ /**
21
+ * Check if a given object implements the GetInvoicesQuery interface.
22
+ */
23
+ function instanceOfGetInvoicesQuery(value) {
24
+ return true;
25
+ }
26
+ exports.instanceOfGetInvoicesQuery = instanceOfGetInvoicesQuery;
27
+ function GetInvoicesQueryFromJSON(json) {
28
+ return GetInvoicesQueryFromJSONTyped(json, false);
29
+ }
30
+ exports.GetInvoicesQueryFromJSON = GetInvoicesQueryFromJSON;
31
+ function GetInvoicesQueryFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'pageOptions': json['pageOptions'] == null ? undefined : (0, base_pagination_query_1.BasePaginationQueryFromJSON)(json['pageOptions']),
37
+ 'sort': json['sort'] == null ? undefined : (0, sort_order_1.SortOrderFromJSON)(json['sort']),
38
+ 'status': json['status'] == null ? undefined : (0, plugin_filter_item_1.PluginFilterItemFromJSON)(json['status']),
39
+ 'externalCustomerId': json['externalCustomerId'] == null ? undefined : (0, plugin_filter_item_1.PluginFilterItemFromJSON)(json['externalCustomerId']),
40
+ 'billingRunId': json['billingRunId'] == null ? undefined : (0, plugin_filter_item_1.PluginFilterItemFromJSON)(json['billingRunId']),
41
+ };
42
+ }
43
+ exports.GetInvoicesQueryFromJSONTyped = GetInvoicesQueryFromJSONTyped;
44
+ function GetInvoicesQueryToJSON(json) {
45
+ return GetInvoicesQueryToJSONTyped(json, false);
46
+ }
47
+ exports.GetInvoicesQueryToJSON = GetInvoicesQueryToJSON;
48
+ function GetInvoicesQueryToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'pageOptions': (0, base_pagination_query_1.BasePaginationQueryToJSON)(value['pageOptions']),
54
+ 'sort': (0, sort_order_1.SortOrderToJSON)(value['sort']),
55
+ 'status': (0, plugin_filter_item_1.PluginFilterItemToJSON)(value['status']),
56
+ 'externalCustomerId': (0, plugin_filter_item_1.PluginFilterItemToJSON)(value['externalCustomerId']),
57
+ 'billingRunId': (0, plugin_filter_item_1.PluginFilterItemToJSON)(value['billingRunId']),
58
+ };
59
+ }
60
+ exports.GetInvoicesQueryToJSONTyped = GetInvoicesQueryToJSONTyped;
@@ -18,6 +18,7 @@ export * from './checklist';
18
18
  export * from './checklist-recurrence-frequency';
19
19
  export * from './communication';
20
20
  export * from './communication-type';
21
+ export * from './complex-query';
21
22
  export * from './configuration-setting';
22
23
  export * from './configuration-setting-type';
23
24
  export * from './contact';
@@ -95,10 +96,10 @@ export * from './get-checklists200-response';
95
96
  export * from './get-communications200-response';
96
97
  export * from './get-configuration-settings200-response';
97
98
  export * from './get-contacts200-response';
98
- export * from './get-customers-query';
99
99
  export * from './get-documents200-response';
100
100
  export * from './get-intent';
101
101
  export * from './get-invoices200-response';
102
+ export * from './get-invoices-query';
102
103
  export * from './get-notes200-response';
103
104
  export * from './get-notifications200-response';
104
105
  export * from './get-orders200-response';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc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AAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
@@ -36,6 +36,7 @@ __exportStar(require("./checklist"), exports);
36
36
  __exportStar(require("./checklist-recurrence-frequency"), exports);
37
37
  __exportStar(require("./communication"), exports);
38
38
  __exportStar(require("./communication-type"), exports);
39
+ __exportStar(require("./complex-query"), exports);
39
40
  __exportStar(require("./configuration-setting"), exports);
40
41
  __exportStar(require("./configuration-setting-type"), exports);
41
42
  __exportStar(require("./contact"), exports);
@@ -113,10 +114,10 @@ __exportStar(require("./get-checklists200-response"), exports);
113
114
  __exportStar(require("./get-communications200-response"), exports);
114
115
  __exportStar(require("./get-configuration-settings200-response"), exports);
115
116
  __exportStar(require("./get-contacts200-response"), exports);
116
- __exportStar(require("./get-customers-query"), exports);
117
117
  __exportStar(require("./get-documents200-response"), exports);
118
118
  __exportStar(require("./get-intent"), exports);
119
119
  __exportStar(require("./get-invoices200-response"), exports);
120
+ __exportStar(require("./get-invoices-query"), exports);
120
121
  __exportStar(require("./get-notes200-response"), exports);
121
122
  __exportStar(require("./get-notifications200-response"), exports);
122
123
  __exportStar(require("./get-orders200-response"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -34,6 +34,7 @@ import {
34
34
  CreatePaymentMethod as _CreatePaymentMethod,
35
35
  ProductTaxGroup,
36
36
  CreateProductTaxGroup as _CreateProductTaxGroup,
37
+ GetInvoicesQuery,
37
38
  } from '../../../generated';
38
39
  import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
39
40
  import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
@@ -137,11 +138,7 @@ export namespace Billing {
137
138
 
138
139
  export class GetInvoices implements ExtPlugin {
139
140
  responseType!: Invoice[];
140
- payload!: BasePaginationQuery & {
141
- status?: string;
142
- externalCustomerId?: string;
143
- billingRunId?: string;
144
- };
141
+ payload!: GetInvoicesQuery;
145
142
  }
146
143
 
147
144
  export class GetInvoice implements ExtPlugin {
@@ -21,6 +21,7 @@ models/checklist-recurrence-frequency.ts
21
21
  models/checklist.ts
22
22
  models/communication-type.ts
23
23
  models/communication.ts
24
+ models/complex-query.ts
24
25
  models/configuration-setting-type.ts
25
26
  models/configuration-setting.ts
26
27
  models/contact.ts
@@ -98,9 +99,9 @@ models/get-checklists200-response.ts
98
99
  models/get-communications200-response.ts
99
100
  models/get-configuration-settings200-response.ts
100
101
  models/get-contacts200-response.ts
101
- models/get-customers-query.ts
102
102
  models/get-documents200-response.ts
103
103
  models/get-intent.ts
104
+ models/get-invoices-query.ts
104
105
  models/get-invoices200-response.ts
105
106
  models/get-notes200-response.ts
106
107
  models/get-notifications200-response.ts
@@ -29,6 +29,7 @@ import type {
29
29
  Checklist,
30
30
  Communication,
31
31
  CommunicationType,
32
+ ComplexQuery,
32
33
  ConfigurationSetting,
33
34
  Contact,
34
35
  CreateAssetCategory,
@@ -86,10 +87,10 @@ import type {
86
87
  GetCommunications200Response,
87
88
  GetConfigurationSettings200Response,
88
89
  GetContacts200Response,
89
- GetCustomersQuery,
90
90
  GetDocuments200Response,
91
91
  GetIntent,
92
92
  GetInvoices200Response,
93
+ GetInvoicesQuery,
93
94
  GetNotes200Response,
94
95
  GetNotifications200Response,
95
96
  GetOrders200Response,
@@ -201,6 +202,8 @@ import {
201
202
  CommunicationToJSON,
202
203
  CommunicationTypeFromJSON,
203
204
  CommunicationTypeToJSON,
205
+ ComplexQueryFromJSON,
206
+ ComplexQueryToJSON,
204
207
  ConfigurationSettingFromJSON,
205
208
  ConfigurationSettingToJSON,
206
209
  ContactFromJSON,
@@ -315,14 +318,14 @@ import {
315
318
  GetConfigurationSettings200ResponseToJSON,
316
319
  GetContacts200ResponseFromJSON,
317
320
  GetContacts200ResponseToJSON,
318
- GetCustomersQueryFromJSON,
319
- GetCustomersQueryToJSON,
320
321
  GetDocuments200ResponseFromJSON,
321
322
  GetDocuments200ResponseToJSON,
322
323
  GetIntentFromJSON,
323
324
  GetIntentToJSON,
324
325
  GetInvoices200ResponseFromJSON,
325
326
  GetInvoices200ResponseToJSON,
327
+ GetInvoicesQueryFromJSON,
328
+ GetInvoicesQueryToJSON,
326
329
  GetNotes200ResponseFromJSON,
327
330
  GetNotes200ResponseToJSON,
328
331
  GetNotifications200ResponseFromJSON,
@@ -814,12 +817,7 @@ export interface GetContactRequest {
814
817
  }
815
818
 
816
819
  export interface GetContactsRequest {
817
- offset?: number;
818
- limit?: number;
819
- firstName?: string;
820
- middleInitial?: string;
821
- lastName?: string;
822
- fullName?: string;
820
+ complexQuery: ComplexQuery;
823
821
  }
824
822
 
825
823
  export interface GetCustomerRequest {
@@ -827,7 +825,7 @@ export interface GetCustomerRequest {
827
825
  }
828
826
 
829
827
  export interface GetCustomersRequest {
830
- getCustomersQuery: GetCustomersQuery;
828
+ complexQuery: ComplexQuery;
831
829
  }
832
830
 
833
831
  export interface GetDocumentRequest {
@@ -858,11 +856,7 @@ export interface GetInvoiceRequest {
858
856
  }
859
857
 
860
858
  export interface GetInvoicesRequest {
861
- offset?: number;
862
- limit?: number;
863
- status?: string;
864
- externalCustomerId?: string;
865
- billingRunId?: string;
859
+ getInvoicesQuery: GetInvoicesQuery;
866
860
  }
867
861
 
868
862
  export interface GetNoteRequest {
@@ -4312,34 +4306,19 @@ export class DefaultApi extends runtime.BaseAPI {
4312
4306
  /**
4313
4307
  */
4314
4308
  async getContactsRaw(requestParameters: GetContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContacts200Response>> {
4315
- const queryParameters: any = {};
4316
-
4317
- if (requestParameters['offset'] != null) {
4318
- queryParameters['offset'] = requestParameters['offset'];
4319
- }
4320
-
4321
- if (requestParameters['limit'] != null) {
4322
- queryParameters['limit'] = requestParameters['limit'];
4323
- }
4324
-
4325
- if (requestParameters['firstName'] != null) {
4326
- queryParameters['firstName'] = requestParameters['firstName'];
4327
- }
4328
-
4329
- if (requestParameters['middleInitial'] != null) {
4330
- queryParameters['middleInitial'] = requestParameters['middleInitial'];
4331
- }
4332
-
4333
- if (requestParameters['lastName'] != null) {
4334
- queryParameters['lastName'] = requestParameters['lastName'];
4309
+ if (requestParameters['complexQuery'] == null) {
4310
+ throw new runtime.RequiredError(
4311
+ 'complexQuery',
4312
+ 'Required parameter "complexQuery" was null or undefined when calling getContacts().'
4313
+ );
4335
4314
  }
4336
4315
 
4337
- if (requestParameters['fullName'] != null) {
4338
- queryParameters['fullName'] = requestParameters['fullName'];
4339
- }
4316
+ const queryParameters: any = {};
4340
4317
 
4341
4318
  const headerParameters: runtime.HTTPHeaders = {};
4342
4319
 
4320
+ headerParameters['Content-Type'] = 'application/json';
4321
+
4343
4322
  if (this.configuration && this.configuration.accessToken) {
4344
4323
  const token = this.configuration.accessToken;
4345
4324
  const tokenString = await token("bearer", []);
@@ -4349,10 +4328,11 @@ export class DefaultApi extends runtime.BaseAPI {
4349
4328
  }
4350
4329
  }
4351
4330
  const response = await this.request({
4352
- path: `/api/crm/contacts`,
4353
- method: 'GET',
4331
+ path: `/api/crm/contacts/queries`,
4332
+ method: 'POST',
4354
4333
  headers: headerParameters,
4355
4334
  query: queryParameters,
4335
+ body: ComplexQueryToJSON(requestParameters['complexQuery']),
4356
4336
  }, initOverrides);
4357
4337
 
4358
4338
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContacts200ResponseFromJSON(jsonValue));
@@ -4360,7 +4340,7 @@ export class DefaultApi extends runtime.BaseAPI {
4360
4340
 
4361
4341
  /**
4362
4342
  */
4363
- async getContacts(requestParameters: GetContactsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContacts200Response> {
4343
+ async getContacts(requestParameters: GetContactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContacts200Response> {
4364
4344
  const response = await this.getContactsRaw(requestParameters, initOverrides);
4365
4345
  return await response.value();
4366
4346
  }
@@ -4439,10 +4419,10 @@ export class DefaultApi extends runtime.BaseAPI {
4439
4419
  /**
4440
4420
  */
4441
4421
  async getCustomersRaw(requestParameters: GetCustomersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateCustomer200Response>> {
4442
- if (requestParameters['getCustomersQuery'] == null) {
4422
+ if (requestParameters['complexQuery'] == null) {
4443
4423
  throw new runtime.RequiredError(
4444
- 'getCustomersQuery',
4445
- 'Required parameter "getCustomersQuery" was null or undefined when calling getCustomers().'
4424
+ 'complexQuery',
4425
+ 'Required parameter "complexQuery" was null or undefined when calling getCustomers().'
4446
4426
  );
4447
4427
  }
4448
4428
 
@@ -4465,7 +4445,7 @@ export class DefaultApi extends runtime.BaseAPI {
4465
4445
  method: 'POST',
4466
4446
  headers: headerParameters,
4467
4447
  query: queryParameters,
4468
- body: GetCustomersQueryToJSON(requestParameters['getCustomersQuery']),
4448
+ body: ComplexQueryToJSON(requestParameters['complexQuery']),
4469
4449
  }, initOverrides);
4470
4450
 
4471
4451
  return new runtime.JSONApiResponse(response, (jsonValue) => UpdateCustomer200ResponseFromJSON(jsonValue));
@@ -4730,30 +4710,19 @@ export class DefaultApi extends runtime.BaseAPI {
4730
4710
  /**
4731
4711
  */
4732
4712
  async getInvoicesRaw(requestParameters: GetInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInvoices200Response>> {
4733
- const queryParameters: any = {};
4734
-
4735
- if (requestParameters['offset'] != null) {
4736
- queryParameters['offset'] = requestParameters['offset'];
4737
- }
4738
-
4739
- if (requestParameters['limit'] != null) {
4740
- queryParameters['limit'] = requestParameters['limit'];
4741
- }
4742
-
4743
- if (requestParameters['status'] != null) {
4744
- queryParameters['status'] = requestParameters['status'];
4745
- }
4746
-
4747
- if (requestParameters['externalCustomerId'] != null) {
4748
- queryParameters['externalCustomerId'] = requestParameters['externalCustomerId'];
4713
+ if (requestParameters['getInvoicesQuery'] == null) {
4714
+ throw new runtime.RequiredError(
4715
+ 'getInvoicesQuery',
4716
+ 'Required parameter "getInvoicesQuery" was null or undefined when calling getInvoices().'
4717
+ );
4749
4718
  }
4750
4719
 
4751
- if (requestParameters['billingRunId'] != null) {
4752
- queryParameters['billingRunId'] = requestParameters['billingRunId'];
4753
- }
4720
+ const queryParameters: any = {};
4754
4721
 
4755
4722
  const headerParameters: runtime.HTTPHeaders = {};
4756
4723
 
4724
+ headerParameters['Content-Type'] = 'application/json';
4725
+
4757
4726
  if (this.configuration && this.configuration.accessToken) {
4758
4727
  const token = this.configuration.accessToken;
4759
4728
  const tokenString = await token("bearer", []);
@@ -4763,10 +4732,11 @@ export class DefaultApi extends runtime.BaseAPI {
4763
4732
  }
4764
4733
  }
4765
4734
  const response = await this.request({
4766
- path: `/api/billing/invoices`,
4767
- method: 'GET',
4735
+ path: `/api/billing/invoices/queries`,
4736
+ method: 'POST',
4768
4737
  headers: headerParameters,
4769
4738
  query: queryParameters,
4739
+ body: GetInvoicesQueryToJSON(requestParameters['getInvoicesQuery']),
4770
4740
  }, initOverrides);
4771
4741
 
4772
4742
  return new runtime.JSONApiResponse(response, (jsonValue) => GetInvoices200ResponseFromJSON(jsonValue));
@@ -4774,7 +4744,7 @@ export class DefaultApi extends runtime.BaseAPI {
4774
4744
 
4775
4745
  /**
4776
4746
  */
4777
- async getInvoices(requestParameters: GetInvoicesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoices200Response> {
4747
+ async getInvoices(requestParameters: GetInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoices200Response> {
4778
4748
  const response = await this.getInvoicesRaw(requestParameters, initOverrides);
4779
4749
  return await response.value();
4780
4750
  }
@@ -0,0 +1,103 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace API
5
+ * ManageSpace API Documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { FilterItem } from './filter-item';
17
+ import {
18
+ FilterItemFromJSON,
19
+ FilterItemFromJSONTyped,
20
+ FilterItemToJSON,
21
+ FilterItemToJSONTyped,
22
+ } from './filter-item';
23
+ import type { BasePaginationQuery } from './base-pagination-query';
24
+ import {
25
+ BasePaginationQueryFromJSON,
26
+ BasePaginationQueryFromJSONTyped,
27
+ BasePaginationQueryToJSON,
28
+ BasePaginationQueryToJSONTyped,
29
+ } from './base-pagination-query';
30
+ import type { SortOrder } from './sort-order';
31
+ import {
32
+ SortOrderFromJSON,
33
+ SortOrderFromJSONTyped,
34
+ SortOrderToJSON,
35
+ SortOrderToJSONTyped,
36
+ } from './sort-order';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ComplexQuery
42
+ */
43
+ export interface ComplexQuery {
44
+ /**
45
+ * The pagination metadata
46
+ * @type {BasePaginationQuery}
47
+ * @memberof ComplexQuery
48
+ */
49
+ pageOptions?: BasePaginationQuery;
50
+ /**
51
+ * The sort metadata
52
+ * @type {SortOrder}
53
+ * @memberof ComplexQuery
54
+ */
55
+ sort?: SortOrder;
56
+ /**
57
+ * A list of filters to search by.
58
+ * @type {Array<FilterItem>}
59
+ * @memberof ComplexQuery
60
+ */
61
+ filters?: Array<FilterItem>;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the ComplexQuery interface.
66
+ */
67
+ export function instanceOfComplexQuery(value: object): value is ComplexQuery {
68
+ return true;
69
+ }
70
+
71
+ export function ComplexQueryFromJSON(json: any): ComplexQuery {
72
+ return ComplexQueryFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function ComplexQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexQuery {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
82
+ 'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
83
+ 'filters': json['filters'] == null ? undefined : ((json['filters'] as Array<any>).map(FilterItemFromJSON)),
84
+ };
85
+ }
86
+
87
+ export function ComplexQueryToJSON(json: any): ComplexQuery {
88
+ return ComplexQueryToJSONTyped(json, false);
89
+ }
90
+
91
+ export function ComplexQueryToJSONTyped(value?: ComplexQuery | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
99
+ 'sort': SortOrderToJSON(value['sort']),
100
+ 'filters': value['filters'] == null ? undefined : ((value['filters'] as Array<any>).map(FilterItemToJSON)),
101
+ };
102
+ }
103
+