@seekora-ai/admin-api 1.1.10 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -7597,8 +7597,8 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7597
7597
  * @param {number} [pageSize] Page size (default: 50, max: 100)
7598
7598
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
7599
7599
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7600
- * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
7601
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7600
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
7601
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
7602
7602
  * @param {*} [options] Override http request option.
7603
7603
  * @throws {RequiredError}
7604
7604
  */
@@ -7660,8 +7660,8 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7660
7660
  * @param {number} [pageSize] Page size (default: 50, max: 100)
7661
7661
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
7662
7662
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7663
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
7664
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7663
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
7664
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
7665
7665
  * @param {*} [options] Override http request option.
7666
7666
  * @throws {RequiredError}
7667
7667
  */
@@ -7723,8 +7723,8 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7723
7723
  * @param {number} [pageSize] Page size (default: 50, max: 100)
7724
7724
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
7725
7725
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7726
- * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
7727
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7726
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
7727
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
7728
7728
  * @param {*} [options] Override http request option.
7729
7729
  * @throws {RequiredError}
7730
7730
  */
@@ -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\'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 {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
7878
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
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
7879
+ * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
7880
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
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,15 +8096,16 @@ 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\'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)
8098
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
8099
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8106
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8107
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
8108
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
8100
8109
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
8101
8110
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
8102
8111
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -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
  }
@@ -8339,8 +8351,8 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
8339
8351
  * @param {number} [pageSize] Page size (default: 50, max: 100)
8340
8352
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8341
8353
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8342
- * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
8343
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8354
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
8355
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
8344
8356
  * @param {*} [options] Override http request option.
8345
8357
  * @throws {RequiredError}
8346
8358
  */
@@ -8773,8 +8785,8 @@ export const BillingDashboardApiFp = function (configuration) {
8773
8785
  * @param {number} [pageSize] Page size (default: 50, max: 100)
8774
8786
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8775
8787
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8776
- * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
8777
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8788
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
8789
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
8778
8790
  * @param {*} [options] Override http request option.
8779
8791
  * @throws {RequiredError}
8780
8792
  */
@@ -8797,8 +8809,8 @@ export const BillingDashboardApiFp = function (configuration) {
8797
8809
  * @param {number} [pageSize] Page size (default: 50, max: 100)
8798
8810
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8799
8811
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8800
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
8801
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8812
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
8813
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
8802
8814
  * @param {*} [options] Override http request option.
8803
8815
  * @throws {RequiredError}
8804
8816
  */
@@ -8821,8 +8833,8 @@ export const BillingDashboardApiFp = function (configuration) {
8821
8833
  * @param {number} [pageSize] Page size (default: 50, max: 100)
8822
8834
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8823
8835
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8824
- * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
8825
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8836
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
8837
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
8826
8838
  * @param {*} [options] Override http request option.
8827
8839
  * @throws {RequiredError}
8828
8840
  */
@@ -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\'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)
8894
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
8895
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
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
8908
+ * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
8909
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
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,15 +9002,16 @@ 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\'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)
8998
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
8999
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9012
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9013
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
9014
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
9000
9015
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
9001
9016
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
9002
9017
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -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);
@@ -9107,8 +9122,8 @@ export const BillingDashboardApiFp = function (configuration) {
9107
9122
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9108
9123
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9109
9124
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9110
- * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
9111
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9125
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
9126
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
9112
9127
  * @param {*} [options] Override http request option.
9113
9128
  * @throws {RequiredError}
9114
9129
  */
@@ -9331,8 +9346,8 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9331
9346
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9332
9347
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9333
9348
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9334
- * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
9335
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9349
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
9350
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
9336
9351
  * @param {*} [options] Override http request option.
9337
9352
  * @throws {RequiredError}
9338
9353
  */
@@ -9349,8 +9364,8 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9349
9364
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9350
9365
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9351
9366
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9352
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
9353
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9367
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
9368
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
9354
9369
  * @param {*} [options] Override http request option.
9355
9370
  * @throws {RequiredError}
9356
9371
  */
@@ -9367,8 +9382,8 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9367
9382
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9368
9383
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9369
9384
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9370
- * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
9371
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9385
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
9386
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
9372
9387
  * @param {*} [options] Override http request option.
9373
9388
  * @throws {RequiredError}
9374
9389
  */
@@ -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\'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)
9416
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
9417
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
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
9433
+ * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
9434
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
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,15 +9491,16 @@ 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\'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)
9484
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9485
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9501
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9502
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
9503
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
9486
9504
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
9487
9505
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
9488
9506
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -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)
@@ -9557,8 +9575,8 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9557
9575
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9558
9576
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9559
9577
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9560
- * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
9561
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9578
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
9579
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
9562
9580
  * @param {*} [options] Override http request option.
9563
9581
  * @throws {RequiredError}
9564
9582
  */
@@ -9739,8 +9757,8 @@ export class BillingDashboardApi extends BaseAPI {
9739
9757
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9740
9758
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9741
9759
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9742
- * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
9743
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9760
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
9761
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
9744
9762
  * @param {*} [options] Override http request option.
9745
9763
  * @throws {RequiredError}
9746
9764
  * @memberof BillingDashboardApi
@@ -9758,8 +9776,8 @@ export class BillingDashboardApi extends BaseAPI {
9758
9776
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9759
9777
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9760
9778
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9761
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
9762
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9779
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
9780
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
9763
9781
  * @param {*} [options] Override http request option.
9764
9782
  * @throws {RequiredError}
9765
9783
  * @memberof BillingDashboardApi
@@ -9777,8 +9795,8 @@ export class BillingDashboardApi extends BaseAPI {
9777
9795
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9778
9796
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9779
9797
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9780
- * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
9781
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9798
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
9799
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
9782
9800
  * @param {*} [options] Override http request option.
9783
9801
  * @throws {RequiredError}
9784
9802
  * @memberof BillingDashboardApi
@@ -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\'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)
9830
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
9831
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
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
9850
+ * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
9851
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
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,15 +9914,16 @@ 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\'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)
9904
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9905
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9924
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9925
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
9926
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
9906
9927
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
9907
9928
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
9908
9929
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -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)
@@ -9983,8 +10004,8 @@ export class BillingDashboardApi extends BaseAPI {
9983
10004
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9984
10005
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9985
10006
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9986
- * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
9987
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
10007
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
10008
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
9988
10009
  * @param {*} [options] Override http request option.
9989
10010
  * @throws {RequiredError}
9990
10011
  * @memberof BillingDashboardApi
@@ -10080,6 +10101,124 @@ export class BillingDashboardApi extends BaseAPI {
10080
10101
  return BillingDashboardApiFp(this.configuration).adminBillingUsageDetailsGet(xstoreid, startDate, endDate, granularity, chartPage, chartPageSize, endpointPage, endpointPageSize, consumptionPage, consumptionPageSize, options).then((request) => request(this.axios, this.basePath));
10081
10102
  }
10082
10103
  }
10104
+ /**
10105
+ * @export
10106
+ */
10107
+ export const AdminBillingCreditLedgerGetSortByEnum = {
10108
+ Id: 'id',
10109
+ Credits: 'credits',
10110
+ TransactionDate: 'transaction_date',
10111
+ TransactionType: 'transaction_type'
10112
+ };
10113
+ /**
10114
+ * @export
10115
+ */
10116
+ export const AdminBillingCreditLedgerGetSortOrderEnum = {
10117
+ Asc: 'asc',
10118
+ Desc: 'desc',
10119
+ Asc2: 'ASC',
10120
+ Desc2: 'DESC'
10121
+ };
10122
+ /**
10123
+ * @export
10124
+ */
10125
+ export const AdminBillingCreditPurchasesGetSortByEnum = {
10126
+ Id: 'id',
10127
+ Amount: 'amount',
10128
+ CreatedAt: 'created_at',
10129
+ CreditsPurchased: 'credits_purchased'
10130
+ };
10131
+ /**
10132
+ * @export
10133
+ */
10134
+ export const AdminBillingCreditPurchasesGetSortOrderEnum = {
10135
+ Asc: 'asc',
10136
+ Desc: 'desc',
10137
+ Asc2: 'ASC',
10138
+ Desc2: 'DESC'
10139
+ };
10140
+ /**
10141
+ * @export
10142
+ */
10143
+ export const AdminBillingCreditTransactionsGetSortByEnum = {
10144
+ Id: 'id',
10145
+ CreditsUsed: 'credits_used',
10146
+ TransactionDate: 'transaction_date',
10147
+ TransactionType: 'transaction_type'
10148
+ };
10149
+ /**
10150
+ * @export
10151
+ */
10152
+ export const AdminBillingCreditTransactionsGetSortOrderEnum = {
10153
+ Asc: 'asc',
10154
+ Desc: 'desc',
10155
+ Asc2: 'ASC',
10156
+ Desc2: 'DESC'
10157
+ };
10158
+ /**
10159
+ * @export
10160
+ */
10161
+ export const AdminBillingInvoicesGetSortByEnum = {
10162
+ Id: 'id',
10163
+ InvoiceId: 'invoice_id',
10164
+ InvoiceNumber: 'invoice_number',
10165
+ Amount: 'amount',
10166
+ TotalAmount: 'total_amount',
10167
+ CreatedAt: 'created_at',
10168
+ IssueDate: 'issue_date',
10169
+ DueDate: 'due_date',
10170
+ PaidDate: 'paid_date',
10171
+ Status: 'status'
10172
+ };
10173
+ /**
10174
+ * @export
10175
+ */
10176
+ export const AdminBillingInvoicesGetSortOrderEnum = {
10177
+ Asc: 'asc',
10178
+ Desc: 'desc',
10179
+ Asc2: 'ASC',
10180
+ Desc2: 'DESC'
10181
+ };
10182
+ /**
10183
+ * @export
10184
+ */
10185
+ export const AdminBillingOrdersGetSortByEnum = {
10186
+ Id: 'id',
10187
+ Amount: 'amount',
10188
+ CreatedAt: 'created_at',
10189
+ UpdatedAt: 'updated_at',
10190
+ Status: 'status'
10191
+ };
10192
+ /**
10193
+ * @export
10194
+ */
10195
+ export const AdminBillingOrdersGetSortOrderEnum = {
10196
+ Asc: 'asc',
10197
+ Desc: 'desc',
10198
+ Asc2: 'ASC',
10199
+ Desc2: 'DESC'
10200
+ };
10201
+ /**
10202
+ * @export
10203
+ */
10204
+ export const AdminBillingPaymentTransactionsGetSortByEnum = {
10205
+ PaymentId: 'payment_id',
10206
+ Amount: 'amount',
10207
+ PaymentDate: 'payment_date',
10208
+ CreatedAt: 'created_at',
10209
+ PaymentStatus: 'payment_status',
10210
+ Gateway: 'gateway',
10211
+ RefundAmount: 'refund_amount'
10212
+ };
10213
+ /**
10214
+ * @export
10215
+ */
10216
+ export const AdminBillingPaymentTransactionsGetSortOrderEnum = {
10217
+ Asc: 'asc',
10218
+ Desc: 'desc',
10219
+ Asc2: 'ASC',
10220
+ Desc2: 'DESC'
10221
+ };
10083
10222
  /**
10084
10223
  * @export
10085
10224
  */
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.12",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file