@seekora-ai/admin-api 1.1.8 → 1.1.10

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/api.ts CHANGED
@@ -7740,7 +7740,7 @@ export interface DataTypesBillingAlertRequest {
7740
7740
  * @type {string}
7741
7741
  * @memberof DataTypesBillingAlertRequest
7742
7742
  */
7743
- 'alert_type': DataTypesBillingAlertRequestAlertTypeEnum;
7743
+ 'alert_type'?: DataTypesBillingAlertRequestAlertTypeEnum;
7744
7744
  /**
7745
7745
  * Minutes between alerts (default: 60)
7746
7746
  * @type {number}
@@ -7782,7 +7782,7 @@ export interface DataTypesBillingAlertRequest {
7782
7782
  * @type {string}
7783
7783
  * @memberof DataTypesBillingAlertRequest
7784
7784
  */
7785
- 'threshold_unit': DataTypesBillingAlertRequestThresholdUnitEnum;
7785
+ 'threshold_unit'?: DataTypesBillingAlertRequestThresholdUnitEnum;
7786
7786
  /**
7787
7787
  * Absolute threshold value (exclusive with threshold_percentage)
7788
7788
  * @type {number}
@@ -15470,6 +15470,12 @@ export interface DataTypesProfileResponse {
15470
15470
  * @memberof DataTypesProfileResponse
15471
15471
  */
15472
15472
  'profileimagepath'?: string;
15473
+ /**
15474
+ *
15475
+ * @type {{ [key: string]: any; }}
15476
+ * @memberof DataTypesProfileResponse
15477
+ */
15478
+ 'sso_config'?: { [key: string]: any; };
15473
15479
  /**
15474
15480
  *
15475
15481
  * @type {string}
@@ -29179,17 +29185,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29179
29185
  };
29180
29186
  },
29181
29187
  /**
29182
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
29188
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
29183
29189
  * @summary Get credit ledger
29184
29190
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
29185
29191
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29186
29192
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29187
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
29188
- * @param {number} [offset] Number of results to skip (default: 0)
29193
+ * @param {number} [page] Page number (default: 1)
29194
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
29195
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
29196
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
29197
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
29198
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29189
29199
  * @param {*} [options] Override http request option.
29190
29200
  * @throws {RequiredError}
29191
29201
  */
29192
- adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29202
+ adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29193
29203
  const localVarPath = `/admin/billing/credit-ledger`;
29194
29204
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29195
29205
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29217,6 +29227,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29217
29227
  localVarQueryParameter['end_date'] = endDate;
29218
29228
  }
29219
29229
 
29230
+ if (page !== undefined) {
29231
+ localVarQueryParameter['page'] = page;
29232
+ }
29233
+
29234
+ if (pageSize !== undefined) {
29235
+ localVarQueryParameter['page_size'] = pageSize;
29236
+ }
29237
+
29220
29238
  if (limit !== undefined) {
29221
29239
  localVarQueryParameter['limit'] = limit;
29222
29240
  }
@@ -29225,6 +29243,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29225
29243
  localVarQueryParameter['offset'] = offset;
29226
29244
  }
29227
29245
 
29246
+ if (sortBy !== undefined) {
29247
+ localVarQueryParameter['sort_by'] = sortBy;
29248
+ }
29249
+
29250
+ if (sortOrder !== undefined) {
29251
+ localVarQueryParameter['sort_order'] = sortOrder;
29252
+ }
29253
+
29228
29254
 
29229
29255
 
29230
29256
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29237,17 +29263,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29237
29263
  };
29238
29264
  },
29239
29265
  /**
29240
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
29266
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
29241
29267
  * @summary Get credit purchases
29242
29268
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29243
29269
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29244
29270
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29245
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
29246
- * @param {number} [offset] Number of results to skip (default: 0)
29271
+ * @param {number} [page] Page number (default: 1)
29272
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
29273
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
29274
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
29275
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
29276
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29247
29277
  * @param {*} [options] Override http request option.
29248
29278
  * @throws {RequiredError}
29249
29279
  */
29250
- adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29280
+ adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29251
29281
  const localVarPath = `/admin/billing/credit-purchases`;
29252
29282
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29253
29283
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29275,6 +29305,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29275
29305
  localVarQueryParameter['end_date'] = endDate;
29276
29306
  }
29277
29307
 
29308
+ if (page !== undefined) {
29309
+ localVarQueryParameter['page'] = page;
29310
+ }
29311
+
29312
+ if (pageSize !== undefined) {
29313
+ localVarQueryParameter['page_size'] = pageSize;
29314
+ }
29315
+
29278
29316
  if (limit !== undefined) {
29279
29317
  localVarQueryParameter['limit'] = limit;
29280
29318
  }
@@ -29283,6 +29321,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29283
29321
  localVarQueryParameter['offset'] = offset;
29284
29322
  }
29285
29323
 
29324
+ if (sortBy !== undefined) {
29325
+ localVarQueryParameter['sort_by'] = sortBy;
29326
+ }
29327
+
29328
+ if (sortOrder !== undefined) {
29329
+ localVarQueryParameter['sort_order'] = sortOrder;
29330
+ }
29331
+
29286
29332
 
29287
29333
 
29288
29334
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29295,17 +29341,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29295
29341
  };
29296
29342
  },
29297
29343
  /**
29298
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
29344
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
29299
29345
  * @summary Get credit transactions
29300
29346
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29301
29347
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29302
29348
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29303
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
29304
- * @param {number} [offset] Number of results to skip (default: 0)
29349
+ * @param {number} [page] Page number (default: 1)
29350
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
29351
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
29352
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
29353
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
29354
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29305
29355
  * @param {*} [options] Override http request option.
29306
29356
  * @throws {RequiredError}
29307
29357
  */
29308
- adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29358
+ adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29309
29359
  const localVarPath = `/admin/billing/credit-transactions`;
29310
29360
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29311
29361
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29333,6 +29383,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29333
29383
  localVarQueryParameter['end_date'] = endDate;
29334
29384
  }
29335
29385
 
29386
+ if (page !== undefined) {
29387
+ localVarQueryParameter['page'] = page;
29388
+ }
29389
+
29390
+ if (pageSize !== undefined) {
29391
+ localVarQueryParameter['page_size'] = pageSize;
29392
+ }
29393
+
29336
29394
  if (limit !== undefined) {
29337
29395
  localVarQueryParameter['limit'] = limit;
29338
29396
  }
@@ -29341,6 +29399,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29341
29399
  localVarQueryParameter['offset'] = offset;
29342
29400
  }
29343
29401
 
29402
+ if (sortBy !== undefined) {
29403
+ localVarQueryParameter['sort_by'] = sortBy;
29404
+ }
29405
+
29406
+ if (sortOrder !== undefined) {
29407
+ localVarQueryParameter['sort_order'] = sortOrder;
29408
+ }
29409
+
29344
29410
 
29345
29411
 
29346
29412
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29468,10 +29534,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29468
29534
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29469
29535
  * @param {number} [page] Page number (default: 1)
29470
29536
  * @param {number} [limit] Number of results per page (default: 20, max: 100)
29537
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
29538
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29471
29539
  * @param {*} [options] Override http request option.
29472
29540
  * @throws {RequiredError}
29473
29541
  */
29474
- adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29542
+ adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29475
29543
  const localVarPath = `/admin/billing/invoices`;
29476
29544
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29477
29545
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29511,6 +29579,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29511
29579
  localVarQueryParameter['limit'] = limit;
29512
29580
  }
29513
29581
 
29582
+ if (sortBy !== undefined) {
29583
+ localVarQueryParameter['sort_by'] = sortBy;
29584
+ }
29585
+
29586
+ if (sortOrder !== undefined) {
29587
+ localVarQueryParameter['sort_order'] = sortOrder;
29588
+ }
29589
+
29514
29590
 
29515
29591
 
29516
29592
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29725,10 +29801,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29725
29801
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29726
29802
  * @param {number} [page] Page number (default: 1)
29727
29803
  * @param {number} [pageSize] Page size (default: 50, max: 100)
29804
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
29805
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29806
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
29807
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
29808
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
29809
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
29728
29810
  * @param {*} [options] Override http request option.
29729
29811
  * @throws {RequiredError}
29730
29812
  */
29731
- adminBillingOrdersGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
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> => {
29732
29814
  const localVarPath = `/admin/billing/orders`;
29733
29815
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29734
29816
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29764,6 +29846,30 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29764
29846
  localVarQueryParameter['page_size'] = pageSize;
29765
29847
  }
29766
29848
 
29849
+ if (sortBy !== undefined) {
29850
+ localVarQueryParameter['sort_by'] = sortBy;
29851
+ }
29852
+
29853
+ if (sortOrder !== undefined) {
29854
+ localVarQueryParameter['sort_order'] = sortOrder;
29855
+ }
29856
+
29857
+ if (search !== undefined) {
29858
+ localVarQueryParameter['search'] = search;
29859
+ }
29860
+
29861
+ if (status !== undefined) {
29862
+ localVarQueryParameter['status'] = status;
29863
+ }
29864
+
29865
+ if (gateway !== undefined) {
29866
+ localVarQueryParameter['gateway'] = gateway;
29867
+ }
29868
+
29869
+ if (paymentType !== undefined) {
29870
+ localVarQueryParameter['payment_type'] = paymentType;
29871
+ }
29872
+
29767
29873
 
29768
29874
 
29769
29875
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29985,17 +30091,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29985
30091
  };
29986
30092
  },
29987
30093
  /**
29988
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
30094
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
29989
30095
  * @summary Get payment transactions
29990
30096
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29991
30097
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29992
30098
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29993
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
29994
- * @param {number} [offset] Number of results to skip (default: 0)
30099
+ * @param {number} [page] Page number (default: 1)
30100
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30101
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30102
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30103
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
30104
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29995
30105
  * @param {*} [options] Override http request option.
29996
30106
  * @throws {RequiredError}
29997
30107
  */
29998
- adminBillingPaymentTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30108
+ adminBillingPaymentTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29999
30109
  const localVarPath = `/admin/billing/payment-transactions`;
30000
30110
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30001
30111
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -30023,6 +30133,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30023
30133
  localVarQueryParameter['end_date'] = endDate;
30024
30134
  }
30025
30135
 
30136
+ if (page !== undefined) {
30137
+ localVarQueryParameter['page'] = page;
30138
+ }
30139
+
30140
+ if (pageSize !== undefined) {
30141
+ localVarQueryParameter['page_size'] = pageSize;
30142
+ }
30143
+
30026
30144
  if (limit !== undefined) {
30027
30145
  localVarQueryParameter['limit'] = limit;
30028
30146
  }
@@ -30031,6 +30149,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30031
30149
  localVarQueryParameter['offset'] = offset;
30032
30150
  }
30033
30151
 
30152
+ if (sortBy !== undefined) {
30153
+ localVarQueryParameter['sort_by'] = sortBy;
30154
+ }
30155
+
30156
+ if (sortOrder !== undefined) {
30157
+ localVarQueryParameter['sort_order'] = sortOrder;
30158
+ }
30159
+
30034
30160
 
30035
30161
 
30036
30162
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -30113,14 +30239,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30113
30239
  };
30114
30240
  },
30115
30241
  /**
30116
- * Retrieves a paginated list of receipts for the organization
30242
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
30117
30243
  * @summary List receipts
30118
30244
  * @param {number} [page] Page number (default: 1)
30119
30245
  * @param {number} [pageSize] Page size (default: 20, max: 100)
30246
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
30247
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30120
30248
  * @param {*} [options] Override http request option.
30121
30249
  * @throws {RequiredError}
30122
30250
  */
30123
- adminBillingReceiptsGet: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30251
+ adminBillingReceiptsGet: async (page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30124
30252
  const localVarPath = `/admin/billing/receipts`;
30125
30253
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30126
30254
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -30144,6 +30272,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30144
30272
  localVarQueryParameter['page_size'] = pageSize;
30145
30273
  }
30146
30274
 
30275
+ if (sortBy !== undefined) {
30276
+ localVarQueryParameter['sort_by'] = sortBy;
30277
+ }
30278
+
30279
+ if (sortOrder !== undefined) {
30280
+ localVarQueryParameter['sort_order'] = sortOrder;
30281
+ }
30282
+
30147
30283
 
30148
30284
 
30149
30285
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -30443,52 +30579,64 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30443
30579
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30444
30580
  },
30445
30581
  /**
30446
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
30582
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30447
30583
  * @summary Get credit ledger
30448
30584
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30449
30585
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30450
30586
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30451
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30452
- * @param {number} [offset] Number of results to skip (default: 0)
30587
+ * @param {number} [page] Page number (default: 1)
30588
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30589
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30590
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30591
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
30592
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30453
30593
  * @param {*} [options] Override http request option.
30454
30594
  * @throws {RequiredError}
30455
30595
  */
30456
- async adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30457
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options);
30596
+ async adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30597
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30458
30598
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30459
30599
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']?.[localVarOperationServerIndex]?.url;
30460
30600
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30461
30601
  },
30462
30602
  /**
30463
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
30603
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30464
30604
  * @summary Get credit purchases
30465
30605
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30466
30606
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30467
30607
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30468
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30469
- * @param {number} [offset] Number of results to skip (default: 0)
30608
+ * @param {number} [page] Page number (default: 1)
30609
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30610
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30611
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30612
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
30613
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30470
30614
  * @param {*} [options] Override http request option.
30471
30615
  * @throws {RequiredError}
30472
30616
  */
30473
- async adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30474
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options);
30617
+ async adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30618
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30475
30619
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30476
30620
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditPurchasesGet']?.[localVarOperationServerIndex]?.url;
30477
30621
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30478
30622
  },
30479
30623
  /**
30480
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
30624
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30481
30625
  * @summary Get credit transactions
30482
30626
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30483
30627
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30484
30628
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30485
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30486
- * @param {number} [offset] Number of results to skip (default: 0)
30629
+ * @param {number} [page] Page number (default: 1)
30630
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30631
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30632
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30633
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
30634
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30487
30635
  * @param {*} [options] Override http request option.
30488
30636
  * @throws {RequiredError}
30489
30637
  */
30490
- async adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30491
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options);
30638
+ async adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30639
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30492
30640
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30493
30641
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']?.[localVarOperationServerIndex]?.url;
30494
30642
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30540,11 +30688,13 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30540
30688
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30541
30689
  * @param {number} [page] Page number (default: 1)
30542
30690
  * @param {number} [limit] Number of results per page (default: 20, max: 100)
30691
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
30692
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30543
30693
  * @param {*} [options] Override http request option.
30544
30694
  * @throws {RequiredError}
30545
30695
  */
30546
- async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30547
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
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);
30548
30698
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30549
30699
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
30550
30700
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30624,11 +30774,17 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30624
30774
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30625
30775
  * @param {number} [page] Page number (default: 1)
30626
30776
  * @param {number} [pageSize] Page size (default: 50, max: 100)
30777
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
30778
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30779
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
30780
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
30781
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
30782
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
30627
30783
  * @param {*} [options] Override http request option.
30628
30784
  * @throws {RequiredError}
30629
30785
  */
30630
- async adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30631
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options);
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);
30632
30788
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30633
30789
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']?.[localVarOperationServerIndex]?.url;
30634
30790
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30703,18 +30859,22 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30703
30859
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30704
30860
  },
30705
30861
  /**
30706
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
30862
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30707
30863
  * @summary Get payment transactions
30708
30864
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30709
30865
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30710
30866
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30711
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30712
- * @param {number} [offset] Number of results to skip (default: 0)
30867
+ * @param {number} [page] Page number (default: 1)
30868
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30869
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30870
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30871
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
30872
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30713
30873
  * @param {*} [options] Override http request option.
30714
30874
  * @throws {RequiredError}
30715
30875
  */
30716
- async adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30717
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options);
30876
+ async adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30877
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30718
30878
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30719
30879
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']?.[localVarOperationServerIndex]?.url;
30720
30880
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30745,15 +30905,17 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30745
30905
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30746
30906
  },
30747
30907
  /**
30748
- * Retrieves a paginated list of receipts for the organization
30908
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
30749
30909
  * @summary List receipts
30750
30910
  * @param {number} [page] Page number (default: 1)
30751
30911
  * @param {number} [pageSize] Page size (default: 20, max: 100)
30912
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
30913
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30752
30914
  * @param {*} [options] Override http request option.
30753
30915
  * @throws {RequiredError}
30754
30916
  */
30755
- async adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30756
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
30917
+ async adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30918
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options);
30757
30919
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30758
30920
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']?.[localVarOperationServerIndex]?.url;
30759
30921
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30898,46 +31060,58 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
30898
31060
  return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
30899
31061
  },
30900
31062
  /**
30901
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
31063
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30902
31064
  * @summary Get credit ledger
30903
31065
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30904
31066
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30905
31067
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30906
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30907
- * @param {number} [offset] Number of results to skip (default: 0)
31068
+ * @param {number} [page] Page number (default: 1)
31069
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31070
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31071
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31072
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
31073
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30908
31074
  * @param {*} [options] Override http request option.
30909
31075
  * @throws {RequiredError}
30910
31076
  */
30911
- adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
30912
- return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
31077
+ adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31078
+ return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
30913
31079
  },
30914
31080
  /**
30915
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
31081
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30916
31082
  * @summary Get credit purchases
30917
31083
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30918
31084
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30919
31085
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30920
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30921
- * @param {number} [offset] Number of results to skip (default: 0)
31086
+ * @param {number} [page] Page number (default: 1)
31087
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31088
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31089
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31090
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
31091
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30922
31092
  * @param {*} [options] Override http request option.
30923
31093
  * @throws {RequiredError}
30924
31094
  */
30925
- adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
30926
- return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
31095
+ adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31096
+ return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
30927
31097
  },
30928
31098
  /**
30929
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
31099
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30930
31100
  * @summary Get credit transactions
30931
31101
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30932
31102
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30933
31103
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30934
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30935
- * @param {number} [offset] Number of results to skip (default: 0)
31104
+ * @param {number} [page] Page number (default: 1)
31105
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31106
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31107
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31108
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
31109
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30936
31110
  * @param {*} [options] Override http request option.
30937
31111
  * @throws {RequiredError}
30938
31112
  */
30939
- adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
30940
- return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
31113
+ adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31114
+ return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
30941
31115
  },
30942
31116
  /**
30943
31117
  * Automatically generates invoices for all completed payments without invoices
@@ -30977,11 +31151,13 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
30977
31151
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30978
31152
  * @param {number} [page] Page number (default: 1)
30979
31153
  * @param {number} [limit] Number of results per page (default: 20, max: 100)
31154
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
31155
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30980
31156
  * @param {*} [options] Override http request option.
30981
31157
  * @throws {RequiredError}
30982
31158
  */
30983
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
30984
- return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(axios, basePath));
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));
30985
31161
  },
30986
31162
  /**
30987
31163
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -31043,11 +31219,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31043
31219
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31044
31220
  * @param {number} [page] Page number (default: 1)
31045
31221
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31222
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
31223
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31224
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
31225
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
31226
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
31227
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
31046
31228
  * @param {*} [options] Override http request option.
31047
31229
  * @throws {RequiredError}
31048
31230
  */
31049
- adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31050
- return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
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));
31051
31233
  },
31052
31234
  /**
31053
31235
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
@@ -31104,18 +31286,22 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31104
31286
  return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
31105
31287
  },
31106
31288
  /**
31107
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
31289
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31108
31290
  * @summary Get payment transactions
31109
31291
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31110
31292
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31111
31293
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31112
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31113
- * @param {number} [offset] Number of results to skip (default: 0)
31294
+ * @param {number} [page] Page number (default: 1)
31295
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31296
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31297
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31298
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
31299
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31114
31300
  * @param {*} [options] Override http request option.
31115
31301
  * @throws {RequiredError}
31116
31302
  */
31117
- adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31118
- return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
31303
+ adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31304
+ return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31119
31305
  },
31120
31306
  /**
31121
31307
  * Generates receipts for all completed payments without receipts in the organization
@@ -31137,15 +31323,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31137
31323
  return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
31138
31324
  },
31139
31325
  /**
31140
- * Retrieves a paginated list of receipts for the organization
31326
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
31141
31327
  * @summary List receipts
31142
31328
  * @param {number} [page] Page number (default: 1)
31143
31329
  * @param {number} [pageSize] Page size (default: 20, max: 100)
31330
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
31331
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31144
31332
  * @param {*} [options] Override http request option.
31145
31333
  * @throws {RequiredError}
31146
31334
  */
31147
- adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31148
- return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
31335
+ adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31336
+ return localVarFp.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31149
31337
  },
31150
31338
  /**
31151
31339
  * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
@@ -31287,51 +31475,63 @@ export class BillingDashboardApi extends BaseAPI {
31287
31475
  }
31288
31476
 
31289
31477
  /**
31290
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
31478
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31291
31479
  * @summary Get credit ledger
31292
31480
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31293
31481
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31294
31482
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31295
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31296
- * @param {number} [offset] Number of results to skip (default: 0)
31483
+ * @param {number} [page] Page number (default: 1)
31484
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31485
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31486
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31487
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
31488
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31297
31489
  * @param {*} [options] Override http request option.
31298
31490
  * @throws {RequiredError}
31299
31491
  * @memberof BillingDashboardApi
31300
31492
  */
31301
- public adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
31302
- return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
31493
+ public adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31494
+ return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31303
31495
  }
31304
31496
 
31305
31497
  /**
31306
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
31498
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31307
31499
  * @summary Get credit purchases
31308
31500
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31309
31501
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31310
31502
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31311
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31312
- * @param {number} [offset] Number of results to skip (default: 0)
31503
+ * @param {number} [page] Page number (default: 1)
31504
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31505
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31506
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31507
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
31508
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31313
31509
  * @param {*} [options] Override http request option.
31314
31510
  * @throws {RequiredError}
31315
31511
  * @memberof BillingDashboardApi
31316
31512
  */
31317
- public adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
31318
- return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
31513
+ public adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31514
+ return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31319
31515
  }
31320
31516
 
31321
31517
  /**
31322
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
31518
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31323
31519
  * @summary Get credit transactions
31324
31520
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31325
31521
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31326
31522
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31327
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31328
- * @param {number} [offset] Number of results to skip (default: 0)
31523
+ * @param {number} [page] Page number (default: 1)
31524
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31525
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31526
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31527
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
31528
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31329
31529
  * @param {*} [options] Override http request option.
31330
31530
  * @throws {RequiredError}
31331
31531
  * @memberof BillingDashboardApi
31332
31532
  */
31333
- public adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
31334
- return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
31533
+ public adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31534
+ return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31335
31535
  }
31336
31536
 
31337
31537
  /**
@@ -31378,12 +31578,14 @@ export class BillingDashboardApi extends BaseAPI {
31378
31578
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31379
31579
  * @param {number} [page] Page number (default: 1)
31380
31580
  * @param {number} [limit] Number of results per page (default: 20, max: 100)
31581
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
31582
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31381
31583
  * @param {*} [options] Override http request option.
31382
31584
  * @throws {RequiredError}
31383
31585
  * @memberof BillingDashboardApi
31384
31586
  */
31385
- public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
31386
- return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(this.axios, this.basePath));
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));
31387
31589
  }
31388
31590
 
31389
31591
  /**
@@ -31456,12 +31658,18 @@ export class BillingDashboardApi extends BaseAPI {
31456
31658
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31457
31659
  * @param {number} [page] Page number (default: 1)
31458
31660
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31661
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
31662
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31663
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
31664
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
31665
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
31666
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
31459
31667
  * @param {*} [options] Override http request option.
31460
31668
  * @throws {RequiredError}
31461
31669
  * @memberof BillingDashboardApi
31462
31670
  */
31463
- public adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
31464
- return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
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));
31465
31673
  }
31466
31674
 
31467
31675
  /**
@@ -31529,19 +31737,23 @@ export class BillingDashboardApi extends BaseAPI {
31529
31737
  }
31530
31738
 
31531
31739
  /**
31532
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
31740
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31533
31741
  * @summary Get payment transactions
31534
31742
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31535
31743
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31536
31744
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31537
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31538
- * @param {number} [offset] Number of results to skip (default: 0)
31745
+ * @param {number} [page] Page number (default: 1)
31746
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31747
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31748
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31749
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
31750
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31539
31751
  * @param {*} [options] Override http request option.
31540
31752
  * @throws {RequiredError}
31541
31753
  * @memberof BillingDashboardApi
31542
31754
  */
31543
- public adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
31544
- return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
31755
+ public adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31756
+ return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31545
31757
  }
31546
31758
 
31547
31759
  /**
@@ -31568,16 +31780,18 @@ export class BillingDashboardApi extends BaseAPI {
31568
31780
  }
31569
31781
 
31570
31782
  /**
31571
- * Retrieves a paginated list of receipts for the organization
31783
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
31572
31784
  * @summary List receipts
31573
31785
  * @param {number} [page] Page number (default: 1)
31574
31786
  * @param {number} [pageSize] Page size (default: 20, max: 100)
31787
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
31788
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31575
31789
  * @param {*} [options] Override http request option.
31576
31790
  * @throws {RequiredError}
31577
31791
  * @memberof BillingDashboardApi
31578
31792
  */
31579
- public adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
31580
- return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
31793
+ public adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31794
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31581
31795
  }
31582
31796
 
31583
31797
  /**