@flipdish/authorization 0.0.5-rc.1756734017 → 0.0.6-rc.1764848166

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
@@ -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.GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum = 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,93 +189,7 @@ exports.AuthorizationRequestResourceOneOf2TypeEnum = {
181
189
  exports.AuthorizationRequestResourceOneOf3TypeEnum = {
182
190
  SalesChannel: 'SalesChannel'
183
191
  };
184
- exports.GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum = {
185
- OrgViewer: 'OrgViewer',
186
- OrgManager: 'OrgManager',
187
- OrgAdmin: 'OrgAdmin',
188
- BrandViewer: 'BrandViewer',
189
- BrandManager: 'BrandManager',
190
- BrandAdmin: 'BrandAdmin',
191
- StoreViewer: 'StoreViewer',
192
- StoreEditor: 'StoreEditor',
193
- StoreManager: 'StoreManager',
194
- CustomerViewer: 'CustomerViewer',
195
- CustomerManager: 'CustomerManager',
196
- VoucherViewer: 'VoucherViewer',
197
- VoucherEditor: 'VoucherEditor',
198
- VoucherManager: 'VoucherManager',
199
- VoucherCampaignManager: 'VoucherCampaignManager',
200
- VoucherStatisticsViewer: 'VoucherStatisticsViewer',
201
- AnalyticsViewer: 'AnalyticsViewer',
202
- ReportsViewer: 'ReportsViewer',
203
- FinanceViewer: 'FinanceViewer',
204
- FinanceManager: 'FinanceManager',
205
- TeamViewer: 'TeamViewer',
206
- TeamManager: 'TeamManager',
207
- TeamAdmin: 'TeamAdmin',
208
- TechViewer: 'TechViewer',
209
- TechManager: 'TechManager',
210
- AppStoreViewer: 'AppStoreViewer',
211
- AppStoreManager: 'AppStoreManager',
212
- SalesChannelViewer: 'SalesChannelViewer',
213
- SalesChannelEditor: 'SalesChannelEditor',
214
- SalesChannelManager: 'SalesChannelManager',
215
- DeliveryViewer: 'DeliveryViewer',
216
- DeliveryManager: 'DeliveryManager',
217
- DriverManager: 'DriverManager',
218
- AuditViewer: 'AuditViewer',
219
- AuditManager: 'AuditManager',
220
- AccountsViewer: 'AccountsViewer',
221
- AccountsEditor: 'AccountsEditor',
222
- DocumentExplorerViewer: 'DocumentExplorerViewer',
223
- DocumentExplorerEditor: 'DocumentExplorerEditor',
224
- PayrollViewer: 'PayrollViewer',
225
- PayrollEditor: 'PayrollEditor',
226
- PropertyViewer: 'PropertyViewer',
227
- PropertyManager: 'PropertyManager',
228
- PropertyAdmin: 'PropertyAdmin',
229
- WebsiteContentEditor: 'WebsiteContentEditor',
230
- WebsiteContentViewer: 'WebsiteContentViewer',
231
- WebsiteTechViewer: 'WebsiteTechViewer',
232
- MenuViewer: 'MenuViewer',
233
- MenuEditor: 'MenuEditor',
234
- MenuManager: 'MenuManager',
235
- MenuMetaFieldManager: 'MenuMetaFieldManager',
236
- MenuMetaFieldEditor: 'MenuMetaFieldEditor',
237
- MenuMetaFieldViewer: 'MenuMetaFieldViewer',
238
- StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
239
- StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
240
- StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
241
- OrderFulfillmentManager: 'OrderFulfillmentManager',
242
- OrderManager: 'OrderManager',
243
- OrderEditor: 'OrderEditor',
244
- OrderViewer: 'OrderViewer',
245
- InventoryManager: 'InventoryManager',
246
- InventoryEditor: 'InventoryEditor',
247
- InventoryViewer: 'InventoryViewer',
248
- PaymentManager: 'PaymentManager',
249
- OnboardingManager: 'OnboardingManager',
250
- FeatureFlagManager: 'FeatureFlagManager',
251
- PropertyOwnerMisc: 'PropertyOwnerMisc',
252
- ManagedOwnerMisc: 'ManagedOwnerMisc',
253
- IntegratorMisc: 'IntegratorMisc',
254
- PropertyManagerMisc: 'PropertyManagerMisc',
255
- FinanceManagerMisc: 'FinanceManagerMisc',
256
- SupportMisc: 'SupportMisc'
257
- };
258
- exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
259
- Property: 'Property',
260
- Org: 'Org',
261
- Brand: 'Brand',
262
- SalesChannel: 'SalesChannel'
263
- };
264
- exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
265
- Property: 'Property',
266
- Org: 'Org',
267
- Brand: 'Brand',
268
- SalesChannel: 'SalesChannel'
269
- };
270
- exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
192
+ exports.GetAuthorizedBrandsRequestActionEnum = {
271
193
  AnyAuditLogs: 'AnyAuditLogs',
272
194
  ViewApp: 'ViewApp',
273
195
  CreateApp: 'CreateApp',
@@ -491,14 +413,13 @@ exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
491
413
  EditEntityFeatureFlags: 'EditEntityFeatureFlags',
492
414
  CreateOrg: 'CreateOrg',
493
415
  EditOrg: 'EditOrg',
494
- ViewOrg: 'ViewOrg'
416
+ ViewOrg: 'ViewOrg',
417
+ ViewWebhooks: 'ViewWebhooks',
418
+ EditWebhooks: 'EditWebhooks',
419
+ RoleAdmin: 'RoleAdmin',
420
+ RoleFactory: 'RoleFactory'
495
421
  };
496
- /**
497
- *
498
- * @export
499
- * @enum {string}
500
- */
501
- exports.Permissions = {
422
+ exports.GetAuthorizedOrgsRequestActionEnum = {
502
423
  AnyAuditLogs: 'AnyAuditLogs',
503
424
  ViewApp: 'ViewApp',
504
425
  CreateApp: 'CreateApp',
@@ -722,254 +643,2053 @@ exports.Permissions = {
722
643
  EditEntityFeatureFlags: 'EditEntityFeatureFlags',
723
644
  CreateOrg: 'CreateOrg',
724
645
  EditOrg: 'EditOrg',
725
- ViewOrg: 'ViewOrg'
726
- };
727
- exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
728
- OwnerCompensating: 'OwnerCompensating',
729
- PropertyOwnerCompensating: 'PropertyOwnerCompensating',
730
- ManagedOwnerCompensating: 'ManagedOwnerCompensating',
731
- IntegratorCompensating: 'IntegratorCompensating',
732
- PropertyManagerCompensating: 'PropertyManagerCompensating',
733
- FinanceManagerCompensating: 'FinanceManagerCompensating'
734
- };
735
- exports.RevokeRoleRequestBodyRoleEnum = {
736
- OrgViewer: 'OrgViewer',
737
- OrgManager: 'OrgManager',
738
- OrgAdmin: 'OrgAdmin',
739
- BrandViewer: 'BrandViewer',
740
- BrandManager: 'BrandManager',
741
- BrandAdmin: 'BrandAdmin',
742
- StoreViewer: 'StoreViewer',
743
- StoreEditor: 'StoreEditor',
744
- StoreManager: 'StoreManager',
745
- CustomerViewer: 'CustomerViewer',
746
- CustomerManager: 'CustomerManager',
747
- VoucherViewer: 'VoucherViewer',
748
- VoucherEditor: 'VoucherEditor',
749
- VoucherManager: 'VoucherManager',
750
- VoucherCampaignManager: 'VoucherCampaignManager',
751
- VoucherStatisticsViewer: 'VoucherStatisticsViewer',
752
- AnalyticsViewer: 'AnalyticsViewer',
753
- ReportsViewer: 'ReportsViewer',
754
- FinanceViewer: 'FinanceViewer',
755
- FinanceManager: 'FinanceManager',
756
- TeamViewer: 'TeamViewer',
757
- TeamManager: 'TeamManager',
758
- TeamAdmin: 'TeamAdmin',
759
- TechViewer: 'TechViewer',
760
- TechManager: 'TechManager',
761
- AppStoreViewer: 'AppStoreViewer',
762
- AppStoreManager: 'AppStoreManager',
763
- SalesChannelViewer: 'SalesChannelViewer',
764
- SalesChannelEditor: 'SalesChannelEditor',
765
- SalesChannelManager: 'SalesChannelManager',
766
- DeliveryViewer: 'DeliveryViewer',
767
- DeliveryManager: 'DeliveryManager',
768
- DriverManager: 'DriverManager',
769
- AuditViewer: 'AuditViewer',
770
- AuditManager: 'AuditManager',
771
- AccountsViewer: 'AccountsViewer',
772
- AccountsEditor: 'AccountsEditor',
773
- DocumentExplorerViewer: 'DocumentExplorerViewer',
774
- DocumentExplorerEditor: 'DocumentExplorerEditor',
775
- PayrollViewer: 'PayrollViewer',
776
- PayrollEditor: 'PayrollEditor',
777
- PropertyViewer: 'PropertyViewer',
778
- PropertyManager: 'PropertyManager',
779
- PropertyAdmin: 'PropertyAdmin',
780
- WebsiteContentEditor: 'WebsiteContentEditor',
781
- WebsiteContentViewer: 'WebsiteContentViewer',
782
- WebsiteTechViewer: 'WebsiteTechViewer',
783
- MenuViewer: 'MenuViewer',
784
- MenuEditor: 'MenuEditor',
785
- MenuManager: 'MenuManager',
786
- MenuMetaFieldManager: 'MenuMetaFieldManager',
787
- MenuMetaFieldEditor: 'MenuMetaFieldEditor',
788
- MenuMetaFieldViewer: 'MenuMetaFieldViewer',
789
- StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
790
- StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
791
- StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
792
- OrderFulfillmentManager: 'OrderFulfillmentManager',
793
- OrderManager: 'OrderManager',
794
- OrderEditor: 'OrderEditor',
795
- OrderViewer: 'OrderViewer',
796
- InventoryManager: 'InventoryManager',
797
- InventoryEditor: 'InventoryEditor',
798
- InventoryViewer: 'InventoryViewer',
799
- PaymentManager: 'PaymentManager',
800
- OnboardingManager: 'OnboardingManager',
801
- FeatureFlagManager: 'FeatureFlagManager',
802
- PropertyOwnerMisc: 'PropertyOwnerMisc',
803
- ManagedOwnerMisc: 'ManagedOwnerMisc',
804
- IntegratorMisc: 'IntegratorMisc',
805
- PropertyManagerMisc: 'PropertyManagerMisc',
806
- FinanceManagerMisc: 'FinanceManagerMisc',
807
- SupportMisc: 'SupportMisc'
646
+ ViewOrg: 'ViewOrg',
647
+ ViewWebhooks: 'ViewWebhooks',
648
+ EditWebhooks: 'EditWebhooks',
649
+ RoleAdmin: 'RoleAdmin',
650
+ RoleFactory: 'RoleFactory'
808
651
  };
809
- /**
810
- * AuthenticationApi - axios parameter creator
811
- * @export
812
- */
813
- var AuthenticationApiAxiosParamCreator = function (configuration) {
814
- var _this = this;
815
- return {
816
- /**
817
- * Authenticate and authorize a user to perform an action
818
- * @summary Authenticate and authorize Request
819
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
820
- * @param {*} [options] Override http request option.
821
- * @throws {RequiredError}
822
- */
823
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest_1) {
824
- var args_1 = [];
825
- for (var _i = 1; _i < arguments.length; _i++) {
826
- args_1[_i - 1] = arguments[_i];
827
- }
828
- return __awaiter(_this, __spreadArray([authenticateAndAuthorizeRequest_1], args_1, true), void 0, function (authenticateAndAuthorizeRequest, options) {
829
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
830
- if (options === void 0) { options = {}; }
831
- return __generator(this, function (_a) {
832
- switch (_a.label) {
833
- case 0:
834
- localVarPath = "/authenticateAndAuthorize";
835
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
836
- if (configuration) {
837
- baseOptions = configuration.baseOptions;
838
- }
839
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
840
- localVarHeaderParameter = {};
841
- localVarQueryParameter = {};
842
- // authentication ApiKeyAuth required
843
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
844
- case 1:
845
- // authentication ApiKeyAuth required
846
- _a.sent();
847
- localVarHeaderParameter['Content-Type'] = 'application/json';
848
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
849
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
850
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
851
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration);
852
- return [2 /*return*/, {
853
- url: (0, common_1.toPathString)(localVarUrlObj),
854
- options: localVarRequestOptions,
855
- }];
856
- }
857
- });
858
- });
859
- },
860
- };
652
+ exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = {
653
+ User: 'User',
654
+ Automation: 'Automation'
861
655
  };
862
- exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
863
- /**
864
- * AuthenticationApi - functional programming interface
865
- * @export
866
- */
867
- var AuthenticationApiFp = function (configuration) {
868
- var localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
869
- return {
870
- /**
871
- * Authenticate and authorize a user to perform an action
872
- * @summary Authenticate and authorize Request
873
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
874
- * @param {*} [options] Override http request option.
875
- * @throws {RequiredError}
876
- */
877
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
878
- return __awaiter(this, void 0, void 0, function () {
879
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
880
- var _a, _b, _c;
881
- return __generator(this, function (_d) {
882
- switch (_d.label) {
883
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
884
- case 1:
885
- localVarAxiosArgs = _d.sent();
886
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
887
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.authenticateAndAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
888
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
889
- }
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.
2592
+ * @throws {RequiredError}
2593
+ */
2594
+ configListRoles: function () {
2595
+ var args_1 = [];
2596
+ for (var _i = 0; _i < arguments.length; _i++) {
2597
+ args_1[_i] = arguments[_i];
2598
+ }
2599
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
2600
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2601
+ if (options === void 0) { options = {}; }
2602
+ return __generator(this, function (_a) {
2603
+ switch (_a.label) {
2604
+ case 0:
2605
+ localVarPath = "/config/roles";
2606
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2607
+ if (configuration) {
2608
+ baseOptions = configuration.baseOptions;
2609
+ }
2610
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2611
+ localVarHeaderParameter = {};
2612
+ localVarQueryParameter = {};
2613
+ // authentication ApiKeyAuth required
2614
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2615
+ case 1:
2616
+ // authentication ApiKeyAuth required
2617
+ _a.sent();
2618
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2619
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2620
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2621
+ return [2 /*return*/, {
2622
+ url: (0, common_1.toPathString)(localVarUrlObj),
2623
+ options: localVarRequestOptions,
2624
+ }];
2625
+ }
890
2626
  });
891
2627
  });
892
2628
  },
893
- };
894
- };
895
- exports.AuthenticationApiFp = AuthenticationApiFp;
896
- /**
897
- * AuthenticationApi - factory interface
898
- * @export
899
- */
900
- var AuthenticationApiFactory = function (configuration, basePath, axios) {
901
- var localVarFp = (0, exports.AuthenticationApiFp)(configuration);
902
- return {
903
2629
  /**
904
- * Authenticate and authorize a user to perform an action
905
- * @summary Authenticate and authorize Request
906
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2630
+ * List the available feature based roles
2631
+ * @summary List Feature Based Roles
907
2632
  * @param {*} [options] Override http request option.
908
2633
  * @throws {RequiredError}
909
2634
  */
910
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
911
- return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
2635
+ listFeatureBasedRoles: function () {
2636
+ var args_1 = [];
2637
+ for (var _i = 0; _i < arguments.length; _i++) {
2638
+ args_1[_i] = arguments[_i];
2639
+ }
2640
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
2641
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2642
+ if (options === void 0) { options = {}; }
2643
+ return __generator(this, function (_a) {
2644
+ switch (_a.label) {
2645
+ case 0:
2646
+ localVarPath = "/featureBasedRoles";
2647
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2648
+ if (configuration) {
2649
+ baseOptions = configuration.baseOptions;
2650
+ }
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
+ });
912
2669
  },
913
- };
914
- };
915
- exports.AuthenticationApiFactory = AuthenticationApiFactory;
916
- /**
917
- * AuthenticationApi - object-oriented interface
918
- * @export
919
- * @class AuthenticationApi
920
- * @extends {BaseAPI}
921
- */
922
- var AuthenticationApi = /** @class */ (function (_super) {
923
- __extends(AuthenticationApi, _super);
924
- function AuthenticationApi() {
925
- return _super !== null && _super.apply(this, arguments) || this;
926
- }
927
- /**
928
- * Authenticate and authorize a user to perform an action
929
- * @summary Authenticate and authorize Request
930
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
931
- * @param {*} [options] Override http request option.
932
- * @throws {RequiredError}
933
- * @memberof AuthenticationApi
934
- */
935
- AuthenticationApi.prototype.authenticateAndAuthorize = function (authenticateAndAuthorizeRequest, options) {
936
- var _this = this;
937
- return (0, exports.AuthenticationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
938
- };
939
- return AuthenticationApi;
940
- }(base_1.BaseAPI));
941
- exports.AuthenticationApi = AuthenticationApi;
942
- /**
943
- * AuthorizationApi - axios parameter creator
944
- * @export
945
- */
946
- var AuthorizationApiAxiosParamCreator = function (configuration) {
947
- var _this = this;
948
- return {
949
2670
  /**
950
- * Authenticate and authorize a user to perform an action
951
- * @summary Authenticate and authorize Request
952
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2671
+ * List the available permissions
2672
+ * @summary List Permissions
953
2673
  * @param {*} [options] Override http request option.
954
2674
  * @throws {RequiredError}
955
2675
  */
956
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest_1) {
2676
+ listPermissions: function () {
957
2677
  var args_1 = [];
958
- for (var _i = 1; _i < arguments.length; _i++) {
959
- args_1[_i - 1] = arguments[_i];
2678
+ for (var _i = 0; _i < arguments.length; _i++) {
2679
+ args_1[_i] = arguments[_i];
960
2680
  }
961
- return __awaiter(_this, __spreadArray([authenticateAndAuthorizeRequest_1], args_1, true), void 0, function (authenticateAndAuthorizeRequest, options) {
2681
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
962
2682
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
963
2683
  if (options === void 0) { options = {}; }
964
2684
  return __generator(this, function (_a) {
965
2685
  switch (_a.label) {
966
2686
  case 0:
967
- localVarPath = "/authenticateAndAuthorize";
2687
+ localVarPath = "/permissions";
968
2688
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
969
2689
  if (configuration) {
970
2690
  baseOptions = configuration.baseOptions;
971
2691
  }
972
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2692
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
973
2693
  localVarHeaderParameter = {};
974
2694
  localVarQueryParameter = {};
975
2695
  // authentication ApiKeyAuth required
@@ -977,11 +2697,9 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
977
2697
  case 1:
978
2698
  // authentication ApiKeyAuth required
979
2699
  _a.sent();
980
- localVarHeaderParameter['Content-Type'] = 'application/json';
981
2700
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
982
2701
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
983
2702
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
984
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration);
985
2703
  return [2 /*return*/, {
986
2704
  url: (0, common_1.toPathString)(localVarUrlObj),
987
2705
  options: localVarRequestOptions,
@@ -991,29 +2709,28 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
991
2709
  });
992
2710
  },
993
2711
  /**
994
- * Check if a user is authorized to perform an action
995
- * @summary Authorize Request
996
- * @param {AuthorizationRequest} [authorizationRequest]
2712
+ * List the available roles
2713
+ * @summary List Roles
997
2714
  * @param {*} [options] Override http request option.
998
2715
  * @throws {RequiredError}
999
2716
  */
1000
- authorize: function (authorizationRequest_1) {
2717
+ listRoles: function () {
1001
2718
  var args_1 = [];
1002
- for (var _i = 1; _i < arguments.length; _i++) {
1003
- args_1[_i - 1] = arguments[_i];
2719
+ for (var _i = 0; _i < arguments.length; _i++) {
2720
+ args_1[_i] = arguments[_i];
1004
2721
  }
1005
- return __awaiter(_this, __spreadArray([authorizationRequest_1], args_1, true), void 0, function (authorizationRequest, options) {
2722
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
1006
2723
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1007
2724
  if (options === void 0) { options = {}; }
1008
2725
  return __generator(this, function (_a) {
1009
2726
  switch (_a.label) {
1010
2727
  case 0:
1011
- localVarPath = "/authorize";
2728
+ localVarPath = "/roles";
1012
2729
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1013
2730
  if (configuration) {
1014
2731
  baseOptions = configuration.baseOptions;
1015
2732
  }
1016
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2733
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1017
2734
  localVarHeaderParameter = {};
1018
2735
  localVarQueryParameter = {};
1019
2736
  // authentication ApiKeyAuth required
@@ -1021,11 +2738,9 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
1021
2738
  case 1:
1022
2739
  // authentication ApiKeyAuth required
1023
2740
  _a.sent();
1024
- localVarHeaderParameter['Content-Type'] = 'application/json';
1025
2741
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1026
2742
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1027
2743
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1028
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authorizationRequest, localVarRequestOptions, configuration);
1029
2744
  return [2 /*return*/, {
1030
2745
  url: (0, common_1.toPathString)(localVarUrlObj),
1031
2746
  options: localVarRequestOptions,
@@ -1036,189 +2751,102 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
1036
2751
  },
1037
2752
  };
1038
2753
  };
1039
- exports.AuthorizationApiAxiosParamCreator = AuthorizationApiAxiosParamCreator;
2754
+ exports.ConfigurationDataApiAxiosParamCreator = ConfigurationDataApiAxiosParamCreator;
1040
2755
  /**
1041
- * AuthorizationApi - functional programming interface
2756
+ * ConfigurationDataApi - functional programming interface
1042
2757
  * @export
1043
2758
  */
1044
- var AuthorizationApiFp = function (configuration) {
1045
- var localVarAxiosParamCreator = (0, exports.AuthorizationApiAxiosParamCreator)(configuration);
2759
+ var ConfigurationDataApiFp = function (configuration) {
2760
+ var localVarAxiosParamCreator = (0, exports.ConfigurationDataApiAxiosParamCreator)(configuration);
1046
2761
  return {
1047
2762
  /**
1048
- * Authenticate and authorize a user to perform an action
1049
- * @summary Authenticate and authorize Request
1050
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
2763
+ * List the available feature based roles
2764
+ * @summary List Feature Based Roles
1051
2765
  * @param {*} [options] Override http request option.
1052
2766
  * @throws {RequiredError}
1053
2767
  */
1054
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
2768
+ configListFeatureBasedRoles: function (options) {
1055
2769
  return __awaiter(this, void 0, void 0, function () {
1056
2770
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1057
2771
  var _a, _b, _c;
1058
2772
  return __generator(this, function (_d) {
1059
2773
  switch (_d.label) {
1060
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
2774
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListFeatureBasedRoles(options)];
1061
2775
  case 1:
1062
2776
  localVarAxiosArgs = _d.sent();
1063
2777
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1064
- 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;
1065
2779
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1066
2780
  }
1067
2781
  });
1068
2782
  });
1069
2783
  },
1070
2784
  /**
1071
- * Check if a user is authorized to perform an action
1072
- * @summary Authorize Request
1073
- * @param {AuthorizationRequest} [authorizationRequest]
2785
+ * List the available permissions
2786
+ * @summary List Permissions
1074
2787
  * @param {*} [options] Override http request option.
1075
2788
  * @throws {RequiredError}
1076
2789
  */
1077
- authorize: function (authorizationRequest, options) {
2790
+ configListPermissions: function (options) {
1078
2791
  return __awaiter(this, void 0, void 0, function () {
1079
2792
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1080
2793
  var _a, _b, _c;
1081
2794
  return __generator(this, function (_d) {
1082
2795
  switch (_d.label) {
1083
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.authorize(authorizationRequest, options)];
2796
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListPermissions(options)];
1084
2797
  case 1:
1085
2798
  localVarAxiosArgs = _d.sent();
1086
2799
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1087
- 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;
1088
2801
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1089
2802
  }
1090
2803
  });
1091
2804
  });
1092
2805
  },
1093
- };
1094
- };
1095
- exports.AuthorizationApiFp = AuthorizationApiFp;
1096
- /**
1097
- * AuthorizationApi - factory interface
1098
- * @export
1099
- */
1100
- var AuthorizationApiFactory = function (configuration, basePath, axios) {
1101
- var localVarFp = (0, exports.AuthorizationApiFp)(configuration);
1102
- return {
1103
- /**
1104
- * Authenticate and authorize a user to perform an action
1105
- * @summary Authenticate and authorize Request
1106
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
1107
- * @param {*} [options] Override http request option.
1108
- * @throws {RequiredError}
1109
- */
1110
- authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
1111
- return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
1112
- },
1113
- /**
1114
- * Check if a user is authorized to perform an action
1115
- * @summary Authorize Request
1116
- * @param {AuthorizationRequest} [authorizationRequest]
1117
- * @param {*} [options] Override http request option.
1118
- * @throws {RequiredError}
1119
- */
1120
- authorize: function (authorizationRequest, options) {
1121
- return localVarFp.authorize(authorizationRequest, options).then(function (request) { return request(axios, basePath); });
1122
- },
1123
- };
1124
- };
1125
- exports.AuthorizationApiFactory = AuthorizationApiFactory;
1126
- /**
1127
- * AuthorizationApi - object-oriented interface
1128
- * @export
1129
- * @class AuthorizationApi
1130
- * @extends {BaseAPI}
1131
- */
1132
- var AuthorizationApi = /** @class */ (function (_super) {
1133
- __extends(AuthorizationApi, _super);
1134
- function AuthorizationApi() {
1135
- return _super !== null && _super.apply(this, arguments) || this;
1136
- }
1137
- /**
1138
- * Authenticate and authorize a user to perform an action
1139
- * @summary Authenticate and authorize Request
1140
- * @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
1141
- * @param {*} [options] Override http request option.
1142
- * @throws {RequiredError}
1143
- * @memberof AuthorizationApi
1144
- */
1145
- AuthorizationApi.prototype.authenticateAndAuthorize = function (authenticateAndAuthorizeRequest, options) {
1146
- var _this = this;
1147
- return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1148
- };
1149
- /**
1150
- * Check if a user is authorized to perform an action
1151
- * @summary Authorize Request
1152
- * @param {AuthorizationRequest} [authorizationRequest]
1153
- * @param {*} [options] Override http request option.
1154
- * @throws {RequiredError}
1155
- * @memberof AuthorizationApi
1156
- */
1157
- AuthorizationApi.prototype.authorize = function (authorizationRequest, options) {
1158
- var _this = this;
1159
- return (0, exports.AuthorizationApiFp)(this.configuration).authorize(authorizationRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1160
- };
1161
- return AuthorizationApi;
1162
- }(base_1.BaseAPI));
1163
- exports.AuthorizationApi = AuthorizationApi;
1164
- /**
1165
- * PermissionsApi - axios parameter creator
1166
- * @export
1167
- */
1168
- var PermissionsApiAxiosParamCreator = function (configuration) {
1169
- var _this = this;
1170
- return {
1171
2806
  /**
1172
- * List the available permissions
1173
- * @summary List Permissions
2807
+ * List the available roles
2808
+ * @summary List Roles
1174
2809
  * @param {*} [options] Override http request option.
1175
2810
  * @throws {RequiredError}
1176
2811
  */
1177
- listPermissions: function () {
1178
- var args_1 = [];
1179
- for (var _i = 0; _i < arguments.length; _i++) {
1180
- args_1[_i] = arguments[_i];
1181
- }
1182
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
1183
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1184
- if (options === void 0) { options = {}; }
1185
- return __generator(this, function (_a) {
1186
- switch (_a.label) {
1187
- case 0:
1188
- localVarPath = "/permissions";
1189
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1190
- if (configuration) {
1191
- baseOptions = configuration.baseOptions;
1192
- }
1193
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1194
- localVarHeaderParameter = {};
1195
- localVarQueryParameter = {};
1196
- // authentication ApiKeyAuth required
1197
- 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)];
1198
2841
  case 1:
1199
- // authentication ApiKeyAuth required
1200
- _a.sent();
1201
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1202
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1203
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1204
- return [2 /*return*/, {
1205
- url: (0, common_1.toPathString)(localVarUrlObj),
1206
- options: localVarRequestOptions,
1207
- }];
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); }];
1208
2846
  }
1209
2847
  });
1210
2848
  });
1211
2849
  },
1212
- };
1213
- };
1214
- exports.PermissionsApiAxiosParamCreator = PermissionsApiAxiosParamCreator;
1215
- /**
1216
- * PermissionsApi - functional programming interface
1217
- * @export
1218
- */
1219
- var PermissionsApiFp = function (configuration) {
1220
- var localVarAxiosParamCreator = (0, exports.PermissionsApiAxiosParamCreator)(configuration);
1221
- return {
1222
2850
  /**
1223
2851
  * List the available permissions
1224
2852
  * @summary List Permissions
@@ -1235,7 +2863,29 @@ var PermissionsApiFp = function (configuration) {
1235
2863
  case 1:
1236
2864
  localVarAxiosArgs = _d.sent();
1237
2865
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1238
- 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;
1239
2889
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1240
2890
  }
1241
2891
  });
@@ -1243,14 +2893,50 @@ var PermissionsApiFp = function (configuration) {
1243
2893
  },
1244
2894
  };
1245
2895
  };
1246
- exports.PermissionsApiFp = PermissionsApiFp;
2896
+ exports.ConfigurationDataApiFp = ConfigurationDataApiFp;
1247
2897
  /**
1248
- * PermissionsApi - factory interface
2898
+ * ConfigurationDataApi - factory interface
1249
2899
  * @export
1250
2900
  */
1251
- var PermissionsApiFactory = function (configuration, basePath, axios) {
1252
- var localVarFp = (0, exports.PermissionsApiFp)(configuration);
2901
+ var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
2902
+ var localVarFp = (0, exports.ConfigurationDataApiFp)(configuration);
1253
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
+ },
1254
2940
  /**
1255
2941
  * List the available permissions
1256
2942
  * @summary List Permissions
@@ -1260,34 +2946,98 @@ var PermissionsApiFactory = function (configuration, basePath, axios) {
1260
2946
  listPermissions: function (options) {
1261
2947
  return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
1262
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
+ },
1263
2958
  };
1264
2959
  };
1265
- exports.PermissionsApiFactory = PermissionsApiFactory;
2960
+ exports.ConfigurationDataApiFactory = ConfigurationDataApiFactory;
1266
2961
  /**
1267
- * PermissionsApi - object-oriented interface
2962
+ * ConfigurationDataApi - object-oriented interface
1268
2963
  * @export
1269
- * @class PermissionsApi
2964
+ * @class ConfigurationDataApi
1270
2965
  * @extends {BaseAPI}
1271
2966
  */
1272
- var PermissionsApi = /** @class */ (function (_super) {
1273
- __extends(PermissionsApi, _super);
1274
- function PermissionsApi() {
2967
+ var ConfigurationDataApi = /** @class */ (function (_super) {
2968
+ __extends(ConfigurationDataApi, _super);
2969
+ function ConfigurationDataApi() {
1275
2970
  return _super !== null && _super.apply(this, arguments) || this;
1276
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
+ };
1277
3016
  /**
1278
3017
  * List the available permissions
1279
3018
  * @summary List Permissions
1280
3019
  * @param {*} [options] Override http request option.
1281
3020
  * @throws {RequiredError}
1282
- * @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
1283
3033
  */
1284
- PermissionsApi.prototype.listPermissions = function (options) {
3034
+ ConfigurationDataApi.prototype.listRoles = function (options) {
1285
3035
  var _this = this;
1286
- 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); });
1287
3037
  };
1288
- return PermissionsApi;
3038
+ return ConfigurationDataApi;
1289
3039
  }(base_1.BaseAPI));
1290
- exports.PermissionsApi = PermissionsApi;
3040
+ exports.ConfigurationDataApi = ConfigurationDataApi;
1291
3041
  /**
1292
3042
  * RoleAssignmentApi - axios parameter creator
1293
3043
  * @export
@@ -1723,6 +3473,96 @@ exports.RoleAssignmentApi = RoleAssignmentApi;
1723
3473
  var UserPermissionsApiAxiosParamCreator = function (configuration) {
1724
3474
  var _this = this;
1725
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
+ },
1726
3566
  /**
1727
3567
  * List the available permissions for the current user
1728
3568
  * @summary List Own Permissions
@@ -1827,6 +3667,52 @@ exports.UserPermissionsApiAxiosParamCreator = UserPermissionsApiAxiosParamCreato
1827
3667
  var UserPermissionsApiFp = function (configuration) {
1828
3668
  var localVarAxiosParamCreator = (0, exports.UserPermissionsApiAxiosParamCreator)(configuration);
1829
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
+ },
1830
3716
  /**
1831
3717
  * List the available permissions for the current user
1832
3718
  * @summary List Own Permissions
@@ -1884,6 +3770,26 @@ exports.UserPermissionsApiFp = UserPermissionsApiFp;
1884
3770
  var UserPermissionsApiFactory = function (configuration, basePath, axios) {
1885
3771
  var localVarFp = (0, exports.UserPermissionsApiFp)(configuration);
1886
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
+ },
1887
3793
  /**
1888
3794
  * List the available permissions for the current user
1889
3795
  * @summary List Own Permissions
@@ -1919,6 +3825,30 @@ var UserPermissionsApi = /** @class */ (function (_super) {
1919
3825
  function UserPermissionsApi() {
1920
3826
  return _super !== null && _super.apply(this, arguments) || this;
1921
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
+ };
1922
3852
  /**
1923
3853
  * List the available permissions for the current user
1924
3854
  * @summary List Own Permissions