@caraer/client 2.0.408 → 2.0.411

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
@@ -495,6 +495,616 @@ export const ListAppBarsLocationEnum = {
495
495
  ToolBar: 'TOOL_BAR',
496
496
  TraitBar: 'TRAIT_BAR',
497
497
  };
498
+ /**
499
+ * AppBillingApi - axios parameter creator
500
+ */
501
+ export const AppBillingApiAxiosParamCreator = function (configuration) {
502
+ return {
503
+ /**
504
+ *
505
+ * @summary Current-period billing for every installation of an app
506
+ * @param {string} appUuid
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ appBillingStatus: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
511
+ // verify required parameter 'appUuid' is not null or undefined
512
+ assertParamExists('appBillingStatus', 'appUuid', appUuid);
513
+ const localVarPath = `/api/v2/apps/{appUuid}/billing/status`
514
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
515
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
516
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
517
+ let baseOptions;
518
+ if (configuration) {
519
+ baseOptions = configuration.baseOptions;
520
+ }
521
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
522
+ const localVarHeaderParameter = {};
523
+ const localVarQueryParameter = {};
524
+ // authentication bearerAuth required
525
+ // http bearer authentication required
526
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
527
+ localVarHeaderParameter['Accept'] = 'application/json';
528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
530
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
531
+ return {
532
+ url: toPathString(localVarUrlObj),
533
+ options: localVarRequestOptions,
534
+ };
535
+ }),
536
+ /**
537
+ *
538
+ * @summary Cancel a scheduled subscription change
539
+ * @param {string} appUuid
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ cancelPendingChange: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
544
+ // verify required parameter 'appUuid' is not null or undefined
545
+ assertParamExists('cancelPendingChange', 'appUuid', appUuid);
546
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription/pending`
547
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
548
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
549
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
550
+ let baseOptions;
551
+ if (configuration) {
552
+ baseOptions = configuration.baseOptions;
553
+ }
554
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
555
+ const localVarHeaderParameter = {};
556
+ const localVarQueryParameter = {};
557
+ // authentication bearerAuth required
558
+ // http bearer authentication required
559
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
560
+ localVarHeaderParameter['Accept'] = 'application/json';
561
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
562
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
563
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
564
+ return {
565
+ url: toPathString(localVarUrlObj),
566
+ options: localVarRequestOptions,
567
+ };
568
+ }),
569
+ /**
570
+ *
571
+ * @summary Current subscription state for the selected company\'s installation
572
+ * @param {string} appUuid
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ */
576
+ getSubscription: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
577
+ // verify required parameter 'appUuid' is not null or undefined
578
+ assertParamExists('getSubscription', 'appUuid', appUuid);
579
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription`
580
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
581
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
582
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
583
+ let baseOptions;
584
+ if (configuration) {
585
+ baseOptions = configuration.baseOptions;
586
+ }
587
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
588
+ const localVarHeaderParameter = {};
589
+ const localVarQueryParameter = {};
590
+ // authentication bearerAuth required
591
+ // http bearer authentication required
592
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
593
+ localVarHeaderParameter['Accept'] = 'application/json';
594
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
595
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
596
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
597
+ return {
598
+ url: toPathString(localVarUrlObj),
599
+ options: localVarRequestOptions,
600
+ };
601
+ }),
602
+ /**
603
+ *
604
+ * @summary Current-period billing for the selected company\'s installation
605
+ * @param {string} appUuid
606
+ * @param {*} [options] Override http request option.
607
+ * @throws {RequiredError}
608
+ */
609
+ installationBillingStatus: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
610
+ // verify required parameter 'appUuid' is not null or undefined
611
+ assertParamExists('installationBillingStatus', 'appUuid', appUuid);
612
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/billing/status`
613
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
614
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
615
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
616
+ let baseOptions;
617
+ if (configuration) {
618
+ baseOptions = configuration.baseOptions;
619
+ }
620
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
621
+ const localVarHeaderParameter = {};
622
+ const localVarQueryParameter = {};
623
+ // authentication bearerAuth required
624
+ // http bearer authentication required
625
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
626
+ localVarHeaderParameter['Accept'] = 'application/json';
627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
629
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
630
+ return {
631
+ url: toPathString(localVarUrlObj),
632
+ options: localVarRequestOptions,
633
+ };
634
+ }),
635
+ /**
636
+ *
637
+ * @summary Platform-wide current-period app usage billing
638
+ * @param {string} [appUuid]
639
+ * @param {number} [page]
640
+ * @param {number} [limit]
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ 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 = {}) {
645
+ const localVarPath = `/api/v2/apps/billing/status`;
646
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
647
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
648
+ let baseOptions;
649
+ if (configuration) {
650
+ baseOptions = configuration.baseOptions;
651
+ }
652
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
653
+ const localVarHeaderParameter = {};
654
+ const localVarQueryParameter = {};
655
+ // authentication bearerAuth required
656
+ // http bearer authentication required
657
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
658
+ if (appUuid !== undefined) {
659
+ localVarQueryParameter['appUuid'] = appUuid;
660
+ }
661
+ if (page !== undefined) {
662
+ localVarQueryParameter['page'] = page;
663
+ }
664
+ if (limit !== undefined) {
665
+ localVarQueryParameter['limit'] = limit;
666
+ }
667
+ localVarHeaderParameter['Accept'] = 'application/json';
668
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
669
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
670
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
671
+ return {
672
+ url: toPathString(localVarUrlObj),
673
+ options: localVarRequestOptions,
674
+ };
675
+ }),
676
+ /**
677
+ *
678
+ * @summary Record a manual meter event for the selected company\'s installation
679
+ * @param {string} appUuid
680
+ * @param {AppMeterEventRequest} appMeterEventRequest
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ */
684
+ recordMeterEvent: (appUuid_1, appMeterEventRequest_1, ...args_1) => __awaiter(this, [appUuid_1, appMeterEventRequest_1, ...args_1], void 0, function* (appUuid, appMeterEventRequest, options = {}) {
685
+ // verify required parameter 'appUuid' is not null or undefined
686
+ assertParamExists('recordMeterEvent', 'appUuid', appUuid);
687
+ // verify required parameter 'appMeterEventRequest' is not null or undefined
688
+ assertParamExists('recordMeterEvent', 'appMeterEventRequest', appMeterEventRequest);
689
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/meter-events`
690
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
691
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
692
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
693
+ let baseOptions;
694
+ if (configuration) {
695
+ baseOptions = configuration.baseOptions;
696
+ }
697
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
698
+ const localVarHeaderParameter = {};
699
+ const localVarQueryParameter = {};
700
+ // authentication bearerAuth required
701
+ // http bearer authentication required
702
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
703
+ localVarHeaderParameter['Content-Type'] = 'application/json';
704
+ localVarHeaderParameter['Accept'] = 'application/json';
705
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
706
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
707
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
708
+ localVarRequestOptions.data = serializeDataIfNeeded(appMeterEventRequest, localVarRequestOptions, configuration);
709
+ return {
710
+ url: toPathString(localVarUrlObj),
711
+ options: localVarRequestOptions,
712
+ };
713
+ }),
714
+ /**
715
+ *
716
+ * @summary Schedule a plan or commitment change
717
+ * @param {string} appUuid
718
+ * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ scheduleSubscriptionChange: (appUuid_1, appSubscriptionChangeRequest_1, ...args_1) => __awaiter(this, [appUuid_1, appSubscriptionChangeRequest_1, ...args_1], void 0, function* (appUuid, appSubscriptionChangeRequest, options = {}) {
723
+ // verify required parameter 'appUuid' is not null or undefined
724
+ assertParamExists('scheduleSubscriptionChange', 'appUuid', appUuid);
725
+ // verify required parameter 'appSubscriptionChangeRequest' is not null or undefined
726
+ assertParamExists('scheduleSubscriptionChange', 'appSubscriptionChangeRequest', appSubscriptionChangeRequest);
727
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription/change`
728
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
731
+ let baseOptions;
732
+ if (configuration) {
733
+ baseOptions = configuration.baseOptions;
734
+ }
735
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
736
+ const localVarHeaderParameter = {};
737
+ const localVarQueryParameter = {};
738
+ // authentication bearerAuth required
739
+ // http bearer authentication required
740
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
741
+ localVarHeaderParameter['Content-Type'] = 'application/json';
742
+ localVarHeaderParameter['Accept'] = 'application/json';
743
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
745
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
746
+ localVarRequestOptions.data = serializeDataIfNeeded(appSubscriptionChangeRequest, localVarRequestOptions, configuration);
747
+ return {
748
+ url: toPathString(localVarUrlObj),
749
+ options: localVarRequestOptions,
750
+ };
751
+ }),
752
+ /**
753
+ *
754
+ * @summary Usage periods for the selected company\'s installation
755
+ * @param {string} appUuid
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ usagePeriods: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
760
+ // verify required parameter 'appUuid' is not null or undefined
761
+ assertParamExists('usagePeriods', 'appUuid', appUuid);
762
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/usage/periods`
763
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
764
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
765
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
766
+ let baseOptions;
767
+ if (configuration) {
768
+ baseOptions = configuration.baseOptions;
769
+ }
770
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
771
+ const localVarHeaderParameter = {};
772
+ const localVarQueryParameter = {};
773
+ // authentication bearerAuth required
774
+ // http bearer authentication required
775
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
776
+ localVarHeaderParameter['Accept'] = 'application/json';
777
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
778
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
779
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
780
+ return {
781
+ url: toPathString(localVarUrlObj),
782
+ options: localVarRequestOptions,
783
+ };
784
+ }),
785
+ };
786
+ };
787
+ /**
788
+ * AppBillingApi - functional programming interface
789
+ */
790
+ export const AppBillingApiFp = function (configuration) {
791
+ const localVarAxiosParamCreator = AppBillingApiAxiosParamCreator(configuration);
792
+ return {
793
+ /**
794
+ *
795
+ * @summary Current-period billing for every installation of an app
796
+ * @param {string} appUuid
797
+ * @param {*} [options] Override http request option.
798
+ * @throws {RequiredError}
799
+ */
800
+ appBillingStatus(appUuid, options) {
801
+ return __awaiter(this, void 0, void 0, function* () {
802
+ var _a, _b, _c;
803
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.appBillingStatus(appUuid, options);
804
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
805
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppBillingApi.appBillingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
806
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
807
+ });
808
+ },
809
+ /**
810
+ *
811
+ * @summary Cancel a scheduled subscription change
812
+ * @param {string} appUuid
813
+ * @param {*} [options] Override http request option.
814
+ * @throws {RequiredError}
815
+ */
816
+ cancelPendingChange(appUuid, options) {
817
+ return __awaiter(this, void 0, void 0, function* () {
818
+ var _a, _b, _c;
819
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPendingChange(appUuid, options);
820
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
821
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppBillingApi.cancelPendingChange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
822
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
823
+ });
824
+ },
825
+ /**
826
+ *
827
+ * @summary Current subscription state for the selected company\'s installation
828
+ * @param {string} appUuid
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ getSubscription(appUuid, options) {
833
+ return __awaiter(this, void 0, void 0, function* () {
834
+ var _a, _b, _c;
835
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscription(appUuid, options);
836
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
837
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppBillingApi.getSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
838
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
839
+ });
840
+ },
841
+ /**
842
+ *
843
+ * @summary Current-period billing for the selected company\'s installation
844
+ * @param {string} appUuid
845
+ * @param {*} [options] Override http request option.
846
+ * @throws {RequiredError}
847
+ */
848
+ installationBillingStatus(appUuid, options) {
849
+ return __awaiter(this, void 0, void 0, function* () {
850
+ var _a, _b, _c;
851
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.installationBillingStatus(appUuid, options);
852
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
853
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppBillingApi.installationBillingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
854
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
855
+ });
856
+ },
857
+ /**
858
+ *
859
+ * @summary Platform-wide current-period app usage billing
860
+ * @param {string} [appUuid]
861
+ * @param {number} [page]
862
+ * @param {number} [limit]
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ platformBillingStatus(appUuid, page, limit, options) {
867
+ return __awaiter(this, void 0, void 0, function* () {
868
+ var _a, _b, _c;
869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.platformBillingStatus(appUuid, page, limit, options);
870
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
871
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppBillingApi.platformBillingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
872
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
873
+ });
874
+ },
875
+ /**
876
+ *
877
+ * @summary Record a manual meter event for the selected company\'s installation
878
+ * @param {string} appUuid
879
+ * @param {AppMeterEventRequest} appMeterEventRequest
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ recordMeterEvent(appUuid, appMeterEventRequest, options) {
884
+ return __awaiter(this, void 0, void 0, function* () {
885
+ var _a, _b, _c;
886
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.recordMeterEvent(appUuid, appMeterEventRequest, options);
887
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
888
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppBillingApi.recordMeterEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
889
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
890
+ });
891
+ },
892
+ /**
893
+ *
894
+ * @summary Schedule a plan or commitment change
895
+ * @param {string} appUuid
896
+ * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options) {
901
+ return __awaiter(this, void 0, void 0, function* () {
902
+ var _a, _b, _c;
903
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options);
904
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
905
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppBillingApi.scheduleSubscriptionChange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
906
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
907
+ });
908
+ },
909
+ /**
910
+ *
911
+ * @summary Usage periods for the selected company\'s installation
912
+ * @param {string} appUuid
913
+ * @param {*} [options] Override http request option.
914
+ * @throws {RequiredError}
915
+ */
916
+ usagePeriods(appUuid, options) {
917
+ return __awaiter(this, void 0, void 0, function* () {
918
+ var _a, _b, _c;
919
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.usagePeriods(appUuid, options);
920
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
921
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppBillingApi.usagePeriods']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
922
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
923
+ });
924
+ },
925
+ };
926
+ };
927
+ /**
928
+ * AppBillingApi - factory interface
929
+ */
930
+ export const AppBillingApiFactory = function (configuration, basePath, axios) {
931
+ const localVarFp = AppBillingApiFp(configuration);
932
+ return {
933
+ /**
934
+ *
935
+ * @summary Current-period billing for every installation of an app
936
+ * @param {string} appUuid
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ appBillingStatus(appUuid, options) {
941
+ return localVarFp.appBillingStatus(appUuid, options).then((request) => request(axios, basePath));
942
+ },
943
+ /**
944
+ *
945
+ * @summary Cancel a scheduled subscription change
946
+ * @param {string} appUuid
947
+ * @param {*} [options] Override http request option.
948
+ * @throws {RequiredError}
949
+ */
950
+ cancelPendingChange(appUuid, options) {
951
+ return localVarFp.cancelPendingChange(appUuid, options).then((request) => request(axios, basePath));
952
+ },
953
+ /**
954
+ *
955
+ * @summary Current subscription state for the selected company\'s installation
956
+ * @param {string} appUuid
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ */
960
+ getSubscription(appUuid, options) {
961
+ return localVarFp.getSubscription(appUuid, options).then((request) => request(axios, basePath));
962
+ },
963
+ /**
964
+ *
965
+ * @summary Current-period billing for the selected company\'s installation
966
+ * @param {string} appUuid
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ installationBillingStatus(appUuid, options) {
971
+ return localVarFp.installationBillingStatus(appUuid, options).then((request) => request(axios, basePath));
972
+ },
973
+ /**
974
+ *
975
+ * @summary Platform-wide current-period app usage billing
976
+ * @param {string} [appUuid]
977
+ * @param {number} [page]
978
+ * @param {number} [limit]
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ platformBillingStatus(appUuid, page, limit, options) {
983
+ return localVarFp.platformBillingStatus(appUuid, page, limit, options).then((request) => request(axios, basePath));
984
+ },
985
+ /**
986
+ *
987
+ * @summary Record a manual meter event for the selected company\'s installation
988
+ * @param {string} appUuid
989
+ * @param {AppMeterEventRequest} appMeterEventRequest
990
+ * @param {*} [options] Override http request option.
991
+ * @throws {RequiredError}
992
+ */
993
+ recordMeterEvent(appUuid, appMeterEventRequest, options) {
994
+ return localVarFp.recordMeterEvent(appUuid, appMeterEventRequest, options).then((request) => request(axios, basePath));
995
+ },
996
+ /**
997
+ *
998
+ * @summary Schedule a plan or commitment change
999
+ * @param {string} appUuid
1000
+ * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options) {
1005
+ return localVarFp.scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options).then((request) => request(axios, basePath));
1006
+ },
1007
+ /**
1008
+ *
1009
+ * @summary Usage periods for the selected company\'s installation
1010
+ * @param {string} appUuid
1011
+ * @param {*} [options] Override http request option.
1012
+ * @throws {RequiredError}
1013
+ */
1014
+ usagePeriods(appUuid, options) {
1015
+ return localVarFp.usagePeriods(appUuid, options).then((request) => request(axios, basePath));
1016
+ },
1017
+ };
1018
+ };
1019
+ /**
1020
+ * AppBillingApi - object-oriented interface
1021
+ */
1022
+ export class AppBillingApi extends BaseAPI {
1023
+ /**
1024
+ *
1025
+ * @summary Current-period billing for every installation of an app
1026
+ * @param {string} appUuid
1027
+ * @param {*} [options] Override http request option.
1028
+ * @throws {RequiredError}
1029
+ */
1030
+ appBillingStatus(appUuid, options) {
1031
+ return AppBillingApiFp(this.configuration).appBillingStatus(appUuid, options).then((request) => request(this.axios, this.basePath));
1032
+ }
1033
+ /**
1034
+ *
1035
+ * @summary Cancel a scheduled subscription change
1036
+ * @param {string} appUuid
1037
+ * @param {*} [options] Override http request option.
1038
+ * @throws {RequiredError}
1039
+ */
1040
+ cancelPendingChange(appUuid, options) {
1041
+ return AppBillingApiFp(this.configuration).cancelPendingChange(appUuid, options).then((request) => request(this.axios, this.basePath));
1042
+ }
1043
+ /**
1044
+ *
1045
+ * @summary Current subscription state for the selected company\'s installation
1046
+ * @param {string} appUuid
1047
+ * @param {*} [options] Override http request option.
1048
+ * @throws {RequiredError}
1049
+ */
1050
+ getSubscription(appUuid, options) {
1051
+ return AppBillingApiFp(this.configuration).getSubscription(appUuid, options).then((request) => request(this.axios, this.basePath));
1052
+ }
1053
+ /**
1054
+ *
1055
+ * @summary Current-period billing for the selected company\'s installation
1056
+ * @param {string} appUuid
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ installationBillingStatus(appUuid, options) {
1061
+ return AppBillingApiFp(this.configuration).installationBillingStatus(appUuid, options).then((request) => request(this.axios, this.basePath));
1062
+ }
1063
+ /**
1064
+ *
1065
+ * @summary Platform-wide current-period app usage billing
1066
+ * @param {string} [appUuid]
1067
+ * @param {number} [page]
1068
+ * @param {number} [limit]
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ platformBillingStatus(appUuid, page, limit, options) {
1073
+ return AppBillingApiFp(this.configuration).platformBillingStatus(appUuid, page, limit, options).then((request) => request(this.axios, this.basePath));
1074
+ }
1075
+ /**
1076
+ *
1077
+ * @summary Record a manual meter event for the selected company\'s installation
1078
+ * @param {string} appUuid
1079
+ * @param {AppMeterEventRequest} appMeterEventRequest
1080
+ * @param {*} [options] Override http request option.
1081
+ * @throws {RequiredError}
1082
+ */
1083
+ recordMeterEvent(appUuid, appMeterEventRequest, options) {
1084
+ return AppBillingApiFp(this.configuration).recordMeterEvent(appUuid, appMeterEventRequest, options).then((request) => request(this.axios, this.basePath));
1085
+ }
1086
+ /**
1087
+ *
1088
+ * @summary Schedule a plan or commitment change
1089
+ * @param {string} appUuid
1090
+ * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options) {
1095
+ return AppBillingApiFp(this.configuration).scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options).then((request) => request(this.axios, this.basePath));
1096
+ }
1097
+ /**
1098
+ *
1099
+ * @summary Usage periods for the selected company\'s installation
1100
+ * @param {string} appUuid
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ usagePeriods(appUuid, options) {
1105
+ return AppBillingApiFp(this.configuration).usagePeriods(appUuid, options).then((request) => request(this.axios, this.basePath));
1106
+ }
1107
+ }
498
1108
  /**
499
1109
  * AppInstallationRuntimeApi - axios parameter creator
500
1110
  */