@flipdish/authorization 0.0.3 → 0.0.6-rc.1764848040

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/api.js CHANGED
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
87
+ exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.ListRolesSuccessResponseRolesEnum = exports.ListOrgRolesSuccessResponseValueValueRolesEnum = exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = exports.IsInRoleRequestCheckModeEnum = exports.IsInRoleRequestRolesEnum = exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedPropertiesRequestActionEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.GetAuthorizedOrgsRequestActionEnum = exports.GetAuthorizedBrandsRequestActionEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestRolesEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
88
88
  var axios_1 = require("axios");
89
89
  // Some imports not used depending on template conditions
90
90
  // @ts-ignore
@@ -165,6 +165,14 @@ exports.AssignRoleRequestBodyRoleEnum = {
165
165
  FinanceManagerMisc: 'FinanceManagerMisc',
166
166
  SupportMisc: 'SupportMisc'
167
167
  };
168
+ exports.AuthenticateAndCheckIsInRoleRequestRolesEnum = {
169
+ Admin: 'Admin',
170
+ Factory: 'Factory'
171
+ };
172
+ exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = {
173
+ Any: 'any',
174
+ All: 'all'
175
+ };
168
176
  exports.AuthorizationRequestPrincipalTypeEnum = {
169
177
  User: 'User',
170
178
  Automation: 'Automation'
@@ -181,25 +189,7 @@ exports.AuthorizationRequestResourceOneOf2TypeEnum = {
181
189
  exports.AuthorizationRequestResourceOneOf3TypeEnum = {
182
190
  SalesChannel: 'SalesChannel'
183
191
  };
184
- exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
185
- Main: 'Main',
186
- BrandOverride: 'BrandOverride',
187
- OrgOverride: 'OrgOverride',
188
- Forbidden: 'Forbidden'
189
- };
190
- exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
191
- Property: 'Property',
192
- Org: 'Org',
193
- Brand: 'Brand',
194
- SalesChannel: 'SalesChannel'
195
- };
196
- exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
197
- Property: 'Property',
198
- Org: 'Org',
199
- Brand: 'Brand',
200
- SalesChannel: 'SalesChannel'
201
- };
202
- exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
192
+ exports.GetAuthorizedBrandsRequestActionEnum = {
203
193
  AnyAuditLogs: 'AnyAuditLogs',
204
194
  ViewApp: 'ViewApp',
205
195
  CreateApp: 'CreateApp',
@@ -423,14 +413,13 @@ exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
423
413
  EditEntityFeatureFlags: 'EditEntityFeatureFlags',
424
414
  CreateOrg: 'CreateOrg',
425
415
  EditOrg: 'EditOrg',
426
- ViewOrg: 'ViewOrg'
416
+ ViewOrg: 'ViewOrg',
417
+ ViewWebhooks: 'ViewWebhooks',
418
+ EditWebhooks: 'EditWebhooks',
419
+ RoleAdmin: 'RoleAdmin',
420
+ RoleFactory: 'RoleFactory'
427
421
  };
428
- /**
429
- *
430
- * @export
431
- * @enum {string}
432
- */
433
- exports.Permissions = {
422
+ exports.GetAuthorizedOrgsRequestActionEnum = {
434
423
  AnyAuditLogs: 'AnyAuditLogs',
435
424
  ViewApp: 'ViewApp',
436
425
  CreateApp: 'CreateApp',
@@ -654,258 +643,1971 @@ exports.Permissions = {
654
643
  EditEntityFeatureFlags: 'EditEntityFeatureFlags',
655
644
  CreateOrg: 'CreateOrg',
656
645
  EditOrg: 'EditOrg',
657
- ViewOrg: 'ViewOrg'
658
- };
659
- exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
660
- OwnerCompensating: 'OwnerCompensating',
661
- PropertyOwnerCompensating: 'PropertyOwnerCompensating',
662
- ManagedOwnerCompensating: 'ManagedOwnerCompensating',
663
- IntegratorCompensating: 'IntegratorCompensating',
664
- PropertyManagerCompensating: 'PropertyManagerCompensating',
665
- FinanceManagerCompensating: 'FinanceManagerCompensating'
666
- };
667
- exports.RevokeRoleRequestBodyRoleEnum = {
668
- OrgViewer: 'OrgViewer',
669
- OrgManager: 'OrgManager',
670
- OrgAdmin: 'OrgAdmin',
671
- BrandViewer: 'BrandViewer',
672
- BrandManager: 'BrandManager',
673
- BrandAdmin: 'BrandAdmin',
674
- StoreViewer: 'StoreViewer',
675
- StoreEditor: 'StoreEditor',
676
- StoreManager: 'StoreManager',
677
- CustomerViewer: 'CustomerViewer',
678
- CustomerManager: 'CustomerManager',
679
- VoucherViewer: 'VoucherViewer',
680
- VoucherEditor: 'VoucherEditor',
681
- VoucherManager: 'VoucherManager',
682
- VoucherCampaignManager: 'VoucherCampaignManager',
683
- VoucherStatisticsViewer: 'VoucherStatisticsViewer',
684
- AnalyticsViewer: 'AnalyticsViewer',
685
- ReportsViewer: 'ReportsViewer',
686
- FinanceViewer: 'FinanceViewer',
687
- FinanceManager: 'FinanceManager',
688
- TeamViewer: 'TeamViewer',
689
- TeamManager: 'TeamManager',
690
- TeamAdmin: 'TeamAdmin',
691
- TechViewer: 'TechViewer',
692
- TechManager: 'TechManager',
693
- AppStoreViewer: 'AppStoreViewer',
694
- AppStoreManager: 'AppStoreManager',
695
- SalesChannelViewer: 'SalesChannelViewer',
696
- SalesChannelEditor: 'SalesChannelEditor',
697
- SalesChannelManager: 'SalesChannelManager',
698
- DeliveryViewer: 'DeliveryViewer',
699
- DeliveryManager: 'DeliveryManager',
700
- DriverManager: 'DriverManager',
701
- AuditViewer: 'AuditViewer',
702
- AuditManager: 'AuditManager',
703
- AccountsViewer: 'AccountsViewer',
704
- AccountsEditor: 'AccountsEditor',
705
- DocumentExplorerViewer: 'DocumentExplorerViewer',
706
- DocumentExplorerEditor: 'DocumentExplorerEditor',
707
- PayrollViewer: 'PayrollViewer',
708
- PayrollEditor: 'PayrollEditor',
709
- PropertyViewer: 'PropertyViewer',
710
- PropertyManager: 'PropertyManager',
711
- PropertyAdmin: 'PropertyAdmin',
712
- WebsiteContentEditor: 'WebsiteContentEditor',
713
- WebsiteContentViewer: 'WebsiteContentViewer',
714
- WebsiteTechViewer: 'WebsiteTechViewer',
715
- MenuViewer: 'MenuViewer',
716
- MenuEditor: 'MenuEditor',
717
- MenuManager: 'MenuManager',
718
- MenuMetaFieldManager: 'MenuMetaFieldManager',
719
- MenuMetaFieldEditor: 'MenuMetaFieldEditor',
720
- MenuMetaFieldViewer: 'MenuMetaFieldViewer',
721
- StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
722
- StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
723
- StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
724
- OrderFulfillmentManager: 'OrderFulfillmentManager',
725
- OrderManager: 'OrderManager',
726
- OrderEditor: 'OrderEditor',
727
- OrderViewer: 'OrderViewer',
728
- InventoryManager: 'InventoryManager',
729
- InventoryEditor: 'InventoryEditor',
730
- InventoryViewer: 'InventoryViewer',
731
- PaymentManager: 'PaymentManager',
732
- OnboardingManager: 'OnboardingManager',
733
- FeatureFlagManager: 'FeatureFlagManager',
734
- PropertyOwnerMisc: 'PropertyOwnerMisc',
735
- ManagedOwnerMisc: 'ManagedOwnerMisc',
736
- IntegratorMisc: 'IntegratorMisc',
737
- PropertyManagerMisc: 'PropertyManagerMisc',
738
- FinanceManagerMisc: 'FinanceManagerMisc',
739
- SupportMisc: 'SupportMisc'
740
- };
741
- /**
742
- * AuthenticationApi - axios parameter creator
743
- * @export
744
- */
745
- var AuthenticationApiAxiosParamCreator = function (configuration) {
746
- var _this = this;
747
- return {
748
- /**
749
- * Authenticate and authorize a user to perform an action
750
- * @summary Authenticate and authorize Request
751
- * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
752
- * @param {*} [options] Override http request option.
753
- * @throws {RequiredError}
754
- */
755
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest_1) {
756
- var args_1 = [];
757
- for (var _i = 1; _i < arguments.length; _i++) {
758
- args_1[_i - 1] = arguments[_i];
759
- }
760
- return __awaiter(_this, __spreadArray([authenticateAndAuthorizeRequest_1], args_1, true), void 0, function (authenticateAndAuthorizeRequest, options) {
761
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
762
- if (options === void 0) { options = {}; }
763
- return __generator(this, function (_a) {
764
- switch (_a.label) {
765
- case 0:
766
- // verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined
767
- (0, common_1.assertParamExists)('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest);
768
- localVarPath = "/authenticateAndAuthorize";
769
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
770
- if (configuration) {
771
- baseOptions = configuration.baseOptions;
772
- }
773
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
774
- localVarHeaderParameter = {};
775
- localVarQueryParameter = {};
776
- // authentication ApiKeyAuth required
777
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
778
- case 1:
779
- // authentication ApiKeyAuth required
780
- _a.sent();
781
- localVarHeaderParameter['Content-Type'] = 'application/json';
782
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
783
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
784
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
785
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration);
786
- return [2 /*return*/, {
787
- url: (0, common_1.toPathString)(localVarUrlObj),
788
- options: localVarRequestOptions,
789
- }];
790
- }
791
- });
792
- });
793
- },
794
- };
795
- };
796
- exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
797
- /**
798
- * AuthenticationApi - functional programming interface
799
- * @export
800
- */
801
- var AuthenticationApiFp = function (configuration) {
802
- var localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
803
- return {
804
- /**
805
- * Authenticate and authorize a user to perform an action
806
- * @summary Authenticate and authorize Request
807
- * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
808
- * @param {*} [options] Override http request option.
809
- * @throws {RequiredError}
810
- */
811
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
812
- return __awaiter(this, void 0, void 0, function () {
813
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
814
- var _a, _b, _c;
815
- return __generator(this, function (_d) {
816
- switch (_d.label) {
817
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
818
- case 1:
819
- localVarAxiosArgs = _d.sent();
820
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
821
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.authenticateAndAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
822
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
823
- }
824
- });
825
- });
826
- },
827
- };
646
+ ViewOrg: 'ViewOrg',
647
+ ViewWebhooks: 'ViewWebhooks',
648
+ EditWebhooks: 'EditWebhooks',
649
+ RoleAdmin: 'RoleAdmin',
650
+ RoleFactory: 'RoleFactory'
828
651
  };
829
- exports.AuthenticationApiFp = AuthenticationApiFp;
830
- /**
831
- * AuthenticationApi - factory interface
832
- * @export
833
- */
834
- var AuthenticationApiFactory = function (configuration, basePath, axios) {
835
- var localVarFp = (0, exports.AuthenticationApiFp)(configuration);
836
- return {
837
- /**
838
- * Authenticate and authorize a user to perform an action
839
- * @summary Authenticate and authorize Request
840
- * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
841
- * @param {*} [options] Override http request option.
842
- * @throws {RequiredError}
843
- */
844
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
845
- return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
846
- },
847
- };
652
+ exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = {
653
+ User: 'User',
654
+ Automation: 'Automation'
848
655
  };
849
- exports.AuthenticationApiFactory = AuthenticationApiFactory;
850
- /**
851
- * AuthenticationApi - object-oriented interface
852
- * @export
853
- * @class AuthenticationApi
854
- * @extends {BaseAPI}
855
- */
856
- var AuthenticationApi = /** @class */ (function (_super) {
857
- __extends(AuthenticationApi, _super);
858
- function AuthenticationApi() {
859
- return _super !== null && _super.apply(this, arguments) || this;
860
- }
861
- /**
862
- * Authenticate and authorize a user to perform an action
863
- * @summary Authenticate and authorize Request
864
- * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
865
- * @param {*} [options] Override http request option.
866
- * @throws {RequiredError}
867
- * @memberof AuthenticationApi
868
- */
869
- AuthenticationApi.prototype.authenticateAndAuthorize = function (authenticateAndAuthorizeRequest, options) {
870
- var _this = this;
871
- return (0, exports.AuthenticationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
872
- };
873
- return AuthenticationApi;
874
- }(base_1.BaseAPI));
875
- exports.AuthenticationApi = AuthenticationApi;
876
- /**
877
- * AuthorizationApi - axios parameter creator
878
- * @export
879
- */
880
- var AuthorizationApiAxiosParamCreator = function (configuration) {
881
- var _this = this;
882
- return {
883
- /**
884
- * Authenticate and authorize a user to perform an action
885
- * @summary Authenticate and authorize Request
886
- * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
887
- * @param {*} [options] Override http request option.
656
+ exports.GetAuthorizedPropertiesRequestActionEnum = {
657
+ AnyAuditLogs: 'AnyAuditLogs',
658
+ ViewApp: 'ViewApp',
659
+ CreateApp: 'CreateApp',
660
+ UpdateApp: 'UpdateApp',
661
+ ViewAppName: 'ViewAppName',
662
+ EditAppAssets: 'EditAppAssets',
663
+ EditAppFeatures: 'EditAppFeatures',
664
+ ViewTeammates: 'ViewTeammates',
665
+ EditTeammates: 'EditTeammates',
666
+ CreateTeammateOwner: 'CreateTeammateOwner',
667
+ CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
668
+ CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
669
+ CreateTeammateStoreManager: 'CreateTeammateStoreManager',
670
+ CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
671
+ CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
672
+ CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
673
+ CreateTeammateIntegrator: 'CreateTeammateIntegrator',
674
+ CreateTeammateOnboarding: 'CreateTeammateOnboarding',
675
+ CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
676
+ CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
677
+ ViewApmConfigurations: 'ViewApmConfigurations',
678
+ EditApmConfigurations: 'EditApmConfigurations',
679
+ ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
680
+ CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
681
+ UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
682
+ DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
683
+ StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
684
+ ViewDevelopersSettings: 'ViewDevelopersSettings',
685
+ EditDevelopersSettings: 'EditDevelopersSettings',
686
+ ViewOrders: 'ViewOrders',
687
+ UpdateOrdersAccept: 'UpdateOrdersAccept',
688
+ UpdateOrdersReject: 'UpdateOrdersReject',
689
+ UpdateOrdersRefund: 'UpdateOrdersRefund',
690
+ UpdateOrdersDispatch: 'UpdateOrdersDispatch',
691
+ ViewStores: 'ViewStores',
692
+ CreateStores: 'CreateStores',
693
+ EditStores: 'EditStores',
694
+ ViewStoresOpeningHours: 'ViewStoresOpeningHours',
695
+ UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
696
+ UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
697
+ ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
698
+ EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
699
+ EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
700
+ UpdateStoresName: 'UpdateStoresName',
701
+ EditStoreKioskSettings: 'EditStoreKioskSettings',
702
+ EditStoreOrderCapacity: 'EditStoreOrderCapacity',
703
+ EditStoreNotifications: 'EditStoreNotifications',
704
+ ArchiveStores: 'ArchiveStores',
705
+ PublishStores: 'PublishStores',
706
+ UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
707
+ UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
708
+ ViewStoreGroups: 'ViewStoreGroups',
709
+ CreateStoreGroups: 'CreateStoreGroups',
710
+ UpdateStoreGroups: 'UpdateStoreGroups',
711
+ DeleteStoreGroups: 'DeleteStoreGroups',
712
+ ViewDeliveryZones: 'ViewDeliveryZones',
713
+ CreateDeliveryZones: 'CreateDeliveryZones',
714
+ UpdateDeliveryZones: 'UpdateDeliveryZones',
715
+ DeleteDeliveryZones: 'DeleteDeliveryZones',
716
+ ViewMenu: 'ViewMenu',
717
+ CreateMenu: 'CreateMenu',
718
+ UpdateMenu: 'UpdateMenu',
719
+ DeleteMenu: 'DeleteMenu',
720
+ UpdateMenuLock: 'UpdateMenuLock',
721
+ UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
722
+ EditMenuImage: 'EditMenuImage',
723
+ ViewVouchers: 'ViewVouchers',
724
+ EditVouchers: 'EditVouchers',
725
+ ViewWebsiteContent: 'ViewWebsiteContent',
726
+ EditWebsiteContent: 'EditWebsiteContent',
727
+ ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
728
+ ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
729
+ ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
730
+ ViewBankAccounts: 'ViewBankAccounts',
731
+ CreateBankAccounts: 'CreateBankAccounts',
732
+ UpdateBankAccounts: 'UpdateBankAccounts',
733
+ UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
734
+ ViewAssignedBankAccount: 'ViewAssignedBankAccount',
735
+ VerifyBankAccounts: 'VerifyBankAccounts',
736
+ ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
737
+ EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
738
+ EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
739
+ EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
740
+ ViewHydraConfig: 'ViewHydraConfig',
741
+ UpdateHydraConfigManage: 'UpdateHydraConfigManage',
742
+ InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
743
+ DeleteTerminal: 'DeleteTerminal',
744
+ ViewKioskTelemetry: 'ViewKioskTelemetry',
745
+ ViewCustomers: 'ViewCustomers',
746
+ EditCustomers: 'EditCustomers',
747
+ CreateCustomers: 'CreateCustomers',
748
+ CreateCatalogElements: 'CreateCatalogElements',
749
+ UpdateCatalogElements: 'UpdateCatalogElements',
750
+ ViewCatalogElements: 'ViewCatalogElements',
751
+ DeleteCatalogElements: 'DeleteCatalogElements',
752
+ ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
753
+ CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
754
+ UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
755
+ DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
756
+ UpdateMetafields: 'UpdateMetafields',
757
+ ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
758
+ PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
759
+ ViewAppStatistics: 'ViewAppStatistics',
760
+ ViewApmStatistics: 'ViewApmStatistics',
761
+ ViewCampaignsStatistics: 'ViewCampaignsStatistics',
762
+ ViewCustomerStatistics: 'ViewCustomerStatistics',
763
+ ViewLiveStatistics: 'ViewLiveStatistics',
764
+ ViewOrderStatistics: 'ViewOrderStatistics',
765
+ ViewSalesStatistics: 'ViewSalesStatistics',
766
+ ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
767
+ ViewVouchersStatistics: 'ViewVouchersStatistics',
768
+ DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
769
+ ViewApmAuditLogs: 'ViewApmAuditLogs',
770
+ ViewStoreAuditLogs: 'ViewStoreAuditLogs',
771
+ ViewMenuAuditLogs: 'ViewMenuAuditLogs',
772
+ ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
773
+ ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
774
+ ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
775
+ ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
776
+ ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
777
+ ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
778
+ ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
779
+ ViewAppAuditLogs: 'ViewAppAuditLogs',
780
+ ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
781
+ ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
782
+ ViewHydraAuditLogs: 'ViewHydraAuditLogs',
783
+ ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
784
+ ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
785
+ ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
786
+ ViewExternalAuditLogs: 'ViewExternalAuditLogs',
787
+ CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
788
+ ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
789
+ ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
790
+ ViewChannelAuditLogs: 'ViewChannelAuditLogs',
791
+ ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
792
+ SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
793
+ InviteDriverToApp: 'InviteDriverToApp',
794
+ GetDriverForApp: 'GetDriverForApp',
795
+ RemoveDriverFromApp: 'RemoveDriverFromApp',
796
+ AssignDriverToOrder: 'AssignDriverToOrder',
797
+ UnassignDriverFromOrder: 'UnassignDriverFromOrder',
798
+ UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
799
+ UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
800
+ ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
801
+ CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
802
+ UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
803
+ DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
804
+ ViewPayouts: 'ViewPayouts',
805
+ ViewChannels: 'ViewChannels',
806
+ ViewOnboarding: 'ViewOnboarding',
807
+ UpdateOnboarding: 'UpdateOnboarding',
808
+ ViewClientDevices: 'ViewClientDevices',
809
+ UpdateClientDevices: 'UpdateClientDevices',
810
+ EnrollClientDevices: 'EnrollClientDevices',
811
+ AssignClientDevices: 'AssignClientDevices',
812
+ ViewClientAuditLogs: 'ViewClientAuditLogs',
813
+ CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
814
+ ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
815
+ UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
816
+ DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
817
+ UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
818
+ CreateAppStoreSubscription: 'CreateAppStoreSubscription',
819
+ UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
820
+ DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
821
+ ViewSalesChannels: 'ViewSalesChannels',
822
+ EditSalesChannels: 'EditSalesChannels',
823
+ CreateSalesChannel: 'CreateSalesChannel',
824
+ ArchiveSalesChannel: 'ArchiveSalesChannel',
825
+ UnarchiveSalesChannel: 'UnarchiveSalesChannel',
826
+ PublishSalesChannel: 'PublishSalesChannel',
827
+ UnpublishSalesChannel: 'UnpublishSalesChannel',
828
+ CloneSalesChannel: 'CloneSalesChannel',
829
+ ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
830
+ CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
831
+ UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
832
+ UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
833
+ ViewSubscriptions: 'ViewSubscriptions',
834
+ ViewInvoices: 'ViewInvoices',
835
+ EditAccountsBills: 'EditAccountsBills',
836
+ ViewAccountsBills: 'ViewAccountsBills',
837
+ EditAccountsCategories: 'EditAccountsCategories',
838
+ ViewAccountsCategories: 'ViewAccountsCategories',
839
+ EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
840
+ ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
841
+ EditAccountsCreditBooks: 'EditAccountsCreditBooks',
842
+ ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
843
+ EditAccountsExpenses: 'EditAccountsExpenses',
844
+ ViewAccountsExpenses: 'ViewAccountsExpenses',
845
+ EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
846
+ ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
847
+ EditDocumentExplorer: 'EditDocumentExplorer',
848
+ ViewDocumentExplorer: 'ViewDocumentExplorer',
849
+ ViewInventoryReports: 'ViewInventoryReports',
850
+ EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
851
+ ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
852
+ EditInventoryStockItems: 'EditInventoryStockItems',
853
+ ViewInventoryStockItems: 'ViewInventoryStockItems',
854
+ EditInventorySupplier: 'EditInventorySupplier',
855
+ ViewInventorySupplier: 'ViewInventorySupplier',
856
+ EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
857
+ ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
858
+ ViewPayrollReports: 'ViewPayrollReports',
859
+ EditPayrollHoliday: 'EditPayrollHoliday',
860
+ ViewPayrollHoliday: 'ViewPayrollHoliday',
861
+ EditPayrollRota: 'EditPayrollRota',
862
+ ViewPayrollRota: 'ViewPayrollRota',
863
+ EditPayrollStaff: 'EditPayrollStaff',
864
+ ViewPayrollStaff: 'ViewPayrollStaff',
865
+ ViewSalesReports: 'ViewSalesReports',
866
+ ViewCostReports: 'ViewCostReports',
867
+ ViewMenuReports: 'ViewMenuReports',
868
+ ViewBrand: 'ViewBrand',
869
+ EditBrand: 'EditBrand',
870
+ CreateBrand: 'CreateBrand',
871
+ TransferBrand: 'TransferBrand',
872
+ ViewProperty: 'ViewProperty',
873
+ EditProperty: 'EditProperty',
874
+ CreateProperty: 'CreateProperty',
875
+ ArchiveProperty: 'ArchiveProperty',
876
+ ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
877
+ EditEntityFeatureFlags: 'EditEntityFeatureFlags',
878
+ CreateOrg: 'CreateOrg',
879
+ EditOrg: 'EditOrg',
880
+ ViewOrg: 'ViewOrg',
881
+ ViewWebhooks: 'ViewWebhooks',
882
+ EditWebhooks: 'EditWebhooks',
883
+ RoleAdmin: 'RoleAdmin',
884
+ RoleFactory: 'RoleFactory'
885
+ };
886
+ exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
887
+ Main: 'Main',
888
+ BrandOverride: 'BrandOverride',
889
+ OrgOverride: 'OrgOverride',
890
+ Forbidden: 'Forbidden',
891
+ NamedRole: 'NamedRole'
892
+ };
893
+ exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
894
+ Property: 'Property',
895
+ Org: 'Org',
896
+ Brand: 'Brand',
897
+ SalesChannel: 'SalesChannel'
898
+ };
899
+ exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = {
900
+ User: 'User',
901
+ Automation: 'Automation'
902
+ };
903
+ exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
904
+ Property: 'Property',
905
+ Org: 'Org',
906
+ Brand: 'Brand',
907
+ SalesChannel: 'SalesChannel'
908
+ };
909
+ exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
910
+ AnyAuditLogs: 'AnyAuditLogs',
911
+ ViewApp: 'ViewApp',
912
+ CreateApp: 'CreateApp',
913
+ UpdateApp: 'UpdateApp',
914
+ ViewAppName: 'ViewAppName',
915
+ EditAppAssets: 'EditAppAssets',
916
+ EditAppFeatures: 'EditAppFeatures',
917
+ ViewTeammates: 'ViewTeammates',
918
+ EditTeammates: 'EditTeammates',
919
+ CreateTeammateOwner: 'CreateTeammateOwner',
920
+ CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
921
+ CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
922
+ CreateTeammateStoreManager: 'CreateTeammateStoreManager',
923
+ CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
924
+ CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
925
+ CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
926
+ CreateTeammateIntegrator: 'CreateTeammateIntegrator',
927
+ CreateTeammateOnboarding: 'CreateTeammateOnboarding',
928
+ CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
929
+ CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
930
+ ViewApmConfigurations: 'ViewApmConfigurations',
931
+ EditApmConfigurations: 'EditApmConfigurations',
932
+ ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
933
+ CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
934
+ UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
935
+ DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
936
+ StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
937
+ ViewDevelopersSettings: 'ViewDevelopersSettings',
938
+ EditDevelopersSettings: 'EditDevelopersSettings',
939
+ ViewOrders: 'ViewOrders',
940
+ UpdateOrdersAccept: 'UpdateOrdersAccept',
941
+ UpdateOrdersReject: 'UpdateOrdersReject',
942
+ UpdateOrdersRefund: 'UpdateOrdersRefund',
943
+ UpdateOrdersDispatch: 'UpdateOrdersDispatch',
944
+ ViewStores: 'ViewStores',
945
+ CreateStores: 'CreateStores',
946
+ EditStores: 'EditStores',
947
+ ViewStoresOpeningHours: 'ViewStoresOpeningHours',
948
+ UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
949
+ UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
950
+ ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
951
+ EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
952
+ EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
953
+ UpdateStoresName: 'UpdateStoresName',
954
+ EditStoreKioskSettings: 'EditStoreKioskSettings',
955
+ EditStoreOrderCapacity: 'EditStoreOrderCapacity',
956
+ EditStoreNotifications: 'EditStoreNotifications',
957
+ ArchiveStores: 'ArchiveStores',
958
+ PublishStores: 'PublishStores',
959
+ UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
960
+ UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
961
+ ViewStoreGroups: 'ViewStoreGroups',
962
+ CreateStoreGroups: 'CreateStoreGroups',
963
+ UpdateStoreGroups: 'UpdateStoreGroups',
964
+ DeleteStoreGroups: 'DeleteStoreGroups',
965
+ ViewDeliveryZones: 'ViewDeliveryZones',
966
+ CreateDeliveryZones: 'CreateDeliveryZones',
967
+ UpdateDeliveryZones: 'UpdateDeliveryZones',
968
+ DeleteDeliveryZones: 'DeleteDeliveryZones',
969
+ ViewMenu: 'ViewMenu',
970
+ CreateMenu: 'CreateMenu',
971
+ UpdateMenu: 'UpdateMenu',
972
+ DeleteMenu: 'DeleteMenu',
973
+ UpdateMenuLock: 'UpdateMenuLock',
974
+ UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
975
+ EditMenuImage: 'EditMenuImage',
976
+ ViewVouchers: 'ViewVouchers',
977
+ EditVouchers: 'EditVouchers',
978
+ ViewWebsiteContent: 'ViewWebsiteContent',
979
+ EditWebsiteContent: 'EditWebsiteContent',
980
+ ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
981
+ ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
982
+ ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
983
+ ViewBankAccounts: 'ViewBankAccounts',
984
+ CreateBankAccounts: 'CreateBankAccounts',
985
+ UpdateBankAccounts: 'UpdateBankAccounts',
986
+ UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
987
+ ViewAssignedBankAccount: 'ViewAssignedBankAccount',
988
+ VerifyBankAccounts: 'VerifyBankAccounts',
989
+ ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
990
+ EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
991
+ EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
992
+ EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
993
+ ViewHydraConfig: 'ViewHydraConfig',
994
+ UpdateHydraConfigManage: 'UpdateHydraConfigManage',
995
+ InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
996
+ DeleteTerminal: 'DeleteTerminal',
997
+ ViewKioskTelemetry: 'ViewKioskTelemetry',
998
+ ViewCustomers: 'ViewCustomers',
999
+ EditCustomers: 'EditCustomers',
1000
+ CreateCustomers: 'CreateCustomers',
1001
+ CreateCatalogElements: 'CreateCatalogElements',
1002
+ UpdateCatalogElements: 'UpdateCatalogElements',
1003
+ ViewCatalogElements: 'ViewCatalogElements',
1004
+ DeleteCatalogElements: 'DeleteCatalogElements',
1005
+ ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
1006
+ CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
1007
+ UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
1008
+ DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
1009
+ UpdateMetafields: 'UpdateMetafields',
1010
+ ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
1011
+ PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
1012
+ ViewAppStatistics: 'ViewAppStatistics',
1013
+ ViewApmStatistics: 'ViewApmStatistics',
1014
+ ViewCampaignsStatistics: 'ViewCampaignsStatistics',
1015
+ ViewCustomerStatistics: 'ViewCustomerStatistics',
1016
+ ViewLiveStatistics: 'ViewLiveStatistics',
1017
+ ViewOrderStatistics: 'ViewOrderStatistics',
1018
+ ViewSalesStatistics: 'ViewSalesStatistics',
1019
+ ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
1020
+ ViewVouchersStatistics: 'ViewVouchersStatistics',
1021
+ DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
1022
+ ViewApmAuditLogs: 'ViewApmAuditLogs',
1023
+ ViewStoreAuditLogs: 'ViewStoreAuditLogs',
1024
+ ViewMenuAuditLogs: 'ViewMenuAuditLogs',
1025
+ ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
1026
+ ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
1027
+ ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
1028
+ ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
1029
+ ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
1030
+ ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
1031
+ ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
1032
+ ViewAppAuditLogs: 'ViewAppAuditLogs',
1033
+ ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
1034
+ ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
1035
+ ViewHydraAuditLogs: 'ViewHydraAuditLogs',
1036
+ ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
1037
+ ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
1038
+ ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
1039
+ ViewExternalAuditLogs: 'ViewExternalAuditLogs',
1040
+ CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
1041
+ ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
1042
+ ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
1043
+ ViewChannelAuditLogs: 'ViewChannelAuditLogs',
1044
+ ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
1045
+ SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
1046
+ InviteDriverToApp: 'InviteDriverToApp',
1047
+ GetDriverForApp: 'GetDriverForApp',
1048
+ RemoveDriverFromApp: 'RemoveDriverFromApp',
1049
+ AssignDriverToOrder: 'AssignDriverToOrder',
1050
+ UnassignDriverFromOrder: 'UnassignDriverFromOrder',
1051
+ UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
1052
+ UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
1053
+ ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
1054
+ CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
1055
+ UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
1056
+ DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
1057
+ ViewPayouts: 'ViewPayouts',
1058
+ ViewChannels: 'ViewChannels',
1059
+ ViewOnboarding: 'ViewOnboarding',
1060
+ UpdateOnboarding: 'UpdateOnboarding',
1061
+ ViewClientDevices: 'ViewClientDevices',
1062
+ UpdateClientDevices: 'UpdateClientDevices',
1063
+ EnrollClientDevices: 'EnrollClientDevices',
1064
+ AssignClientDevices: 'AssignClientDevices',
1065
+ ViewClientAuditLogs: 'ViewClientAuditLogs',
1066
+ CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
1067
+ ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
1068
+ UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
1069
+ DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
1070
+ UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
1071
+ CreateAppStoreSubscription: 'CreateAppStoreSubscription',
1072
+ UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
1073
+ DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
1074
+ ViewSalesChannels: 'ViewSalesChannels',
1075
+ EditSalesChannels: 'EditSalesChannels',
1076
+ CreateSalesChannel: 'CreateSalesChannel',
1077
+ ArchiveSalesChannel: 'ArchiveSalesChannel',
1078
+ UnarchiveSalesChannel: 'UnarchiveSalesChannel',
1079
+ PublishSalesChannel: 'PublishSalesChannel',
1080
+ UnpublishSalesChannel: 'UnpublishSalesChannel',
1081
+ CloneSalesChannel: 'CloneSalesChannel',
1082
+ ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
1083
+ CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
1084
+ UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
1085
+ UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
1086
+ ViewSubscriptions: 'ViewSubscriptions',
1087
+ ViewInvoices: 'ViewInvoices',
1088
+ EditAccountsBills: 'EditAccountsBills',
1089
+ ViewAccountsBills: 'ViewAccountsBills',
1090
+ EditAccountsCategories: 'EditAccountsCategories',
1091
+ ViewAccountsCategories: 'ViewAccountsCategories',
1092
+ EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
1093
+ ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
1094
+ EditAccountsCreditBooks: 'EditAccountsCreditBooks',
1095
+ ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
1096
+ EditAccountsExpenses: 'EditAccountsExpenses',
1097
+ ViewAccountsExpenses: 'ViewAccountsExpenses',
1098
+ EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
1099
+ ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
1100
+ EditDocumentExplorer: 'EditDocumentExplorer',
1101
+ ViewDocumentExplorer: 'ViewDocumentExplorer',
1102
+ ViewInventoryReports: 'ViewInventoryReports',
1103
+ EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
1104
+ ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
1105
+ EditInventoryStockItems: 'EditInventoryStockItems',
1106
+ ViewInventoryStockItems: 'ViewInventoryStockItems',
1107
+ EditInventorySupplier: 'EditInventorySupplier',
1108
+ ViewInventorySupplier: 'ViewInventorySupplier',
1109
+ EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
1110
+ ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
1111
+ ViewPayrollReports: 'ViewPayrollReports',
1112
+ EditPayrollHoliday: 'EditPayrollHoliday',
1113
+ ViewPayrollHoliday: 'ViewPayrollHoliday',
1114
+ EditPayrollRota: 'EditPayrollRota',
1115
+ ViewPayrollRota: 'ViewPayrollRota',
1116
+ EditPayrollStaff: 'EditPayrollStaff',
1117
+ ViewPayrollStaff: 'ViewPayrollStaff',
1118
+ ViewSalesReports: 'ViewSalesReports',
1119
+ ViewCostReports: 'ViewCostReports',
1120
+ ViewMenuReports: 'ViewMenuReports',
1121
+ ViewBrand: 'ViewBrand',
1122
+ EditBrand: 'EditBrand',
1123
+ CreateBrand: 'CreateBrand',
1124
+ TransferBrand: 'TransferBrand',
1125
+ ViewProperty: 'ViewProperty',
1126
+ EditProperty: 'EditProperty',
1127
+ CreateProperty: 'CreateProperty',
1128
+ ArchiveProperty: 'ArchiveProperty',
1129
+ ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
1130
+ EditEntityFeatureFlags: 'EditEntityFeatureFlags',
1131
+ CreateOrg: 'CreateOrg',
1132
+ EditOrg: 'EditOrg',
1133
+ ViewOrg: 'ViewOrg',
1134
+ ViewWebhooks: 'ViewWebhooks',
1135
+ EditWebhooks: 'EditWebhooks',
1136
+ RoleAdmin: 'RoleAdmin',
1137
+ RoleFactory: 'RoleFactory'
1138
+ };
1139
+ exports.IsInRoleRequestRolesEnum = {
1140
+ Admin: 'Admin',
1141
+ Factory: 'Factory'
1142
+ };
1143
+ exports.IsInRoleRequestCheckModeEnum = {
1144
+ Any: 'any',
1145
+ All: 'all'
1146
+ };
1147
+ exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = {
1148
+ Property: 'Property',
1149
+ Org: 'Org',
1150
+ Brand: 'Brand',
1151
+ SalesChannel: 'SalesChannel'
1152
+ };
1153
+ exports.ListOrgRolesSuccessResponseValueValueRolesEnum = {
1154
+ OrgViewer: 'OrgViewer',
1155
+ OrgManager: 'OrgManager',
1156
+ OrgAdmin: 'OrgAdmin',
1157
+ BrandViewer: 'BrandViewer',
1158
+ BrandManager: 'BrandManager',
1159
+ BrandAdmin: 'BrandAdmin',
1160
+ StoreViewer: 'StoreViewer',
1161
+ StoreEditor: 'StoreEditor',
1162
+ StoreManager: 'StoreManager',
1163
+ CustomerViewer: 'CustomerViewer',
1164
+ CustomerManager: 'CustomerManager',
1165
+ VoucherViewer: 'VoucherViewer',
1166
+ VoucherEditor: 'VoucherEditor',
1167
+ VoucherManager: 'VoucherManager',
1168
+ VoucherCampaignManager: 'VoucherCampaignManager',
1169
+ VoucherStatisticsViewer: 'VoucherStatisticsViewer',
1170
+ AnalyticsViewer: 'AnalyticsViewer',
1171
+ ReportsViewer: 'ReportsViewer',
1172
+ FinanceViewer: 'FinanceViewer',
1173
+ FinanceManager: 'FinanceManager',
1174
+ TeamViewer: 'TeamViewer',
1175
+ TeamManager: 'TeamManager',
1176
+ TeamAdmin: 'TeamAdmin',
1177
+ TechViewer: 'TechViewer',
1178
+ TechManager: 'TechManager',
1179
+ AppStoreViewer: 'AppStoreViewer',
1180
+ AppStoreManager: 'AppStoreManager',
1181
+ SalesChannelViewer: 'SalesChannelViewer',
1182
+ SalesChannelEditor: 'SalesChannelEditor',
1183
+ SalesChannelManager: 'SalesChannelManager',
1184
+ DeliveryViewer: 'DeliveryViewer',
1185
+ DeliveryManager: 'DeliveryManager',
1186
+ DriverManager: 'DriverManager',
1187
+ AuditViewer: 'AuditViewer',
1188
+ AuditManager: 'AuditManager',
1189
+ AccountsViewer: 'AccountsViewer',
1190
+ AccountsEditor: 'AccountsEditor',
1191
+ DocumentExplorerViewer: 'DocumentExplorerViewer',
1192
+ DocumentExplorerEditor: 'DocumentExplorerEditor',
1193
+ PayrollViewer: 'PayrollViewer',
1194
+ PayrollEditor: 'PayrollEditor',
1195
+ PropertyViewer: 'PropertyViewer',
1196
+ PropertyManager: 'PropertyManager',
1197
+ PropertyAdmin: 'PropertyAdmin',
1198
+ WebsiteContentEditor: 'WebsiteContentEditor',
1199
+ WebsiteContentViewer: 'WebsiteContentViewer',
1200
+ WebsiteTechViewer: 'WebsiteTechViewer',
1201
+ MenuViewer: 'MenuViewer',
1202
+ MenuEditor: 'MenuEditor',
1203
+ MenuManager: 'MenuManager',
1204
+ MenuMetaFieldManager: 'MenuMetaFieldManager',
1205
+ MenuMetaFieldEditor: 'MenuMetaFieldEditor',
1206
+ MenuMetaFieldViewer: 'MenuMetaFieldViewer',
1207
+ StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
1208
+ StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
1209
+ StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
1210
+ OrderFulfillmentManager: 'OrderFulfillmentManager',
1211
+ OrderManager: 'OrderManager',
1212
+ OrderEditor: 'OrderEditor',
1213
+ OrderViewer: 'OrderViewer',
1214
+ InventoryManager: 'InventoryManager',
1215
+ InventoryEditor: 'InventoryEditor',
1216
+ InventoryViewer: 'InventoryViewer',
1217
+ PaymentManager: 'PaymentManager',
1218
+ OnboardingManager: 'OnboardingManager',
1219
+ FeatureFlagManager: 'FeatureFlagManager',
1220
+ PropertyOwnerMisc: 'PropertyOwnerMisc',
1221
+ ManagedOwnerMisc: 'ManagedOwnerMisc',
1222
+ IntegratorMisc: 'IntegratorMisc',
1223
+ PropertyManagerMisc: 'PropertyManagerMisc',
1224
+ FinanceManagerMisc: 'FinanceManagerMisc',
1225
+ SupportMisc: 'SupportMisc'
1226
+ };
1227
+ exports.ListRolesSuccessResponseRolesEnum = {
1228
+ Admin: 'Admin',
1229
+ Factory: 'Factory'
1230
+ };
1231
+ /**
1232
+ *
1233
+ * @export
1234
+ * @enum {string}
1235
+ */
1236
+ exports.Permissions = {
1237
+ AnyAuditLogs: 'AnyAuditLogs',
1238
+ ViewApp: 'ViewApp',
1239
+ CreateApp: 'CreateApp',
1240
+ UpdateApp: 'UpdateApp',
1241
+ ViewAppName: 'ViewAppName',
1242
+ EditAppAssets: 'EditAppAssets',
1243
+ EditAppFeatures: 'EditAppFeatures',
1244
+ ViewTeammates: 'ViewTeammates',
1245
+ EditTeammates: 'EditTeammates',
1246
+ CreateTeammateOwner: 'CreateTeammateOwner',
1247
+ CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
1248
+ CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
1249
+ CreateTeammateStoreManager: 'CreateTeammateStoreManager',
1250
+ CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
1251
+ CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
1252
+ CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
1253
+ CreateTeammateIntegrator: 'CreateTeammateIntegrator',
1254
+ CreateTeammateOnboarding: 'CreateTeammateOnboarding',
1255
+ CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
1256
+ CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
1257
+ ViewApmConfigurations: 'ViewApmConfigurations',
1258
+ EditApmConfigurations: 'EditApmConfigurations',
1259
+ ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
1260
+ CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
1261
+ UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
1262
+ DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
1263
+ StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
1264
+ ViewDevelopersSettings: 'ViewDevelopersSettings',
1265
+ EditDevelopersSettings: 'EditDevelopersSettings',
1266
+ ViewOrders: 'ViewOrders',
1267
+ UpdateOrdersAccept: 'UpdateOrdersAccept',
1268
+ UpdateOrdersReject: 'UpdateOrdersReject',
1269
+ UpdateOrdersRefund: 'UpdateOrdersRefund',
1270
+ UpdateOrdersDispatch: 'UpdateOrdersDispatch',
1271
+ ViewStores: 'ViewStores',
1272
+ CreateStores: 'CreateStores',
1273
+ EditStores: 'EditStores',
1274
+ ViewStoresOpeningHours: 'ViewStoresOpeningHours',
1275
+ UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
1276
+ UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
1277
+ ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
1278
+ EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
1279
+ EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
1280
+ UpdateStoresName: 'UpdateStoresName',
1281
+ EditStoreKioskSettings: 'EditStoreKioskSettings',
1282
+ EditStoreOrderCapacity: 'EditStoreOrderCapacity',
1283
+ EditStoreNotifications: 'EditStoreNotifications',
1284
+ ArchiveStores: 'ArchiveStores',
1285
+ PublishStores: 'PublishStores',
1286
+ UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
1287
+ UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
1288
+ ViewStoreGroups: 'ViewStoreGroups',
1289
+ CreateStoreGroups: 'CreateStoreGroups',
1290
+ UpdateStoreGroups: 'UpdateStoreGroups',
1291
+ DeleteStoreGroups: 'DeleteStoreGroups',
1292
+ ViewDeliveryZones: 'ViewDeliveryZones',
1293
+ CreateDeliveryZones: 'CreateDeliveryZones',
1294
+ UpdateDeliveryZones: 'UpdateDeliveryZones',
1295
+ DeleteDeliveryZones: 'DeleteDeliveryZones',
1296
+ ViewMenu: 'ViewMenu',
1297
+ CreateMenu: 'CreateMenu',
1298
+ UpdateMenu: 'UpdateMenu',
1299
+ DeleteMenu: 'DeleteMenu',
1300
+ UpdateMenuLock: 'UpdateMenuLock',
1301
+ UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
1302
+ EditMenuImage: 'EditMenuImage',
1303
+ ViewVouchers: 'ViewVouchers',
1304
+ EditVouchers: 'EditVouchers',
1305
+ ViewWebsiteContent: 'ViewWebsiteContent',
1306
+ EditWebsiteContent: 'EditWebsiteContent',
1307
+ ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
1308
+ ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
1309
+ ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
1310
+ ViewBankAccounts: 'ViewBankAccounts',
1311
+ CreateBankAccounts: 'CreateBankAccounts',
1312
+ UpdateBankAccounts: 'UpdateBankAccounts',
1313
+ UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
1314
+ ViewAssignedBankAccount: 'ViewAssignedBankAccount',
1315
+ VerifyBankAccounts: 'VerifyBankAccounts',
1316
+ ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
1317
+ EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
1318
+ EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
1319
+ EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
1320
+ ViewHydraConfig: 'ViewHydraConfig',
1321
+ UpdateHydraConfigManage: 'UpdateHydraConfigManage',
1322
+ InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
1323
+ DeleteTerminal: 'DeleteTerminal',
1324
+ ViewKioskTelemetry: 'ViewKioskTelemetry',
1325
+ ViewCustomers: 'ViewCustomers',
1326
+ EditCustomers: 'EditCustomers',
1327
+ CreateCustomers: 'CreateCustomers',
1328
+ CreateCatalogElements: 'CreateCatalogElements',
1329
+ UpdateCatalogElements: 'UpdateCatalogElements',
1330
+ ViewCatalogElements: 'ViewCatalogElements',
1331
+ DeleteCatalogElements: 'DeleteCatalogElements',
1332
+ ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
1333
+ CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
1334
+ UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
1335
+ DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
1336
+ UpdateMetafields: 'UpdateMetafields',
1337
+ ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
1338
+ PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
1339
+ ViewAppStatistics: 'ViewAppStatistics',
1340
+ ViewApmStatistics: 'ViewApmStatistics',
1341
+ ViewCampaignsStatistics: 'ViewCampaignsStatistics',
1342
+ ViewCustomerStatistics: 'ViewCustomerStatistics',
1343
+ ViewLiveStatistics: 'ViewLiveStatistics',
1344
+ ViewOrderStatistics: 'ViewOrderStatistics',
1345
+ ViewSalesStatistics: 'ViewSalesStatistics',
1346
+ ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
1347
+ ViewVouchersStatistics: 'ViewVouchersStatistics',
1348
+ DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
1349
+ ViewApmAuditLogs: 'ViewApmAuditLogs',
1350
+ ViewStoreAuditLogs: 'ViewStoreAuditLogs',
1351
+ ViewMenuAuditLogs: 'ViewMenuAuditLogs',
1352
+ ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
1353
+ ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
1354
+ ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
1355
+ ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
1356
+ ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
1357
+ ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
1358
+ ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
1359
+ ViewAppAuditLogs: 'ViewAppAuditLogs',
1360
+ ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
1361
+ ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
1362
+ ViewHydraAuditLogs: 'ViewHydraAuditLogs',
1363
+ ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
1364
+ ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
1365
+ ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
1366
+ ViewExternalAuditLogs: 'ViewExternalAuditLogs',
1367
+ CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
1368
+ ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
1369
+ ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
1370
+ ViewChannelAuditLogs: 'ViewChannelAuditLogs',
1371
+ ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
1372
+ SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
1373
+ InviteDriverToApp: 'InviteDriverToApp',
1374
+ GetDriverForApp: 'GetDriverForApp',
1375
+ RemoveDriverFromApp: 'RemoveDriverFromApp',
1376
+ AssignDriverToOrder: 'AssignDriverToOrder',
1377
+ UnassignDriverFromOrder: 'UnassignDriverFromOrder',
1378
+ UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
1379
+ UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
1380
+ ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
1381
+ CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
1382
+ UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
1383
+ DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
1384
+ ViewPayouts: 'ViewPayouts',
1385
+ ViewChannels: 'ViewChannels',
1386
+ ViewOnboarding: 'ViewOnboarding',
1387
+ UpdateOnboarding: 'UpdateOnboarding',
1388
+ ViewClientDevices: 'ViewClientDevices',
1389
+ UpdateClientDevices: 'UpdateClientDevices',
1390
+ EnrollClientDevices: 'EnrollClientDevices',
1391
+ AssignClientDevices: 'AssignClientDevices',
1392
+ ViewClientAuditLogs: 'ViewClientAuditLogs',
1393
+ CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
1394
+ ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
1395
+ UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
1396
+ DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
1397
+ UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
1398
+ CreateAppStoreSubscription: 'CreateAppStoreSubscription',
1399
+ UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
1400
+ DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
1401
+ ViewSalesChannels: 'ViewSalesChannels',
1402
+ EditSalesChannels: 'EditSalesChannels',
1403
+ CreateSalesChannel: 'CreateSalesChannel',
1404
+ ArchiveSalesChannel: 'ArchiveSalesChannel',
1405
+ UnarchiveSalesChannel: 'UnarchiveSalesChannel',
1406
+ PublishSalesChannel: 'PublishSalesChannel',
1407
+ UnpublishSalesChannel: 'UnpublishSalesChannel',
1408
+ CloneSalesChannel: 'CloneSalesChannel',
1409
+ ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
1410
+ CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
1411
+ UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
1412
+ UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
1413
+ ViewSubscriptions: 'ViewSubscriptions',
1414
+ ViewInvoices: 'ViewInvoices',
1415
+ EditAccountsBills: 'EditAccountsBills',
1416
+ ViewAccountsBills: 'ViewAccountsBills',
1417
+ EditAccountsCategories: 'EditAccountsCategories',
1418
+ ViewAccountsCategories: 'ViewAccountsCategories',
1419
+ EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
1420
+ ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
1421
+ EditAccountsCreditBooks: 'EditAccountsCreditBooks',
1422
+ ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
1423
+ EditAccountsExpenses: 'EditAccountsExpenses',
1424
+ ViewAccountsExpenses: 'ViewAccountsExpenses',
1425
+ EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
1426
+ ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
1427
+ EditDocumentExplorer: 'EditDocumentExplorer',
1428
+ ViewDocumentExplorer: 'ViewDocumentExplorer',
1429
+ ViewInventoryReports: 'ViewInventoryReports',
1430
+ EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
1431
+ ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
1432
+ EditInventoryStockItems: 'EditInventoryStockItems',
1433
+ ViewInventoryStockItems: 'ViewInventoryStockItems',
1434
+ EditInventorySupplier: 'EditInventorySupplier',
1435
+ ViewInventorySupplier: 'ViewInventorySupplier',
1436
+ EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
1437
+ ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
1438
+ ViewPayrollReports: 'ViewPayrollReports',
1439
+ EditPayrollHoliday: 'EditPayrollHoliday',
1440
+ ViewPayrollHoliday: 'ViewPayrollHoliday',
1441
+ EditPayrollRota: 'EditPayrollRota',
1442
+ ViewPayrollRota: 'ViewPayrollRota',
1443
+ EditPayrollStaff: 'EditPayrollStaff',
1444
+ ViewPayrollStaff: 'ViewPayrollStaff',
1445
+ ViewSalesReports: 'ViewSalesReports',
1446
+ ViewCostReports: 'ViewCostReports',
1447
+ ViewMenuReports: 'ViewMenuReports',
1448
+ ViewBrand: 'ViewBrand',
1449
+ EditBrand: 'EditBrand',
1450
+ CreateBrand: 'CreateBrand',
1451
+ TransferBrand: 'TransferBrand',
1452
+ ViewProperty: 'ViewProperty',
1453
+ EditProperty: 'EditProperty',
1454
+ CreateProperty: 'CreateProperty',
1455
+ ArchiveProperty: 'ArchiveProperty',
1456
+ ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
1457
+ EditEntityFeatureFlags: 'EditEntityFeatureFlags',
1458
+ CreateOrg: 'CreateOrg',
1459
+ EditOrg: 'EditOrg',
1460
+ ViewOrg: 'ViewOrg',
1461
+ ViewWebhooks: 'ViewWebhooks',
1462
+ EditWebhooks: 'EditWebhooks',
1463
+ RoleAdmin: 'RoleAdmin',
1464
+ RoleFactory: 'RoleFactory'
1465
+ };
1466
+ exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
1467
+ OwnerCompensating: 'OwnerCompensating',
1468
+ PropertyOwnerCompensating: 'PropertyOwnerCompensating',
1469
+ ManagedOwnerCompensating: 'ManagedOwnerCompensating',
1470
+ IntegratorCompensating: 'IntegratorCompensating',
1471
+ PropertyManagerCompensating: 'PropertyManagerCompensating',
1472
+ FinanceManagerCompensating: 'FinanceManagerCompensating'
1473
+ };
1474
+ exports.RevokeRoleRequestBodyRoleEnum = {
1475
+ OrgViewer: 'OrgViewer',
1476
+ OrgManager: 'OrgManager',
1477
+ OrgAdmin: 'OrgAdmin',
1478
+ BrandViewer: 'BrandViewer',
1479
+ BrandManager: 'BrandManager',
1480
+ BrandAdmin: 'BrandAdmin',
1481
+ StoreViewer: 'StoreViewer',
1482
+ StoreEditor: 'StoreEditor',
1483
+ StoreManager: 'StoreManager',
1484
+ CustomerViewer: 'CustomerViewer',
1485
+ CustomerManager: 'CustomerManager',
1486
+ VoucherViewer: 'VoucherViewer',
1487
+ VoucherEditor: 'VoucherEditor',
1488
+ VoucherManager: 'VoucherManager',
1489
+ VoucherCampaignManager: 'VoucherCampaignManager',
1490
+ VoucherStatisticsViewer: 'VoucherStatisticsViewer',
1491
+ AnalyticsViewer: 'AnalyticsViewer',
1492
+ ReportsViewer: 'ReportsViewer',
1493
+ FinanceViewer: 'FinanceViewer',
1494
+ FinanceManager: 'FinanceManager',
1495
+ TeamViewer: 'TeamViewer',
1496
+ TeamManager: 'TeamManager',
1497
+ TeamAdmin: 'TeamAdmin',
1498
+ TechViewer: 'TechViewer',
1499
+ TechManager: 'TechManager',
1500
+ AppStoreViewer: 'AppStoreViewer',
1501
+ AppStoreManager: 'AppStoreManager',
1502
+ SalesChannelViewer: 'SalesChannelViewer',
1503
+ SalesChannelEditor: 'SalesChannelEditor',
1504
+ SalesChannelManager: 'SalesChannelManager',
1505
+ DeliveryViewer: 'DeliveryViewer',
1506
+ DeliveryManager: 'DeliveryManager',
1507
+ DriverManager: 'DriverManager',
1508
+ AuditViewer: 'AuditViewer',
1509
+ AuditManager: 'AuditManager',
1510
+ AccountsViewer: 'AccountsViewer',
1511
+ AccountsEditor: 'AccountsEditor',
1512
+ DocumentExplorerViewer: 'DocumentExplorerViewer',
1513
+ DocumentExplorerEditor: 'DocumentExplorerEditor',
1514
+ PayrollViewer: 'PayrollViewer',
1515
+ PayrollEditor: 'PayrollEditor',
1516
+ PropertyViewer: 'PropertyViewer',
1517
+ PropertyManager: 'PropertyManager',
1518
+ PropertyAdmin: 'PropertyAdmin',
1519
+ WebsiteContentEditor: 'WebsiteContentEditor',
1520
+ WebsiteContentViewer: 'WebsiteContentViewer',
1521
+ WebsiteTechViewer: 'WebsiteTechViewer',
1522
+ MenuViewer: 'MenuViewer',
1523
+ MenuEditor: 'MenuEditor',
1524
+ MenuManager: 'MenuManager',
1525
+ MenuMetaFieldManager: 'MenuMetaFieldManager',
1526
+ MenuMetaFieldEditor: 'MenuMetaFieldEditor',
1527
+ MenuMetaFieldViewer: 'MenuMetaFieldViewer',
1528
+ StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
1529
+ StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
1530
+ StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
1531
+ OrderFulfillmentManager: 'OrderFulfillmentManager',
1532
+ OrderManager: 'OrderManager',
1533
+ OrderEditor: 'OrderEditor',
1534
+ OrderViewer: 'OrderViewer',
1535
+ InventoryManager: 'InventoryManager',
1536
+ InventoryEditor: 'InventoryEditor',
1537
+ InventoryViewer: 'InventoryViewer',
1538
+ PaymentManager: 'PaymentManager',
1539
+ OnboardingManager: 'OnboardingManager',
1540
+ FeatureFlagManager: 'FeatureFlagManager',
1541
+ PropertyOwnerMisc: 'PropertyOwnerMisc',
1542
+ ManagedOwnerMisc: 'ManagedOwnerMisc',
1543
+ IntegratorMisc: 'IntegratorMisc',
1544
+ PropertyManagerMisc: 'PropertyManagerMisc',
1545
+ FinanceManagerMisc: 'FinanceManagerMisc',
1546
+ SupportMisc: 'SupportMisc'
1547
+ };
1548
+ /**
1549
+ * AuthenticationApi - axios parameter creator
1550
+ * @export
1551
+ */
1552
+ var AuthenticationApiAxiosParamCreator = function (configuration) {
1553
+ var _this = this;
1554
+ return {
1555
+ /**
1556
+ * Authenticate and authorize a user to perform an action
1557
+ * @summary Authenticate and authorize Request
1558
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1559
+ * @param {*} [options] Override http request option.
1560
+ * @throws {RequiredError}
1561
+ */
1562
+ authenticateAndAuthorize: function (authenticateAndAuthorizeRequest_1) {
1563
+ var args_1 = [];
1564
+ for (var _i = 1; _i < arguments.length; _i++) {
1565
+ args_1[_i - 1] = arguments[_i];
1566
+ }
1567
+ return __awaiter(_this, __spreadArray([authenticateAndAuthorizeRequest_1], args_1, true), void 0, function (authenticateAndAuthorizeRequest, options) {
1568
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1569
+ if (options === void 0) { options = {}; }
1570
+ return __generator(this, function (_a) {
1571
+ switch (_a.label) {
1572
+ case 0:
1573
+ // verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined
1574
+ (0, common_1.assertParamExists)('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest);
1575
+ localVarPath = "/authenticateAndAuthorize";
1576
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1577
+ if (configuration) {
1578
+ baseOptions = configuration.baseOptions;
1579
+ }
1580
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1581
+ localVarHeaderParameter = {};
1582
+ localVarQueryParameter = {};
1583
+ // authentication ApiKeyAuth required
1584
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1585
+ case 1:
1586
+ // authentication ApiKeyAuth required
1587
+ _a.sent();
1588
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1589
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1590
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1591
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1592
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration);
1593
+ return [2 /*return*/, {
1594
+ url: (0, common_1.toPathString)(localVarUrlObj),
1595
+ options: localVarRequestOptions,
1596
+ }];
1597
+ }
1598
+ });
1599
+ });
1600
+ },
1601
+ };
1602
+ };
1603
+ exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
1604
+ /**
1605
+ * AuthenticationApi - functional programming interface
1606
+ * @export
1607
+ */
1608
+ var AuthenticationApiFp = function (configuration) {
1609
+ var localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
1610
+ return {
1611
+ /**
1612
+ * Authenticate and authorize a user to perform an action
1613
+ * @summary Authenticate and authorize Request
1614
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1615
+ * @param {*} [options] Override http request option.
1616
+ * @throws {RequiredError}
1617
+ */
1618
+ authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
1619
+ return __awaiter(this, void 0, void 0, function () {
1620
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1621
+ var _a, _b, _c;
1622
+ return __generator(this, function (_d) {
1623
+ switch (_d.label) {
1624
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
1625
+ case 1:
1626
+ localVarAxiosArgs = _d.sent();
1627
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1628
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.authenticateAndAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1629
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1630
+ }
1631
+ });
1632
+ });
1633
+ },
1634
+ };
1635
+ };
1636
+ exports.AuthenticationApiFp = AuthenticationApiFp;
1637
+ /**
1638
+ * AuthenticationApi - factory interface
1639
+ * @export
1640
+ */
1641
+ var AuthenticationApiFactory = function (configuration, basePath, axios) {
1642
+ var localVarFp = (0, exports.AuthenticationApiFp)(configuration);
1643
+ return {
1644
+ /**
1645
+ * Authenticate and authorize a user to perform an action
1646
+ * @summary Authenticate and authorize Request
1647
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1648
+ * @param {*} [options] Override http request option.
1649
+ * @throws {RequiredError}
1650
+ */
1651
+ authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
1652
+ return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
1653
+ },
1654
+ };
1655
+ };
1656
+ exports.AuthenticationApiFactory = AuthenticationApiFactory;
1657
+ /**
1658
+ * AuthenticationApi - object-oriented interface
1659
+ * @export
1660
+ * @class AuthenticationApi
1661
+ * @extends {BaseAPI}
1662
+ */
1663
+ var AuthenticationApi = /** @class */ (function (_super) {
1664
+ __extends(AuthenticationApi, _super);
1665
+ function AuthenticationApi() {
1666
+ return _super !== null && _super.apply(this, arguments) || this;
1667
+ }
1668
+ /**
1669
+ * Authenticate and authorize a user to perform an action
1670
+ * @summary Authenticate and authorize Request
1671
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1672
+ * @param {*} [options] Override http request option.
1673
+ * @throws {RequiredError}
1674
+ * @memberof AuthenticationApi
1675
+ */
1676
+ AuthenticationApi.prototype.authenticateAndAuthorize = function (authenticateAndAuthorizeRequest, options) {
1677
+ var _this = this;
1678
+ return (0, exports.AuthenticationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1679
+ };
1680
+ return AuthenticationApi;
1681
+ }(base_1.BaseAPI));
1682
+ exports.AuthenticationApi = AuthenticationApi;
1683
+ /**
1684
+ * AuthorizationApi - axios parameter creator
1685
+ * @export
1686
+ */
1687
+ var AuthorizationApiAxiosParamCreator = function (configuration) {
1688
+ var _this = this;
1689
+ return {
1690
+ /**
1691
+ * Authenticate and authorize a user to perform an action
1692
+ * @summary Authenticate and authorize Request
1693
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1694
+ * @param {*} [options] Override http request option.
1695
+ * @throws {RequiredError}
1696
+ */
1697
+ authenticateAndAuthorize: function (authenticateAndAuthorizeRequest_1) {
1698
+ var args_1 = [];
1699
+ for (var _i = 1; _i < arguments.length; _i++) {
1700
+ args_1[_i - 1] = arguments[_i];
1701
+ }
1702
+ return __awaiter(_this, __spreadArray([authenticateAndAuthorizeRequest_1], args_1, true), void 0, function (authenticateAndAuthorizeRequest, options) {
1703
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1704
+ if (options === void 0) { options = {}; }
1705
+ return __generator(this, function (_a) {
1706
+ switch (_a.label) {
1707
+ case 0:
1708
+ // verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined
1709
+ (0, common_1.assertParamExists)('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest);
1710
+ localVarPath = "/authenticateAndAuthorize";
1711
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1712
+ if (configuration) {
1713
+ baseOptions = configuration.baseOptions;
1714
+ }
1715
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1716
+ localVarHeaderParameter = {};
1717
+ localVarQueryParameter = {};
1718
+ // authentication ApiKeyAuth required
1719
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1720
+ case 1:
1721
+ // authentication ApiKeyAuth required
1722
+ _a.sent();
1723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1724
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1725
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1726
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1727
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration);
1728
+ return [2 /*return*/, {
1729
+ url: (0, common_1.toPathString)(localVarUrlObj),
1730
+ options: localVarRequestOptions,
1731
+ }];
1732
+ }
1733
+ });
1734
+ });
1735
+ },
1736
+ /**
1737
+ * Authenticate and check if a user is in any/all of the roles
1738
+ * @summary Authenticate and Check Is In Role
1739
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
1740
+ * @param {*} [options] Override http request option.
1741
+ * @throws {RequiredError}
1742
+ */
1743
+ authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest_1) {
1744
+ var args_1 = [];
1745
+ for (var _i = 1; _i < arguments.length; _i++) {
1746
+ args_1[_i - 1] = arguments[_i];
1747
+ }
1748
+ return __awaiter(_this, __spreadArray([authenticateAndCheckIsInRoleRequest_1], args_1, true), void 0, function (authenticateAndCheckIsInRoleRequest, options) {
1749
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1750
+ if (options === void 0) { options = {}; }
1751
+ return __generator(this, function (_a) {
1752
+ switch (_a.label) {
1753
+ case 0:
1754
+ localVarPath = "/authenticateAndCheckIsInRole";
1755
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1756
+ if (configuration) {
1757
+ baseOptions = configuration.baseOptions;
1758
+ }
1759
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1760
+ localVarHeaderParameter = {};
1761
+ localVarQueryParameter = {};
1762
+ // authentication ApiKeyAuth required
1763
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1764
+ case 1:
1765
+ // authentication ApiKeyAuth required
1766
+ _a.sent();
1767
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1768
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1769
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1770
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1771
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndCheckIsInRoleRequest, localVarRequestOptions, configuration);
1772
+ return [2 /*return*/, {
1773
+ url: (0, common_1.toPathString)(localVarUrlObj),
1774
+ options: localVarRequestOptions,
1775
+ }];
1776
+ }
1777
+ });
1778
+ });
1779
+ },
1780
+ /**
1781
+ * Check if a user is authorized to perform an action
1782
+ * @summary Authorize Request
1783
+ * @param {AuthorizationRequest} [authorizationRequest]
1784
+ * @param {*} [options] Override http request option.
1785
+ * @throws {RequiredError}
1786
+ */
1787
+ authorize: function (authorizationRequest_1) {
1788
+ var args_1 = [];
1789
+ for (var _i = 1; _i < arguments.length; _i++) {
1790
+ args_1[_i - 1] = arguments[_i];
1791
+ }
1792
+ return __awaiter(_this, __spreadArray([authorizationRequest_1], args_1, true), void 0, function (authorizationRequest, options) {
1793
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1794
+ if (options === void 0) { options = {}; }
1795
+ return __generator(this, function (_a) {
1796
+ switch (_a.label) {
1797
+ case 0:
1798
+ localVarPath = "/authorize";
1799
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1800
+ if (configuration) {
1801
+ baseOptions = configuration.baseOptions;
1802
+ }
1803
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1804
+ localVarHeaderParameter = {};
1805
+ localVarQueryParameter = {};
1806
+ // authentication ApiKeyAuth required
1807
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1808
+ case 1:
1809
+ // authentication ApiKeyAuth required
1810
+ _a.sent();
1811
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1812
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1813
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1814
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1815
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authorizationRequest, localVarRequestOptions, configuration);
1816
+ return [2 /*return*/, {
1817
+ url: (0, common_1.toPathString)(localVarUrlObj),
1818
+ options: localVarRequestOptions,
1819
+ }];
1820
+ }
1821
+ });
1822
+ });
1823
+ },
1824
+ /**
1825
+ * Check if a user is authorized to perform an action on multiple resources
1826
+ * @summary Authorize Batch Request
1827
+ * @param {AuthorizationBatchRequest} [authorizationBatchRequest]
1828
+ * @param {*} [options] Override http request option.
1829
+ * @throws {RequiredError}
1830
+ */
1831
+ authorizeBatch: function (authorizationBatchRequest_1) {
1832
+ var args_1 = [];
1833
+ for (var _i = 1; _i < arguments.length; _i++) {
1834
+ args_1[_i - 1] = arguments[_i];
1835
+ }
1836
+ return __awaiter(_this, __spreadArray([authorizationBatchRequest_1], args_1, true), void 0, function (authorizationBatchRequest, options) {
1837
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1838
+ if (options === void 0) { options = {}; }
1839
+ return __generator(this, function (_a) {
1840
+ switch (_a.label) {
1841
+ case 0:
1842
+ localVarPath = "/authorize/batch";
1843
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1844
+ if (configuration) {
1845
+ baseOptions = configuration.baseOptions;
1846
+ }
1847
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1848
+ localVarHeaderParameter = {};
1849
+ localVarQueryParameter = {};
1850
+ // authentication ApiKeyAuth required
1851
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1852
+ case 1:
1853
+ // authentication ApiKeyAuth required
1854
+ _a.sent();
1855
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1856
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1857
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1858
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1859
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authorizationBatchRequest, localVarRequestOptions, configuration);
1860
+ return [2 /*return*/, {
1861
+ url: (0, common_1.toPathString)(localVarUrlObj),
1862
+ options: localVarRequestOptions,
1863
+ }];
1864
+ }
1865
+ });
1866
+ });
1867
+ },
1868
+ /**
1869
+ * Check if a user is in any/all of the roles
1870
+ * @summary Check Is In Role
1871
+ * @param {IsInRoleRequest} [isInRoleRequest]
1872
+ * @param {*} [options] Override http request option.
1873
+ * @throws {RequiredError}
1874
+ */
1875
+ checkIsInRole: function (isInRoleRequest_1) {
1876
+ var args_1 = [];
1877
+ for (var _i = 1; _i < arguments.length; _i++) {
1878
+ args_1[_i - 1] = arguments[_i];
1879
+ }
1880
+ return __awaiter(_this, __spreadArray([isInRoleRequest_1], args_1, true), void 0, function (isInRoleRequest, options) {
1881
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1882
+ if (options === void 0) { options = {}; }
1883
+ return __generator(this, function (_a) {
1884
+ switch (_a.label) {
1885
+ case 0:
1886
+ localVarPath = "/checkIsInRole";
1887
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1888
+ if (configuration) {
1889
+ baseOptions = configuration.baseOptions;
1890
+ }
1891
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1892
+ localVarHeaderParameter = {};
1893
+ localVarQueryParameter = {};
1894
+ // authentication ApiKeyAuth required
1895
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1896
+ case 1:
1897
+ // authentication ApiKeyAuth required
1898
+ _a.sent();
1899
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1900
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1901
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1902
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1903
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(isInRoleRequest, localVarRequestOptions, configuration);
1904
+ return [2 /*return*/, {
1905
+ url: (0, common_1.toPathString)(localVarUrlObj),
1906
+ options: localVarRequestOptions,
1907
+ }];
1908
+ }
1909
+ });
1910
+ });
1911
+ },
1912
+ };
1913
+ };
1914
+ exports.AuthorizationApiAxiosParamCreator = AuthorizationApiAxiosParamCreator;
1915
+ /**
1916
+ * AuthorizationApi - functional programming interface
1917
+ * @export
1918
+ */
1919
+ var AuthorizationApiFp = function (configuration) {
1920
+ var localVarAxiosParamCreator = (0, exports.AuthorizationApiAxiosParamCreator)(configuration);
1921
+ return {
1922
+ /**
1923
+ * Authenticate and authorize a user to perform an action
1924
+ * @summary Authenticate and authorize Request
1925
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1926
+ * @param {*} [options] Override http request option.
1927
+ * @throws {RequiredError}
1928
+ */
1929
+ authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
1930
+ return __awaiter(this, void 0, void 0, function () {
1931
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1932
+ var _a, _b, _c;
1933
+ return __generator(this, function (_d) {
1934
+ switch (_d.label) {
1935
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
1936
+ case 1:
1937
+ localVarAxiosArgs = _d.sent();
1938
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1939
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authenticateAndAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1940
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1941
+ }
1942
+ });
1943
+ });
1944
+ },
1945
+ /**
1946
+ * Authenticate and check if a user is in any/all of the roles
1947
+ * @summary Authenticate and Check Is In Role
1948
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
1949
+ * @param {*} [options] Override http request option.
1950
+ * @throws {RequiredError}
1951
+ */
1952
+ authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest, options) {
1953
+ return __awaiter(this, void 0, void 0, function () {
1954
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1955
+ var _a, _b, _c;
1956
+ return __generator(this, function (_d) {
1957
+ switch (_d.label) {
1958
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options)];
1959
+ case 1:
1960
+ localVarAxiosArgs = _d.sent();
1961
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1962
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authenticateAndCheckIsInRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1963
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1964
+ }
1965
+ });
1966
+ });
1967
+ },
1968
+ /**
1969
+ * Check if a user is authorized to perform an action
1970
+ * @summary Authorize Request
1971
+ * @param {AuthorizationRequest} [authorizationRequest]
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ authorize: function (authorizationRequest, options) {
1976
+ return __awaiter(this, void 0, void 0, function () {
1977
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1978
+ var _a, _b, _c;
1979
+ return __generator(this, function (_d) {
1980
+ switch (_d.label) {
1981
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.authorize(authorizationRequest, options)];
1982
+ case 1:
1983
+ localVarAxiosArgs = _d.sent();
1984
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1985
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1986
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1987
+ }
1988
+ });
1989
+ });
1990
+ },
1991
+ /**
1992
+ * Check if a user is authorized to perform an action on multiple resources
1993
+ * @summary Authorize Batch Request
1994
+ * @param {AuthorizationBatchRequest} [authorizationBatchRequest]
1995
+ * @param {*} [options] Override http request option.
1996
+ * @throws {RequiredError}
1997
+ */
1998
+ authorizeBatch: function (authorizationBatchRequest, options) {
1999
+ return __awaiter(this, void 0, void 0, function () {
2000
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2001
+ var _a, _b, _c;
2002
+ return __generator(this, function (_d) {
2003
+ switch (_d.label) {
2004
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.authorizeBatch(authorizationBatchRequest, options)];
2005
+ case 1:
2006
+ localVarAxiosArgs = _d.sent();
2007
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2008
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authorizeBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2009
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2010
+ }
2011
+ });
2012
+ });
2013
+ },
2014
+ /**
2015
+ * Check if a user is in any/all of the roles
2016
+ * @summary Check Is In Role
2017
+ * @param {IsInRoleRequest} [isInRoleRequest]
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ */
2021
+ checkIsInRole: function (isInRoleRequest, options) {
2022
+ return __awaiter(this, void 0, void 0, function () {
2023
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2024
+ var _a, _b, _c;
2025
+ return __generator(this, function (_d) {
2026
+ switch (_d.label) {
2027
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.checkIsInRole(isInRoleRequest, options)];
2028
+ case 1:
2029
+ localVarAxiosArgs = _d.sent();
2030
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2031
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.checkIsInRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2032
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2033
+ }
2034
+ });
2035
+ });
2036
+ },
2037
+ };
2038
+ };
2039
+ exports.AuthorizationApiFp = AuthorizationApiFp;
2040
+ /**
2041
+ * AuthorizationApi - factory interface
2042
+ * @export
2043
+ */
2044
+ var AuthorizationApiFactory = function (configuration, basePath, axios) {
2045
+ var localVarFp = (0, exports.AuthorizationApiFp)(configuration);
2046
+ return {
2047
+ /**
2048
+ * Authenticate and authorize a user to perform an action
2049
+ * @summary Authenticate and authorize Request
2050
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
2051
+ * @param {*} [options] Override http request option.
2052
+ * @throws {RequiredError}
2053
+ */
2054
+ authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
2055
+ return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
2056
+ },
2057
+ /**
2058
+ * Authenticate and check if a user is in any/all of the roles
2059
+ * @summary Authenticate and Check Is In Role
2060
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
2061
+ * @param {*} [options] Override http request option.
2062
+ * @throws {RequiredError}
2063
+ */
2064
+ authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest, options) {
2065
+ return localVarFp.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then(function (request) { return request(axios, basePath); });
2066
+ },
2067
+ /**
2068
+ * Check if a user is authorized to perform an action
2069
+ * @summary Authorize Request
2070
+ * @param {AuthorizationRequest} [authorizationRequest]
2071
+ * @param {*} [options] Override http request option.
2072
+ * @throws {RequiredError}
2073
+ */
2074
+ authorize: function (authorizationRequest, options) {
2075
+ return localVarFp.authorize(authorizationRequest, options).then(function (request) { return request(axios, basePath); });
2076
+ },
2077
+ /**
2078
+ * Check if a user is authorized to perform an action on multiple resources
2079
+ * @summary Authorize Batch Request
2080
+ * @param {AuthorizationBatchRequest} [authorizationBatchRequest]
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ */
2084
+ authorizeBatch: function (authorizationBatchRequest, options) {
2085
+ return localVarFp.authorizeBatch(authorizationBatchRequest, options).then(function (request) { return request(axios, basePath); });
2086
+ },
2087
+ /**
2088
+ * Check if a user is in any/all of the roles
2089
+ * @summary Check Is In Role
2090
+ * @param {IsInRoleRequest} [isInRoleRequest]
2091
+ * @param {*} [options] Override http request option.
2092
+ * @throws {RequiredError}
2093
+ */
2094
+ checkIsInRole: function (isInRoleRequest, options) {
2095
+ return localVarFp.checkIsInRole(isInRoleRequest, options).then(function (request) { return request(axios, basePath); });
2096
+ },
2097
+ };
2098
+ };
2099
+ exports.AuthorizationApiFactory = AuthorizationApiFactory;
2100
+ /**
2101
+ * AuthorizationApi - object-oriented interface
2102
+ * @export
2103
+ * @class AuthorizationApi
2104
+ * @extends {BaseAPI}
2105
+ */
2106
+ var AuthorizationApi = /** @class */ (function (_super) {
2107
+ __extends(AuthorizationApi, _super);
2108
+ function AuthorizationApi() {
2109
+ return _super !== null && _super.apply(this, arguments) || this;
2110
+ }
2111
+ /**
2112
+ * Authenticate and authorize a user to perform an action
2113
+ * @summary Authenticate and authorize Request
2114
+ * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
2115
+ * @param {*} [options] Override http request option.
2116
+ * @throws {RequiredError}
2117
+ * @memberof AuthorizationApi
2118
+ */
2119
+ AuthorizationApi.prototype.authenticateAndAuthorize = function (authenticateAndAuthorizeRequest, options) {
2120
+ var _this = this;
2121
+ return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2122
+ };
2123
+ /**
2124
+ * Authenticate and check if a user is in any/all of the roles
2125
+ * @summary Authenticate and Check Is In Role
2126
+ * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
2127
+ * @param {*} [options] Override http request option.
2128
+ * @throws {RequiredError}
2129
+ * @memberof AuthorizationApi
2130
+ */
2131
+ AuthorizationApi.prototype.authenticateAndCheckIsInRole = function (authenticateAndCheckIsInRoleRequest, options) {
2132
+ var _this = this;
2133
+ return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2134
+ };
2135
+ /**
2136
+ * Check if a user is authorized to perform an action
2137
+ * @summary Authorize Request
2138
+ * @param {AuthorizationRequest} [authorizationRequest]
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ * @memberof AuthorizationApi
2142
+ */
2143
+ AuthorizationApi.prototype.authorize = function (authorizationRequest, options) {
2144
+ var _this = this;
2145
+ return (0, exports.AuthorizationApiFp)(this.configuration).authorize(authorizationRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2146
+ };
2147
+ /**
2148
+ * Check if a user is authorized to perform an action on multiple resources
2149
+ * @summary Authorize Batch Request
2150
+ * @param {AuthorizationBatchRequest} [authorizationBatchRequest]
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ * @memberof AuthorizationApi
2154
+ */
2155
+ AuthorizationApi.prototype.authorizeBatch = function (authorizationBatchRequest, options) {
2156
+ var _this = this;
2157
+ return (0, exports.AuthorizationApiFp)(this.configuration).authorizeBatch(authorizationBatchRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2158
+ };
2159
+ /**
2160
+ * Check if a user is in any/all of the roles
2161
+ * @summary Check Is In Role
2162
+ * @param {IsInRoleRequest} [isInRoleRequest]
2163
+ * @param {*} [options] Override http request option.
2164
+ * @throws {RequiredError}
2165
+ * @memberof AuthorizationApi
2166
+ */
2167
+ AuthorizationApi.prototype.checkIsInRole = function (isInRoleRequest, options) {
2168
+ var _this = this;
2169
+ return (0, exports.AuthorizationApiFp)(this.configuration).checkIsInRole(isInRoleRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2170
+ };
2171
+ return AuthorizationApi;
2172
+ }(base_1.BaseAPI));
2173
+ exports.AuthorizationApi = AuthorizationApi;
2174
+ /**
2175
+ * AuthorizedEntitiesApi - axios parameter creator
2176
+ * @export
2177
+ */
2178
+ var AuthorizedEntitiesApiAxiosParamCreator = function (configuration) {
2179
+ var _this = this;
2180
+ return {
2181
+ /**
2182
+ * Get the authorized brands for a given org
2183
+ * @summary Get Authorized Brands
2184
+ * @param {string} orgId
2185
+ * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
2186
+ * @param {*} [options] Override http request option.
2187
+ * @throws {RequiredError}
2188
+ */
2189
+ getAuthorizedBrands: function (orgId_1, getAuthorizedBrandsRequest_1) {
2190
+ var args_1 = [];
2191
+ for (var _i = 2; _i < arguments.length; _i++) {
2192
+ args_1[_i - 2] = arguments[_i];
2193
+ }
2194
+ return __awaiter(_this, __spreadArray([orgId_1, getAuthorizedBrandsRequest_1], args_1, true), void 0, function (orgId, getAuthorizedBrandsRequest, options) {
2195
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2196
+ if (options === void 0) { options = {}; }
2197
+ return __generator(this, function (_a) {
2198
+ switch (_a.label) {
2199
+ case 0:
2200
+ // verify required parameter 'orgId' is not null or undefined
2201
+ (0, common_1.assertParamExists)('getAuthorizedBrands', 'orgId', orgId);
2202
+ localVarPath = "/orgs/{orgId}/getAuthorizedBrands"
2203
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
2204
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2205
+ if (configuration) {
2206
+ baseOptions = configuration.baseOptions;
2207
+ }
2208
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2209
+ localVarHeaderParameter = {};
2210
+ localVarQueryParameter = {};
2211
+ // authentication ApiKeyAuth required
2212
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2213
+ case 1:
2214
+ // authentication ApiKeyAuth required
2215
+ _a.sent();
2216
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2217
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2218
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2219
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2220
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAuthorizedBrandsRequest, localVarRequestOptions, configuration);
2221
+ return [2 /*return*/, {
2222
+ url: (0, common_1.toPathString)(localVarUrlObj),
2223
+ options: localVarRequestOptions,
2224
+ }];
2225
+ }
2226
+ });
2227
+ });
2228
+ },
2229
+ /**
2230
+ * Get the authorized orgs for a given principal
2231
+ * @summary Get Authorized Orgs
2232
+ * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
2233
+ * @param {*} [options] Override http request option.
2234
+ * @throws {RequiredError}
2235
+ */
2236
+ getAuthorizedOrgs: function (getAuthorizedOrgsRequest_1) {
2237
+ var args_1 = [];
2238
+ for (var _i = 1; _i < arguments.length; _i++) {
2239
+ args_1[_i - 1] = arguments[_i];
2240
+ }
2241
+ return __awaiter(_this, __spreadArray([getAuthorizedOrgsRequest_1], args_1, true), void 0, function (getAuthorizedOrgsRequest, options) {
2242
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2243
+ if (options === void 0) { options = {}; }
2244
+ return __generator(this, function (_a) {
2245
+ switch (_a.label) {
2246
+ case 0:
2247
+ localVarPath = "/getAuthorizedOrgs";
2248
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2249
+ if (configuration) {
2250
+ baseOptions = configuration.baseOptions;
2251
+ }
2252
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2253
+ localVarHeaderParameter = {};
2254
+ localVarQueryParameter = {};
2255
+ // authentication ApiKeyAuth required
2256
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2257
+ case 1:
2258
+ // authentication ApiKeyAuth required
2259
+ _a.sent();
2260
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2261
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2262
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2263
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2264
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAuthorizedOrgsRequest, localVarRequestOptions, configuration);
2265
+ return [2 /*return*/, {
2266
+ url: (0, common_1.toPathString)(localVarUrlObj),
2267
+ options: localVarRequestOptions,
2268
+ }];
2269
+ }
2270
+ });
2271
+ });
2272
+ },
2273
+ /**
2274
+ * Get the authorized properties for a given org
2275
+ * @summary Get Authorized Properties
2276
+ * @param {string} orgId
2277
+ * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
2278
+ * @param {*} [options] Override http request option.
2279
+ * @throws {RequiredError}
2280
+ */
2281
+ getAuthorizedProperties: function (orgId_1, getAuthorizedPropertiesRequest_1) {
2282
+ var args_1 = [];
2283
+ for (var _i = 2; _i < arguments.length; _i++) {
2284
+ args_1[_i - 2] = arguments[_i];
2285
+ }
2286
+ return __awaiter(_this, __spreadArray([orgId_1, getAuthorizedPropertiesRequest_1], args_1, true), void 0, function (orgId, getAuthorizedPropertiesRequest, options) {
2287
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2288
+ if (options === void 0) { options = {}; }
2289
+ return __generator(this, function (_a) {
2290
+ switch (_a.label) {
2291
+ case 0:
2292
+ // verify required parameter 'orgId' is not null or undefined
2293
+ (0, common_1.assertParamExists)('getAuthorizedProperties', 'orgId', orgId);
2294
+ localVarPath = "/orgs/{orgId}/getAuthorizedProperties"
2295
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
2296
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2297
+ if (configuration) {
2298
+ baseOptions = configuration.baseOptions;
2299
+ }
2300
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2301
+ localVarHeaderParameter = {};
2302
+ localVarQueryParameter = {};
2303
+ // authentication ApiKeyAuth required
2304
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2305
+ case 1:
2306
+ // authentication ApiKeyAuth required
2307
+ _a.sent();
2308
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2309
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2310
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2311
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2312
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAuthorizedPropertiesRequest, localVarRequestOptions, configuration);
2313
+ return [2 /*return*/, {
2314
+ url: (0, common_1.toPathString)(localVarUrlObj),
2315
+ options: localVarRequestOptions,
2316
+ }];
2317
+ }
2318
+ });
2319
+ });
2320
+ },
2321
+ };
2322
+ };
2323
+ exports.AuthorizedEntitiesApiAxiosParamCreator = AuthorizedEntitiesApiAxiosParamCreator;
2324
+ /**
2325
+ * AuthorizedEntitiesApi - functional programming interface
2326
+ * @export
2327
+ */
2328
+ var AuthorizedEntitiesApiFp = function (configuration) {
2329
+ var localVarAxiosParamCreator = (0, exports.AuthorizedEntitiesApiAxiosParamCreator)(configuration);
2330
+ return {
2331
+ /**
2332
+ * Get the authorized brands for a given org
2333
+ * @summary Get Authorized Brands
2334
+ * @param {string} orgId
2335
+ * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
2336
+ * @param {*} [options] Override http request option.
2337
+ * @throws {RequiredError}
2338
+ */
2339
+ getAuthorizedBrands: function (orgId, getAuthorizedBrandsRequest, options) {
2340
+ return __awaiter(this, void 0, void 0, function () {
2341
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2342
+ var _a, _b, _c;
2343
+ return __generator(this, function (_d) {
2344
+ switch (_d.label) {
2345
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options)];
2346
+ case 1:
2347
+ localVarAxiosArgs = _d.sent();
2348
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2349
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizedEntitiesApi.getAuthorizedBrands']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2350
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2351
+ }
2352
+ });
2353
+ });
2354
+ },
2355
+ /**
2356
+ * Get the authorized orgs for a given principal
2357
+ * @summary Get Authorized Orgs
2358
+ * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
2359
+ * @param {*} [options] Override http request option.
2360
+ * @throws {RequiredError}
2361
+ */
2362
+ getAuthorizedOrgs: function (getAuthorizedOrgsRequest, options) {
2363
+ return __awaiter(this, void 0, void 0, function () {
2364
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2365
+ var _a, _b, _c;
2366
+ return __generator(this, function (_d) {
2367
+ switch (_d.label) {
2368
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAuthorizedOrgs(getAuthorizedOrgsRequest, options)];
2369
+ case 1:
2370
+ localVarAxiosArgs = _d.sent();
2371
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2372
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizedEntitiesApi.getAuthorizedOrgs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2373
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2374
+ }
2375
+ });
2376
+ });
2377
+ },
2378
+ /**
2379
+ * Get the authorized properties for a given org
2380
+ * @summary Get Authorized Properties
2381
+ * @param {string} orgId
2382
+ * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
2383
+ * @param {*} [options] Override http request option.
2384
+ * @throws {RequiredError}
2385
+ */
2386
+ getAuthorizedProperties: function (orgId, getAuthorizedPropertiesRequest, options) {
2387
+ return __awaiter(this, void 0, void 0, function () {
2388
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2389
+ var _a, _b, _c;
2390
+ return __generator(this, function (_d) {
2391
+ switch (_d.label) {
2392
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options)];
2393
+ case 1:
2394
+ localVarAxiosArgs = _d.sent();
2395
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2396
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizedEntitiesApi.getAuthorizedProperties']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2397
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2398
+ }
2399
+ });
2400
+ });
2401
+ },
2402
+ };
2403
+ };
2404
+ exports.AuthorizedEntitiesApiFp = AuthorizedEntitiesApiFp;
2405
+ /**
2406
+ * AuthorizedEntitiesApi - factory interface
2407
+ * @export
2408
+ */
2409
+ var AuthorizedEntitiesApiFactory = function (configuration, basePath, axios) {
2410
+ var localVarFp = (0, exports.AuthorizedEntitiesApiFp)(configuration);
2411
+ return {
2412
+ /**
2413
+ * Get the authorized brands for a given org
2414
+ * @summary Get Authorized Brands
2415
+ * @param {string} orgId
2416
+ * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
2417
+ * @param {*} [options] Override http request option.
2418
+ * @throws {RequiredError}
2419
+ */
2420
+ getAuthorizedBrands: function (orgId, getAuthorizedBrandsRequest, options) {
2421
+ return localVarFp.getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options).then(function (request) { return request(axios, basePath); });
2422
+ },
2423
+ /**
2424
+ * Get the authorized orgs for a given principal
2425
+ * @summary Get Authorized Orgs
2426
+ * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ */
2430
+ getAuthorizedOrgs: function (getAuthorizedOrgsRequest, options) {
2431
+ return localVarFp.getAuthorizedOrgs(getAuthorizedOrgsRequest, options).then(function (request) { return request(axios, basePath); });
2432
+ },
2433
+ /**
2434
+ * Get the authorized properties for a given org
2435
+ * @summary Get Authorized Properties
2436
+ * @param {string} orgId
2437
+ * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
2438
+ * @param {*} [options] Override http request option.
2439
+ * @throws {RequiredError}
2440
+ */
2441
+ getAuthorizedProperties: function (orgId, getAuthorizedPropertiesRequest, options) {
2442
+ return localVarFp.getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options).then(function (request) { return request(axios, basePath); });
2443
+ },
2444
+ };
2445
+ };
2446
+ exports.AuthorizedEntitiesApiFactory = AuthorizedEntitiesApiFactory;
2447
+ /**
2448
+ * AuthorizedEntitiesApi - object-oriented interface
2449
+ * @export
2450
+ * @class AuthorizedEntitiesApi
2451
+ * @extends {BaseAPI}
2452
+ */
2453
+ var AuthorizedEntitiesApi = /** @class */ (function (_super) {
2454
+ __extends(AuthorizedEntitiesApi, _super);
2455
+ function AuthorizedEntitiesApi() {
2456
+ return _super !== null && _super.apply(this, arguments) || this;
2457
+ }
2458
+ /**
2459
+ * Get the authorized brands for a given org
2460
+ * @summary Get Authorized Brands
2461
+ * @param {string} orgId
2462
+ * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
2463
+ * @param {*} [options] Override http request option.
2464
+ * @throws {RequiredError}
2465
+ * @memberof AuthorizedEntitiesApi
2466
+ */
2467
+ AuthorizedEntitiesApi.prototype.getAuthorizedBrands = function (orgId, getAuthorizedBrandsRequest, options) {
2468
+ var _this = this;
2469
+ return (0, exports.AuthorizedEntitiesApiFp)(this.configuration).getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2470
+ };
2471
+ /**
2472
+ * Get the authorized orgs for a given principal
2473
+ * @summary Get Authorized Orgs
2474
+ * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
2475
+ * @param {*} [options] Override http request option.
2476
+ * @throws {RequiredError}
2477
+ * @memberof AuthorizedEntitiesApi
2478
+ */
2479
+ AuthorizedEntitiesApi.prototype.getAuthorizedOrgs = function (getAuthorizedOrgsRequest, options) {
2480
+ var _this = this;
2481
+ return (0, exports.AuthorizedEntitiesApiFp)(this.configuration).getAuthorizedOrgs(getAuthorizedOrgsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2482
+ };
2483
+ /**
2484
+ * Get the authorized properties for a given org
2485
+ * @summary Get Authorized Properties
2486
+ * @param {string} orgId
2487
+ * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
2488
+ * @param {*} [options] Override http request option.
2489
+ * @throws {RequiredError}
2490
+ * @memberof AuthorizedEntitiesApi
2491
+ */
2492
+ AuthorizedEntitiesApi.prototype.getAuthorizedProperties = function (orgId, getAuthorizedPropertiesRequest, options) {
2493
+ var _this = this;
2494
+ return (0, exports.AuthorizedEntitiesApiFp)(this.configuration).getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2495
+ };
2496
+ return AuthorizedEntitiesApi;
2497
+ }(base_1.BaseAPI));
2498
+ exports.AuthorizedEntitiesApi = AuthorizedEntitiesApi;
2499
+ /**
2500
+ * ConfigurationDataApi - axios parameter creator
2501
+ * @export
2502
+ */
2503
+ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
2504
+ var _this = this;
2505
+ return {
2506
+ /**
2507
+ * List the available feature based roles
2508
+ * @summary List Feature Based Roles
2509
+ * @param {*} [options] Override http request option.
2510
+ * @throws {RequiredError}
2511
+ */
2512
+ configListFeatureBasedRoles: function () {
2513
+ var args_1 = [];
2514
+ for (var _i = 0; _i < arguments.length; _i++) {
2515
+ args_1[_i] = arguments[_i];
2516
+ }
2517
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
2518
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2519
+ if (options === void 0) { options = {}; }
2520
+ return __generator(this, function (_a) {
2521
+ switch (_a.label) {
2522
+ case 0:
2523
+ localVarPath = "/config/featureBasedRoles";
2524
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2525
+ if (configuration) {
2526
+ baseOptions = configuration.baseOptions;
2527
+ }
2528
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2529
+ localVarHeaderParameter = {};
2530
+ localVarQueryParameter = {};
2531
+ // authentication ApiKeyAuth required
2532
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2533
+ case 1:
2534
+ // authentication ApiKeyAuth required
2535
+ _a.sent();
2536
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2537
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2538
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2539
+ return [2 /*return*/, {
2540
+ url: (0, common_1.toPathString)(localVarUrlObj),
2541
+ options: localVarRequestOptions,
2542
+ }];
2543
+ }
2544
+ });
2545
+ });
2546
+ },
2547
+ /**
2548
+ * List the available permissions
2549
+ * @summary List Permissions
2550
+ * @param {*} [options] Override http request option.
2551
+ * @throws {RequiredError}
2552
+ */
2553
+ configListPermissions: function () {
2554
+ var args_1 = [];
2555
+ for (var _i = 0; _i < arguments.length; _i++) {
2556
+ args_1[_i] = arguments[_i];
2557
+ }
2558
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
2559
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2560
+ if (options === void 0) { options = {}; }
2561
+ return __generator(this, function (_a) {
2562
+ switch (_a.label) {
2563
+ case 0:
2564
+ localVarPath = "/config/permissions";
2565
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2566
+ if (configuration) {
2567
+ baseOptions = configuration.baseOptions;
2568
+ }
2569
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2570
+ localVarHeaderParameter = {};
2571
+ localVarQueryParameter = {};
2572
+ // authentication ApiKeyAuth required
2573
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2574
+ case 1:
2575
+ // authentication ApiKeyAuth required
2576
+ _a.sent();
2577
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2578
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2579
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2580
+ return [2 /*return*/, {
2581
+ url: (0, common_1.toPathString)(localVarUrlObj),
2582
+ options: localVarRequestOptions,
2583
+ }];
2584
+ }
2585
+ });
2586
+ });
2587
+ },
2588
+ /**
2589
+ * List the available roles
2590
+ * @summary List Roles
2591
+ * @param {*} [options] Override http request option.
888
2592
  * @throws {RequiredError}
889
2593
  */
890
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest_1) {
2594
+ configListRoles: function () {
891
2595
  var args_1 = [];
892
- for (var _i = 1; _i < arguments.length; _i++) {
893
- args_1[_i - 1] = arguments[_i];
2596
+ for (var _i = 0; _i < arguments.length; _i++) {
2597
+ args_1[_i] = arguments[_i];
894
2598
  }
895
- return __awaiter(_this, __spreadArray([authenticateAndAuthorizeRequest_1], args_1, true), void 0, function (authenticateAndAuthorizeRequest, options) {
2599
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
896
2600
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
897
2601
  if (options === void 0) { options = {}; }
898
2602
  return __generator(this, function (_a) {
899
2603
  switch (_a.label) {
900
2604
  case 0:
901
- // verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined
902
- (0, common_1.assertParamExists)('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest);
903
- localVarPath = "/authenticateAndAuthorize";
2605
+ localVarPath = "/config/roles";
904
2606
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
905
2607
  if (configuration) {
906
2608
  baseOptions = configuration.baseOptions;
907
2609
  }
908
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2610
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
909
2611
  localVarHeaderParameter = {};
910
2612
  localVarQueryParameter = {};
911
2613
  // authentication ApiKeyAuth required
@@ -913,11 +2615,9 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
913
2615
  case 1:
914
2616
  // authentication ApiKeyAuth required
915
2617
  _a.sent();
916
- localVarHeaderParameter['Content-Type'] = 'application/json';
917
2618
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
918
2619
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
919
2620
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
920
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration);
921
2621
  return [2 /*return*/, {
922
2622
  url: (0, common_1.toPathString)(localVarUrlObj),
923
2623
  options: localVarRequestOptions,
@@ -927,29 +2627,110 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
927
2627
  });
928
2628
  },
929
2629
  /**
930
- * Check if a user is authorized to perform an action
931
- * @summary Authorize Request
932
- * @param {AuthorizationRequest} [authorizationRequest]
2630
+ * List the available feature based roles
2631
+ * @summary List Feature Based Roles
933
2632
  * @param {*} [options] Override http request option.
934
2633
  * @throws {RequiredError}
935
2634
  */
936
- authorize: function (authorizationRequest_1) {
2635
+ listFeatureBasedRoles: function () {
937
2636
  var args_1 = [];
938
- for (var _i = 1; _i < arguments.length; _i++) {
939
- args_1[_i - 1] = arguments[_i];
2637
+ for (var _i = 0; _i < arguments.length; _i++) {
2638
+ args_1[_i] = arguments[_i];
940
2639
  }
941
- return __awaiter(_this, __spreadArray([authorizationRequest_1], args_1, true), void 0, function (authorizationRequest, options) {
2640
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
942
2641
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
943
2642
  if (options === void 0) { options = {}; }
944
2643
  return __generator(this, function (_a) {
945
2644
  switch (_a.label) {
946
2645
  case 0:
947
- localVarPath = "/authorize";
2646
+ localVarPath = "/featureBasedRoles";
948
2647
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
949
2648
  if (configuration) {
950
2649
  baseOptions = configuration.baseOptions;
951
2650
  }
952
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2651
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2652
+ localVarHeaderParameter = {};
2653
+ localVarQueryParameter = {};
2654
+ // authentication ApiKeyAuth required
2655
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2656
+ case 1:
2657
+ // authentication ApiKeyAuth required
2658
+ _a.sent();
2659
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2660
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2661
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2662
+ return [2 /*return*/, {
2663
+ url: (0, common_1.toPathString)(localVarUrlObj),
2664
+ options: localVarRequestOptions,
2665
+ }];
2666
+ }
2667
+ });
2668
+ });
2669
+ },
2670
+ /**
2671
+ * List the available permissions
2672
+ * @summary List Permissions
2673
+ * @param {*} [options] Override http request option.
2674
+ * @throws {RequiredError}
2675
+ */
2676
+ listPermissions: function () {
2677
+ var args_1 = [];
2678
+ for (var _i = 0; _i < arguments.length; _i++) {
2679
+ args_1[_i] = arguments[_i];
2680
+ }
2681
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
2682
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2683
+ if (options === void 0) { options = {}; }
2684
+ return __generator(this, function (_a) {
2685
+ switch (_a.label) {
2686
+ case 0:
2687
+ localVarPath = "/permissions";
2688
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2689
+ if (configuration) {
2690
+ baseOptions = configuration.baseOptions;
2691
+ }
2692
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2693
+ localVarHeaderParameter = {};
2694
+ localVarQueryParameter = {};
2695
+ // authentication ApiKeyAuth required
2696
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2697
+ case 1:
2698
+ // authentication ApiKeyAuth required
2699
+ _a.sent();
2700
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2701
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2702
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2703
+ return [2 /*return*/, {
2704
+ url: (0, common_1.toPathString)(localVarUrlObj),
2705
+ options: localVarRequestOptions,
2706
+ }];
2707
+ }
2708
+ });
2709
+ });
2710
+ },
2711
+ /**
2712
+ * List the available roles
2713
+ * @summary List Roles
2714
+ * @param {*} [options] Override http request option.
2715
+ * @throws {RequiredError}
2716
+ */
2717
+ listRoles: function () {
2718
+ var args_1 = [];
2719
+ for (var _i = 0; _i < arguments.length; _i++) {
2720
+ args_1[_i] = arguments[_i];
2721
+ }
2722
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
2723
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2724
+ if (options === void 0) { options = {}; }
2725
+ return __generator(this, function (_a) {
2726
+ switch (_a.label) {
2727
+ case 0:
2728
+ localVarPath = "/roles";
2729
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2730
+ if (configuration) {
2731
+ baseOptions = configuration.baseOptions;
2732
+ }
2733
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
953
2734
  localVarHeaderParameter = {};
954
2735
  localVarQueryParameter = {};
955
2736
  // authentication ApiKeyAuth required
@@ -957,11 +2738,9 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
957
2738
  case 1:
958
2739
  // authentication ApiKeyAuth required
959
2740
  _a.sent();
960
- localVarHeaderParameter['Content-Type'] = 'application/json';
961
2741
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
962
2742
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
963
2743
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
964
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authorizationRequest, localVarRequestOptions, configuration);
965
2744
  return [2 /*return*/, {
966
2745
  url: (0, common_1.toPathString)(localVarUrlObj),
967
2746
  options: localVarRequestOptions,
@@ -972,189 +2751,102 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
972
2751
  },
973
2752
  };
974
2753
  };
975
- exports.AuthorizationApiAxiosParamCreator = AuthorizationApiAxiosParamCreator;
2754
+ exports.ConfigurationDataApiAxiosParamCreator = ConfigurationDataApiAxiosParamCreator;
976
2755
  /**
977
- * AuthorizationApi - functional programming interface
2756
+ * ConfigurationDataApi - functional programming interface
978
2757
  * @export
979
2758
  */
980
- var AuthorizationApiFp = function (configuration) {
981
- var localVarAxiosParamCreator = (0, exports.AuthorizationApiAxiosParamCreator)(configuration);
2759
+ var ConfigurationDataApiFp = function (configuration) {
2760
+ var localVarAxiosParamCreator = (0, exports.ConfigurationDataApiAxiosParamCreator)(configuration);
982
2761
  return {
983
2762
  /**
984
- * Authenticate and authorize a user to perform an action
985
- * @summary Authenticate and authorize Request
986
- * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
2763
+ * List the available feature based roles
2764
+ * @summary List Feature Based Roles
987
2765
  * @param {*} [options] Override http request option.
988
2766
  * @throws {RequiredError}
989
2767
  */
990
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
2768
+ configListFeatureBasedRoles: function (options) {
991
2769
  return __awaiter(this, void 0, void 0, function () {
992
2770
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
993
2771
  var _a, _b, _c;
994
2772
  return __generator(this, function (_d) {
995
2773
  switch (_d.label) {
996
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
2774
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListFeatureBasedRoles(options)];
997
2775
  case 1:
998
2776
  localVarAxiosArgs = _d.sent();
999
2777
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1000
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authenticateAndAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2778
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListFeatureBasedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1001
2779
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1002
2780
  }
1003
2781
  });
1004
2782
  });
1005
2783
  },
1006
2784
  /**
1007
- * Check if a user is authorized to perform an action
1008
- * @summary Authorize Request
1009
- * @param {AuthorizationRequest} [authorizationRequest]
2785
+ * List the available permissions
2786
+ * @summary List Permissions
1010
2787
  * @param {*} [options] Override http request option.
1011
2788
  * @throws {RequiredError}
1012
2789
  */
1013
- authorize: function (authorizationRequest, options) {
2790
+ configListPermissions: function (options) {
1014
2791
  return __awaiter(this, void 0, void 0, function () {
1015
2792
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1016
2793
  var _a, _b, _c;
1017
2794
  return __generator(this, function (_d) {
1018
2795
  switch (_d.label) {
1019
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.authorize(authorizationRequest, options)];
2796
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListPermissions(options)];
1020
2797
  case 1:
1021
2798
  localVarAxiosArgs = _d.sent();
1022
2799
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1023
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2800
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1024
2801
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1025
2802
  }
1026
2803
  });
1027
2804
  });
1028
2805
  },
1029
- };
1030
- };
1031
- exports.AuthorizationApiFp = AuthorizationApiFp;
1032
- /**
1033
- * AuthorizationApi - factory interface
1034
- * @export
1035
- */
1036
- var AuthorizationApiFactory = function (configuration, basePath, axios) {
1037
- var localVarFp = (0, exports.AuthorizationApiFp)(configuration);
1038
- return {
1039
- /**
1040
- * Authenticate and authorize a user to perform an action
1041
- * @summary Authenticate and authorize Request
1042
- * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1043
- * @param {*} [options] Override http request option.
1044
- * @throws {RequiredError}
1045
- */
1046
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
1047
- return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
1048
- },
1049
- /**
1050
- * Check if a user is authorized to perform an action
1051
- * @summary Authorize Request
1052
- * @param {AuthorizationRequest} [authorizationRequest]
1053
- * @param {*} [options] Override http request option.
1054
- * @throws {RequiredError}
1055
- */
1056
- authorize: function (authorizationRequest, options) {
1057
- return localVarFp.authorize(authorizationRequest, options).then(function (request) { return request(axios, basePath); });
1058
- },
1059
- };
1060
- };
1061
- exports.AuthorizationApiFactory = AuthorizationApiFactory;
1062
- /**
1063
- * AuthorizationApi - object-oriented interface
1064
- * @export
1065
- * @class AuthorizationApi
1066
- * @extends {BaseAPI}
1067
- */
1068
- var AuthorizationApi = /** @class */ (function (_super) {
1069
- __extends(AuthorizationApi, _super);
1070
- function AuthorizationApi() {
1071
- return _super !== null && _super.apply(this, arguments) || this;
1072
- }
1073
- /**
1074
- * Authenticate and authorize a user to perform an action
1075
- * @summary Authenticate and authorize Request
1076
- * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
1077
- * @param {*} [options] Override http request option.
1078
- * @throws {RequiredError}
1079
- * @memberof AuthorizationApi
1080
- */
1081
- AuthorizationApi.prototype.authenticateAndAuthorize = function (authenticateAndAuthorizeRequest, options) {
1082
- var _this = this;
1083
- return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1084
- };
1085
- /**
1086
- * Check if a user is authorized to perform an action
1087
- * @summary Authorize Request
1088
- * @param {AuthorizationRequest} [authorizationRequest]
1089
- * @param {*} [options] Override http request option.
1090
- * @throws {RequiredError}
1091
- * @memberof AuthorizationApi
1092
- */
1093
- AuthorizationApi.prototype.authorize = function (authorizationRequest, options) {
1094
- var _this = this;
1095
- return (0, exports.AuthorizationApiFp)(this.configuration).authorize(authorizationRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1096
- };
1097
- return AuthorizationApi;
1098
- }(base_1.BaseAPI));
1099
- exports.AuthorizationApi = AuthorizationApi;
1100
- /**
1101
- * PermissionsApi - axios parameter creator
1102
- * @export
1103
- */
1104
- var PermissionsApiAxiosParamCreator = function (configuration) {
1105
- var _this = this;
1106
- return {
1107
2806
  /**
1108
- * List the available permissions
1109
- * @summary List Permissions
2807
+ * List the available roles
2808
+ * @summary List Roles
1110
2809
  * @param {*} [options] Override http request option.
1111
2810
  * @throws {RequiredError}
1112
2811
  */
1113
- listPermissions: function () {
1114
- var args_1 = [];
1115
- for (var _i = 0; _i < arguments.length; _i++) {
1116
- args_1[_i] = arguments[_i];
1117
- }
1118
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
1119
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1120
- if (options === void 0) { options = {}; }
1121
- return __generator(this, function (_a) {
1122
- switch (_a.label) {
1123
- case 0:
1124
- localVarPath = "/permissions";
1125
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1126
- if (configuration) {
1127
- baseOptions = configuration.baseOptions;
1128
- }
1129
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1130
- localVarHeaderParameter = {};
1131
- localVarQueryParameter = {};
1132
- // authentication ApiKeyAuth required
1133
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2812
+ configListRoles: function (options) {
2813
+ return __awaiter(this, void 0, void 0, function () {
2814
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2815
+ var _a, _b, _c;
2816
+ return __generator(this, function (_d) {
2817
+ switch (_d.label) {
2818
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListRoles(options)];
2819
+ case 1:
2820
+ localVarAxiosArgs = _d.sent();
2821
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2822
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2823
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2824
+ }
2825
+ });
2826
+ });
2827
+ },
2828
+ /**
2829
+ * List the available feature based roles
2830
+ * @summary List Feature Based Roles
2831
+ * @param {*} [options] Override http request option.
2832
+ * @throws {RequiredError}
2833
+ */
2834
+ listFeatureBasedRoles: function (options) {
2835
+ return __awaiter(this, void 0, void 0, function () {
2836
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2837
+ var _a, _b, _c;
2838
+ return __generator(this, function (_d) {
2839
+ switch (_d.label) {
2840
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listFeatureBasedRoles(options)];
1134
2841
  case 1:
1135
- // authentication ApiKeyAuth required
1136
- _a.sent();
1137
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1138
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1139
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1140
- return [2 /*return*/, {
1141
- url: (0, common_1.toPathString)(localVarUrlObj),
1142
- options: localVarRequestOptions,
1143
- }];
2842
+ localVarAxiosArgs = _d.sent();
2843
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2844
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listFeatureBasedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2845
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1144
2846
  }
1145
2847
  });
1146
2848
  });
1147
2849
  },
1148
- };
1149
- };
1150
- exports.PermissionsApiAxiosParamCreator = PermissionsApiAxiosParamCreator;
1151
- /**
1152
- * PermissionsApi - functional programming interface
1153
- * @export
1154
- */
1155
- var PermissionsApiFp = function (configuration) {
1156
- var localVarAxiosParamCreator = (0, exports.PermissionsApiAxiosParamCreator)(configuration);
1157
- return {
1158
2850
  /**
1159
2851
  * List the available permissions
1160
2852
  * @summary List Permissions
@@ -1171,7 +2863,29 @@ var PermissionsApiFp = function (configuration) {
1171
2863
  case 1:
1172
2864
  localVarAxiosArgs = _d.sent();
1173
2865
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1174
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PermissionsApi.listPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2866
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2867
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2868
+ }
2869
+ });
2870
+ });
2871
+ },
2872
+ /**
2873
+ * List the available roles
2874
+ * @summary List Roles
2875
+ * @param {*} [options] Override http request option.
2876
+ * @throws {RequiredError}
2877
+ */
2878
+ listRoles: function (options) {
2879
+ return __awaiter(this, void 0, void 0, function () {
2880
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2881
+ var _a, _b, _c;
2882
+ return __generator(this, function (_d) {
2883
+ switch (_d.label) {
2884
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(options)];
2885
+ case 1:
2886
+ localVarAxiosArgs = _d.sent();
2887
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2888
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1175
2889
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1176
2890
  }
1177
2891
  });
@@ -1179,14 +2893,50 @@ var PermissionsApiFp = function (configuration) {
1179
2893
  },
1180
2894
  };
1181
2895
  };
1182
- exports.PermissionsApiFp = PermissionsApiFp;
2896
+ exports.ConfigurationDataApiFp = ConfigurationDataApiFp;
1183
2897
  /**
1184
- * PermissionsApi - factory interface
2898
+ * ConfigurationDataApi - factory interface
1185
2899
  * @export
1186
2900
  */
1187
- var PermissionsApiFactory = function (configuration, basePath, axios) {
1188
- var localVarFp = (0, exports.PermissionsApiFp)(configuration);
2901
+ var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
2902
+ var localVarFp = (0, exports.ConfigurationDataApiFp)(configuration);
1189
2903
  return {
2904
+ /**
2905
+ * List the available feature based roles
2906
+ * @summary List Feature Based Roles
2907
+ * @param {*} [options] Override http request option.
2908
+ * @throws {RequiredError}
2909
+ */
2910
+ configListFeatureBasedRoles: function (options) {
2911
+ return localVarFp.configListFeatureBasedRoles(options).then(function (request) { return request(axios, basePath); });
2912
+ },
2913
+ /**
2914
+ * List the available permissions
2915
+ * @summary List Permissions
2916
+ * @param {*} [options] Override http request option.
2917
+ * @throws {RequiredError}
2918
+ */
2919
+ configListPermissions: function (options) {
2920
+ return localVarFp.configListPermissions(options).then(function (request) { return request(axios, basePath); });
2921
+ },
2922
+ /**
2923
+ * List the available roles
2924
+ * @summary List Roles
2925
+ * @param {*} [options] Override http request option.
2926
+ * @throws {RequiredError}
2927
+ */
2928
+ configListRoles: function (options) {
2929
+ return localVarFp.configListRoles(options).then(function (request) { return request(axios, basePath); });
2930
+ },
2931
+ /**
2932
+ * List the available feature based roles
2933
+ * @summary List Feature Based Roles
2934
+ * @param {*} [options] Override http request option.
2935
+ * @throws {RequiredError}
2936
+ */
2937
+ listFeatureBasedRoles: function (options) {
2938
+ return localVarFp.listFeatureBasedRoles(options).then(function (request) { return request(axios, basePath); });
2939
+ },
1190
2940
  /**
1191
2941
  * List the available permissions
1192
2942
  * @summary List Permissions
@@ -1196,34 +2946,98 @@ var PermissionsApiFactory = function (configuration, basePath, axios) {
1196
2946
  listPermissions: function (options) {
1197
2947
  return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
1198
2948
  },
2949
+ /**
2950
+ * List the available roles
2951
+ * @summary List Roles
2952
+ * @param {*} [options] Override http request option.
2953
+ * @throws {RequiredError}
2954
+ */
2955
+ listRoles: function (options) {
2956
+ return localVarFp.listRoles(options).then(function (request) { return request(axios, basePath); });
2957
+ },
1199
2958
  };
1200
2959
  };
1201
- exports.PermissionsApiFactory = PermissionsApiFactory;
2960
+ exports.ConfigurationDataApiFactory = ConfigurationDataApiFactory;
1202
2961
  /**
1203
- * PermissionsApi - object-oriented interface
2962
+ * ConfigurationDataApi - object-oriented interface
1204
2963
  * @export
1205
- * @class PermissionsApi
2964
+ * @class ConfigurationDataApi
1206
2965
  * @extends {BaseAPI}
1207
2966
  */
1208
- var PermissionsApi = /** @class */ (function (_super) {
1209
- __extends(PermissionsApi, _super);
1210
- function PermissionsApi() {
2967
+ var ConfigurationDataApi = /** @class */ (function (_super) {
2968
+ __extends(ConfigurationDataApi, _super);
2969
+ function ConfigurationDataApi() {
1211
2970
  return _super !== null && _super.apply(this, arguments) || this;
1212
2971
  }
2972
+ /**
2973
+ * List the available feature based roles
2974
+ * @summary List Feature Based Roles
2975
+ * @param {*} [options] Override http request option.
2976
+ * @throws {RequiredError}
2977
+ * @memberof ConfigurationDataApi
2978
+ */
2979
+ ConfigurationDataApi.prototype.configListFeatureBasedRoles = function (options) {
2980
+ var _this = this;
2981
+ return (0, exports.ConfigurationDataApiFp)(this.configuration).configListFeatureBasedRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
2982
+ };
2983
+ /**
2984
+ * List the available permissions
2985
+ * @summary List Permissions
2986
+ * @param {*} [options] Override http request option.
2987
+ * @throws {RequiredError}
2988
+ * @memberof ConfigurationDataApi
2989
+ */
2990
+ ConfigurationDataApi.prototype.configListPermissions = function (options) {
2991
+ var _this = this;
2992
+ return (0, exports.ConfigurationDataApiFp)(this.configuration).configListPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
2993
+ };
2994
+ /**
2995
+ * List the available roles
2996
+ * @summary List Roles
2997
+ * @param {*} [options] Override http request option.
2998
+ * @throws {RequiredError}
2999
+ * @memberof ConfigurationDataApi
3000
+ */
3001
+ ConfigurationDataApi.prototype.configListRoles = function (options) {
3002
+ var _this = this;
3003
+ return (0, exports.ConfigurationDataApiFp)(this.configuration).configListRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
3004
+ };
3005
+ /**
3006
+ * List the available feature based roles
3007
+ * @summary List Feature Based Roles
3008
+ * @param {*} [options] Override http request option.
3009
+ * @throws {RequiredError}
3010
+ * @memberof ConfigurationDataApi
3011
+ */
3012
+ ConfigurationDataApi.prototype.listFeatureBasedRoles = function (options) {
3013
+ var _this = this;
3014
+ return (0, exports.ConfigurationDataApiFp)(this.configuration).listFeatureBasedRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
3015
+ };
1213
3016
  /**
1214
3017
  * List the available permissions
1215
3018
  * @summary List Permissions
1216
3019
  * @param {*} [options] Override http request option.
1217
3020
  * @throws {RequiredError}
1218
- * @memberof PermissionsApi
3021
+ * @memberof ConfigurationDataApi
3022
+ */
3023
+ ConfigurationDataApi.prototype.listPermissions = function (options) {
3024
+ var _this = this;
3025
+ return (0, exports.ConfigurationDataApiFp)(this.configuration).listPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
3026
+ };
3027
+ /**
3028
+ * List the available roles
3029
+ * @summary List Roles
3030
+ * @param {*} [options] Override http request option.
3031
+ * @throws {RequiredError}
3032
+ * @memberof ConfigurationDataApi
1219
3033
  */
1220
- PermissionsApi.prototype.listPermissions = function (options) {
3034
+ ConfigurationDataApi.prototype.listRoles = function (options) {
1221
3035
  var _this = this;
1222
- return (0, exports.PermissionsApiFp)(this.configuration).listPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
3036
+ return (0, exports.ConfigurationDataApiFp)(this.configuration).listRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
1223
3037
  };
1224
- return PermissionsApi;
3038
+ return ConfigurationDataApi;
1225
3039
  }(base_1.BaseAPI));
1226
- exports.PermissionsApi = PermissionsApi;
3040
+ exports.ConfigurationDataApi = ConfigurationDataApi;
1227
3041
  /**
1228
3042
  * RoleAssignmentApi - axios parameter creator
1229
3043
  * @export
@@ -1659,6 +3473,96 @@ exports.RoleAssignmentApi = RoleAssignmentApi;
1659
3473
  var UserPermissionsApiAxiosParamCreator = function (configuration) {
1660
3474
  var _this = this;
1661
3475
  return {
3476
+ /**
3477
+ * List the available permissions for the current user
3478
+ * @summary List Org Permissions
3479
+ * @param {string} orgId
3480
+ * @param {*} [options] Override http request option.
3481
+ * @throws {RequiredError}
3482
+ */
3483
+ listOrgPermissions: function (orgId_1) {
3484
+ var args_1 = [];
3485
+ for (var _i = 1; _i < arguments.length; _i++) {
3486
+ args_1[_i - 1] = arguments[_i];
3487
+ }
3488
+ return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
3489
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3490
+ if (options === void 0) { options = {}; }
3491
+ return __generator(this, function (_a) {
3492
+ switch (_a.label) {
3493
+ case 0:
3494
+ // verify required parameter 'orgId' is not null or undefined
3495
+ (0, common_1.assertParamExists)('listOrgPermissions', 'orgId', orgId);
3496
+ localVarPath = "/orgs/{orgId}/permissions"
3497
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3498
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3499
+ if (configuration) {
3500
+ baseOptions = configuration.baseOptions;
3501
+ }
3502
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3503
+ localVarHeaderParameter = {};
3504
+ localVarQueryParameter = {};
3505
+ // authentication ApiKeyAuth required
3506
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3507
+ case 1:
3508
+ // authentication ApiKeyAuth required
3509
+ _a.sent();
3510
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3511
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3512
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3513
+ return [2 /*return*/, {
3514
+ url: (0, common_1.toPathString)(localVarUrlObj),
3515
+ options: localVarRequestOptions,
3516
+ }];
3517
+ }
3518
+ });
3519
+ });
3520
+ },
3521
+ /**
3522
+ * List the available roles for the current user
3523
+ * @summary List Org Roles
3524
+ * @param {string} orgId
3525
+ * @param {*} [options] Override http request option.
3526
+ * @throws {RequiredError}
3527
+ */
3528
+ listOrgRoles: function (orgId_1) {
3529
+ var args_1 = [];
3530
+ for (var _i = 1; _i < arguments.length; _i++) {
3531
+ args_1[_i - 1] = arguments[_i];
3532
+ }
3533
+ return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
3534
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3535
+ if (options === void 0) { options = {}; }
3536
+ return __generator(this, function (_a) {
3537
+ switch (_a.label) {
3538
+ case 0:
3539
+ // verify required parameter 'orgId' is not null or undefined
3540
+ (0, common_1.assertParamExists)('listOrgRoles', 'orgId', orgId);
3541
+ localVarPath = "/orgs/{orgId}/roles"
3542
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3543
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3544
+ if (configuration) {
3545
+ baseOptions = configuration.baseOptions;
3546
+ }
3547
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3548
+ localVarHeaderParameter = {};
3549
+ localVarQueryParameter = {};
3550
+ // authentication ApiKeyAuth required
3551
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3552
+ case 1:
3553
+ // authentication ApiKeyAuth required
3554
+ _a.sent();
3555
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3556
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3557
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3558
+ return [2 /*return*/, {
3559
+ url: (0, common_1.toPathString)(localVarUrlObj),
3560
+ options: localVarRequestOptions,
3561
+ }];
3562
+ }
3563
+ });
3564
+ });
3565
+ },
1662
3566
  /**
1663
3567
  * List the available permissions for the current user
1664
3568
  * @summary List Own Permissions
@@ -1763,6 +3667,52 @@ exports.UserPermissionsApiAxiosParamCreator = UserPermissionsApiAxiosParamCreato
1763
3667
  var UserPermissionsApiFp = function (configuration) {
1764
3668
  var localVarAxiosParamCreator = (0, exports.UserPermissionsApiAxiosParamCreator)(configuration);
1765
3669
  return {
3670
+ /**
3671
+ * List the available permissions for the current user
3672
+ * @summary List Org Permissions
3673
+ * @param {string} orgId
3674
+ * @param {*} [options] Override http request option.
3675
+ * @throws {RequiredError}
3676
+ */
3677
+ listOrgPermissions: function (orgId, options) {
3678
+ return __awaiter(this, void 0, void 0, function () {
3679
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3680
+ var _a, _b, _c;
3681
+ return __generator(this, function (_d) {
3682
+ switch (_d.label) {
3683
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgPermissions(orgId, options)];
3684
+ case 1:
3685
+ localVarAxiosArgs = _d.sent();
3686
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3687
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3688
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3689
+ }
3690
+ });
3691
+ });
3692
+ },
3693
+ /**
3694
+ * List the available roles for the current user
3695
+ * @summary List Org Roles
3696
+ * @param {string} orgId
3697
+ * @param {*} [options] Override http request option.
3698
+ * @throws {RequiredError}
3699
+ */
3700
+ listOrgRoles: function (orgId, options) {
3701
+ return __awaiter(this, void 0, void 0, function () {
3702
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3703
+ var _a, _b, _c;
3704
+ return __generator(this, function (_d) {
3705
+ switch (_d.label) {
3706
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgRoles(orgId, options)];
3707
+ case 1:
3708
+ localVarAxiosArgs = _d.sent();
3709
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3710
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3711
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3712
+ }
3713
+ });
3714
+ });
3715
+ },
1766
3716
  /**
1767
3717
  * List the available permissions for the current user
1768
3718
  * @summary List Own Permissions
@@ -1820,6 +3770,26 @@ exports.UserPermissionsApiFp = UserPermissionsApiFp;
1820
3770
  var UserPermissionsApiFactory = function (configuration, basePath, axios) {
1821
3771
  var localVarFp = (0, exports.UserPermissionsApiFp)(configuration);
1822
3772
  return {
3773
+ /**
3774
+ * List the available permissions for the current user
3775
+ * @summary List Org Permissions
3776
+ * @param {string} orgId
3777
+ * @param {*} [options] Override http request option.
3778
+ * @throws {RequiredError}
3779
+ */
3780
+ listOrgPermissions: function (orgId, options) {
3781
+ return localVarFp.listOrgPermissions(orgId, options).then(function (request) { return request(axios, basePath); });
3782
+ },
3783
+ /**
3784
+ * List the available roles for the current user
3785
+ * @summary List Org Roles
3786
+ * @param {string} orgId
3787
+ * @param {*} [options] Override http request option.
3788
+ * @throws {RequiredError}
3789
+ */
3790
+ listOrgRoles: function (orgId, options) {
3791
+ return localVarFp.listOrgRoles(orgId, options).then(function (request) { return request(axios, basePath); });
3792
+ },
1823
3793
  /**
1824
3794
  * List the available permissions for the current user
1825
3795
  * @summary List Own Permissions
@@ -1855,6 +3825,30 @@ var UserPermissionsApi = /** @class */ (function (_super) {
1855
3825
  function UserPermissionsApi() {
1856
3826
  return _super !== null && _super.apply(this, arguments) || this;
1857
3827
  }
3828
+ /**
3829
+ * List the available permissions for the current user
3830
+ * @summary List Org Permissions
3831
+ * @param {string} orgId
3832
+ * @param {*} [options] Override http request option.
3833
+ * @throws {RequiredError}
3834
+ * @memberof UserPermissionsApi
3835
+ */
3836
+ UserPermissionsApi.prototype.listOrgPermissions = function (orgId, options) {
3837
+ var _this = this;
3838
+ return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgPermissions(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3839
+ };
3840
+ /**
3841
+ * List the available roles for the current user
3842
+ * @summary List Org Roles
3843
+ * @param {string} orgId
3844
+ * @param {*} [options] Override http request option.
3845
+ * @throws {RequiredError}
3846
+ * @memberof UserPermissionsApi
3847
+ */
3848
+ UserPermissionsApi.prototype.listOrgRoles = function (orgId, options) {
3849
+ var _this = this;
3850
+ return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgRoles(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3851
+ };
1858
3852
  /**
1859
3853
  * List the available permissions for the current user
1860
3854
  * @summary List Own Permissions