@seekora-ai/admin-api 1.1.10 → 1.1.11

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @seekora-ai/admin-api@1.1.10
1
+ ## @seekora-ai/admin-api@1.1.11
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @seekora-ai/admin-api@1.1.10 --save
39
+ npm install @seekora-ai/admin-api@1.1.11 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -29526,20 +29526,22 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29526
29526
  };
29527
29527
  },
29528
29528
  /**
29529
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
29529
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
29530
29530
  * @summary Get invoices
29531
29531
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
29532
29532
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
29533
29533
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29534
29534
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29535
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
29535
29536
  * @param {number} [page] Page number (default: 1)
29536
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
29537
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
29538
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
29537
29539
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
29538
29540
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29539
29541
  * @param {*} [options] Override http request option.
29540
29542
  * @throws {RequiredError}
29541
29543
  */
29542
- adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29544
+ adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29543
29545
  const localVarPath = `/admin/billing/invoices`;
29544
29546
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29545
29547
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29571,10 +29573,18 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29571
29573
  localVarQueryParameter['end_date'] = endDate;
29572
29574
  }
29573
29575
 
29576
+ if (search !== undefined) {
29577
+ localVarQueryParameter['search'] = search;
29578
+ }
29579
+
29574
29580
  if (page !== undefined) {
29575
29581
  localVarQueryParameter['page'] = page;
29576
29582
  }
29577
29583
 
29584
+ if (pageSize !== undefined) {
29585
+ localVarQueryParameter['page_size'] = pageSize;
29586
+ }
29587
+
29578
29588
  if (limit !== undefined) {
29579
29589
  localVarQueryParameter['limit'] = limit;
29580
29590
  }
@@ -29794,13 +29804,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29794
29804
  };
29795
29805
  },
29796
29806
  /**
29797
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
29807
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
29798
29808
  * @summary Get orders
29799
29809
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29800
29810
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29801
29811
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29802
29812
  * @param {number} [page] Page number (default: 1)
29803
29813
  * @param {number} [pageSize] Page size (default: 50, max: 100)
29814
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
29804
29815
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
29805
29816
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29806
29817
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -29810,7 +29821,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29810
29821
  * @param {*} [options] Override http request option.
29811
29822
  * @throws {RequiredError}
29812
29823
  */
29813
- adminBillingOrdersGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29824
+ adminBillingOrdersGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29814
29825
  const localVarPath = `/admin/billing/orders`;
29815
29826
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29816
29827
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29846,6 +29857,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29846
29857
  localVarQueryParameter['page_size'] = pageSize;
29847
29858
  }
29848
29859
 
29860
+ if (limit !== undefined) {
29861
+ localVarQueryParameter['limit'] = limit;
29862
+ }
29863
+
29849
29864
  if (sortBy !== undefined) {
29850
29865
  localVarQueryParameter['sort_by'] = sortBy;
29851
29866
  }
@@ -30680,21 +30695,23 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30680
30695
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30681
30696
  },
30682
30697
  /**
30683
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
30698
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
30684
30699
  * @summary Get invoices
30685
30700
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30686
30701
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
30687
30702
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30688
30703
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30704
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
30689
30705
  * @param {number} [page] Page number (default: 1)
30690
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
30706
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
30707
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
30691
30708
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
30692
30709
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30693
30710
  * @param {*} [options] Override http request option.
30694
30711
  * @throws {RequiredError}
30695
30712
  */
30696
- async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30697
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options);
30713
+ async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
30698
30715
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30699
30716
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
30700
30717
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30767,13 +30784,14 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30767
30784
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30768
30785
  },
30769
30786
  /**
30770
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30787
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
30771
30788
  * @summary Get orders
30772
30789
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30773
30790
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30774
30791
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30775
30792
  * @param {number} [page] Page number (default: 1)
30776
30793
  * @param {number} [pageSize] Page size (default: 50, max: 100)
30794
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30777
30795
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
30778
30796
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30779
30797
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -30783,8 +30801,8 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30783
30801
  * @param {*} [options] Override http request option.
30784
30802
  * @throws {RequiredError}
30785
30803
  */
30786
- async adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30787
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options);
30804
+ async adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30805
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options);
30788
30806
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30789
30807
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']?.[localVarOperationServerIndex]?.url;
30790
30808
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -31143,21 +31161,23 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31143
31161
  return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
31144
31162
  },
31145
31163
  /**
31146
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
31164
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
31147
31165
  * @summary Get invoices
31148
31166
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31149
31167
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
31150
31168
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31151
31169
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31170
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
31152
31171
  * @param {number} [page] Page number (default: 1)
31153
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
31172
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
31173
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
31154
31174
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
31155
31175
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31156
31176
  * @param {*} [options] Override http request option.
31157
31177
  * @throws {RequiredError}
31158
31178
  */
31159
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31160
- return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31179
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31180
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31161
31181
  },
31162
31182
  /**
31163
31183
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -31212,13 +31232,14 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31212
31232
  return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
31213
31233
  },
31214
31234
  /**
31215
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31235
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
31216
31236
  * @summary Get orders
31217
31237
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31218
31238
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31219
31239
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31220
31240
  * @param {number} [page] Page number (default: 1)
31221
31241
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31242
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31222
31243
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
31223
31244
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31224
31245
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -31228,8 +31249,8 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31228
31249
  * @param {*} [options] Override http request option.
31229
31250
  * @throws {RequiredError}
31230
31251
  */
31231
- adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31232
- return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
31252
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31253
+ return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
31233
31254
  },
31234
31255
  /**
31235
31256
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
@@ -31570,22 +31591,24 @@ export class BillingDashboardApi extends BaseAPI {
31570
31591
  }
31571
31592
 
31572
31593
  /**
31573
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
31594
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
31574
31595
  * @summary Get invoices
31575
31596
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31576
31597
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
31577
31598
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31578
31599
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31600
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
31579
31601
  * @param {number} [page] Page number (default: 1)
31580
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
31602
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
31603
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
31581
31604
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
31582
31605
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31583
31606
  * @param {*} [options] Override http request option.
31584
31607
  * @throws {RequiredError}
31585
31608
  * @memberof BillingDashboardApi
31586
31609
  */
31587
- public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31588
- return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31610
+ public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31611
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31589
31612
  }
31590
31613
 
31591
31614
  /**
@@ -31651,13 +31674,14 @@ export class BillingDashboardApi extends BaseAPI {
31651
31674
  }
31652
31675
 
31653
31676
  /**
31654
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31677
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
31655
31678
  * @summary Get orders
31656
31679
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31657
31680
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31658
31681
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31659
31682
  * @param {number} [page] Page number (default: 1)
31660
31683
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31684
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31661
31685
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
31662
31686
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31663
31687
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -31668,8 +31692,8 @@ export class BillingDashboardApi extends BaseAPI {
31668
31692
  * @throws {RequiredError}
31669
31693
  * @memberof BillingDashboardApi
31670
31694
  */
31671
- public adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) {
31672
- return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
31695
+ public adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) {
31696
+ return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
31673
31697
  }
31674
31698
 
31675
31699
  /**
package/dist/api.d.ts CHANGED
@@ -25220,20 +25220,22 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25220
25220
  */
25221
25221
  adminBillingInvoicesGeneratePaymentIdPost: (paymentId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25222
25222
  /**
25223
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25223
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
25224
25224
  * @summary Get invoices
25225
25225
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25226
25226
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25227
25227
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25228
25228
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25229
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25229
25230
  * @param {number} [page] Page number (default: 1)
25230
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25231
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25232
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25231
25233
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25232
25234
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25233
25235
  * @param {*} [options] Override http request option.
25234
25236
  * @throws {RequiredError}
25235
25237
  */
25236
- adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25238
+ adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25237
25239
  /**
25238
25240
  * Deletes an invoice (soft delete by setting status to cancelled)
25239
25241
  * @summary Delete invoice
@@ -25277,13 +25279,14 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25277
25279
  */
25278
25280
  adminBillingInvoicesInvoiceIdPayPost: (invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25279
25281
  /**
25280
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25282
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
25281
25283
  * @summary Get orders
25282
25284
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25283
25285
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25284
25286
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25285
25287
  * @param {number} [page] Page number (default: 1)
25286
25288
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25289
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25287
25290
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25288
25291
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25289
25292
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -25293,7 +25296,7 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25293
25296
  * @param {*} [options] Override http request option.
25294
25297
  * @throws {RequiredError}
25295
25298
  */
25296
- adminBillingOrdersGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25299
+ adminBillingOrdersGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25297
25300
  /**
25298
25301
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25299
25302
  * @summary Get single order with transactions and invoices
@@ -25555,20 +25558,22 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25555
25558
  */
25556
25559
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25557
25560
  /**
25558
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25561
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
25559
25562
  * @summary Get invoices
25560
25563
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25561
25564
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25562
25565
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25563
25566
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25567
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25564
25568
  * @param {number} [page] Page number (default: 1)
25565
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25569
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25570
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25566
25571
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25567
25572
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25568
25573
  * @param {*} [options] Override http request option.
25569
25574
  * @throws {RequiredError}
25570
25575
  */
25571
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25576
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25572
25577
  /**
25573
25578
  * Deletes an invoice (soft delete by setting status to cancelled)
25574
25579
  * @summary Delete invoice
@@ -25612,13 +25617,14 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25612
25617
  */
25613
25618
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>>;
25614
25619
  /**
25615
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25620
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
25616
25621
  * @summary Get orders
25617
25622
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25618
25623
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25619
25624
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25620
25625
  * @param {number} [page] Page number (default: 1)
25621
25626
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25627
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25622
25628
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25623
25629
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25624
25630
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -25628,7 +25634,7 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25628
25634
  * @param {*} [options] Override http request option.
25629
25635
  * @throws {RequiredError}
25630
25636
  */
25631
- adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25637
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25632
25638
  /**
25633
25639
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25634
25640
  * @summary Get single order with transactions and invoices
@@ -25890,20 +25896,22 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25890
25896
  */
25891
25897
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25892
25898
  /**
25893
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25899
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
25894
25900
  * @summary Get invoices
25895
25901
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25896
25902
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25897
25903
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25898
25904
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25905
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25899
25906
  * @param {number} [page] Page number (default: 1)
25900
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25907
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25908
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25901
25909
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25902
25910
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25903
25911
  * @param {*} [options] Override http request option.
25904
25912
  * @throws {RequiredError}
25905
25913
  */
25906
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25914
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25907
25915
  /**
25908
25916
  * Deletes an invoice (soft delete by setting status to cancelled)
25909
25917
  * @summary Delete invoice
@@ -25947,13 +25955,14 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25947
25955
  */
25948
25956
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>;
25949
25957
  /**
25950
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25958
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
25951
25959
  * @summary Get orders
25952
25960
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25953
25961
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25954
25962
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25955
25963
  * @param {number} [page] Page number (default: 1)
25956
25964
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25965
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25957
25966
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25958
25967
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25959
25968
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -25963,7 +25972,7 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25963
25972
  * @param {*} [options] Override http request option.
25964
25973
  * @throws {RequiredError}
25965
25974
  */
25966
- adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25975
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25967
25976
  /**
25968
25977
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25969
25978
  * @summary Get single order with transactions and invoices
@@ -26239,21 +26248,23 @@ export declare class BillingDashboardApi extends BaseAPI {
26239
26248
  */
26240
26249
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26241
26250
  /**
26242
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
26251
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
26243
26252
  * @summary Get invoices
26244
26253
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
26245
26254
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
26246
26255
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
26247
26256
  * @param {string} [endDate] End date (YYYY-MM-DD format)
26257
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
26248
26258
  * @param {number} [page] Page number (default: 1)
26249
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
26259
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
26260
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
26250
26261
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
26251
26262
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26252
26263
  * @param {*} [options] Override http request option.
26253
26264
  * @throws {RequiredError}
26254
26265
  * @memberof BillingDashboardApi
26255
26266
  */
26256
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26267
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26257
26268
  /**
26258
26269
  * Deletes an invoice (soft delete by setting status to cancelled)
26259
26270
  * @summary Delete invoice
@@ -26302,13 +26313,14 @@ export declare class BillingDashboardApi extends BaseAPI {
26302
26313
  */
26303
26314
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseDataTypesPayInvoiceResponse, any, {}>>;
26304
26315
  /**
26305
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
26316
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
26306
26317
  * @summary Get orders
26307
26318
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
26308
26319
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
26309
26320
  * @param {string} [endDate] End date (YYYY-MM-DD format)
26310
26321
  * @param {number} [page] Page number (default: 1)
26311
26322
  * @param {number} [pageSize] Page size (default: 50, max: 100)
26323
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
26312
26324
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
26313
26325
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26314
26326
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -26319,7 +26331,7 @@ export declare class BillingDashboardApi extends BaseAPI {
26319
26331
  * @throws {RequiredError}
26320
26332
  * @memberof BillingDashboardApi
26321
26333
  */
26322
- adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26334
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26323
26335
  /**
26324
26336
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
26325
26337
  * @summary Get single order with transactions and invoices
package/dist/api.js CHANGED
@@ -7906,20 +7906,22 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7906
7906
  };
7907
7907
  }),
7908
7908
  /**
7909
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
7909
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
7910
7910
  * @summary Get invoices
7911
7911
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
7912
7912
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
7913
7913
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
7914
7914
  * @param {string} [endDate] End date (YYYY-MM-DD format)
7915
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
7915
7916
  * @param {number} [page] Page number (default: 1)
7916
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
7917
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
7918
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
7917
7919
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
7918
7920
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7919
7921
  * @param {*} [options] Override http request option.
7920
7922
  * @throws {RequiredError}
7921
7923
  */
7922
- adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options = {}) {
7924
+ adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options = {}) {
7923
7925
  const localVarPath = `/admin/billing/invoices`;
7924
7926
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7925
7927
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7944,9 +7946,15 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7944
7946
  if (endDate !== undefined) {
7945
7947
  localVarQueryParameter['end_date'] = endDate;
7946
7948
  }
7949
+ if (search !== undefined) {
7950
+ localVarQueryParameter['search'] = search;
7951
+ }
7947
7952
  if (page !== undefined) {
7948
7953
  localVarQueryParameter['page'] = page;
7949
7954
  }
7955
+ if (pageSize !== undefined) {
7956
+ localVarQueryParameter['page_size'] = pageSize;
7957
+ }
7950
7958
  if (limit !== undefined) {
7951
7959
  localVarQueryParameter['limit'] = limit;
7952
7960
  }
@@ -8128,13 +8136,14 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8128
8136
  };
8129
8137
  }),
8130
8138
  /**
8131
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8139
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
8132
8140
  * @summary Get orders
8133
8141
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
8134
8142
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8135
8143
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8136
8144
  * @param {number} [page] Page number (default: 1)
8137
8145
  * @param {number} [pageSize] Page size (default: 50, max: 100)
8146
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8138
8147
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
8139
8148
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8140
8149
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -8144,7 +8153,7 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8144
8153
  * @param {*} [options] Override http request option.
8145
8154
  * @throws {RequiredError}
8146
8155
  */
8147
- adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options = {}) {
8156
+ adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options = {}) {
8148
8157
  const localVarPath = `/admin/billing/orders`;
8149
8158
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8150
8159
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8172,6 +8181,9 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8172
8181
  if (pageSize !== undefined) {
8173
8182
  localVarQueryParameter['page_size'] = pageSize;
8174
8183
  }
8184
+ if (limit !== undefined) {
8185
+ localVarQueryParameter['limit'] = limit;
8186
+ }
8175
8187
  if (sortBy !== undefined) {
8176
8188
  localVarQueryParameter['sort_by'] = sortBy;
8177
8189
  }
@@ -8924,23 +8936,25 @@ const BillingDashboardApiFp = function (configuration) {
8924
8936
  });
8925
8937
  },
8926
8938
  /**
8927
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
8939
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
8928
8940
  * @summary Get invoices
8929
8941
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
8930
8942
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
8931
8943
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8932
8944
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8945
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
8933
8946
  * @param {number} [page] Page number (default: 1)
8934
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
8947
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
8948
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
8935
8949
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
8936
8950
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8937
8951
  * @param {*} [options] Override http request option.
8938
8952
  * @throws {RequiredError}
8939
8953
  */
8940
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
8954
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
8941
8955
  return __awaiter(this, void 0, void 0, function* () {
8942
8956
  var _a, _b, _c;
8943
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options);
8957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
8944
8958
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8945
8959
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8946
8960
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9029,13 +9043,14 @@ const BillingDashboardApiFp = function (configuration) {
9029
9043
  });
9030
9044
  },
9031
9045
  /**
9032
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9046
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
9033
9047
  * @summary Get orders
9034
9048
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9035
9049
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9036
9050
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9037
9051
  * @param {number} [page] Page number (default: 1)
9038
9052
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9053
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9039
9054
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9040
9055
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9041
9056
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -9045,10 +9060,10 @@ const BillingDashboardApiFp = function (configuration) {
9045
9060
  * @param {*} [options] Override http request option.
9046
9061
  * @throws {RequiredError}
9047
9062
  */
9048
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9063
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9049
9064
  return __awaiter(this, void 0, void 0, function* () {
9050
9065
  var _a, _b, _c;
9051
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options);
9066
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options);
9052
9067
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9053
9068
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9054
9069
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9447,21 +9462,23 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9447
9462
  return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
9448
9463
  },
9449
9464
  /**
9450
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
9465
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
9451
9466
  * @summary Get invoices
9452
9467
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9453
9468
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
9454
9469
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9455
9470
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9471
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
9456
9472
  * @param {number} [page] Page number (default: 1)
9457
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
9473
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
9474
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
9458
9475
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
9459
9476
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9460
9477
  * @param {*} [options] Override http request option.
9461
9478
  * @throws {RequiredError}
9462
9479
  */
9463
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
9464
- return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9480
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
9481
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9465
9482
  },
9466
9483
  /**
9467
9484
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -9516,13 +9533,14 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9516
9533
  return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
9517
9534
  },
9518
9535
  /**
9519
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9536
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
9520
9537
  * @summary Get orders
9521
9538
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9522
9539
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9523
9540
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9524
9541
  * @param {number} [page] Page number (default: 1)
9525
9542
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9543
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9526
9544
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9527
9545
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9528
9546
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -9532,8 +9550,8 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9532
9550
  * @param {*} [options] Override http request option.
9533
9551
  * @throws {RequiredError}
9534
9552
  */
9535
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9536
- return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
9553
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9554
+ return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
9537
9555
  },
9538
9556
  /**
9539
9557
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
@@ -9862,22 +9880,24 @@ class BillingDashboardApi extends base_1.BaseAPI {
9862
9880
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
9863
9881
  }
9864
9882
  /**
9865
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
9883
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
9866
9884
  * @summary Get invoices
9867
9885
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9868
9886
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
9869
9887
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9870
9888
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9889
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
9871
9890
  * @param {number} [page] Page number (default: 1)
9872
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
9891
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
9892
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
9873
9893
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
9874
9894
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9875
9895
  * @param {*} [options] Override http request option.
9876
9896
  * @throws {RequiredError}
9877
9897
  * @memberof BillingDashboardApi
9878
9898
  */
9879
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
9880
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9899
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
9900
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9881
9901
  }
9882
9902
  /**
9883
9903
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -9937,13 +9957,14 @@ class BillingDashboardApi extends base_1.BaseAPI {
9937
9957
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
9938
9958
  }
9939
9959
  /**
9940
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9960
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
9941
9961
  * @summary Get orders
9942
9962
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9943
9963
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9944
9964
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9945
9965
  * @param {number} [page] Page number (default: 1)
9946
9966
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9967
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9947
9968
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9948
9969
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9949
9970
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -9954,8 +9975,8 @@ class BillingDashboardApi extends base_1.BaseAPI {
9954
9975
  * @throws {RequiredError}
9955
9976
  * @memberof BillingDashboardApi
9956
9977
  */
9957
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9958
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
9978
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9979
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
9959
9980
  }
9960
9981
  /**
9961
9982
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
package/dist/esm/api.d.ts CHANGED
@@ -25220,20 +25220,22 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25220
25220
  */
25221
25221
  adminBillingInvoicesGeneratePaymentIdPost: (paymentId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25222
25222
  /**
25223
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25223
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
25224
25224
  * @summary Get invoices
25225
25225
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25226
25226
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25227
25227
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25228
25228
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25229
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25229
25230
  * @param {number} [page] Page number (default: 1)
25230
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25231
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25232
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25231
25233
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25232
25234
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25233
25235
  * @param {*} [options] Override http request option.
25234
25236
  * @throws {RequiredError}
25235
25237
  */
25236
- adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25238
+ adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25237
25239
  /**
25238
25240
  * Deletes an invoice (soft delete by setting status to cancelled)
25239
25241
  * @summary Delete invoice
@@ -25277,13 +25279,14 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25277
25279
  */
25278
25280
  adminBillingInvoicesInvoiceIdPayPost: (invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25279
25281
  /**
25280
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25282
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
25281
25283
  * @summary Get orders
25282
25284
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25283
25285
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25284
25286
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25285
25287
  * @param {number} [page] Page number (default: 1)
25286
25288
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25289
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25287
25290
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25288
25291
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25289
25292
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -25293,7 +25296,7 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25293
25296
  * @param {*} [options] Override http request option.
25294
25297
  * @throws {RequiredError}
25295
25298
  */
25296
- adminBillingOrdersGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25299
+ adminBillingOrdersGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25297
25300
  /**
25298
25301
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25299
25302
  * @summary Get single order with transactions and invoices
@@ -25555,20 +25558,22 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25555
25558
  */
25556
25559
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25557
25560
  /**
25558
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25561
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
25559
25562
  * @summary Get invoices
25560
25563
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25561
25564
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25562
25565
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25563
25566
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25567
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25564
25568
  * @param {number} [page] Page number (default: 1)
25565
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25569
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25570
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25566
25571
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25567
25572
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25568
25573
  * @param {*} [options] Override http request option.
25569
25574
  * @throws {RequiredError}
25570
25575
  */
25571
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25576
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25572
25577
  /**
25573
25578
  * Deletes an invoice (soft delete by setting status to cancelled)
25574
25579
  * @summary Delete invoice
@@ -25612,13 +25617,14 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25612
25617
  */
25613
25618
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>>;
25614
25619
  /**
25615
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25620
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
25616
25621
  * @summary Get orders
25617
25622
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25618
25623
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25619
25624
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25620
25625
  * @param {number} [page] Page number (default: 1)
25621
25626
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25627
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25622
25628
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25623
25629
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25624
25630
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -25628,7 +25634,7 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25628
25634
  * @param {*} [options] Override http request option.
25629
25635
  * @throws {RequiredError}
25630
25636
  */
25631
- adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25637
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25632
25638
  /**
25633
25639
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25634
25640
  * @summary Get single order with transactions and invoices
@@ -25890,20 +25896,22 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25890
25896
  */
25891
25897
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25892
25898
  /**
25893
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25899
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
25894
25900
  * @summary Get invoices
25895
25901
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25896
25902
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25897
25903
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25898
25904
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25905
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25899
25906
  * @param {number} [page] Page number (default: 1)
25900
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25907
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25908
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25901
25909
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25902
25910
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25903
25911
  * @param {*} [options] Override http request option.
25904
25912
  * @throws {RequiredError}
25905
25913
  */
25906
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25914
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25907
25915
  /**
25908
25916
  * Deletes an invoice (soft delete by setting status to cancelled)
25909
25917
  * @summary Delete invoice
@@ -25947,13 +25955,14 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25947
25955
  */
25948
25956
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>;
25949
25957
  /**
25950
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25958
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
25951
25959
  * @summary Get orders
25952
25960
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25953
25961
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25954
25962
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25955
25963
  * @param {number} [page] Page number (default: 1)
25956
25964
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25965
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25957
25966
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25958
25967
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25959
25968
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -25963,7 +25972,7 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25963
25972
  * @param {*} [options] Override http request option.
25964
25973
  * @throws {RequiredError}
25965
25974
  */
25966
- adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25975
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25967
25976
  /**
25968
25977
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25969
25978
  * @summary Get single order with transactions and invoices
@@ -26239,21 +26248,23 @@ export declare class BillingDashboardApi extends BaseAPI {
26239
26248
  */
26240
26249
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26241
26250
  /**
26242
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
26251
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
26243
26252
  * @summary Get invoices
26244
26253
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
26245
26254
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
26246
26255
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
26247
26256
  * @param {string} [endDate] End date (YYYY-MM-DD format)
26257
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
26248
26258
  * @param {number} [page] Page number (default: 1)
26249
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
26259
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
26260
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
26250
26261
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
26251
26262
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26252
26263
  * @param {*} [options] Override http request option.
26253
26264
  * @throws {RequiredError}
26254
26265
  * @memberof BillingDashboardApi
26255
26266
  */
26256
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26267
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26257
26268
  /**
26258
26269
  * Deletes an invoice (soft delete by setting status to cancelled)
26259
26270
  * @summary Delete invoice
@@ -26302,13 +26313,14 @@ export declare class BillingDashboardApi extends BaseAPI {
26302
26313
  */
26303
26314
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseDataTypesPayInvoiceResponse, any, {}>>;
26304
26315
  /**
26305
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
26316
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
26306
26317
  * @summary Get orders
26307
26318
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
26308
26319
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
26309
26320
  * @param {string} [endDate] End date (YYYY-MM-DD format)
26310
26321
  * @param {number} [page] Page number (default: 1)
26311
26322
  * @param {number} [pageSize] Page size (default: 50, max: 100)
26323
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
26312
26324
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
26313
26325
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26314
26326
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -26319,7 +26331,7 @@ export declare class BillingDashboardApi extends BaseAPI {
26319
26331
  * @throws {RequiredError}
26320
26332
  * @memberof BillingDashboardApi
26321
26333
  */
26322
- adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26334
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26323
26335
  /**
26324
26336
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
26325
26337
  * @summary Get single order with transactions and invoices
package/dist/esm/api.js CHANGED
@@ -7866,20 +7866,22 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7866
7866
  };
7867
7867
  }),
7868
7868
  /**
7869
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
7869
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
7870
7870
  * @summary Get invoices
7871
7871
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
7872
7872
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
7873
7873
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
7874
7874
  * @param {string} [endDate] End date (YYYY-MM-DD format)
7875
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
7875
7876
  * @param {number} [page] Page number (default: 1)
7876
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
7877
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
7878
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
7877
7879
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
7878
7880
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7879
7881
  * @param {*} [options] Override http request option.
7880
7882
  * @throws {RequiredError}
7881
7883
  */
7882
- adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options = {}) {
7884
+ adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options = {}) {
7883
7885
  const localVarPath = `/admin/billing/invoices`;
7884
7886
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7885
7887
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7904,9 +7906,15 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7904
7906
  if (endDate !== undefined) {
7905
7907
  localVarQueryParameter['end_date'] = endDate;
7906
7908
  }
7909
+ if (search !== undefined) {
7910
+ localVarQueryParameter['search'] = search;
7911
+ }
7907
7912
  if (page !== undefined) {
7908
7913
  localVarQueryParameter['page'] = page;
7909
7914
  }
7915
+ if (pageSize !== undefined) {
7916
+ localVarQueryParameter['page_size'] = pageSize;
7917
+ }
7910
7918
  if (limit !== undefined) {
7911
7919
  localVarQueryParameter['limit'] = limit;
7912
7920
  }
@@ -8088,13 +8096,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
8088
8096
  };
8089
8097
  }),
8090
8098
  /**
8091
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8099
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
8092
8100
  * @summary Get orders
8093
8101
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
8094
8102
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8095
8103
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8096
8104
  * @param {number} [page] Page number (default: 1)
8097
8105
  * @param {number} [pageSize] Page size (default: 50, max: 100)
8106
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8098
8107
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
8099
8108
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8100
8109
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -8104,7 +8113,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
8104
8113
  * @param {*} [options] Override http request option.
8105
8114
  * @throws {RequiredError}
8106
8115
  */
8107
- adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options = {}) {
8116
+ adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options = {}) {
8108
8117
  const localVarPath = `/admin/billing/orders`;
8109
8118
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8110
8119
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8132,6 +8141,9 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
8132
8141
  if (pageSize !== undefined) {
8133
8142
  localVarQueryParameter['page_size'] = pageSize;
8134
8143
  }
8144
+ if (limit !== undefined) {
8145
+ localVarQueryParameter['limit'] = limit;
8146
+ }
8135
8147
  if (sortBy !== undefined) {
8136
8148
  localVarQueryParameter['sort_by'] = sortBy;
8137
8149
  }
@@ -8883,23 +8895,25 @@ export const BillingDashboardApiFp = function (configuration) {
8883
8895
  });
8884
8896
  },
8885
8897
  /**
8886
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
8898
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
8887
8899
  * @summary Get invoices
8888
8900
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
8889
8901
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
8890
8902
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8891
8903
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8904
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
8892
8905
  * @param {number} [page] Page number (default: 1)
8893
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
8906
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
8907
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
8894
8908
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
8895
8909
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8896
8910
  * @param {*} [options] Override http request option.
8897
8911
  * @throws {RequiredError}
8898
8912
  */
8899
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
8913
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
8900
8914
  return __awaiter(this, void 0, void 0, function* () {
8901
8915
  var _a, _b, _c;
8902
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options);
8916
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
8903
8917
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8904
8918
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8905
8919
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8988,13 +9002,14 @@ export const BillingDashboardApiFp = function (configuration) {
8988
9002
  });
8989
9003
  },
8990
9004
  /**
8991
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9005
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
8992
9006
  * @summary Get orders
8993
9007
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
8994
9008
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8995
9009
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8996
9010
  * @param {number} [page] Page number (default: 1)
8997
9011
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9012
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8998
9013
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
8999
9014
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9000
9015
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -9004,10 +9019,10 @@ export const BillingDashboardApiFp = function (configuration) {
9004
9019
  * @param {*} [options] Override http request option.
9005
9020
  * @throws {RequiredError}
9006
9021
  */
9007
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9022
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9008
9023
  return __awaiter(this, void 0, void 0, function* () {
9009
9024
  var _a, _b, _c;
9010
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options);
9025
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options);
9011
9026
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9012
9027
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9013
9028
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9405,21 +9420,23 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9405
9420
  return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
9406
9421
  },
9407
9422
  /**
9408
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
9423
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
9409
9424
  * @summary Get invoices
9410
9425
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9411
9426
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
9412
9427
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9413
9428
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9429
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
9414
9430
  * @param {number} [page] Page number (default: 1)
9415
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
9431
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
9432
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
9416
9433
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
9417
9434
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9418
9435
  * @param {*} [options] Override http request option.
9419
9436
  * @throws {RequiredError}
9420
9437
  */
9421
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
9422
- return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9438
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
9439
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9423
9440
  },
9424
9441
  /**
9425
9442
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -9474,13 +9491,14 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9474
9491
  return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
9475
9492
  },
9476
9493
  /**
9477
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9494
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
9478
9495
  * @summary Get orders
9479
9496
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9480
9497
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9481
9498
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9482
9499
  * @param {number} [page] Page number (default: 1)
9483
9500
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9501
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9484
9502
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9485
9503
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9486
9504
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -9490,8 +9508,8 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9490
9508
  * @param {*} [options] Override http request option.
9491
9509
  * @throws {RequiredError}
9492
9510
  */
9493
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9494
- return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
9511
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9512
+ return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
9495
9513
  },
9496
9514
  /**
9497
9515
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
@@ -9819,22 +9837,24 @@ export class BillingDashboardApi extends BaseAPI {
9819
9837
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
9820
9838
  }
9821
9839
  /**
9822
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
9840
+ * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
9823
9841
  * @summary Get invoices
9824
9842
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9825
9843
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
9826
9844
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9827
9845
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9846
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
9828
9847
  * @param {number} [page] Page number (default: 1)
9829
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
9848
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
9849
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
9830
9850
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
9831
9851
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9832
9852
  * @param {*} [options] Override http request option.
9833
9853
  * @throws {RequiredError}
9834
9854
  * @memberof BillingDashboardApi
9835
9855
  */
9836
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
9837
- return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9856
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
9857
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9838
9858
  }
9839
9859
  /**
9840
9860
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -9894,13 +9914,14 @@ export class BillingDashboardApi extends BaseAPI {
9894
9914
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
9895
9915
  }
9896
9916
  /**
9897
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9917
+ * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
9898
9918
  * @summary Get orders
9899
9919
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
9900
9920
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9901
9921
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9902
9922
  * @param {number} [page] Page number (default: 1)
9903
9923
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9924
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9904
9925
  * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9905
9926
  * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9906
9927
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
@@ -9911,8 +9932,8 @@ export class BillingDashboardApi extends BaseAPI {
9911
9932
  * @throws {RequiredError}
9912
9933
  * @memberof BillingDashboardApi
9913
9934
  */
9914
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9915
- return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
9935
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9936
+ return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
9916
9937
  }
9917
9938
  /**
9918
9939
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file