@caraer/client 2.0.413 → 2.0.414
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/.openapi-generator/FILES +0 -19
- package/api.ts +7 -1111
- package/dist/api.d.ts +2 -760
- package/dist/api.js +3 -617
- package/dist/esm/api.d.ts +2 -760
- package/dist/esm/api.js +0 -610
- package/docs/AppDTO.md +0 -4
- package/docs/ExistingWidgetSummary.md +2 -2
- package/docs/HasAppDTO.md +0 -14
- package/docs/InstallAppRequest.md +0 -2
- package/docs/StyleSetDTO.md +2 -2
- package/package.json +1 -1
- package/docs/AppBillingApi.md +0 -429
- package/docs/AppBillingLineItemStatusDTO.md +0 -41
- package/docs/AppBillingPeriodDTO.md +0 -33
- package/docs/AppBillingStatusResponse.md +0 -29
- package/docs/AppBillingSummaryDTO.md +0 -23
- package/docs/AppInstallationBillingStatusDTO.md +0 -49
- package/docs/AppMeterEventRequest.md +0 -29
- package/docs/AppMeterEventResponse.md +0 -27
- package/docs/AppPricingDTO.md +0 -61
- package/docs/AppPricingLineItemDTO.md +0 -55
- package/docs/AppStaticQueryDTO.md +0 -23
- package/docs/AppSubscriptionChangeRequest.md +0 -23
- package/docs/AppSubscriptionDTO.md +0 -35
- package/docs/AppTierDTO.md +0 -49
- package/docs/ShowResponseAppBillingStatusResponse.md +0 -23
- package/docs/ShowResponseAppInstallationBillingStatusDTO.md +0 -23
- package/docs/ShowResponseAppMeterEventResponse.md +0 -23
- package/docs/ShowResponseAppSubscriptionDTO.md +0 -23
- package/docs/ShowResponseListAppInstallationBillingStatusDTO.md +0 -23
package/dist/api.js
CHANGED
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.DeveloperSandboxesApiAxiosParamCreator = exports.DeveloperProjectsApi = exports.DeveloperProjectsApiFactory = exports.DeveloperProjectsApiFp = exports.DeveloperProjectsApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.AutomationsApi = exports.AutomationsApiFactory = exports.AutomationsApiFp = exports.AutomationsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AppInstallationRuntimeApi = exports.AppInstallationRuntimeApiFactory = exports.AppInstallationRuntimeApiFp = exports.AppInstallationRuntimeApiAxiosParamCreator = exports.
|
|
26
|
-
exports.SearchParseEnum = exports.PreviewParseEnum = exports.IndexFlowParseEnum = exports.IndexRecordReturnFormatEnum = exports.IndexParseEnum = exports.ExtendParseEnum = exports.ExtendRecordReturnFormatEnum = exports.CreateOrUpdateRecordReturnFormatEnum = exports.CreateOrUpdateParseEnum = exports.CreateRecordReturnFormatEnum = exports.CreateParseEnum = exports.RecordsApi = exports.RecordsApiFactory = exports.RecordsApiFp = exports.RecordsApiAxiosParamCreator = exports.PropertyApi = exports.PropertyApiFactory = exports.PropertyApiFp = exports.PropertyApiAxiosParamCreator = exports.ObjectsApi = exports.ObjectsApiFactory = exports.ObjectsApiFp = exports.ObjectsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.ModuleApi = exports.ModuleApiFactory = exports.ModuleApiFp = exports.ModuleApiAxiosParamCreator = exports.FormsApi = exports.FormsApiFactory = exports.FormsApiFp = exports.FormsApiAxiosParamCreator = exports.FilterApi = exports.FilterApiFactory = exports.FilterApiFp = exports.FilterApiAxiosParamCreator = exports.FileManagementApi = exports.FileManagementApiFactory = exports.FileManagementApiFp = exports.FileManagementApiAxiosParamCreator = exports.FeedsApi = exports.FeedsApiFactory = exports.FeedsApiFp =
|
|
27
|
-
exports.WebpagesApi = exports.WebpagesApiFactory = exports.WebpagesApiFp = exports.WebpagesApiAxiosParamCreator = exports.WebMenusApi = exports.WebMenusApiFactory = exports.WebMenusApiFp = exports.WebMenusApiAxiosParamCreator = exports.ViewsApi = exports.ViewsApiFactory = exports.ViewsApiFp = exports.ViewsApiAxiosParamCreator = exports.TraitsApi = exports.TraitsApiFactory = exports.TraitsApiFp = exports.TraitsApiAxiosParamCreator = exports.SyncApi = exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.ServerlessFunctionsApi = exports.ServerlessFunctionsApiFactory = exports.ServerlessFunctionsApiFp = exports.ServerlessFunctionsApiAxiosParamCreator = exports.RelationsApi = exports.RelationsApiFactory = exports.RelationsApiFp = exports.RelationsApiAxiosParamCreator = exports.UpdateByUuidRecordReturnFormatEnum = exports.UpdateByUuidParseEnum = exports.UpdateRecordReturnFormatEnum = exports.UpdateParseEnum = exports.ShowByObjectParseEnum = exports.ShowByObjectRecordReturnFormatEnum =
|
|
25
|
+
exports.FeedsApiAxiosParamCreator = exports.DeveloperSandboxesApi = exports.DeveloperSandboxesApiFactory = exports.DeveloperSandboxesApiFp = exports.DeveloperSandboxesApiAxiosParamCreator = exports.DeveloperProjectsApi = exports.DeveloperProjectsApiFactory = exports.DeveloperProjectsApiFp = exports.DeveloperProjectsApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.AutomationsApi = exports.AutomationsApiFactory = exports.AutomationsApiFp = exports.AutomationsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AppInstallationRuntimeApi = exports.AppInstallationRuntimeApiFactory = exports.AppInstallationRuntimeApiFp = exports.AppInstallationRuntimeApiAxiosParamCreator = exports.ListAppBarsLocationEnum = exports.AppBarsApi = exports.AppBarsApiFactory = exports.AppBarsApiFp = exports.AppBarsApiAxiosParamCreator = exports.AppBarIframeSessionsApi = exports.AppBarIframeSessionsApiFactory = exports.AppBarIframeSessionsApiFp = exports.AppBarIframeSessionsApiAxiosParamCreator = exports.ValidationErrorTypeEnum = exports.SortItemDirectionEnum = exports.SettingFieldTypeEnum = exports.EventRsvpRequestScopeEnum = exports.EventRsvpRequestPartstatEnum = exports.ErrorResponseRolesEnum = exports.CreatePrivateAppRequestAuthMethodEnum = exports.CaraerErrorTypeTypeEnum = exports.AppDTOAuthMethodEnum = exports.AppBarDTOLocationEnum = exports.AdvancedRecordQueryRequestStrategyEnum = exports.AdvancedRecordQueryPlanStrategyEnum = void 0;
|
|
26
|
+
exports.ShowParseEnum = exports.ShowRecordReturnFormatEnum = exports.SearchCrossObjectParseEnum = exports.SearchRecordReturnFormatEnum = exports.SearchParseEnum = exports.PreviewParseEnum = exports.IndexFlowParseEnum = exports.IndexRecordReturnFormatEnum = exports.IndexParseEnum = exports.ExtendParseEnum = exports.ExtendRecordReturnFormatEnum = exports.CreateOrUpdateRecordReturnFormatEnum = exports.CreateOrUpdateParseEnum = exports.CreateRecordReturnFormatEnum = exports.CreateParseEnum = exports.RecordsApi = exports.RecordsApiFactory = exports.RecordsApiFp = exports.RecordsApiAxiosParamCreator = exports.PropertyApi = exports.PropertyApiFactory = exports.PropertyApiFp = exports.PropertyApiAxiosParamCreator = exports.ObjectsApi = exports.ObjectsApiFactory = exports.ObjectsApiFp = exports.ObjectsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.ModuleApi = exports.ModuleApiFactory = exports.ModuleApiFp = exports.ModuleApiAxiosParamCreator = exports.FormsApi = exports.FormsApiFactory = exports.FormsApiFp = exports.FormsApiAxiosParamCreator = exports.FilterApi = exports.FilterApiFactory = exports.FilterApiFp = exports.FilterApiAxiosParamCreator = exports.FileManagementApi = exports.FileManagementApiFactory = exports.FileManagementApiFp = exports.FileManagementApiAxiosParamCreator = exports.FeedsApi = exports.FeedsApiFactory = exports.FeedsApiFp = void 0;
|
|
27
|
+
exports.WebpagesApi = exports.WebpagesApiFactory = exports.WebpagesApiFp = exports.WebpagesApiAxiosParamCreator = exports.WebMenusApi = exports.WebMenusApiFactory = exports.WebMenusApiFp = exports.WebMenusApiAxiosParamCreator = exports.ViewsApi = exports.ViewsApiFactory = exports.ViewsApiFp = exports.ViewsApiAxiosParamCreator = exports.TraitsApi = exports.TraitsApiFactory = exports.TraitsApiFp = exports.TraitsApiAxiosParamCreator = exports.SyncApi = exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.ServerlessFunctionsApi = exports.ServerlessFunctionsApiFactory = exports.ServerlessFunctionsApiFp = exports.ServerlessFunctionsApiAxiosParamCreator = exports.RelationsApi = exports.RelationsApiFactory = exports.RelationsApiFp = exports.RelationsApiAxiosParamCreator = exports.UpdateByUuidRecordReturnFormatEnum = exports.UpdateByUuidParseEnum = exports.UpdateRecordReturnFormatEnum = exports.UpdateParseEnum = exports.ShowByObjectParseEnum = exports.ShowByObjectRecordReturnFormatEnum = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -508,620 +508,6 @@ exports.ListAppBarsLocationEnum = {
|
|
|
508
508
|
ToolBar: 'TOOL_BAR',
|
|
509
509
|
TraitBar: 'TRAIT_BAR',
|
|
510
510
|
};
|
|
511
|
-
/**
|
|
512
|
-
* AppBillingApi - axios parameter creator
|
|
513
|
-
*/
|
|
514
|
-
const AppBillingApiAxiosParamCreator = function (configuration) {
|
|
515
|
-
return {
|
|
516
|
-
/**
|
|
517
|
-
*
|
|
518
|
-
* @summary Current-period billing for every installation of an app
|
|
519
|
-
* @param {string} appUuid
|
|
520
|
-
* @param {*} [options] Override http request option.
|
|
521
|
-
* @throws {RequiredError}
|
|
522
|
-
*/
|
|
523
|
-
appBillingStatus: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
|
|
524
|
-
// verify required parameter 'appUuid' is not null or undefined
|
|
525
|
-
(0, common_1.assertParamExists)('appBillingStatus', 'appUuid', appUuid);
|
|
526
|
-
const localVarPath = `/api/v2/apps/{appUuid}/billing/status`
|
|
527
|
-
.replace('{appUuid}', encodeURIComponent(String(appUuid)));
|
|
528
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
529
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
530
|
-
let baseOptions;
|
|
531
|
-
if (configuration) {
|
|
532
|
-
baseOptions = configuration.baseOptions;
|
|
533
|
-
}
|
|
534
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
535
|
-
const localVarHeaderParameter = {};
|
|
536
|
-
const localVarQueryParameter = {};
|
|
537
|
-
// authentication bearerAuth required
|
|
538
|
-
// http bearer authentication required
|
|
539
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
540
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
541
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
542
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
543
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
544
|
-
return {
|
|
545
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
546
|
-
options: localVarRequestOptions,
|
|
547
|
-
};
|
|
548
|
-
}),
|
|
549
|
-
/**
|
|
550
|
-
*
|
|
551
|
-
* @summary Cancel a scheduled subscription change
|
|
552
|
-
* @param {string} appUuid
|
|
553
|
-
* @param {*} [options] Override http request option.
|
|
554
|
-
* @throws {RequiredError}
|
|
555
|
-
*/
|
|
556
|
-
cancelPendingChange: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
|
|
557
|
-
// verify required parameter 'appUuid' is not null or undefined
|
|
558
|
-
(0, common_1.assertParamExists)('cancelPendingChange', 'appUuid', appUuid);
|
|
559
|
-
const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription/pending`
|
|
560
|
-
.replace('{appUuid}', encodeURIComponent(String(appUuid)));
|
|
561
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
562
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
563
|
-
let baseOptions;
|
|
564
|
-
if (configuration) {
|
|
565
|
-
baseOptions = configuration.baseOptions;
|
|
566
|
-
}
|
|
567
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
568
|
-
const localVarHeaderParameter = {};
|
|
569
|
-
const localVarQueryParameter = {};
|
|
570
|
-
// authentication bearerAuth required
|
|
571
|
-
// http bearer authentication required
|
|
572
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
573
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
574
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
575
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
577
|
-
return {
|
|
578
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
579
|
-
options: localVarRequestOptions,
|
|
580
|
-
};
|
|
581
|
-
}),
|
|
582
|
-
/**
|
|
583
|
-
*
|
|
584
|
-
* @summary Current subscription state for the selected company\'s installation
|
|
585
|
-
* @param {string} appUuid
|
|
586
|
-
* @param {*} [options] Override http request option.
|
|
587
|
-
* @throws {RequiredError}
|
|
588
|
-
*/
|
|
589
|
-
getSubscription: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
|
|
590
|
-
// verify required parameter 'appUuid' is not null or undefined
|
|
591
|
-
(0, common_1.assertParamExists)('getSubscription', 'appUuid', appUuid);
|
|
592
|
-
const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription`
|
|
593
|
-
.replace('{appUuid}', encodeURIComponent(String(appUuid)));
|
|
594
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
595
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
596
|
-
let baseOptions;
|
|
597
|
-
if (configuration) {
|
|
598
|
-
baseOptions = configuration.baseOptions;
|
|
599
|
-
}
|
|
600
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
601
|
-
const localVarHeaderParameter = {};
|
|
602
|
-
const localVarQueryParameter = {};
|
|
603
|
-
// authentication bearerAuth required
|
|
604
|
-
// http bearer authentication required
|
|
605
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
606
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
607
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
608
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
609
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
610
|
-
return {
|
|
611
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
612
|
-
options: localVarRequestOptions,
|
|
613
|
-
};
|
|
614
|
-
}),
|
|
615
|
-
/**
|
|
616
|
-
*
|
|
617
|
-
* @summary Current-period billing for the selected company\'s installation
|
|
618
|
-
* @param {string} appUuid
|
|
619
|
-
* @param {*} [options] Override http request option.
|
|
620
|
-
* @throws {RequiredError}
|
|
621
|
-
*/
|
|
622
|
-
installationBillingStatus: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
|
|
623
|
-
// verify required parameter 'appUuid' is not null or undefined
|
|
624
|
-
(0, common_1.assertParamExists)('installationBillingStatus', 'appUuid', appUuid);
|
|
625
|
-
const localVarPath = `/api/v2/apps/{appUuid}/installation/billing/status`
|
|
626
|
-
.replace('{appUuid}', encodeURIComponent(String(appUuid)));
|
|
627
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
628
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
629
|
-
let baseOptions;
|
|
630
|
-
if (configuration) {
|
|
631
|
-
baseOptions = configuration.baseOptions;
|
|
632
|
-
}
|
|
633
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
634
|
-
const localVarHeaderParameter = {};
|
|
635
|
-
const localVarQueryParameter = {};
|
|
636
|
-
// authentication bearerAuth required
|
|
637
|
-
// http bearer authentication required
|
|
638
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
639
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
640
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
641
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
642
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
643
|
-
return {
|
|
644
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
645
|
-
options: localVarRequestOptions,
|
|
646
|
-
};
|
|
647
|
-
}),
|
|
648
|
-
/**
|
|
649
|
-
*
|
|
650
|
-
* @summary Platform-wide current-period app usage billing
|
|
651
|
-
* @param {string} [appUuid]
|
|
652
|
-
* @param {number} [page]
|
|
653
|
-
* @param {number} [limit]
|
|
654
|
-
* @param {*} [options] Override http request option.
|
|
655
|
-
* @throws {RequiredError}
|
|
656
|
-
*/
|
|
657
|
-
platformBillingStatus: (appUuid_1, page_1, limit_1, ...args_1) => __awaiter(this, [appUuid_1, page_1, limit_1, ...args_1], void 0, function* (appUuid, page, limit, options = {}) {
|
|
658
|
-
const localVarPath = `/api/v2/apps/billing/status`;
|
|
659
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
660
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
661
|
-
let baseOptions;
|
|
662
|
-
if (configuration) {
|
|
663
|
-
baseOptions = configuration.baseOptions;
|
|
664
|
-
}
|
|
665
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
666
|
-
const localVarHeaderParameter = {};
|
|
667
|
-
const localVarQueryParameter = {};
|
|
668
|
-
// authentication bearerAuth required
|
|
669
|
-
// http bearer authentication required
|
|
670
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
671
|
-
if (appUuid !== undefined) {
|
|
672
|
-
localVarQueryParameter['appUuid'] = appUuid;
|
|
673
|
-
}
|
|
674
|
-
if (page !== undefined) {
|
|
675
|
-
localVarQueryParameter['page'] = page;
|
|
676
|
-
}
|
|
677
|
-
if (limit !== undefined) {
|
|
678
|
-
localVarQueryParameter['limit'] = limit;
|
|
679
|
-
}
|
|
680
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
681
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
682
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
683
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
684
|
-
return {
|
|
685
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
686
|
-
options: localVarRequestOptions,
|
|
687
|
-
};
|
|
688
|
-
}),
|
|
689
|
-
/**
|
|
690
|
-
*
|
|
691
|
-
* @summary Record a manual meter event for the selected company\'s installation
|
|
692
|
-
* @param {string} appUuid
|
|
693
|
-
* @param {AppMeterEventRequest} appMeterEventRequest
|
|
694
|
-
* @param {*} [options] Override http request option.
|
|
695
|
-
* @throws {RequiredError}
|
|
696
|
-
*/
|
|
697
|
-
recordMeterEvent: (appUuid_1, appMeterEventRequest_1, ...args_1) => __awaiter(this, [appUuid_1, appMeterEventRequest_1, ...args_1], void 0, function* (appUuid, appMeterEventRequest, options = {}) {
|
|
698
|
-
// verify required parameter 'appUuid' is not null or undefined
|
|
699
|
-
(0, common_1.assertParamExists)('recordMeterEvent', 'appUuid', appUuid);
|
|
700
|
-
// verify required parameter 'appMeterEventRequest' is not null or undefined
|
|
701
|
-
(0, common_1.assertParamExists)('recordMeterEvent', 'appMeterEventRequest', appMeterEventRequest);
|
|
702
|
-
const localVarPath = `/api/v2/apps/{appUuid}/installation/meter-events`
|
|
703
|
-
.replace('{appUuid}', encodeURIComponent(String(appUuid)));
|
|
704
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
705
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
706
|
-
let baseOptions;
|
|
707
|
-
if (configuration) {
|
|
708
|
-
baseOptions = configuration.baseOptions;
|
|
709
|
-
}
|
|
710
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
711
|
-
const localVarHeaderParameter = {};
|
|
712
|
-
const localVarQueryParameter = {};
|
|
713
|
-
// authentication bearerAuth required
|
|
714
|
-
// http bearer authentication required
|
|
715
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
716
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
717
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
718
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
719
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
720
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
721
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(appMeterEventRequest, localVarRequestOptions, configuration);
|
|
722
|
-
return {
|
|
723
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
724
|
-
options: localVarRequestOptions,
|
|
725
|
-
};
|
|
726
|
-
}),
|
|
727
|
-
/**
|
|
728
|
-
*
|
|
729
|
-
* @summary Schedule a plan or commitment change
|
|
730
|
-
* @param {string} appUuid
|
|
731
|
-
* @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
|
|
732
|
-
* @param {*} [options] Override http request option.
|
|
733
|
-
* @throws {RequiredError}
|
|
734
|
-
*/
|
|
735
|
-
scheduleSubscriptionChange: (appUuid_1, appSubscriptionChangeRequest_1, ...args_1) => __awaiter(this, [appUuid_1, appSubscriptionChangeRequest_1, ...args_1], void 0, function* (appUuid, appSubscriptionChangeRequest, options = {}) {
|
|
736
|
-
// verify required parameter 'appUuid' is not null or undefined
|
|
737
|
-
(0, common_1.assertParamExists)('scheduleSubscriptionChange', 'appUuid', appUuid);
|
|
738
|
-
// verify required parameter 'appSubscriptionChangeRequest' is not null or undefined
|
|
739
|
-
(0, common_1.assertParamExists)('scheduleSubscriptionChange', 'appSubscriptionChangeRequest', appSubscriptionChangeRequest);
|
|
740
|
-
const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription/change`
|
|
741
|
-
.replace('{appUuid}', encodeURIComponent(String(appUuid)));
|
|
742
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
743
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
744
|
-
let baseOptions;
|
|
745
|
-
if (configuration) {
|
|
746
|
-
baseOptions = configuration.baseOptions;
|
|
747
|
-
}
|
|
748
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
749
|
-
const localVarHeaderParameter = {};
|
|
750
|
-
const localVarQueryParameter = {};
|
|
751
|
-
// authentication bearerAuth required
|
|
752
|
-
// http bearer authentication required
|
|
753
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
754
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
755
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
756
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
757
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
758
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
759
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(appSubscriptionChangeRequest, localVarRequestOptions, configuration);
|
|
760
|
-
return {
|
|
761
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
762
|
-
options: localVarRequestOptions,
|
|
763
|
-
};
|
|
764
|
-
}),
|
|
765
|
-
/**
|
|
766
|
-
*
|
|
767
|
-
* @summary Usage periods for the selected company\'s installation
|
|
768
|
-
* @param {string} appUuid
|
|
769
|
-
* @param {*} [options] Override http request option.
|
|
770
|
-
* @throws {RequiredError}
|
|
771
|
-
*/
|
|
772
|
-
usagePeriods: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
|
|
773
|
-
// verify required parameter 'appUuid' is not null or undefined
|
|
774
|
-
(0, common_1.assertParamExists)('usagePeriods', 'appUuid', appUuid);
|
|
775
|
-
const localVarPath = `/api/v2/apps/{appUuid}/installation/usage/periods`
|
|
776
|
-
.replace('{appUuid}', encodeURIComponent(String(appUuid)));
|
|
777
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
778
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
779
|
-
let baseOptions;
|
|
780
|
-
if (configuration) {
|
|
781
|
-
baseOptions = configuration.baseOptions;
|
|
782
|
-
}
|
|
783
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
784
|
-
const localVarHeaderParameter = {};
|
|
785
|
-
const localVarQueryParameter = {};
|
|
786
|
-
// authentication bearerAuth required
|
|
787
|
-
// http bearer authentication required
|
|
788
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
789
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
790
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
791
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
792
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
793
|
-
return {
|
|
794
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
795
|
-
options: localVarRequestOptions,
|
|
796
|
-
};
|
|
797
|
-
}),
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
|
-
exports.AppBillingApiAxiosParamCreator = AppBillingApiAxiosParamCreator;
|
|
801
|
-
/**
|
|
802
|
-
* AppBillingApi - functional programming interface
|
|
803
|
-
*/
|
|
804
|
-
const AppBillingApiFp = function (configuration) {
|
|
805
|
-
const localVarAxiosParamCreator = (0, exports.AppBillingApiAxiosParamCreator)(configuration);
|
|
806
|
-
return {
|
|
807
|
-
/**
|
|
808
|
-
*
|
|
809
|
-
* @summary Current-period billing for every installation of an app
|
|
810
|
-
* @param {string} appUuid
|
|
811
|
-
* @param {*} [options] Override http request option.
|
|
812
|
-
* @throws {RequiredError}
|
|
813
|
-
*/
|
|
814
|
-
appBillingStatus(appUuid, options) {
|
|
815
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
816
|
-
var _a, _b, _c;
|
|
817
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.appBillingStatus(appUuid, options);
|
|
818
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
819
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppBillingApi.appBillingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
820
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
821
|
-
});
|
|
822
|
-
},
|
|
823
|
-
/**
|
|
824
|
-
*
|
|
825
|
-
* @summary Cancel a scheduled subscription change
|
|
826
|
-
* @param {string} appUuid
|
|
827
|
-
* @param {*} [options] Override http request option.
|
|
828
|
-
* @throws {RequiredError}
|
|
829
|
-
*/
|
|
830
|
-
cancelPendingChange(appUuid, options) {
|
|
831
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
832
|
-
var _a, _b, _c;
|
|
833
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPendingChange(appUuid, options);
|
|
834
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
835
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppBillingApi.cancelPendingChange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
836
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
837
|
-
});
|
|
838
|
-
},
|
|
839
|
-
/**
|
|
840
|
-
*
|
|
841
|
-
* @summary Current subscription state for the selected company\'s installation
|
|
842
|
-
* @param {string} appUuid
|
|
843
|
-
* @param {*} [options] Override http request option.
|
|
844
|
-
* @throws {RequiredError}
|
|
845
|
-
*/
|
|
846
|
-
getSubscription(appUuid, options) {
|
|
847
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
848
|
-
var _a, _b, _c;
|
|
849
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscription(appUuid, options);
|
|
850
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
851
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppBillingApi.getSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
852
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
853
|
-
});
|
|
854
|
-
},
|
|
855
|
-
/**
|
|
856
|
-
*
|
|
857
|
-
* @summary Current-period billing for the selected company\'s installation
|
|
858
|
-
* @param {string} appUuid
|
|
859
|
-
* @param {*} [options] Override http request option.
|
|
860
|
-
* @throws {RequiredError}
|
|
861
|
-
*/
|
|
862
|
-
installationBillingStatus(appUuid, options) {
|
|
863
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
864
|
-
var _a, _b, _c;
|
|
865
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.installationBillingStatus(appUuid, options);
|
|
866
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
867
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppBillingApi.installationBillingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
868
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
869
|
-
});
|
|
870
|
-
},
|
|
871
|
-
/**
|
|
872
|
-
*
|
|
873
|
-
* @summary Platform-wide current-period app usage billing
|
|
874
|
-
* @param {string} [appUuid]
|
|
875
|
-
* @param {number} [page]
|
|
876
|
-
* @param {number} [limit]
|
|
877
|
-
* @param {*} [options] Override http request option.
|
|
878
|
-
* @throws {RequiredError}
|
|
879
|
-
*/
|
|
880
|
-
platformBillingStatus(appUuid, page, limit, options) {
|
|
881
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
882
|
-
var _a, _b, _c;
|
|
883
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.platformBillingStatus(appUuid, page, limit, options);
|
|
884
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
885
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppBillingApi.platformBillingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
886
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
887
|
-
});
|
|
888
|
-
},
|
|
889
|
-
/**
|
|
890
|
-
*
|
|
891
|
-
* @summary Record a manual meter event for the selected company\'s installation
|
|
892
|
-
* @param {string} appUuid
|
|
893
|
-
* @param {AppMeterEventRequest} appMeterEventRequest
|
|
894
|
-
* @param {*} [options] Override http request option.
|
|
895
|
-
* @throws {RequiredError}
|
|
896
|
-
*/
|
|
897
|
-
recordMeterEvent(appUuid, appMeterEventRequest, options) {
|
|
898
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
899
|
-
var _a, _b, _c;
|
|
900
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.recordMeterEvent(appUuid, appMeterEventRequest, options);
|
|
901
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
902
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppBillingApi.recordMeterEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
903
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
904
|
-
});
|
|
905
|
-
},
|
|
906
|
-
/**
|
|
907
|
-
*
|
|
908
|
-
* @summary Schedule a plan or commitment change
|
|
909
|
-
* @param {string} appUuid
|
|
910
|
-
* @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
|
|
911
|
-
* @param {*} [options] Override http request option.
|
|
912
|
-
* @throws {RequiredError}
|
|
913
|
-
*/
|
|
914
|
-
scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options) {
|
|
915
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
916
|
-
var _a, _b, _c;
|
|
917
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options);
|
|
918
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
919
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppBillingApi.scheduleSubscriptionChange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
920
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
921
|
-
});
|
|
922
|
-
},
|
|
923
|
-
/**
|
|
924
|
-
*
|
|
925
|
-
* @summary Usage periods for the selected company\'s installation
|
|
926
|
-
* @param {string} appUuid
|
|
927
|
-
* @param {*} [options] Override http request option.
|
|
928
|
-
* @throws {RequiredError}
|
|
929
|
-
*/
|
|
930
|
-
usagePeriods(appUuid, options) {
|
|
931
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
932
|
-
var _a, _b, _c;
|
|
933
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.usagePeriods(appUuid, options);
|
|
934
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
935
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppBillingApi.usagePeriods']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
936
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
937
|
-
});
|
|
938
|
-
},
|
|
939
|
-
};
|
|
940
|
-
};
|
|
941
|
-
exports.AppBillingApiFp = AppBillingApiFp;
|
|
942
|
-
/**
|
|
943
|
-
* AppBillingApi - factory interface
|
|
944
|
-
*/
|
|
945
|
-
const AppBillingApiFactory = function (configuration, basePath, axios) {
|
|
946
|
-
const localVarFp = (0, exports.AppBillingApiFp)(configuration);
|
|
947
|
-
return {
|
|
948
|
-
/**
|
|
949
|
-
*
|
|
950
|
-
* @summary Current-period billing for every installation of an app
|
|
951
|
-
* @param {string} appUuid
|
|
952
|
-
* @param {*} [options] Override http request option.
|
|
953
|
-
* @throws {RequiredError}
|
|
954
|
-
*/
|
|
955
|
-
appBillingStatus(appUuid, options) {
|
|
956
|
-
return localVarFp.appBillingStatus(appUuid, options).then((request) => request(axios, basePath));
|
|
957
|
-
},
|
|
958
|
-
/**
|
|
959
|
-
*
|
|
960
|
-
* @summary Cancel a scheduled subscription change
|
|
961
|
-
* @param {string} appUuid
|
|
962
|
-
* @param {*} [options] Override http request option.
|
|
963
|
-
* @throws {RequiredError}
|
|
964
|
-
*/
|
|
965
|
-
cancelPendingChange(appUuid, options) {
|
|
966
|
-
return localVarFp.cancelPendingChange(appUuid, options).then((request) => request(axios, basePath));
|
|
967
|
-
},
|
|
968
|
-
/**
|
|
969
|
-
*
|
|
970
|
-
* @summary Current subscription state for the selected company\'s installation
|
|
971
|
-
* @param {string} appUuid
|
|
972
|
-
* @param {*} [options] Override http request option.
|
|
973
|
-
* @throws {RequiredError}
|
|
974
|
-
*/
|
|
975
|
-
getSubscription(appUuid, options) {
|
|
976
|
-
return localVarFp.getSubscription(appUuid, options).then((request) => request(axios, basePath));
|
|
977
|
-
},
|
|
978
|
-
/**
|
|
979
|
-
*
|
|
980
|
-
* @summary Current-period billing for the selected company\'s installation
|
|
981
|
-
* @param {string} appUuid
|
|
982
|
-
* @param {*} [options] Override http request option.
|
|
983
|
-
* @throws {RequiredError}
|
|
984
|
-
*/
|
|
985
|
-
installationBillingStatus(appUuid, options) {
|
|
986
|
-
return localVarFp.installationBillingStatus(appUuid, options).then((request) => request(axios, basePath));
|
|
987
|
-
},
|
|
988
|
-
/**
|
|
989
|
-
*
|
|
990
|
-
* @summary Platform-wide current-period app usage billing
|
|
991
|
-
* @param {string} [appUuid]
|
|
992
|
-
* @param {number} [page]
|
|
993
|
-
* @param {number} [limit]
|
|
994
|
-
* @param {*} [options] Override http request option.
|
|
995
|
-
* @throws {RequiredError}
|
|
996
|
-
*/
|
|
997
|
-
platformBillingStatus(appUuid, page, limit, options) {
|
|
998
|
-
return localVarFp.platformBillingStatus(appUuid, page, limit, options).then((request) => request(axios, basePath));
|
|
999
|
-
},
|
|
1000
|
-
/**
|
|
1001
|
-
*
|
|
1002
|
-
* @summary Record a manual meter event for the selected company\'s installation
|
|
1003
|
-
* @param {string} appUuid
|
|
1004
|
-
* @param {AppMeterEventRequest} appMeterEventRequest
|
|
1005
|
-
* @param {*} [options] Override http request option.
|
|
1006
|
-
* @throws {RequiredError}
|
|
1007
|
-
*/
|
|
1008
|
-
recordMeterEvent(appUuid, appMeterEventRequest, options) {
|
|
1009
|
-
return localVarFp.recordMeterEvent(appUuid, appMeterEventRequest, options).then((request) => request(axios, basePath));
|
|
1010
|
-
},
|
|
1011
|
-
/**
|
|
1012
|
-
*
|
|
1013
|
-
* @summary Schedule a plan or commitment change
|
|
1014
|
-
* @param {string} appUuid
|
|
1015
|
-
* @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
|
|
1016
|
-
* @param {*} [options] Override http request option.
|
|
1017
|
-
* @throws {RequiredError}
|
|
1018
|
-
*/
|
|
1019
|
-
scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options) {
|
|
1020
|
-
return localVarFp.scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options).then((request) => request(axios, basePath));
|
|
1021
|
-
},
|
|
1022
|
-
/**
|
|
1023
|
-
*
|
|
1024
|
-
* @summary Usage periods for the selected company\'s installation
|
|
1025
|
-
* @param {string} appUuid
|
|
1026
|
-
* @param {*} [options] Override http request option.
|
|
1027
|
-
* @throws {RequiredError}
|
|
1028
|
-
*/
|
|
1029
|
-
usagePeriods(appUuid, options) {
|
|
1030
|
-
return localVarFp.usagePeriods(appUuid, options).then((request) => request(axios, basePath));
|
|
1031
|
-
},
|
|
1032
|
-
};
|
|
1033
|
-
};
|
|
1034
|
-
exports.AppBillingApiFactory = AppBillingApiFactory;
|
|
1035
|
-
/**
|
|
1036
|
-
* AppBillingApi - object-oriented interface
|
|
1037
|
-
*/
|
|
1038
|
-
class AppBillingApi extends base_1.BaseAPI {
|
|
1039
|
-
/**
|
|
1040
|
-
*
|
|
1041
|
-
* @summary Current-period billing for every installation of an app
|
|
1042
|
-
* @param {string} appUuid
|
|
1043
|
-
* @param {*} [options] Override http request option.
|
|
1044
|
-
* @throws {RequiredError}
|
|
1045
|
-
*/
|
|
1046
|
-
appBillingStatus(appUuid, options) {
|
|
1047
|
-
return (0, exports.AppBillingApiFp)(this.configuration).appBillingStatus(appUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1048
|
-
}
|
|
1049
|
-
/**
|
|
1050
|
-
*
|
|
1051
|
-
* @summary Cancel a scheduled subscription change
|
|
1052
|
-
* @param {string} appUuid
|
|
1053
|
-
* @param {*} [options] Override http request option.
|
|
1054
|
-
* @throws {RequiredError}
|
|
1055
|
-
*/
|
|
1056
|
-
cancelPendingChange(appUuid, options) {
|
|
1057
|
-
return (0, exports.AppBillingApiFp)(this.configuration).cancelPendingChange(appUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1058
|
-
}
|
|
1059
|
-
/**
|
|
1060
|
-
*
|
|
1061
|
-
* @summary Current subscription state for the selected company\'s installation
|
|
1062
|
-
* @param {string} appUuid
|
|
1063
|
-
* @param {*} [options] Override http request option.
|
|
1064
|
-
* @throws {RequiredError}
|
|
1065
|
-
*/
|
|
1066
|
-
getSubscription(appUuid, options) {
|
|
1067
|
-
return (0, exports.AppBillingApiFp)(this.configuration).getSubscription(appUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1068
|
-
}
|
|
1069
|
-
/**
|
|
1070
|
-
*
|
|
1071
|
-
* @summary Current-period billing for the selected company\'s installation
|
|
1072
|
-
* @param {string} appUuid
|
|
1073
|
-
* @param {*} [options] Override http request option.
|
|
1074
|
-
* @throws {RequiredError}
|
|
1075
|
-
*/
|
|
1076
|
-
installationBillingStatus(appUuid, options) {
|
|
1077
|
-
return (0, exports.AppBillingApiFp)(this.configuration).installationBillingStatus(appUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1078
|
-
}
|
|
1079
|
-
/**
|
|
1080
|
-
*
|
|
1081
|
-
* @summary Platform-wide current-period app usage billing
|
|
1082
|
-
* @param {string} [appUuid]
|
|
1083
|
-
* @param {number} [page]
|
|
1084
|
-
* @param {number} [limit]
|
|
1085
|
-
* @param {*} [options] Override http request option.
|
|
1086
|
-
* @throws {RequiredError}
|
|
1087
|
-
*/
|
|
1088
|
-
platformBillingStatus(appUuid, page, limit, options) {
|
|
1089
|
-
return (0, exports.AppBillingApiFp)(this.configuration).platformBillingStatus(appUuid, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1090
|
-
}
|
|
1091
|
-
/**
|
|
1092
|
-
*
|
|
1093
|
-
* @summary Record a manual meter event for the selected company\'s installation
|
|
1094
|
-
* @param {string} appUuid
|
|
1095
|
-
* @param {AppMeterEventRequest} appMeterEventRequest
|
|
1096
|
-
* @param {*} [options] Override http request option.
|
|
1097
|
-
* @throws {RequiredError}
|
|
1098
|
-
*/
|
|
1099
|
-
recordMeterEvent(appUuid, appMeterEventRequest, options) {
|
|
1100
|
-
return (0, exports.AppBillingApiFp)(this.configuration).recordMeterEvent(appUuid, appMeterEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1101
|
-
}
|
|
1102
|
-
/**
|
|
1103
|
-
*
|
|
1104
|
-
* @summary Schedule a plan or commitment change
|
|
1105
|
-
* @param {string} appUuid
|
|
1106
|
-
* @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
|
|
1107
|
-
* @param {*} [options] Override http request option.
|
|
1108
|
-
* @throws {RequiredError}
|
|
1109
|
-
*/
|
|
1110
|
-
scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options) {
|
|
1111
|
-
return (0, exports.AppBillingApiFp)(this.configuration).scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1112
|
-
}
|
|
1113
|
-
/**
|
|
1114
|
-
*
|
|
1115
|
-
* @summary Usage periods for the selected company\'s installation
|
|
1116
|
-
* @param {string} appUuid
|
|
1117
|
-
* @param {*} [options] Override http request option.
|
|
1118
|
-
* @throws {RequiredError}
|
|
1119
|
-
*/
|
|
1120
|
-
usagePeriods(appUuid, options) {
|
|
1121
|
-
return (0, exports.AppBillingApiFp)(this.configuration).usagePeriods(appUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
exports.AppBillingApi = AppBillingApi;
|
|
1125
511
|
/**
|
|
1126
512
|
* AppInstallationRuntimeApi - axios parameter creator
|
|
1127
513
|
*/
|