@seekora-ai/admin-api 1.1.20 → 1.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -9559,7 +9559,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
9559
9559
  };
9560
9560
  }),
9561
9561
  /**
9562
- * Returns comprehensive billing overview with credit balance, plan info, and usage summary
9562
+ * Returns comprehensive billing overview with credit balance, plan info, and all usage metrics
9563
9563
  * @summary Get billing overview (new)
9564
9564
  * @param {*} [options] Override http request option.
9565
9565
  * @throws {RequiredError}
@@ -10342,7 +10342,7 @@ export const BillingDashboardApiFp = function (configuration) {
10342
10342
  });
10343
10343
  },
10344
10344
  /**
10345
- * Returns comprehensive billing overview with credit balance, plan info, and usage summary
10345
+ * Returns comprehensive billing overview with credit balance, plan info, and all usage metrics
10346
10346
  * @summary Get billing overview (new)
10347
10347
  * @param {*} [options] Override http request option.
10348
10348
  * @throws {RequiredError}
@@ -10801,7 +10801,7 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
10801
10801
  return localVarFp.adminBillingOverviewGet(orgId, startDate, endDate, options).then((request) => request(axios, basePath));
10802
10802
  },
10803
10803
  /**
10804
- * Returns comprehensive billing overview with credit balance, plan info, and usage summary
10804
+ * Returns comprehensive billing overview with credit balance, plan info, and all usage metrics
10805
10805
  * @summary Get billing overview (new)
10806
10806
  * @param {*} [options] Override http request option.
10807
10807
  * @throws {RequiredError}
@@ -11229,7 +11229,7 @@ export class BillingDashboardApi extends BaseAPI {
11229
11229
  return BillingDashboardApiFp(this.configuration).adminBillingOverviewGet(orgId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
11230
11230
  }
11231
11231
  /**
11232
- * Returns comprehensive billing overview with credit balance, plan info, and usage summary
11232
+ * Returns comprehensive billing overview with credit balance, plan info, and all usage metrics
11233
11233
  * @summary Get billing overview (new)
11234
11234
  * @param {*} [options] Override http request option.
11235
11235
  * @throws {RequiredError}
@@ -11473,6 +11473,464 @@ export const AdminBillingUsageDetailsGetGranularityEnum = {
11473
11473
  Week: 'week',
11474
11474
  Month: 'month'
11475
11475
  };
11476
+ /**
11477
+ * BillingDashboardGraphsApi - axios parameter creator
11478
+ * @export
11479
+ */
11480
+ export const BillingDashboardGraphsApiAxiosParamCreator = function (configuration) {
11481
+ return {
11482
+ /**
11483
+ * Returns credits consumed over time with store-level filtering and zero-filling
11484
+ * @summary Get credits consumed graph
11485
+ * @param {string} [xstoreid] Filter by specific store ID
11486
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11487
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11488
+ * @param {AdminBillingGraphsCreditsConsumedGetGranularityEnum} [granularity] Time granularity
11489
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11490
+ * @param {*} [options] Override http request option.
11491
+ * @throws {RequiredError}
11492
+ */
11493
+ adminBillingGraphsCreditsConsumedGet: (xstoreid_1, startDate_1, endDate_1, granularity_1, fillZeros_1, ...args_1) => __awaiter(this, [xstoreid_1, startDate_1, endDate_1, granularity_1, fillZeros_1, ...args_1], void 0, function* (xstoreid, startDate, endDate, granularity, fillZeros, options = {}) {
11494
+ const localVarPath = `/admin/billing/graphs/credits-consumed`;
11495
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11496
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11497
+ let baseOptions;
11498
+ if (configuration) {
11499
+ baseOptions = configuration.baseOptions;
11500
+ }
11501
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11502
+ const localVarHeaderParameter = {};
11503
+ const localVarQueryParameter = {};
11504
+ // authentication BearerAuth required
11505
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11506
+ if (xstoreid !== undefined) {
11507
+ localVarQueryParameter['xstoreid'] = xstoreid;
11508
+ }
11509
+ if (startDate !== undefined) {
11510
+ localVarQueryParameter['start_date'] = startDate;
11511
+ }
11512
+ if (endDate !== undefined) {
11513
+ localVarQueryParameter['end_date'] = endDate;
11514
+ }
11515
+ if (granularity !== undefined) {
11516
+ localVarQueryParameter['granularity'] = granularity;
11517
+ }
11518
+ if (fillZeros !== undefined) {
11519
+ localVarQueryParameter['fill_zeros'] = fillZeros;
11520
+ }
11521
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11522
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11523
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11524
+ return {
11525
+ url: toPathString(localVarUrlObj),
11526
+ options: localVarRequestOptions,
11527
+ };
11528
+ }),
11529
+ /**
11530
+ * Returns search requests over time with store-level filtering and zero-filling
11531
+ * @summary Get search requests graph
11532
+ * @param {string} [xstoreid] Filter by specific store ID
11533
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11534
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11535
+ * @param {AdminBillingGraphsSearchRequestsGetGranularityEnum} [granularity] Time granularity
11536
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11537
+ * @param {*} [options] Override http request option.
11538
+ * @throws {RequiredError}
11539
+ */
11540
+ adminBillingGraphsSearchRequestsGet: (xstoreid_1, startDate_1, endDate_1, granularity_1, fillZeros_1, ...args_1) => __awaiter(this, [xstoreid_1, startDate_1, endDate_1, granularity_1, fillZeros_1, ...args_1], void 0, function* (xstoreid, startDate, endDate, granularity, fillZeros, options = {}) {
11541
+ const localVarPath = `/admin/billing/graphs/search-requests`;
11542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11543
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11544
+ let baseOptions;
11545
+ if (configuration) {
11546
+ baseOptions = configuration.baseOptions;
11547
+ }
11548
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11549
+ const localVarHeaderParameter = {};
11550
+ const localVarQueryParameter = {};
11551
+ // authentication BearerAuth required
11552
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11553
+ if (xstoreid !== undefined) {
11554
+ localVarQueryParameter['xstoreid'] = xstoreid;
11555
+ }
11556
+ if (startDate !== undefined) {
11557
+ localVarQueryParameter['start_date'] = startDate;
11558
+ }
11559
+ if (endDate !== undefined) {
11560
+ localVarQueryParameter['end_date'] = endDate;
11561
+ }
11562
+ if (granularity !== undefined) {
11563
+ localVarQueryParameter['granularity'] = granularity;
11564
+ }
11565
+ if (fillZeros !== undefined) {
11566
+ localVarQueryParameter['fill_zeros'] = fillZeros;
11567
+ }
11568
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11569
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11570
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11571
+ return {
11572
+ url: toPathString(localVarUrlObj),
11573
+ options: localVarRequestOptions,
11574
+ };
11575
+ }),
11576
+ /**
11577
+ * Returns detailed timeseries consumption with summary statistics
11578
+ * @summary Get timeseries consumption graph
11579
+ * @param {string} [xstoreid] Filter by specific store ID
11580
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11581
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11582
+ * @param {AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum} [granularity] Time granularity
11583
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11584
+ * @param {*} [options] Override http request option.
11585
+ * @throws {RequiredError}
11586
+ */
11587
+ adminBillingGraphsTimeseriesConsumptionGet: (xstoreid_1, startDate_1, endDate_1, granularity_1, fillZeros_1, ...args_1) => __awaiter(this, [xstoreid_1, startDate_1, endDate_1, granularity_1, fillZeros_1, ...args_1], void 0, function* (xstoreid, startDate, endDate, granularity, fillZeros, options = {}) {
11588
+ const localVarPath = `/admin/billing/graphs/timeseries-consumption`;
11589
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11590
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11591
+ let baseOptions;
11592
+ if (configuration) {
11593
+ baseOptions = configuration.baseOptions;
11594
+ }
11595
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11596
+ const localVarHeaderParameter = {};
11597
+ const localVarQueryParameter = {};
11598
+ // authentication BearerAuth required
11599
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11600
+ if (xstoreid !== undefined) {
11601
+ localVarQueryParameter['xstoreid'] = xstoreid;
11602
+ }
11603
+ if (startDate !== undefined) {
11604
+ localVarQueryParameter['start_date'] = startDate;
11605
+ }
11606
+ if (endDate !== undefined) {
11607
+ localVarQueryParameter['end_date'] = endDate;
11608
+ }
11609
+ if (granularity !== undefined) {
11610
+ localVarQueryParameter['granularity'] = granularity;
11611
+ }
11612
+ if (fillZeros !== undefined) {
11613
+ localVarQueryParameter['fill_zeros'] = fillZeros;
11614
+ }
11615
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11616
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11617
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11618
+ return {
11619
+ url: toPathString(localVarUrlObj),
11620
+ options: localVarRequestOptions,
11621
+ };
11622
+ }),
11623
+ /**
11624
+ * Returns usage breakdown table with credits, requests, and record operations
11625
+ * @summary Get usage breakdown graph
11626
+ * @param {string} [xstoreid] Filter by specific store ID
11627
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11628
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11629
+ * @param {AdminBillingGraphsUsageBreakdownGetGranularityEnum} [granularity] Time granularity
11630
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11631
+ * @param {*} [options] Override http request option.
11632
+ * @throws {RequiredError}
11633
+ */
11634
+ adminBillingGraphsUsageBreakdownGet: (xstoreid_1, startDate_1, endDate_1, granularity_1, fillZeros_1, ...args_1) => __awaiter(this, [xstoreid_1, startDate_1, endDate_1, granularity_1, fillZeros_1, ...args_1], void 0, function* (xstoreid, startDate, endDate, granularity, fillZeros, options = {}) {
11635
+ const localVarPath = `/admin/billing/graphs/usage-breakdown`;
11636
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11637
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11638
+ let baseOptions;
11639
+ if (configuration) {
11640
+ baseOptions = configuration.baseOptions;
11641
+ }
11642
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11643
+ const localVarHeaderParameter = {};
11644
+ const localVarQueryParameter = {};
11645
+ // authentication BearerAuth required
11646
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11647
+ if (xstoreid !== undefined) {
11648
+ localVarQueryParameter['xstoreid'] = xstoreid;
11649
+ }
11650
+ if (startDate !== undefined) {
11651
+ localVarQueryParameter['start_date'] = startDate;
11652
+ }
11653
+ if (endDate !== undefined) {
11654
+ localVarQueryParameter['end_date'] = endDate;
11655
+ }
11656
+ if (granularity !== undefined) {
11657
+ localVarQueryParameter['granularity'] = granularity;
11658
+ }
11659
+ if (fillZeros !== undefined) {
11660
+ localVarQueryParameter['fill_zeros'] = fillZeros;
11661
+ }
11662
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11663
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11664
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11665
+ return {
11666
+ url: toPathString(localVarUrlObj),
11667
+ options: localVarRequestOptions,
11668
+ };
11669
+ }),
11670
+ };
11671
+ };
11672
+ /**
11673
+ * BillingDashboardGraphsApi - functional programming interface
11674
+ * @export
11675
+ */
11676
+ export const BillingDashboardGraphsApiFp = function (configuration) {
11677
+ const localVarAxiosParamCreator = BillingDashboardGraphsApiAxiosParamCreator(configuration);
11678
+ return {
11679
+ /**
11680
+ * Returns credits consumed over time with store-level filtering and zero-filling
11681
+ * @summary Get credits consumed graph
11682
+ * @param {string} [xstoreid] Filter by specific store ID
11683
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11684
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11685
+ * @param {AdminBillingGraphsCreditsConsumedGetGranularityEnum} [granularity] Time granularity
11686
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11687
+ * @param {*} [options] Override http request option.
11688
+ * @throws {RequiredError}
11689
+ */
11690
+ adminBillingGraphsCreditsConsumedGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11691
+ return __awaiter(this, void 0, void 0, function* () {
11692
+ var _a, _b, _c;
11693
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingGraphsCreditsConsumedGet(xstoreid, startDate, endDate, granularity, fillZeros, options);
11694
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11695
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardGraphsApi.adminBillingGraphsCreditsConsumedGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11696
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11697
+ });
11698
+ },
11699
+ /**
11700
+ * Returns search requests over time with store-level filtering and zero-filling
11701
+ * @summary Get search requests graph
11702
+ * @param {string} [xstoreid] Filter by specific store ID
11703
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11704
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11705
+ * @param {AdminBillingGraphsSearchRequestsGetGranularityEnum} [granularity] Time granularity
11706
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11707
+ * @param {*} [options] Override http request option.
11708
+ * @throws {RequiredError}
11709
+ */
11710
+ adminBillingGraphsSearchRequestsGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11711
+ return __awaiter(this, void 0, void 0, function* () {
11712
+ var _a, _b, _c;
11713
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingGraphsSearchRequestsGet(xstoreid, startDate, endDate, granularity, fillZeros, options);
11714
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11715
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardGraphsApi.adminBillingGraphsSearchRequestsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11716
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11717
+ });
11718
+ },
11719
+ /**
11720
+ * Returns detailed timeseries consumption with summary statistics
11721
+ * @summary Get timeseries consumption graph
11722
+ * @param {string} [xstoreid] Filter by specific store ID
11723
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11724
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11725
+ * @param {AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum} [granularity] Time granularity
11726
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11727
+ * @param {*} [options] Override http request option.
11728
+ * @throws {RequiredError}
11729
+ */
11730
+ adminBillingGraphsTimeseriesConsumptionGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11731
+ return __awaiter(this, void 0, void 0, function* () {
11732
+ var _a, _b, _c;
11733
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingGraphsTimeseriesConsumptionGet(xstoreid, startDate, endDate, granularity, fillZeros, options);
11734
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11735
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardGraphsApi.adminBillingGraphsTimeseriesConsumptionGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11736
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11737
+ });
11738
+ },
11739
+ /**
11740
+ * Returns usage breakdown table with credits, requests, and record operations
11741
+ * @summary Get usage breakdown graph
11742
+ * @param {string} [xstoreid] Filter by specific store ID
11743
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11744
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11745
+ * @param {AdminBillingGraphsUsageBreakdownGetGranularityEnum} [granularity] Time granularity
11746
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11747
+ * @param {*} [options] Override http request option.
11748
+ * @throws {RequiredError}
11749
+ */
11750
+ adminBillingGraphsUsageBreakdownGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11751
+ return __awaiter(this, void 0, void 0, function* () {
11752
+ var _a, _b, _c;
11753
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingGraphsUsageBreakdownGet(xstoreid, startDate, endDate, granularity, fillZeros, options);
11754
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11755
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardGraphsApi.adminBillingGraphsUsageBreakdownGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11756
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11757
+ });
11758
+ },
11759
+ };
11760
+ };
11761
+ /**
11762
+ * BillingDashboardGraphsApi - factory interface
11763
+ * @export
11764
+ */
11765
+ export const BillingDashboardGraphsApiFactory = function (configuration, basePath, axios) {
11766
+ const localVarFp = BillingDashboardGraphsApiFp(configuration);
11767
+ return {
11768
+ /**
11769
+ * Returns credits consumed over time with store-level filtering and zero-filling
11770
+ * @summary Get credits consumed graph
11771
+ * @param {string} [xstoreid] Filter by specific store ID
11772
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11773
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11774
+ * @param {AdminBillingGraphsCreditsConsumedGetGranularityEnum} [granularity] Time granularity
11775
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11776
+ * @param {*} [options] Override http request option.
11777
+ * @throws {RequiredError}
11778
+ */
11779
+ adminBillingGraphsCreditsConsumedGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11780
+ return localVarFp.adminBillingGraphsCreditsConsumedGet(xstoreid, startDate, endDate, granularity, fillZeros, options).then((request) => request(axios, basePath));
11781
+ },
11782
+ /**
11783
+ * Returns search requests over time with store-level filtering and zero-filling
11784
+ * @summary Get search requests graph
11785
+ * @param {string} [xstoreid] Filter by specific store ID
11786
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11787
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11788
+ * @param {AdminBillingGraphsSearchRequestsGetGranularityEnum} [granularity] Time granularity
11789
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11790
+ * @param {*} [options] Override http request option.
11791
+ * @throws {RequiredError}
11792
+ */
11793
+ adminBillingGraphsSearchRequestsGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11794
+ return localVarFp.adminBillingGraphsSearchRequestsGet(xstoreid, startDate, endDate, granularity, fillZeros, options).then((request) => request(axios, basePath));
11795
+ },
11796
+ /**
11797
+ * Returns detailed timeseries consumption with summary statistics
11798
+ * @summary Get timeseries consumption graph
11799
+ * @param {string} [xstoreid] Filter by specific store ID
11800
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11801
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11802
+ * @param {AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum} [granularity] Time granularity
11803
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11804
+ * @param {*} [options] Override http request option.
11805
+ * @throws {RequiredError}
11806
+ */
11807
+ adminBillingGraphsTimeseriesConsumptionGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11808
+ return localVarFp.adminBillingGraphsTimeseriesConsumptionGet(xstoreid, startDate, endDate, granularity, fillZeros, options).then((request) => request(axios, basePath));
11809
+ },
11810
+ /**
11811
+ * Returns usage breakdown table with credits, requests, and record operations
11812
+ * @summary Get usage breakdown graph
11813
+ * @param {string} [xstoreid] Filter by specific store ID
11814
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11815
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11816
+ * @param {AdminBillingGraphsUsageBreakdownGetGranularityEnum} [granularity] Time granularity
11817
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11818
+ * @param {*} [options] Override http request option.
11819
+ * @throws {RequiredError}
11820
+ */
11821
+ adminBillingGraphsUsageBreakdownGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11822
+ return localVarFp.adminBillingGraphsUsageBreakdownGet(xstoreid, startDate, endDate, granularity, fillZeros, options).then((request) => request(axios, basePath));
11823
+ },
11824
+ };
11825
+ };
11826
+ /**
11827
+ * BillingDashboardGraphsApi - object-oriented interface
11828
+ * @export
11829
+ * @class BillingDashboardGraphsApi
11830
+ * @extends {BaseAPI}
11831
+ */
11832
+ export class BillingDashboardGraphsApi extends BaseAPI {
11833
+ /**
11834
+ * Returns credits consumed over time with store-level filtering and zero-filling
11835
+ * @summary Get credits consumed graph
11836
+ * @param {string} [xstoreid] Filter by specific store ID
11837
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11838
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11839
+ * @param {AdminBillingGraphsCreditsConsumedGetGranularityEnum} [granularity] Time granularity
11840
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11841
+ * @param {*} [options] Override http request option.
11842
+ * @throws {RequiredError}
11843
+ * @memberof BillingDashboardGraphsApi
11844
+ */
11845
+ adminBillingGraphsCreditsConsumedGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11846
+ return BillingDashboardGraphsApiFp(this.configuration).adminBillingGraphsCreditsConsumedGet(xstoreid, startDate, endDate, granularity, fillZeros, options).then((request) => request(this.axios, this.basePath));
11847
+ }
11848
+ /**
11849
+ * Returns search requests over time with store-level filtering and zero-filling
11850
+ * @summary Get search requests graph
11851
+ * @param {string} [xstoreid] Filter by specific store ID
11852
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11853
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11854
+ * @param {AdminBillingGraphsSearchRequestsGetGranularityEnum} [granularity] Time granularity
11855
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11856
+ * @param {*} [options] Override http request option.
11857
+ * @throws {RequiredError}
11858
+ * @memberof BillingDashboardGraphsApi
11859
+ */
11860
+ adminBillingGraphsSearchRequestsGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11861
+ return BillingDashboardGraphsApiFp(this.configuration).adminBillingGraphsSearchRequestsGet(xstoreid, startDate, endDate, granularity, fillZeros, options).then((request) => request(this.axios, this.basePath));
11862
+ }
11863
+ /**
11864
+ * Returns detailed timeseries consumption with summary statistics
11865
+ * @summary Get timeseries consumption graph
11866
+ * @param {string} [xstoreid] Filter by specific store ID
11867
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11868
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11869
+ * @param {AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum} [granularity] Time granularity
11870
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11871
+ * @param {*} [options] Override http request option.
11872
+ * @throws {RequiredError}
11873
+ * @memberof BillingDashboardGraphsApi
11874
+ */
11875
+ adminBillingGraphsTimeseriesConsumptionGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11876
+ return BillingDashboardGraphsApiFp(this.configuration).adminBillingGraphsTimeseriesConsumptionGet(xstoreid, startDate, endDate, granularity, fillZeros, options).then((request) => request(this.axios, this.basePath));
11877
+ }
11878
+ /**
11879
+ * Returns usage breakdown table with credits, requests, and record operations
11880
+ * @summary Get usage breakdown graph
11881
+ * @param {string} [xstoreid] Filter by specific store ID
11882
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339)
11883
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339)
11884
+ * @param {AdminBillingGraphsUsageBreakdownGetGranularityEnum} [granularity] Time granularity
11885
+ * @param {boolean} [fillZeros] Fill empty buckets with zeros
11886
+ * @param {*} [options] Override http request option.
11887
+ * @throws {RequiredError}
11888
+ * @memberof BillingDashboardGraphsApi
11889
+ */
11890
+ adminBillingGraphsUsageBreakdownGet(xstoreid, startDate, endDate, granularity, fillZeros, options) {
11891
+ return BillingDashboardGraphsApiFp(this.configuration).adminBillingGraphsUsageBreakdownGet(xstoreid, startDate, endDate, granularity, fillZeros, options).then((request) => request(this.axios, this.basePath));
11892
+ }
11893
+ }
11894
+ /**
11895
+ * @export
11896
+ */
11897
+ export const AdminBillingGraphsCreditsConsumedGetGranularityEnum = {
11898
+ Minute: 'minute',
11899
+ Hour: 'hour',
11900
+ Day: 'day',
11901
+ Week: 'week',
11902
+ Month: 'month'
11903
+ };
11904
+ /**
11905
+ * @export
11906
+ */
11907
+ export const AdminBillingGraphsSearchRequestsGetGranularityEnum = {
11908
+ Minute: 'minute',
11909
+ Hour: 'hour',
11910
+ Day: 'day',
11911
+ Week: 'week',
11912
+ Month: 'month'
11913
+ };
11914
+ /**
11915
+ * @export
11916
+ */
11917
+ export const AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum = {
11918
+ Minute: 'minute',
11919
+ Hour: 'hour',
11920
+ Day: 'day',
11921
+ Week: 'week',
11922
+ Month: 'month'
11923
+ };
11924
+ /**
11925
+ * @export
11926
+ */
11927
+ export const AdminBillingGraphsUsageBreakdownGetGranularityEnum = {
11928
+ Minute: 'minute',
11929
+ Hour: 'hour',
11930
+ Day: 'day',
11931
+ Week: 'week',
11932
+ Month: 'month'
11933
+ };
11476
11934
  /**
11477
11935
  * CommonApi - axios parameter creator
11478
11936
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file