@flipdish/authorization 0.0.3-rc.1756733706 → 0.0.3-rc.1766093275
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/README.md +218 -111
- package/api.ts +1894 -561
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1248 -482
- package/dist/api.js +1572 -423
- package/dist/configuration.js +1 -1
- package/package.json +2 -3
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.
|
|
87
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = 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.RoleNames = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueValueRolesEnum = exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = exports.IsInRoleRequestCheckModeEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = 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,18 @@ exports.AssignRoleRequestBodyRoleEnum = {
|
|
|
165
165
|
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
166
166
|
SupportMisc: 'SupportMisc'
|
|
167
167
|
};
|
|
168
|
+
exports.AuthenticateAndAuthorizeRequestCheckModeEnum = {
|
|
169
|
+
Any: 'any',
|
|
170
|
+
All: 'all'
|
|
171
|
+
};
|
|
172
|
+
exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = {
|
|
173
|
+
Any: 'any',
|
|
174
|
+
All: 'all'
|
|
175
|
+
};
|
|
176
|
+
exports.AuthorizationRequestCheckModeEnum = {
|
|
177
|
+
Any: 'any',
|
|
178
|
+
All: 'all'
|
|
179
|
+
};
|
|
168
180
|
exports.AuthorizationRequestPrincipalTypeEnum = {
|
|
169
181
|
User: 'User',
|
|
170
182
|
Automation: 'Automation'
|
|
@@ -181,7 +193,44 @@ exports.AuthorizationRequestResourceOneOf2TypeEnum = {
|
|
|
181
193
|
exports.AuthorizationRequestResourceOneOf3TypeEnum = {
|
|
182
194
|
SalesChannel: 'SalesChannel'
|
|
183
195
|
};
|
|
184
|
-
exports.
|
|
196
|
+
exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = {
|
|
197
|
+
User: 'User',
|
|
198
|
+
Automation: 'Automation'
|
|
199
|
+
};
|
|
200
|
+
exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
|
|
201
|
+
Main: 'Main',
|
|
202
|
+
BrandOverride: 'BrandOverride',
|
|
203
|
+
OrgOverride: 'OrgOverride',
|
|
204
|
+
Forbidden: 'Forbidden',
|
|
205
|
+
NamedRole: 'NamedRole'
|
|
206
|
+
};
|
|
207
|
+
exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
|
|
208
|
+
Property: 'Property',
|
|
209
|
+
Org: 'Org',
|
|
210
|
+
Brand: 'Brand',
|
|
211
|
+
SalesChannel: 'SalesChannel'
|
|
212
|
+
};
|
|
213
|
+
exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = {
|
|
214
|
+
User: 'User',
|
|
215
|
+
Automation: 'Automation'
|
|
216
|
+
};
|
|
217
|
+
exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
218
|
+
Property: 'Property',
|
|
219
|
+
Org: 'Org',
|
|
220
|
+
Brand: 'Brand',
|
|
221
|
+
SalesChannel: 'SalesChannel'
|
|
222
|
+
};
|
|
223
|
+
exports.IsInRoleRequestCheckModeEnum = {
|
|
224
|
+
Any: 'any',
|
|
225
|
+
All: 'all'
|
|
226
|
+
};
|
|
227
|
+
exports.ListOrgRolesSuccessResponseValueValueResourceTypeEnum = {
|
|
228
|
+
Property: 'Property',
|
|
229
|
+
Org: 'Org',
|
|
230
|
+
Brand: 'Brand',
|
|
231
|
+
SalesChannel: 'SalesChannel'
|
|
232
|
+
};
|
|
233
|
+
exports.ListOrgRolesSuccessResponseValueValueRolesEnum = {
|
|
185
234
|
OrgViewer: 'OrgViewer',
|
|
186
235
|
OrgManager: 'OrgManager',
|
|
187
236
|
OrgAdmin: 'OrgAdmin',
|
|
@@ -255,19 +304,12 @@ exports.GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum = {
|
|
|
255
304
|
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
256
305
|
SupportMisc: 'SupportMisc'
|
|
257
306
|
};
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
265
|
-
Property: 'Property',
|
|
266
|
-
Org: 'Org',
|
|
267
|
-
Brand: 'Brand',
|
|
268
|
-
SalesChannel: 'SalesChannel'
|
|
269
|
-
};
|
|
270
|
-
exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
|
|
307
|
+
/**
|
|
308
|
+
* Permissions
|
|
309
|
+
* @export
|
|
310
|
+
* @enum {string}
|
|
311
|
+
*/
|
|
312
|
+
exports.Permissions = {
|
|
271
313
|
AnyAuditLogs: 'AnyAuditLogs',
|
|
272
314
|
ViewApp: 'ViewApp',
|
|
273
315
|
CreateApp: 'CreateApp',
|
|
@@ -491,320 +533,102 @@ exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
|
|
|
491
533
|
EditEntityFeatureFlags: 'EditEntityFeatureFlags',
|
|
492
534
|
CreateOrg: 'CreateOrg',
|
|
493
535
|
EditOrg: 'EditOrg',
|
|
494
|
-
ViewOrg: 'ViewOrg'
|
|
536
|
+
ViewOrg: 'ViewOrg',
|
|
537
|
+
ViewWebhooks: 'ViewWebhooks',
|
|
538
|
+
EditWebhooks: 'EditWebhooks',
|
|
539
|
+
RoleAdmin: 'RoleAdmin',
|
|
540
|
+
RoleFactory: 'RoleFactory'
|
|
541
|
+
};
|
|
542
|
+
exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
|
|
543
|
+
OwnerCompensating: 'OwnerCompensating',
|
|
544
|
+
PropertyOwnerCompensating: 'PropertyOwnerCompensating',
|
|
545
|
+
ManagedOwnerCompensating: 'ManagedOwnerCompensating',
|
|
546
|
+
IntegratorCompensating: 'IntegratorCompensating',
|
|
547
|
+
PropertyManagerCompensating: 'PropertyManagerCompensating',
|
|
548
|
+
FinanceManagerCompensating: 'FinanceManagerCompensating'
|
|
549
|
+
};
|
|
550
|
+
exports.RevokeRoleRequestBodyRoleEnum = {
|
|
551
|
+
OrgViewer: 'OrgViewer',
|
|
552
|
+
OrgManager: 'OrgManager',
|
|
553
|
+
OrgAdmin: 'OrgAdmin',
|
|
554
|
+
BrandViewer: 'BrandViewer',
|
|
555
|
+
BrandManager: 'BrandManager',
|
|
556
|
+
BrandAdmin: 'BrandAdmin',
|
|
557
|
+
StoreViewer: 'StoreViewer',
|
|
558
|
+
StoreEditor: 'StoreEditor',
|
|
559
|
+
StoreManager: 'StoreManager',
|
|
560
|
+
CustomerViewer: 'CustomerViewer',
|
|
561
|
+
CustomerManager: 'CustomerManager',
|
|
562
|
+
VoucherViewer: 'VoucherViewer',
|
|
563
|
+
VoucherEditor: 'VoucherEditor',
|
|
564
|
+
VoucherManager: 'VoucherManager',
|
|
565
|
+
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
566
|
+
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
567
|
+
AnalyticsViewer: 'AnalyticsViewer',
|
|
568
|
+
ReportsViewer: 'ReportsViewer',
|
|
569
|
+
FinanceViewer: 'FinanceViewer',
|
|
570
|
+
FinanceManager: 'FinanceManager',
|
|
571
|
+
TeamViewer: 'TeamViewer',
|
|
572
|
+
TeamManager: 'TeamManager',
|
|
573
|
+
TeamAdmin: 'TeamAdmin',
|
|
574
|
+
TechViewer: 'TechViewer',
|
|
575
|
+
TechManager: 'TechManager',
|
|
576
|
+
AppStoreViewer: 'AppStoreViewer',
|
|
577
|
+
AppStoreManager: 'AppStoreManager',
|
|
578
|
+
SalesChannelViewer: 'SalesChannelViewer',
|
|
579
|
+
SalesChannelEditor: 'SalesChannelEditor',
|
|
580
|
+
SalesChannelManager: 'SalesChannelManager',
|
|
581
|
+
DeliveryViewer: 'DeliveryViewer',
|
|
582
|
+
DeliveryManager: 'DeliveryManager',
|
|
583
|
+
DriverManager: 'DriverManager',
|
|
584
|
+
AuditViewer: 'AuditViewer',
|
|
585
|
+
AuditManager: 'AuditManager',
|
|
586
|
+
AccountsViewer: 'AccountsViewer',
|
|
587
|
+
AccountsEditor: 'AccountsEditor',
|
|
588
|
+
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
589
|
+
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
590
|
+
PayrollViewer: 'PayrollViewer',
|
|
591
|
+
PayrollEditor: 'PayrollEditor',
|
|
592
|
+
PropertyViewer: 'PropertyViewer',
|
|
593
|
+
PropertyManager: 'PropertyManager',
|
|
594
|
+
PropertyAdmin: 'PropertyAdmin',
|
|
595
|
+
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
596
|
+
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
597
|
+
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
598
|
+
MenuViewer: 'MenuViewer',
|
|
599
|
+
MenuEditor: 'MenuEditor',
|
|
600
|
+
MenuManager: 'MenuManager',
|
|
601
|
+
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
602
|
+
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
603
|
+
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
604
|
+
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
605
|
+
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
606
|
+
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
607
|
+
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
608
|
+
OrderManager: 'OrderManager',
|
|
609
|
+
OrderEditor: 'OrderEditor',
|
|
610
|
+
OrderViewer: 'OrderViewer',
|
|
611
|
+
InventoryManager: 'InventoryManager',
|
|
612
|
+
InventoryEditor: 'InventoryEditor',
|
|
613
|
+
InventoryViewer: 'InventoryViewer',
|
|
614
|
+
PaymentManager: 'PaymentManager',
|
|
615
|
+
OnboardingManager: 'OnboardingManager',
|
|
616
|
+
FeatureFlagManager: 'FeatureFlagManager',
|
|
617
|
+
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
618
|
+
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
619
|
+
IntegratorMisc: 'IntegratorMisc',
|
|
620
|
+
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
621
|
+
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
622
|
+
SupportMisc: 'SupportMisc'
|
|
495
623
|
};
|
|
496
624
|
/**
|
|
497
|
-
*
|
|
625
|
+
* Role names
|
|
498
626
|
* @export
|
|
499
627
|
* @enum {string}
|
|
500
628
|
*/
|
|
501
|
-
exports.
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
CreateApp: 'CreateApp',
|
|
505
|
-
UpdateApp: 'UpdateApp',
|
|
506
|
-
ViewAppName: 'ViewAppName',
|
|
507
|
-
EditAppAssets: 'EditAppAssets',
|
|
508
|
-
EditAppFeatures: 'EditAppFeatures',
|
|
509
|
-
ViewTeammates: 'ViewTeammates',
|
|
510
|
-
EditTeammates: 'EditTeammates',
|
|
511
|
-
CreateTeammateOwner: 'CreateTeammateOwner',
|
|
512
|
-
CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
|
|
513
|
-
CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
|
|
514
|
-
CreateTeammateStoreManager: 'CreateTeammateStoreManager',
|
|
515
|
-
CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
|
|
516
|
-
CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
|
|
517
|
-
CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
|
|
518
|
-
CreateTeammateIntegrator: 'CreateTeammateIntegrator',
|
|
519
|
-
CreateTeammateOnboarding: 'CreateTeammateOnboarding',
|
|
520
|
-
CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
|
|
521
|
-
CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
|
|
522
|
-
ViewApmConfigurations: 'ViewApmConfigurations',
|
|
523
|
-
EditApmConfigurations: 'EditApmConfigurations',
|
|
524
|
-
ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
|
|
525
|
-
CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
|
|
526
|
-
UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
|
|
527
|
-
DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
|
|
528
|
-
StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
|
|
529
|
-
ViewDevelopersSettings: 'ViewDevelopersSettings',
|
|
530
|
-
EditDevelopersSettings: 'EditDevelopersSettings',
|
|
531
|
-
ViewOrders: 'ViewOrders',
|
|
532
|
-
UpdateOrdersAccept: 'UpdateOrdersAccept',
|
|
533
|
-
UpdateOrdersReject: 'UpdateOrdersReject',
|
|
534
|
-
UpdateOrdersRefund: 'UpdateOrdersRefund',
|
|
535
|
-
UpdateOrdersDispatch: 'UpdateOrdersDispatch',
|
|
536
|
-
ViewStores: 'ViewStores',
|
|
537
|
-
CreateStores: 'CreateStores',
|
|
538
|
-
EditStores: 'EditStores',
|
|
539
|
-
ViewStoresOpeningHours: 'ViewStoresOpeningHours',
|
|
540
|
-
UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
|
|
541
|
-
UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
|
|
542
|
-
ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
|
|
543
|
-
EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
|
|
544
|
-
EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
|
|
545
|
-
UpdateStoresName: 'UpdateStoresName',
|
|
546
|
-
EditStoreKioskSettings: 'EditStoreKioskSettings',
|
|
547
|
-
EditStoreOrderCapacity: 'EditStoreOrderCapacity',
|
|
548
|
-
EditStoreNotifications: 'EditStoreNotifications',
|
|
549
|
-
ArchiveStores: 'ArchiveStores',
|
|
550
|
-
PublishStores: 'PublishStores',
|
|
551
|
-
UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
|
|
552
|
-
UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
|
|
553
|
-
ViewStoreGroups: 'ViewStoreGroups',
|
|
554
|
-
CreateStoreGroups: 'CreateStoreGroups',
|
|
555
|
-
UpdateStoreGroups: 'UpdateStoreGroups',
|
|
556
|
-
DeleteStoreGroups: 'DeleteStoreGroups',
|
|
557
|
-
ViewDeliveryZones: 'ViewDeliveryZones',
|
|
558
|
-
CreateDeliveryZones: 'CreateDeliveryZones',
|
|
559
|
-
UpdateDeliveryZones: 'UpdateDeliveryZones',
|
|
560
|
-
DeleteDeliveryZones: 'DeleteDeliveryZones',
|
|
561
|
-
ViewMenu: 'ViewMenu',
|
|
562
|
-
CreateMenu: 'CreateMenu',
|
|
563
|
-
UpdateMenu: 'UpdateMenu',
|
|
564
|
-
DeleteMenu: 'DeleteMenu',
|
|
565
|
-
UpdateMenuLock: 'UpdateMenuLock',
|
|
566
|
-
UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
|
|
567
|
-
EditMenuImage: 'EditMenuImage',
|
|
568
|
-
ViewVouchers: 'ViewVouchers',
|
|
569
|
-
EditVouchers: 'EditVouchers',
|
|
570
|
-
ViewWebsiteContent: 'ViewWebsiteContent',
|
|
571
|
-
EditWebsiteContent: 'EditWebsiteContent',
|
|
572
|
-
ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
|
|
573
|
-
ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
|
|
574
|
-
ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
|
|
575
|
-
ViewBankAccounts: 'ViewBankAccounts',
|
|
576
|
-
CreateBankAccounts: 'CreateBankAccounts',
|
|
577
|
-
UpdateBankAccounts: 'UpdateBankAccounts',
|
|
578
|
-
UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
|
|
579
|
-
ViewAssignedBankAccount: 'ViewAssignedBankAccount',
|
|
580
|
-
VerifyBankAccounts: 'VerifyBankAccounts',
|
|
581
|
-
ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
|
|
582
|
-
EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
|
|
583
|
-
EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
|
|
584
|
-
EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
|
|
585
|
-
ViewHydraConfig: 'ViewHydraConfig',
|
|
586
|
-
UpdateHydraConfigManage: 'UpdateHydraConfigManage',
|
|
587
|
-
InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
|
|
588
|
-
DeleteTerminal: 'DeleteTerminal',
|
|
589
|
-
ViewKioskTelemetry: 'ViewKioskTelemetry',
|
|
590
|
-
ViewCustomers: 'ViewCustomers',
|
|
591
|
-
EditCustomers: 'EditCustomers',
|
|
592
|
-
CreateCustomers: 'CreateCustomers',
|
|
593
|
-
CreateCatalogElements: 'CreateCatalogElements',
|
|
594
|
-
UpdateCatalogElements: 'UpdateCatalogElements',
|
|
595
|
-
ViewCatalogElements: 'ViewCatalogElements',
|
|
596
|
-
DeleteCatalogElements: 'DeleteCatalogElements',
|
|
597
|
-
ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
|
|
598
|
-
CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
|
|
599
|
-
UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
|
|
600
|
-
DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
|
|
601
|
-
UpdateMetafields: 'UpdateMetafields',
|
|
602
|
-
ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
|
|
603
|
-
PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
|
|
604
|
-
ViewAppStatistics: 'ViewAppStatistics',
|
|
605
|
-
ViewApmStatistics: 'ViewApmStatistics',
|
|
606
|
-
ViewCampaignsStatistics: 'ViewCampaignsStatistics',
|
|
607
|
-
ViewCustomerStatistics: 'ViewCustomerStatistics',
|
|
608
|
-
ViewLiveStatistics: 'ViewLiveStatistics',
|
|
609
|
-
ViewOrderStatistics: 'ViewOrderStatistics',
|
|
610
|
-
ViewSalesStatistics: 'ViewSalesStatistics',
|
|
611
|
-
ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
|
|
612
|
-
ViewVouchersStatistics: 'ViewVouchersStatistics',
|
|
613
|
-
DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
|
|
614
|
-
ViewApmAuditLogs: 'ViewApmAuditLogs',
|
|
615
|
-
ViewStoreAuditLogs: 'ViewStoreAuditLogs',
|
|
616
|
-
ViewMenuAuditLogs: 'ViewMenuAuditLogs',
|
|
617
|
-
ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
|
|
618
|
-
ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
|
|
619
|
-
ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
|
|
620
|
-
ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
|
|
621
|
-
ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
|
|
622
|
-
ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
|
|
623
|
-
ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
|
|
624
|
-
ViewAppAuditLogs: 'ViewAppAuditLogs',
|
|
625
|
-
ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
|
|
626
|
-
ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
|
|
627
|
-
ViewHydraAuditLogs: 'ViewHydraAuditLogs',
|
|
628
|
-
ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
|
|
629
|
-
ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
|
|
630
|
-
ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
|
|
631
|
-
ViewExternalAuditLogs: 'ViewExternalAuditLogs',
|
|
632
|
-
CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
|
|
633
|
-
ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
|
|
634
|
-
ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
|
|
635
|
-
ViewChannelAuditLogs: 'ViewChannelAuditLogs',
|
|
636
|
-
ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
|
|
637
|
-
SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
|
|
638
|
-
InviteDriverToApp: 'InviteDriverToApp',
|
|
639
|
-
GetDriverForApp: 'GetDriverForApp',
|
|
640
|
-
RemoveDriverFromApp: 'RemoveDriverFromApp',
|
|
641
|
-
AssignDriverToOrder: 'AssignDriverToOrder',
|
|
642
|
-
UnassignDriverFromOrder: 'UnassignDriverFromOrder',
|
|
643
|
-
UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
|
|
644
|
-
UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
|
|
645
|
-
ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
|
|
646
|
-
CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
|
|
647
|
-
UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
|
|
648
|
-
DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
|
|
649
|
-
ViewPayouts: 'ViewPayouts',
|
|
650
|
-
ViewChannels: 'ViewChannels',
|
|
651
|
-
ViewOnboarding: 'ViewOnboarding',
|
|
652
|
-
UpdateOnboarding: 'UpdateOnboarding',
|
|
653
|
-
ViewClientDevices: 'ViewClientDevices',
|
|
654
|
-
UpdateClientDevices: 'UpdateClientDevices',
|
|
655
|
-
EnrollClientDevices: 'EnrollClientDevices',
|
|
656
|
-
AssignClientDevices: 'AssignClientDevices',
|
|
657
|
-
ViewClientAuditLogs: 'ViewClientAuditLogs',
|
|
658
|
-
CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
|
|
659
|
-
ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
|
|
660
|
-
UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
|
|
661
|
-
DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
|
|
662
|
-
UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
|
|
663
|
-
CreateAppStoreSubscription: 'CreateAppStoreSubscription',
|
|
664
|
-
UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
|
|
665
|
-
DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
|
|
666
|
-
ViewSalesChannels: 'ViewSalesChannels',
|
|
667
|
-
EditSalesChannels: 'EditSalesChannels',
|
|
668
|
-
CreateSalesChannel: 'CreateSalesChannel',
|
|
669
|
-
ArchiveSalesChannel: 'ArchiveSalesChannel',
|
|
670
|
-
UnarchiveSalesChannel: 'UnarchiveSalesChannel',
|
|
671
|
-
PublishSalesChannel: 'PublishSalesChannel',
|
|
672
|
-
UnpublishSalesChannel: 'UnpublishSalesChannel',
|
|
673
|
-
CloneSalesChannel: 'CloneSalesChannel',
|
|
674
|
-
ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
|
|
675
|
-
CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
|
|
676
|
-
UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
|
|
677
|
-
UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
|
|
678
|
-
ViewSubscriptions: 'ViewSubscriptions',
|
|
679
|
-
ViewInvoices: 'ViewInvoices',
|
|
680
|
-
EditAccountsBills: 'EditAccountsBills',
|
|
681
|
-
ViewAccountsBills: 'ViewAccountsBills',
|
|
682
|
-
EditAccountsCategories: 'EditAccountsCategories',
|
|
683
|
-
ViewAccountsCategories: 'ViewAccountsCategories',
|
|
684
|
-
EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
|
|
685
|
-
ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
|
|
686
|
-
EditAccountsCreditBooks: 'EditAccountsCreditBooks',
|
|
687
|
-
ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
|
|
688
|
-
EditAccountsExpenses: 'EditAccountsExpenses',
|
|
689
|
-
ViewAccountsExpenses: 'ViewAccountsExpenses',
|
|
690
|
-
EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
|
|
691
|
-
ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
|
|
692
|
-
EditDocumentExplorer: 'EditDocumentExplorer',
|
|
693
|
-
ViewDocumentExplorer: 'ViewDocumentExplorer',
|
|
694
|
-
ViewInventoryReports: 'ViewInventoryReports',
|
|
695
|
-
EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
|
|
696
|
-
ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
|
|
697
|
-
EditInventoryStockItems: 'EditInventoryStockItems',
|
|
698
|
-
ViewInventoryStockItems: 'ViewInventoryStockItems',
|
|
699
|
-
EditInventorySupplier: 'EditInventorySupplier',
|
|
700
|
-
ViewInventorySupplier: 'ViewInventorySupplier',
|
|
701
|
-
EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
|
|
702
|
-
ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
|
|
703
|
-
ViewPayrollReports: 'ViewPayrollReports',
|
|
704
|
-
EditPayrollHoliday: 'EditPayrollHoliday',
|
|
705
|
-
ViewPayrollHoliday: 'ViewPayrollHoliday',
|
|
706
|
-
EditPayrollRota: 'EditPayrollRota',
|
|
707
|
-
ViewPayrollRota: 'ViewPayrollRota',
|
|
708
|
-
EditPayrollStaff: 'EditPayrollStaff',
|
|
709
|
-
ViewPayrollStaff: 'ViewPayrollStaff',
|
|
710
|
-
ViewSalesReports: 'ViewSalesReports',
|
|
711
|
-
ViewCostReports: 'ViewCostReports',
|
|
712
|
-
ViewMenuReports: 'ViewMenuReports',
|
|
713
|
-
ViewBrand: 'ViewBrand',
|
|
714
|
-
EditBrand: 'EditBrand',
|
|
715
|
-
CreateBrand: 'CreateBrand',
|
|
716
|
-
TransferBrand: 'TransferBrand',
|
|
717
|
-
ViewProperty: 'ViewProperty',
|
|
718
|
-
EditProperty: 'EditProperty',
|
|
719
|
-
CreateProperty: 'CreateProperty',
|
|
720
|
-
ArchiveProperty: 'ArchiveProperty',
|
|
721
|
-
ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
|
|
722
|
-
EditEntityFeatureFlags: 'EditEntityFeatureFlags',
|
|
723
|
-
CreateOrg: 'CreateOrg',
|
|
724
|
-
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'
|
|
629
|
+
exports.RoleNames = {
|
|
630
|
+
Admin: 'Admin',
|
|
631
|
+
Factory: 'Factory'
|
|
808
632
|
};
|
|
809
633
|
/**
|
|
810
634
|
* AuthenticationApi - axios parameter creator
|
|
@@ -816,7 +640,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
816
640
|
/**
|
|
817
641
|
* Authenticate and authorize a user to perform an action
|
|
818
642
|
* @summary Authenticate and authorize Request
|
|
819
|
-
* @param {AuthenticateAndAuthorizeRequest}
|
|
643
|
+
* @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
|
|
820
644
|
* @param {*} [options] Override http request option.
|
|
821
645
|
* @throws {RequiredError}
|
|
822
646
|
*/
|
|
@@ -831,6 +655,8 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
831
655
|
return __generator(this, function (_a) {
|
|
832
656
|
switch (_a.label) {
|
|
833
657
|
case 0:
|
|
658
|
+
// verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined
|
|
659
|
+
(0, common_1.assertParamExists)('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest);
|
|
834
660
|
localVarPath = "/authenticateAndAuthorize";
|
|
835
661
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
836
662
|
if (configuration) {
|
|
@@ -870,7 +696,7 @@ var AuthenticationApiFp = function (configuration) {
|
|
|
870
696
|
/**
|
|
871
697
|
* Authenticate and authorize a user to perform an action
|
|
872
698
|
* @summary Authenticate and authorize Request
|
|
873
|
-
* @param {AuthenticateAndAuthorizeRequest}
|
|
699
|
+
* @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
|
|
874
700
|
* @param {*} [options] Override http request option.
|
|
875
701
|
* @throws {RequiredError}
|
|
876
702
|
*/
|
|
@@ -903,7 +729,7 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
903
729
|
/**
|
|
904
730
|
* Authenticate and authorize a user to perform an action
|
|
905
731
|
* @summary Authenticate and authorize Request
|
|
906
|
-
* @param {AuthenticateAndAuthorizeRequest}
|
|
732
|
+
* @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
|
|
907
733
|
* @param {*} [options] Override http request option.
|
|
908
734
|
* @throws {RequiredError}
|
|
909
735
|
*/
|
|
@@ -927,7 +753,7 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
927
753
|
/**
|
|
928
754
|
* Authenticate and authorize a user to perform an action
|
|
929
755
|
* @summary Authenticate and authorize Request
|
|
930
|
-
* @param {AuthenticateAndAuthorizeRequest}
|
|
756
|
+
* @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
|
|
931
757
|
* @param {*} [options] Override http request option.
|
|
932
758
|
* @throws {RequiredError}
|
|
933
759
|
* @memberof AuthenticationApi
|
|
@@ -949,7 +775,7 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
949
775
|
/**
|
|
950
776
|
* Authenticate and authorize a user to perform an action
|
|
951
777
|
* @summary Authenticate and authorize Request
|
|
952
|
-
* @param {AuthenticateAndAuthorizeRequest}
|
|
778
|
+
* @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
|
|
953
779
|
* @param {*} [options] Override http request option.
|
|
954
780
|
* @throws {RequiredError}
|
|
955
781
|
*/
|
|
@@ -964,6 +790,8 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
964
790
|
return __generator(this, function (_a) {
|
|
965
791
|
switch (_a.label) {
|
|
966
792
|
case 0:
|
|
793
|
+
// verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined
|
|
794
|
+
(0, common_1.assertParamExists)('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest);
|
|
967
795
|
localVarPath = "/authenticateAndAuthorize";
|
|
968
796
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
969
797
|
if (configuration) {
|
|
@@ -991,24 +819,24 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
991
819
|
});
|
|
992
820
|
},
|
|
993
821
|
/**
|
|
994
|
-
*
|
|
995
|
-
* @summary
|
|
996
|
-
* @param {
|
|
822
|
+
* Authenticate and check if a user is in any/all of the roles
|
|
823
|
+
* @summary Authenticate and Check Is In Role
|
|
824
|
+
* @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
|
|
997
825
|
* @param {*} [options] Override http request option.
|
|
998
826
|
* @throws {RequiredError}
|
|
999
827
|
*/
|
|
1000
|
-
|
|
828
|
+
authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest_1) {
|
|
1001
829
|
var args_1 = [];
|
|
1002
830
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1003
831
|
args_1[_i - 1] = arguments[_i];
|
|
1004
832
|
}
|
|
1005
|
-
return __awaiter(_this, __spreadArray([
|
|
833
|
+
return __awaiter(_this, __spreadArray([authenticateAndCheckIsInRoleRequest_1], args_1, true), void 0, function (authenticateAndCheckIsInRoleRequest, options) {
|
|
1006
834
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1007
835
|
if (options === void 0) { options = {}; }
|
|
1008
836
|
return __generator(this, function (_a) {
|
|
1009
837
|
switch (_a.label) {
|
|
1010
838
|
case 0:
|
|
1011
|
-
localVarPath = "/
|
|
839
|
+
localVarPath = "/authenticateAndCheckIsInRole";
|
|
1012
840
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1013
841
|
if (configuration) {
|
|
1014
842
|
baseOptions = configuration.baseOptions;
|
|
@@ -1025,7 +853,7 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
1025
853
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1026
854
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1027
855
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1028
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
856
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndCheckIsInRoleRequest, localVarRequestOptions, configuration);
|
|
1029
857
|
return [2 /*return*/, {
|
|
1030
858
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1031
859
|
options: localVarRequestOptions,
|
|
@@ -1034,62 +862,263 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
1034
862
|
});
|
|
1035
863
|
});
|
|
1036
864
|
},
|
|
1037
|
-
};
|
|
1038
|
-
};
|
|
1039
|
-
exports.AuthorizationApiAxiosParamCreator = AuthorizationApiAxiosParamCreator;
|
|
1040
|
-
/**
|
|
1041
|
-
* AuthorizationApi - functional programming interface
|
|
1042
|
-
* @export
|
|
1043
|
-
*/
|
|
1044
|
-
var AuthorizationApiFp = function (configuration) {
|
|
1045
|
-
var localVarAxiosParamCreator = (0, exports.AuthorizationApiAxiosParamCreator)(configuration);
|
|
1046
|
-
return {
|
|
1047
865
|
/**
|
|
1048
|
-
*
|
|
1049
|
-
* @summary
|
|
1050
|
-
* @param {
|
|
866
|
+
* Check if a user is authorized to perform an action
|
|
867
|
+
* @summary Authorize Request
|
|
868
|
+
* @param {AuthorizationRequest} [authorizationRequest]
|
|
1051
869
|
* @param {*} [options] Override http request option.
|
|
1052
870
|
* @throws {RequiredError}
|
|
1053
871
|
*/
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
872
|
+
authorize: function (authorizationRequest_1) {
|
|
873
|
+
var args_1 = [];
|
|
874
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
875
|
+
args_1[_i - 1] = arguments[_i];
|
|
876
|
+
}
|
|
877
|
+
return __awaiter(_this, __spreadArray([authorizationRequest_1], args_1, true), void 0, function (authorizationRequest, options) {
|
|
878
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
879
|
+
if (options === void 0) { options = {}; }
|
|
880
|
+
return __generator(this, function (_a) {
|
|
881
|
+
switch (_a.label) {
|
|
882
|
+
case 0:
|
|
883
|
+
localVarPath = "/authorize";
|
|
884
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
885
|
+
if (configuration) {
|
|
886
|
+
baseOptions = configuration.baseOptions;
|
|
887
|
+
}
|
|
888
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
889
|
+
localVarHeaderParameter = {};
|
|
890
|
+
localVarQueryParameter = {};
|
|
891
|
+
// authentication ApiKeyAuth required
|
|
892
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1061
893
|
case 1:
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
894
|
+
// authentication ApiKeyAuth required
|
|
895
|
+
_a.sent();
|
|
896
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
897
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
898
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
899
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
900
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authorizationRequest, localVarRequestOptions, configuration);
|
|
901
|
+
return [2 /*return*/, {
|
|
902
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
903
|
+
options: localVarRequestOptions,
|
|
904
|
+
}];
|
|
1066
905
|
}
|
|
1067
906
|
});
|
|
1068
907
|
});
|
|
1069
908
|
},
|
|
1070
909
|
/**
|
|
1071
|
-
* Check if a user is authorized to perform an action
|
|
1072
|
-
* @summary Authorize Request
|
|
1073
|
-
* @param {
|
|
910
|
+
* Check if a user is authorized to perform an action on multiple resources
|
|
911
|
+
* @summary Authorize Batch Request
|
|
912
|
+
* @param {AuthorizationBatchRequest} [authorizationBatchRequest]
|
|
1074
913
|
* @param {*} [options] Override http request option.
|
|
1075
914
|
* @throws {RequiredError}
|
|
1076
915
|
*/
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
916
|
+
authorizeBatch: function (authorizationBatchRequest_1) {
|
|
917
|
+
var args_1 = [];
|
|
918
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
919
|
+
args_1[_i - 1] = arguments[_i];
|
|
920
|
+
}
|
|
921
|
+
return __awaiter(_this, __spreadArray([authorizationBatchRequest_1], args_1, true), void 0, function (authorizationBatchRequest, options) {
|
|
922
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
923
|
+
if (options === void 0) { options = {}; }
|
|
924
|
+
return __generator(this, function (_a) {
|
|
925
|
+
switch (_a.label) {
|
|
926
|
+
case 0:
|
|
927
|
+
localVarPath = "/authorize/batch";
|
|
928
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
929
|
+
if (configuration) {
|
|
930
|
+
baseOptions = configuration.baseOptions;
|
|
931
|
+
}
|
|
932
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
933
|
+
localVarHeaderParameter = {};
|
|
934
|
+
localVarQueryParameter = {};
|
|
935
|
+
// authentication ApiKeyAuth required
|
|
936
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
937
|
+
case 1:
|
|
938
|
+
// authentication ApiKeyAuth required
|
|
939
|
+
_a.sent();
|
|
940
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
941
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
942
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
943
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
944
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authorizationBatchRequest, localVarRequestOptions, configuration);
|
|
945
|
+
return [2 /*return*/, {
|
|
946
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
947
|
+
options: localVarRequestOptions,
|
|
948
|
+
}];
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
});
|
|
952
|
+
},
|
|
953
|
+
/**
|
|
954
|
+
* Check if a user is in any/all of the roles
|
|
955
|
+
* @summary Check Is In Role
|
|
956
|
+
* @param {IsInRoleRequest} [isInRoleRequest]
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
checkIsInRole: function (isInRoleRequest_1) {
|
|
961
|
+
var args_1 = [];
|
|
962
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
963
|
+
args_1[_i - 1] = arguments[_i];
|
|
964
|
+
}
|
|
965
|
+
return __awaiter(_this, __spreadArray([isInRoleRequest_1], args_1, true), void 0, function (isInRoleRequest, options) {
|
|
966
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
967
|
+
if (options === void 0) { options = {}; }
|
|
968
|
+
return __generator(this, function (_a) {
|
|
969
|
+
switch (_a.label) {
|
|
970
|
+
case 0:
|
|
971
|
+
localVarPath = "/checkIsInRole";
|
|
972
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
973
|
+
if (configuration) {
|
|
974
|
+
baseOptions = configuration.baseOptions;
|
|
975
|
+
}
|
|
976
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
977
|
+
localVarHeaderParameter = {};
|
|
978
|
+
localVarQueryParameter = {};
|
|
979
|
+
// authentication ApiKeyAuth required
|
|
980
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
981
|
+
case 1:
|
|
982
|
+
// authentication ApiKeyAuth required
|
|
983
|
+
_a.sent();
|
|
984
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
985
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
986
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
987
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
988
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(isInRoleRequest, localVarRequestOptions, configuration);
|
|
989
|
+
return [2 /*return*/, {
|
|
990
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
991
|
+
options: localVarRequestOptions,
|
|
992
|
+
}];
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
});
|
|
996
|
+
},
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
exports.AuthorizationApiAxiosParamCreator = AuthorizationApiAxiosParamCreator;
|
|
1000
|
+
/**
|
|
1001
|
+
* AuthorizationApi - functional programming interface
|
|
1002
|
+
* @export
|
|
1003
|
+
*/
|
|
1004
|
+
var AuthorizationApiFp = function (configuration) {
|
|
1005
|
+
var localVarAxiosParamCreator = (0, exports.AuthorizationApiAxiosParamCreator)(configuration);
|
|
1006
|
+
return {
|
|
1007
|
+
/**
|
|
1008
|
+
* Authenticate and authorize a user to perform an action
|
|
1009
|
+
* @summary Authenticate and authorize Request
|
|
1010
|
+
* @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
*/
|
|
1014
|
+
authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
|
|
1015
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1016
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1017
|
+
var _a, _b, _c;
|
|
1018
|
+
return __generator(this, function (_d) {
|
|
1019
|
+
switch (_d.label) {
|
|
1020
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
|
|
1021
|
+
case 1:
|
|
1022
|
+
localVarAxiosArgs = _d.sent();
|
|
1023
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1024
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authenticateAndAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1025
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1026
|
+
}
|
|
1027
|
+
});
|
|
1028
|
+
});
|
|
1029
|
+
},
|
|
1030
|
+
/**
|
|
1031
|
+
* Authenticate and check if a user is in any/all of the roles
|
|
1032
|
+
* @summary Authenticate and Check Is In Role
|
|
1033
|
+
* @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
|
|
1034
|
+
* @param {*} [options] Override http request option.
|
|
1035
|
+
* @throws {RequiredError}
|
|
1036
|
+
*/
|
|
1037
|
+
authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest, options) {
|
|
1038
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1039
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1040
|
+
var _a, _b, _c;
|
|
1041
|
+
return __generator(this, function (_d) {
|
|
1042
|
+
switch (_d.label) {
|
|
1043
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options)];
|
|
1044
|
+
case 1:
|
|
1045
|
+
localVarAxiosArgs = _d.sent();
|
|
1046
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1047
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authenticateAndCheckIsInRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1048
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
});
|
|
1052
|
+
},
|
|
1053
|
+
/**
|
|
1054
|
+
* Check if a user is authorized to perform an action
|
|
1055
|
+
* @summary Authorize Request
|
|
1056
|
+
* @param {AuthorizationRequest} [authorizationRequest]
|
|
1057
|
+
* @param {*} [options] Override http request option.
|
|
1058
|
+
* @throws {RequiredError}
|
|
1059
|
+
*/
|
|
1060
|
+
authorize: function (authorizationRequest, options) {
|
|
1061
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1062
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1063
|
+
var _a, _b, _c;
|
|
1064
|
+
return __generator(this, function (_d) {
|
|
1065
|
+
switch (_d.label) {
|
|
1066
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.authorize(authorizationRequest, options)];
|
|
1067
|
+
case 1:
|
|
1068
|
+
localVarAxiosArgs = _d.sent();
|
|
1069
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1087
1070
|
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1088
1071
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1089
1072
|
}
|
|
1090
1073
|
});
|
|
1091
1074
|
});
|
|
1092
1075
|
},
|
|
1076
|
+
/**
|
|
1077
|
+
* Check if a user is authorized to perform an action on multiple resources
|
|
1078
|
+
* @summary Authorize Batch Request
|
|
1079
|
+
* @param {AuthorizationBatchRequest} [authorizationBatchRequest]
|
|
1080
|
+
* @param {*} [options] Override http request option.
|
|
1081
|
+
* @throws {RequiredError}
|
|
1082
|
+
*/
|
|
1083
|
+
authorizeBatch: function (authorizationBatchRequest, options) {
|
|
1084
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1085
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1086
|
+
var _a, _b, _c;
|
|
1087
|
+
return __generator(this, function (_d) {
|
|
1088
|
+
switch (_d.label) {
|
|
1089
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.authorizeBatch(authorizationBatchRequest, options)];
|
|
1090
|
+
case 1:
|
|
1091
|
+
localVarAxiosArgs = _d.sent();
|
|
1092
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1093
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authorizeBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1094
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1095
|
+
}
|
|
1096
|
+
});
|
|
1097
|
+
});
|
|
1098
|
+
},
|
|
1099
|
+
/**
|
|
1100
|
+
* Check if a user is in any/all of the roles
|
|
1101
|
+
* @summary Check Is In Role
|
|
1102
|
+
* @param {IsInRoleRequest} [isInRoleRequest]
|
|
1103
|
+
* @param {*} [options] Override http request option.
|
|
1104
|
+
* @throws {RequiredError}
|
|
1105
|
+
*/
|
|
1106
|
+
checkIsInRole: function (isInRoleRequest, options) {
|
|
1107
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1108
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1109
|
+
var _a, _b, _c;
|
|
1110
|
+
return __generator(this, function (_d) {
|
|
1111
|
+
switch (_d.label) {
|
|
1112
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.checkIsInRole(isInRoleRequest, options)];
|
|
1113
|
+
case 1:
|
|
1114
|
+
localVarAxiosArgs = _d.sent();
|
|
1115
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1116
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.checkIsInRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1117
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1118
|
+
}
|
|
1119
|
+
});
|
|
1120
|
+
});
|
|
1121
|
+
},
|
|
1093
1122
|
};
|
|
1094
1123
|
};
|
|
1095
1124
|
exports.AuthorizationApiFp = AuthorizationApiFp;
|
|
@@ -1103,13 +1132,23 @@ var AuthorizationApiFactory = function (configuration, basePath, axios) {
|
|
|
1103
1132
|
/**
|
|
1104
1133
|
* Authenticate and authorize a user to perform an action
|
|
1105
1134
|
* @summary Authenticate and authorize Request
|
|
1106
|
-
* @param {AuthenticateAndAuthorizeRequest}
|
|
1135
|
+
* @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
|
|
1107
1136
|
* @param {*} [options] Override http request option.
|
|
1108
1137
|
* @throws {RequiredError}
|
|
1109
1138
|
*/
|
|
1110
1139
|
authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
|
|
1111
1140
|
return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1112
1141
|
},
|
|
1142
|
+
/**
|
|
1143
|
+
* Authenticate and check if a user is in any/all of the roles
|
|
1144
|
+
* @summary Authenticate and Check Is In Role
|
|
1145
|
+
* @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
|
|
1146
|
+
* @param {*} [options] Override http request option.
|
|
1147
|
+
* @throws {RequiredError}
|
|
1148
|
+
*/
|
|
1149
|
+
authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest, options) {
|
|
1150
|
+
return localVarFp.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1151
|
+
},
|
|
1113
1152
|
/**
|
|
1114
1153
|
* Check if a user is authorized to perform an action
|
|
1115
1154
|
* @summary Authorize Request
|
|
@@ -1120,6 +1159,26 @@ var AuthorizationApiFactory = function (configuration, basePath, axios) {
|
|
|
1120
1159
|
authorize: function (authorizationRequest, options) {
|
|
1121
1160
|
return localVarFp.authorize(authorizationRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1122
1161
|
},
|
|
1162
|
+
/**
|
|
1163
|
+
* Check if a user is authorized to perform an action on multiple resources
|
|
1164
|
+
* @summary Authorize Batch Request
|
|
1165
|
+
* @param {AuthorizationBatchRequest} [authorizationBatchRequest]
|
|
1166
|
+
* @param {*} [options] Override http request option.
|
|
1167
|
+
* @throws {RequiredError}
|
|
1168
|
+
*/
|
|
1169
|
+
authorizeBatch: function (authorizationBatchRequest, options) {
|
|
1170
|
+
return localVarFp.authorizeBatch(authorizationBatchRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1171
|
+
},
|
|
1172
|
+
/**
|
|
1173
|
+
* Check if a user is in any/all of the roles
|
|
1174
|
+
* @summary Check Is In Role
|
|
1175
|
+
* @param {IsInRoleRequest} [isInRoleRequest]
|
|
1176
|
+
* @param {*} [options] Override http request option.
|
|
1177
|
+
* @throws {RequiredError}
|
|
1178
|
+
*/
|
|
1179
|
+
checkIsInRole: function (isInRoleRequest, options) {
|
|
1180
|
+
return localVarFp.checkIsInRole(isInRoleRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1181
|
+
},
|
|
1123
1182
|
};
|
|
1124
1183
|
};
|
|
1125
1184
|
exports.AuthorizationApiFactory = AuthorizationApiFactory;
|
|
@@ -1137,7 +1196,7 @@ var AuthorizationApi = /** @class */ (function (_super) {
|
|
|
1137
1196
|
/**
|
|
1138
1197
|
* Authenticate and authorize a user to perform an action
|
|
1139
1198
|
* @summary Authenticate and authorize Request
|
|
1140
|
-
* @param {AuthenticateAndAuthorizeRequest}
|
|
1199
|
+
* @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest
|
|
1141
1200
|
* @param {*} [options] Override http request option.
|
|
1142
1201
|
* @throws {RequiredError}
|
|
1143
1202
|
* @memberof AuthorizationApi
|
|
@@ -1146,6 +1205,18 @@ var AuthorizationApi = /** @class */ (function (_super) {
|
|
|
1146
1205
|
var _this = this;
|
|
1147
1206
|
return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1148
1207
|
};
|
|
1208
|
+
/**
|
|
1209
|
+
* Authenticate and check if a user is in any/all of the roles
|
|
1210
|
+
* @summary Authenticate and Check Is In Role
|
|
1211
|
+
* @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest]
|
|
1212
|
+
* @param {*} [options] Override http request option.
|
|
1213
|
+
* @throws {RequiredError}
|
|
1214
|
+
* @memberof AuthorizationApi
|
|
1215
|
+
*/
|
|
1216
|
+
AuthorizationApi.prototype.authenticateAndCheckIsInRole = function (authenticateAndCheckIsInRoleRequest, options) {
|
|
1217
|
+
var _this = this;
|
|
1218
|
+
return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1219
|
+
};
|
|
1149
1220
|
/**
|
|
1150
1221
|
* Check if a user is authorized to perform an action
|
|
1151
1222
|
* @summary Authorize Request
|
|
@@ -1158,39 +1229,68 @@ var AuthorizationApi = /** @class */ (function (_super) {
|
|
|
1158
1229
|
var _this = this;
|
|
1159
1230
|
return (0, exports.AuthorizationApiFp)(this.configuration).authorize(authorizationRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1160
1231
|
};
|
|
1232
|
+
/**
|
|
1233
|
+
* Check if a user is authorized to perform an action on multiple resources
|
|
1234
|
+
* @summary Authorize Batch Request
|
|
1235
|
+
* @param {AuthorizationBatchRequest} [authorizationBatchRequest]
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
* @memberof AuthorizationApi
|
|
1239
|
+
*/
|
|
1240
|
+
AuthorizationApi.prototype.authorizeBatch = function (authorizationBatchRequest, options) {
|
|
1241
|
+
var _this = this;
|
|
1242
|
+
return (0, exports.AuthorizationApiFp)(this.configuration).authorizeBatch(authorizationBatchRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1243
|
+
};
|
|
1244
|
+
/**
|
|
1245
|
+
* Check if a user is in any/all of the roles
|
|
1246
|
+
* @summary Check Is In Role
|
|
1247
|
+
* @param {IsInRoleRequest} [isInRoleRequest]
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
* @memberof AuthorizationApi
|
|
1251
|
+
*/
|
|
1252
|
+
AuthorizationApi.prototype.checkIsInRole = function (isInRoleRequest, options) {
|
|
1253
|
+
var _this = this;
|
|
1254
|
+
return (0, exports.AuthorizationApiFp)(this.configuration).checkIsInRole(isInRoleRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1255
|
+
};
|
|
1161
1256
|
return AuthorizationApi;
|
|
1162
1257
|
}(base_1.BaseAPI));
|
|
1163
1258
|
exports.AuthorizationApi = AuthorizationApi;
|
|
1164
1259
|
/**
|
|
1165
|
-
*
|
|
1260
|
+
* AuthorizedEntitiesApi - axios parameter creator
|
|
1166
1261
|
* @export
|
|
1167
1262
|
*/
|
|
1168
|
-
var
|
|
1263
|
+
var AuthorizedEntitiesApiAxiosParamCreator = function (configuration) {
|
|
1169
1264
|
var _this = this;
|
|
1170
1265
|
return {
|
|
1171
1266
|
/**
|
|
1172
|
-
*
|
|
1173
|
-
* @summary
|
|
1267
|
+
* Get the authorized brands for a given org
|
|
1268
|
+
* @summary Get Authorized Brands
|
|
1269
|
+
* @param {string} orgId
|
|
1270
|
+
* @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
|
|
1174
1271
|
* @param {*} [options] Override http request option.
|
|
1175
1272
|
* @throws {RequiredError}
|
|
1176
1273
|
*/
|
|
1177
|
-
|
|
1274
|
+
getAuthorizedBrands: function (orgId_1, getAuthorizedBrandsRequest_1) {
|
|
1178
1275
|
var args_1 = [];
|
|
1179
|
-
for (var _i =
|
|
1180
|
-
args_1[_i] = arguments[_i];
|
|
1276
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1277
|
+
args_1[_i - 2] = arguments[_i];
|
|
1181
1278
|
}
|
|
1182
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1279
|
+
return __awaiter(_this, __spreadArray([orgId_1, getAuthorizedBrandsRequest_1], args_1, true), void 0, function (orgId, getAuthorizedBrandsRequest, options) {
|
|
1183
1280
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1184
1281
|
if (options === void 0) { options = {}; }
|
|
1185
1282
|
return __generator(this, function (_a) {
|
|
1186
1283
|
switch (_a.label) {
|
|
1187
1284
|
case 0:
|
|
1188
|
-
|
|
1285
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1286
|
+
(0, common_1.assertParamExists)('getAuthorizedBrands', 'orgId', orgId);
|
|
1287
|
+
localVarPath = "/orgs/{orgId}/getAuthorizedBrands"
|
|
1288
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1189
1289
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1190
1290
|
if (configuration) {
|
|
1191
1291
|
baseOptions = configuration.baseOptions;
|
|
1192
1292
|
}
|
|
1193
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1293
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1194
1294
|
localVarHeaderParameter = {};
|
|
1195
1295
|
localVarQueryParameter = {};
|
|
1196
1296
|
// authentication ApiKeyAuth required
|
|
@@ -1198,9 +1298,11 @@ var PermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
1198
1298
|
case 1:
|
|
1199
1299
|
// authentication ApiKeyAuth required
|
|
1200
1300
|
_a.sent();
|
|
1301
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1201
1302
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1202
1303
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1203
1304
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1305
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAuthorizedBrandsRequest, localVarRequestOptions, configuration);
|
|
1204
1306
|
return [2 /*return*/, {
|
|
1205
1307
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1206
1308
|
options: localVarRequestOptions,
|
|
@@ -1209,33 +1311,666 @@ var PermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
1209
1311
|
});
|
|
1210
1312
|
});
|
|
1211
1313
|
},
|
|
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
1314
|
/**
|
|
1223
|
-
*
|
|
1224
|
-
* @summary
|
|
1315
|
+
* Get the authorized orgs for a given principal
|
|
1316
|
+
* @summary Get Authorized Orgs
|
|
1317
|
+
* @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
|
|
1225
1318
|
* @param {*} [options] Override http request option.
|
|
1226
1319
|
* @throws {RequiredError}
|
|
1227
1320
|
*/
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1321
|
+
getAuthorizedOrgs: function (getAuthorizedOrgsRequest_1) {
|
|
1322
|
+
var args_1 = [];
|
|
1323
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1324
|
+
args_1[_i - 1] = arguments[_i];
|
|
1325
|
+
}
|
|
1326
|
+
return __awaiter(_this, __spreadArray([getAuthorizedOrgsRequest_1], args_1, true), void 0, function (getAuthorizedOrgsRequest, options) {
|
|
1327
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1328
|
+
if (options === void 0) { options = {}; }
|
|
1329
|
+
return __generator(this, function (_a) {
|
|
1330
|
+
switch (_a.label) {
|
|
1331
|
+
case 0:
|
|
1332
|
+
localVarPath = "/getAuthorizedOrgs";
|
|
1333
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1334
|
+
if (configuration) {
|
|
1335
|
+
baseOptions = configuration.baseOptions;
|
|
1336
|
+
}
|
|
1337
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1338
|
+
localVarHeaderParameter = {};
|
|
1339
|
+
localVarQueryParameter = {};
|
|
1340
|
+
// authentication ApiKeyAuth required
|
|
1341
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1235
1342
|
case 1:
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1343
|
+
// authentication ApiKeyAuth required
|
|
1344
|
+
_a.sent();
|
|
1345
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1346
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1347
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1348
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1349
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAuthorizedOrgsRequest, localVarRequestOptions, configuration);
|
|
1350
|
+
return [2 /*return*/, {
|
|
1351
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1352
|
+
options: localVarRequestOptions,
|
|
1353
|
+
}];
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1356
|
+
});
|
|
1357
|
+
},
|
|
1358
|
+
/**
|
|
1359
|
+
* Get the authorized properties for a given org
|
|
1360
|
+
* @summary Get Authorized Properties
|
|
1361
|
+
* @param {string} orgId
|
|
1362
|
+
* @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
|
|
1363
|
+
* @param {*} [options] Override http request option.
|
|
1364
|
+
* @throws {RequiredError}
|
|
1365
|
+
*/
|
|
1366
|
+
getAuthorizedProperties: function (orgId_1, getAuthorizedPropertiesRequest_1) {
|
|
1367
|
+
var args_1 = [];
|
|
1368
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1369
|
+
args_1[_i - 2] = arguments[_i];
|
|
1370
|
+
}
|
|
1371
|
+
return __awaiter(_this, __spreadArray([orgId_1, getAuthorizedPropertiesRequest_1], args_1, true), void 0, function (orgId, getAuthorizedPropertiesRequest, options) {
|
|
1372
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1373
|
+
if (options === void 0) { options = {}; }
|
|
1374
|
+
return __generator(this, function (_a) {
|
|
1375
|
+
switch (_a.label) {
|
|
1376
|
+
case 0:
|
|
1377
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1378
|
+
(0, common_1.assertParamExists)('getAuthorizedProperties', 'orgId', orgId);
|
|
1379
|
+
localVarPath = "/orgs/{orgId}/getAuthorizedProperties"
|
|
1380
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1381
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1382
|
+
if (configuration) {
|
|
1383
|
+
baseOptions = configuration.baseOptions;
|
|
1384
|
+
}
|
|
1385
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1386
|
+
localVarHeaderParameter = {};
|
|
1387
|
+
localVarQueryParameter = {};
|
|
1388
|
+
// authentication ApiKeyAuth required
|
|
1389
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1390
|
+
case 1:
|
|
1391
|
+
// authentication ApiKeyAuth required
|
|
1392
|
+
_a.sent();
|
|
1393
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1394
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1395
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1396
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1397
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAuthorizedPropertiesRequest, localVarRequestOptions, configuration);
|
|
1398
|
+
return [2 /*return*/, {
|
|
1399
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1400
|
+
options: localVarRequestOptions,
|
|
1401
|
+
}];
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
});
|
|
1405
|
+
},
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1408
|
+
exports.AuthorizedEntitiesApiAxiosParamCreator = AuthorizedEntitiesApiAxiosParamCreator;
|
|
1409
|
+
/**
|
|
1410
|
+
* AuthorizedEntitiesApi - functional programming interface
|
|
1411
|
+
* @export
|
|
1412
|
+
*/
|
|
1413
|
+
var AuthorizedEntitiesApiFp = function (configuration) {
|
|
1414
|
+
var localVarAxiosParamCreator = (0, exports.AuthorizedEntitiesApiAxiosParamCreator)(configuration);
|
|
1415
|
+
return {
|
|
1416
|
+
/**
|
|
1417
|
+
* Get the authorized brands for a given org
|
|
1418
|
+
* @summary Get Authorized Brands
|
|
1419
|
+
* @param {string} orgId
|
|
1420
|
+
* @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
|
|
1421
|
+
* @param {*} [options] Override http request option.
|
|
1422
|
+
* @throws {RequiredError}
|
|
1423
|
+
*/
|
|
1424
|
+
getAuthorizedBrands: function (orgId, getAuthorizedBrandsRequest, options) {
|
|
1425
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1426
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1427
|
+
var _a, _b, _c;
|
|
1428
|
+
return __generator(this, function (_d) {
|
|
1429
|
+
switch (_d.label) {
|
|
1430
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options)];
|
|
1431
|
+
case 1:
|
|
1432
|
+
localVarAxiosArgs = _d.sent();
|
|
1433
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1434
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizedEntitiesApi.getAuthorizedBrands']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1435
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1438
|
+
});
|
|
1439
|
+
},
|
|
1440
|
+
/**
|
|
1441
|
+
* Get the authorized orgs for a given principal
|
|
1442
|
+
* @summary Get Authorized Orgs
|
|
1443
|
+
* @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
|
|
1444
|
+
* @param {*} [options] Override http request option.
|
|
1445
|
+
* @throws {RequiredError}
|
|
1446
|
+
*/
|
|
1447
|
+
getAuthorizedOrgs: function (getAuthorizedOrgsRequest, options) {
|
|
1448
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1449
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1450
|
+
var _a, _b, _c;
|
|
1451
|
+
return __generator(this, function (_d) {
|
|
1452
|
+
switch (_d.label) {
|
|
1453
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAuthorizedOrgs(getAuthorizedOrgsRequest, options)];
|
|
1454
|
+
case 1:
|
|
1455
|
+
localVarAxiosArgs = _d.sent();
|
|
1456
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1457
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizedEntitiesApi.getAuthorizedOrgs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1458
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
});
|
|
1462
|
+
},
|
|
1463
|
+
/**
|
|
1464
|
+
* Get the authorized properties for a given org
|
|
1465
|
+
* @summary Get Authorized Properties
|
|
1466
|
+
* @param {string} orgId
|
|
1467
|
+
* @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
|
|
1468
|
+
* @param {*} [options] Override http request option.
|
|
1469
|
+
* @throws {RequiredError}
|
|
1470
|
+
*/
|
|
1471
|
+
getAuthorizedProperties: function (orgId, getAuthorizedPropertiesRequest, options) {
|
|
1472
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1473
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1474
|
+
var _a, _b, _c;
|
|
1475
|
+
return __generator(this, function (_d) {
|
|
1476
|
+
switch (_d.label) {
|
|
1477
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options)];
|
|
1478
|
+
case 1:
|
|
1479
|
+
localVarAxiosArgs = _d.sent();
|
|
1480
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1481
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizedEntitiesApi.getAuthorizedProperties']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1482
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1483
|
+
}
|
|
1484
|
+
});
|
|
1485
|
+
});
|
|
1486
|
+
},
|
|
1487
|
+
};
|
|
1488
|
+
};
|
|
1489
|
+
exports.AuthorizedEntitiesApiFp = AuthorizedEntitiesApiFp;
|
|
1490
|
+
/**
|
|
1491
|
+
* AuthorizedEntitiesApi - factory interface
|
|
1492
|
+
* @export
|
|
1493
|
+
*/
|
|
1494
|
+
var AuthorizedEntitiesApiFactory = function (configuration, basePath, axios) {
|
|
1495
|
+
var localVarFp = (0, exports.AuthorizedEntitiesApiFp)(configuration);
|
|
1496
|
+
return {
|
|
1497
|
+
/**
|
|
1498
|
+
* Get the authorized brands for a given org
|
|
1499
|
+
* @summary Get Authorized Brands
|
|
1500
|
+
* @param {string} orgId
|
|
1501
|
+
* @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
*/
|
|
1505
|
+
getAuthorizedBrands: function (orgId, getAuthorizedBrandsRequest, options) {
|
|
1506
|
+
return localVarFp.getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1507
|
+
},
|
|
1508
|
+
/**
|
|
1509
|
+
* Get the authorized orgs for a given principal
|
|
1510
|
+
* @summary Get Authorized Orgs
|
|
1511
|
+
* @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
|
|
1512
|
+
* @param {*} [options] Override http request option.
|
|
1513
|
+
* @throws {RequiredError}
|
|
1514
|
+
*/
|
|
1515
|
+
getAuthorizedOrgs: function (getAuthorizedOrgsRequest, options) {
|
|
1516
|
+
return localVarFp.getAuthorizedOrgs(getAuthorizedOrgsRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1517
|
+
},
|
|
1518
|
+
/**
|
|
1519
|
+
* Get the authorized properties for a given org
|
|
1520
|
+
* @summary Get Authorized Properties
|
|
1521
|
+
* @param {string} orgId
|
|
1522
|
+
* @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
|
|
1523
|
+
* @param {*} [options] Override http request option.
|
|
1524
|
+
* @throws {RequiredError}
|
|
1525
|
+
*/
|
|
1526
|
+
getAuthorizedProperties: function (orgId, getAuthorizedPropertiesRequest, options) {
|
|
1527
|
+
return localVarFp.getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1528
|
+
},
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1531
|
+
exports.AuthorizedEntitiesApiFactory = AuthorizedEntitiesApiFactory;
|
|
1532
|
+
/**
|
|
1533
|
+
* AuthorizedEntitiesApi - object-oriented interface
|
|
1534
|
+
* @export
|
|
1535
|
+
* @class AuthorizedEntitiesApi
|
|
1536
|
+
* @extends {BaseAPI}
|
|
1537
|
+
*/
|
|
1538
|
+
var AuthorizedEntitiesApi = /** @class */ (function (_super) {
|
|
1539
|
+
__extends(AuthorizedEntitiesApi, _super);
|
|
1540
|
+
function AuthorizedEntitiesApi() {
|
|
1541
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Get the authorized brands for a given org
|
|
1545
|
+
* @summary Get Authorized Brands
|
|
1546
|
+
* @param {string} orgId
|
|
1547
|
+
* @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
|
|
1548
|
+
* @param {*} [options] Override http request option.
|
|
1549
|
+
* @throws {RequiredError}
|
|
1550
|
+
* @memberof AuthorizedEntitiesApi
|
|
1551
|
+
*/
|
|
1552
|
+
AuthorizedEntitiesApi.prototype.getAuthorizedBrands = function (orgId, getAuthorizedBrandsRequest, options) {
|
|
1553
|
+
var _this = this;
|
|
1554
|
+
return (0, exports.AuthorizedEntitiesApiFp)(this.configuration).getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1555
|
+
};
|
|
1556
|
+
/**
|
|
1557
|
+
* Get the authorized orgs for a given principal
|
|
1558
|
+
* @summary Get Authorized Orgs
|
|
1559
|
+
* @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
|
|
1560
|
+
* @param {*} [options] Override http request option.
|
|
1561
|
+
* @throws {RequiredError}
|
|
1562
|
+
* @memberof AuthorizedEntitiesApi
|
|
1563
|
+
*/
|
|
1564
|
+
AuthorizedEntitiesApi.prototype.getAuthorizedOrgs = function (getAuthorizedOrgsRequest, options) {
|
|
1565
|
+
var _this = this;
|
|
1566
|
+
return (0, exports.AuthorizedEntitiesApiFp)(this.configuration).getAuthorizedOrgs(getAuthorizedOrgsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1567
|
+
};
|
|
1568
|
+
/**
|
|
1569
|
+
* Get the authorized properties for a given org
|
|
1570
|
+
* @summary Get Authorized Properties
|
|
1571
|
+
* @param {string} orgId
|
|
1572
|
+
* @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest]
|
|
1573
|
+
* @param {*} [options] Override http request option.
|
|
1574
|
+
* @throws {RequiredError}
|
|
1575
|
+
* @memberof AuthorizedEntitiesApi
|
|
1576
|
+
*/
|
|
1577
|
+
AuthorizedEntitiesApi.prototype.getAuthorizedProperties = function (orgId, getAuthorizedPropertiesRequest, options) {
|
|
1578
|
+
var _this = this;
|
|
1579
|
+
return (0, exports.AuthorizedEntitiesApiFp)(this.configuration).getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1580
|
+
};
|
|
1581
|
+
return AuthorizedEntitiesApi;
|
|
1582
|
+
}(base_1.BaseAPI));
|
|
1583
|
+
exports.AuthorizedEntitiesApi = AuthorizedEntitiesApi;
|
|
1584
|
+
/**
|
|
1585
|
+
* ConfigurationDataApi - axios parameter creator
|
|
1586
|
+
* @export
|
|
1587
|
+
*/
|
|
1588
|
+
var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
1589
|
+
var _this = this;
|
|
1590
|
+
return {
|
|
1591
|
+
/**
|
|
1592
|
+
* List the available feature based roles
|
|
1593
|
+
* @summary List Feature Based Roles
|
|
1594
|
+
* @param {*} [options] Override http request option.
|
|
1595
|
+
* @throws {RequiredError}
|
|
1596
|
+
*/
|
|
1597
|
+
configListFeatureBasedRoles: function () {
|
|
1598
|
+
var args_1 = [];
|
|
1599
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1600
|
+
args_1[_i] = arguments[_i];
|
|
1601
|
+
}
|
|
1602
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1603
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1604
|
+
if (options === void 0) { options = {}; }
|
|
1605
|
+
return __generator(this, function (_a) {
|
|
1606
|
+
switch (_a.label) {
|
|
1607
|
+
case 0:
|
|
1608
|
+
localVarPath = "/config/featureBasedRoles";
|
|
1609
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1610
|
+
if (configuration) {
|
|
1611
|
+
baseOptions = configuration.baseOptions;
|
|
1612
|
+
}
|
|
1613
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1614
|
+
localVarHeaderParameter = {};
|
|
1615
|
+
localVarQueryParameter = {};
|
|
1616
|
+
// authentication ApiKeyAuth required
|
|
1617
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1618
|
+
case 1:
|
|
1619
|
+
// authentication ApiKeyAuth required
|
|
1620
|
+
_a.sent();
|
|
1621
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1622
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1623
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1624
|
+
return [2 /*return*/, {
|
|
1625
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1626
|
+
options: localVarRequestOptions,
|
|
1627
|
+
}];
|
|
1628
|
+
}
|
|
1629
|
+
});
|
|
1630
|
+
});
|
|
1631
|
+
},
|
|
1632
|
+
/**
|
|
1633
|
+
* List the available permissions
|
|
1634
|
+
* @summary List Permissions
|
|
1635
|
+
* @param {*} [options] Override http request option.
|
|
1636
|
+
* @throws {RequiredError}
|
|
1637
|
+
*/
|
|
1638
|
+
configListPermissions: function () {
|
|
1639
|
+
var args_1 = [];
|
|
1640
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1641
|
+
args_1[_i] = arguments[_i];
|
|
1642
|
+
}
|
|
1643
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1644
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1645
|
+
if (options === void 0) { options = {}; }
|
|
1646
|
+
return __generator(this, function (_a) {
|
|
1647
|
+
switch (_a.label) {
|
|
1648
|
+
case 0:
|
|
1649
|
+
localVarPath = "/config/permissions";
|
|
1650
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1651
|
+
if (configuration) {
|
|
1652
|
+
baseOptions = configuration.baseOptions;
|
|
1653
|
+
}
|
|
1654
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1655
|
+
localVarHeaderParameter = {};
|
|
1656
|
+
localVarQueryParameter = {};
|
|
1657
|
+
// authentication ApiKeyAuth required
|
|
1658
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1659
|
+
case 1:
|
|
1660
|
+
// authentication ApiKeyAuth required
|
|
1661
|
+
_a.sent();
|
|
1662
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1663
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1664
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1665
|
+
return [2 /*return*/, {
|
|
1666
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1667
|
+
options: localVarRequestOptions,
|
|
1668
|
+
}];
|
|
1669
|
+
}
|
|
1670
|
+
});
|
|
1671
|
+
});
|
|
1672
|
+
},
|
|
1673
|
+
/**
|
|
1674
|
+
* List the available roles
|
|
1675
|
+
* @summary List Roles
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
*/
|
|
1679
|
+
configListRoles: function () {
|
|
1680
|
+
var args_1 = [];
|
|
1681
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1682
|
+
args_1[_i] = arguments[_i];
|
|
1683
|
+
}
|
|
1684
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1685
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1686
|
+
if (options === void 0) { options = {}; }
|
|
1687
|
+
return __generator(this, function (_a) {
|
|
1688
|
+
switch (_a.label) {
|
|
1689
|
+
case 0:
|
|
1690
|
+
localVarPath = "/config/roles";
|
|
1691
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1692
|
+
if (configuration) {
|
|
1693
|
+
baseOptions = configuration.baseOptions;
|
|
1694
|
+
}
|
|
1695
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1696
|
+
localVarHeaderParameter = {};
|
|
1697
|
+
localVarQueryParameter = {};
|
|
1698
|
+
// authentication ApiKeyAuth required
|
|
1699
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1700
|
+
case 1:
|
|
1701
|
+
// authentication ApiKeyAuth required
|
|
1702
|
+
_a.sent();
|
|
1703
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1704
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1705
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1706
|
+
return [2 /*return*/, {
|
|
1707
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1708
|
+
options: localVarRequestOptions,
|
|
1709
|
+
}];
|
|
1710
|
+
}
|
|
1711
|
+
});
|
|
1712
|
+
});
|
|
1713
|
+
},
|
|
1714
|
+
/**
|
|
1715
|
+
* List the available feature based roles
|
|
1716
|
+
* @summary List Feature Based Roles
|
|
1717
|
+
* @param {*} [options] Override http request option.
|
|
1718
|
+
* @throws {RequiredError}
|
|
1719
|
+
*/
|
|
1720
|
+
listFeatureBasedRoles: function () {
|
|
1721
|
+
var args_1 = [];
|
|
1722
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1723
|
+
args_1[_i] = arguments[_i];
|
|
1724
|
+
}
|
|
1725
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1726
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1727
|
+
if (options === void 0) { options = {}; }
|
|
1728
|
+
return __generator(this, function (_a) {
|
|
1729
|
+
switch (_a.label) {
|
|
1730
|
+
case 0:
|
|
1731
|
+
localVarPath = "/featureBasedRoles";
|
|
1732
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1733
|
+
if (configuration) {
|
|
1734
|
+
baseOptions = configuration.baseOptions;
|
|
1735
|
+
}
|
|
1736
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1737
|
+
localVarHeaderParameter = {};
|
|
1738
|
+
localVarQueryParameter = {};
|
|
1739
|
+
// authentication ApiKeyAuth required
|
|
1740
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1741
|
+
case 1:
|
|
1742
|
+
// authentication ApiKeyAuth required
|
|
1743
|
+
_a.sent();
|
|
1744
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1745
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1746
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1747
|
+
return [2 /*return*/, {
|
|
1748
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1749
|
+
options: localVarRequestOptions,
|
|
1750
|
+
}];
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
});
|
|
1754
|
+
},
|
|
1755
|
+
/**
|
|
1756
|
+
* List the available permissions
|
|
1757
|
+
* @summary List Permissions
|
|
1758
|
+
* @param {*} [options] Override http request option.
|
|
1759
|
+
* @throws {RequiredError}
|
|
1760
|
+
*/
|
|
1761
|
+
listPermissions: function () {
|
|
1762
|
+
var args_1 = [];
|
|
1763
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1764
|
+
args_1[_i] = arguments[_i];
|
|
1765
|
+
}
|
|
1766
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1767
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1768
|
+
if (options === void 0) { options = {}; }
|
|
1769
|
+
return __generator(this, function (_a) {
|
|
1770
|
+
switch (_a.label) {
|
|
1771
|
+
case 0:
|
|
1772
|
+
localVarPath = "/permissions";
|
|
1773
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1774
|
+
if (configuration) {
|
|
1775
|
+
baseOptions = configuration.baseOptions;
|
|
1776
|
+
}
|
|
1777
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1778
|
+
localVarHeaderParameter = {};
|
|
1779
|
+
localVarQueryParameter = {};
|
|
1780
|
+
// authentication ApiKeyAuth required
|
|
1781
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1782
|
+
case 1:
|
|
1783
|
+
// authentication ApiKeyAuth required
|
|
1784
|
+
_a.sent();
|
|
1785
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1786
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1787
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1788
|
+
return [2 /*return*/, {
|
|
1789
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1790
|
+
options: localVarRequestOptions,
|
|
1791
|
+
}];
|
|
1792
|
+
}
|
|
1793
|
+
});
|
|
1794
|
+
});
|
|
1795
|
+
},
|
|
1796
|
+
/**
|
|
1797
|
+
* List the available roles
|
|
1798
|
+
* @summary List Roles
|
|
1799
|
+
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @throws {RequiredError}
|
|
1801
|
+
*/
|
|
1802
|
+
listRoles: function () {
|
|
1803
|
+
var args_1 = [];
|
|
1804
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1805
|
+
args_1[_i] = arguments[_i];
|
|
1806
|
+
}
|
|
1807
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1808
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1809
|
+
if (options === void 0) { options = {}; }
|
|
1810
|
+
return __generator(this, function (_a) {
|
|
1811
|
+
switch (_a.label) {
|
|
1812
|
+
case 0:
|
|
1813
|
+
localVarPath = "/roles";
|
|
1814
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1815
|
+
if (configuration) {
|
|
1816
|
+
baseOptions = configuration.baseOptions;
|
|
1817
|
+
}
|
|
1818
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1819
|
+
localVarHeaderParameter = {};
|
|
1820
|
+
localVarQueryParameter = {};
|
|
1821
|
+
// authentication ApiKeyAuth required
|
|
1822
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1823
|
+
case 1:
|
|
1824
|
+
// authentication ApiKeyAuth required
|
|
1825
|
+
_a.sent();
|
|
1826
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1827
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1828
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1829
|
+
return [2 /*return*/, {
|
|
1830
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1831
|
+
options: localVarRequestOptions,
|
|
1832
|
+
}];
|
|
1833
|
+
}
|
|
1834
|
+
});
|
|
1835
|
+
});
|
|
1836
|
+
},
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1839
|
+
exports.ConfigurationDataApiAxiosParamCreator = ConfigurationDataApiAxiosParamCreator;
|
|
1840
|
+
/**
|
|
1841
|
+
* ConfigurationDataApi - functional programming interface
|
|
1842
|
+
* @export
|
|
1843
|
+
*/
|
|
1844
|
+
var ConfigurationDataApiFp = function (configuration) {
|
|
1845
|
+
var localVarAxiosParamCreator = (0, exports.ConfigurationDataApiAxiosParamCreator)(configuration);
|
|
1846
|
+
return {
|
|
1847
|
+
/**
|
|
1848
|
+
* List the available feature based roles
|
|
1849
|
+
* @summary List Feature Based Roles
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
configListFeatureBasedRoles: function (options) {
|
|
1854
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1855
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1856
|
+
var _a, _b, _c;
|
|
1857
|
+
return __generator(this, function (_d) {
|
|
1858
|
+
switch (_d.label) {
|
|
1859
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListFeatureBasedRoles(options)];
|
|
1860
|
+
case 1:
|
|
1861
|
+
localVarAxiosArgs = _d.sent();
|
|
1862
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1863
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListFeatureBasedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1864
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1865
|
+
}
|
|
1866
|
+
});
|
|
1867
|
+
});
|
|
1868
|
+
},
|
|
1869
|
+
/**
|
|
1870
|
+
* List the available permissions
|
|
1871
|
+
* @summary List Permissions
|
|
1872
|
+
* @param {*} [options] Override http request option.
|
|
1873
|
+
* @throws {RequiredError}
|
|
1874
|
+
*/
|
|
1875
|
+
configListPermissions: function (options) {
|
|
1876
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1877
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1878
|
+
var _a, _b, _c;
|
|
1879
|
+
return __generator(this, function (_d) {
|
|
1880
|
+
switch (_d.label) {
|
|
1881
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListPermissions(options)];
|
|
1882
|
+
case 1:
|
|
1883
|
+
localVarAxiosArgs = _d.sent();
|
|
1884
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1885
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1886
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
});
|
|
1890
|
+
},
|
|
1891
|
+
/**
|
|
1892
|
+
* List the available roles
|
|
1893
|
+
* @summary List Roles
|
|
1894
|
+
* @param {*} [options] Override http request option.
|
|
1895
|
+
* @throws {RequiredError}
|
|
1896
|
+
*/
|
|
1897
|
+
configListRoles: function (options) {
|
|
1898
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1899
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1900
|
+
var _a, _b, _c;
|
|
1901
|
+
return __generator(this, function (_d) {
|
|
1902
|
+
switch (_d.label) {
|
|
1903
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListRoles(options)];
|
|
1904
|
+
case 1:
|
|
1905
|
+
localVarAxiosArgs = _d.sent();
|
|
1906
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1907
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1908
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1909
|
+
}
|
|
1910
|
+
});
|
|
1911
|
+
});
|
|
1912
|
+
},
|
|
1913
|
+
/**
|
|
1914
|
+
* List the available feature based roles
|
|
1915
|
+
* @summary List Feature Based Roles
|
|
1916
|
+
* @param {*} [options] Override http request option.
|
|
1917
|
+
* @throws {RequiredError}
|
|
1918
|
+
*/
|
|
1919
|
+
listFeatureBasedRoles: function (options) {
|
|
1920
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1921
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1922
|
+
var _a, _b, _c;
|
|
1923
|
+
return __generator(this, function (_d) {
|
|
1924
|
+
switch (_d.label) {
|
|
1925
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listFeatureBasedRoles(options)];
|
|
1926
|
+
case 1:
|
|
1927
|
+
localVarAxiosArgs = _d.sent();
|
|
1928
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1929
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listFeatureBasedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1930
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1931
|
+
}
|
|
1932
|
+
});
|
|
1933
|
+
});
|
|
1934
|
+
},
|
|
1935
|
+
/**
|
|
1936
|
+
* List the available permissions
|
|
1937
|
+
* @summary List Permissions
|
|
1938
|
+
* @param {*} [options] Override http request option.
|
|
1939
|
+
* @throws {RequiredError}
|
|
1940
|
+
*/
|
|
1941
|
+
listPermissions: function (options) {
|
|
1942
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1943
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1944
|
+
var _a, _b, _c;
|
|
1945
|
+
return __generator(this, function (_d) {
|
|
1946
|
+
switch (_d.label) {
|
|
1947
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPermissions(options)];
|
|
1948
|
+
case 1:
|
|
1949
|
+
localVarAxiosArgs = _d.sent();
|
|
1950
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1951
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1952
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1953
|
+
}
|
|
1954
|
+
});
|
|
1955
|
+
});
|
|
1956
|
+
},
|
|
1957
|
+
/**
|
|
1958
|
+
* List the available roles
|
|
1959
|
+
* @summary List Roles
|
|
1960
|
+
* @param {*} [options] Override http request option.
|
|
1961
|
+
* @throws {RequiredError}
|
|
1962
|
+
*/
|
|
1963
|
+
listRoles: function (options) {
|
|
1964
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1965
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1966
|
+
var _a, _b, _c;
|
|
1967
|
+
return __generator(this, function (_d) {
|
|
1968
|
+
switch (_d.label) {
|
|
1969
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(options)];
|
|
1970
|
+
case 1:
|
|
1971
|
+
localVarAxiosArgs = _d.sent();
|
|
1972
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1973
|
+
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
1974
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1240
1975
|
}
|
|
1241
1976
|
});
|
|
@@ -1243,14 +1978,50 @@ var PermissionsApiFp = function (configuration) {
|
|
|
1243
1978
|
},
|
|
1244
1979
|
};
|
|
1245
1980
|
};
|
|
1246
|
-
exports.
|
|
1981
|
+
exports.ConfigurationDataApiFp = ConfigurationDataApiFp;
|
|
1247
1982
|
/**
|
|
1248
|
-
*
|
|
1983
|
+
* ConfigurationDataApi - factory interface
|
|
1249
1984
|
* @export
|
|
1250
1985
|
*/
|
|
1251
|
-
var
|
|
1252
|
-
var localVarFp = (0, exports.
|
|
1986
|
+
var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
|
|
1987
|
+
var localVarFp = (0, exports.ConfigurationDataApiFp)(configuration);
|
|
1253
1988
|
return {
|
|
1989
|
+
/**
|
|
1990
|
+
* List the available feature based roles
|
|
1991
|
+
* @summary List Feature Based Roles
|
|
1992
|
+
* @param {*} [options] Override http request option.
|
|
1993
|
+
* @throws {RequiredError}
|
|
1994
|
+
*/
|
|
1995
|
+
configListFeatureBasedRoles: function (options) {
|
|
1996
|
+
return localVarFp.configListFeatureBasedRoles(options).then(function (request) { return request(axios, basePath); });
|
|
1997
|
+
},
|
|
1998
|
+
/**
|
|
1999
|
+
* List the available permissions
|
|
2000
|
+
* @summary List Permissions
|
|
2001
|
+
* @param {*} [options] Override http request option.
|
|
2002
|
+
* @throws {RequiredError}
|
|
2003
|
+
*/
|
|
2004
|
+
configListPermissions: function (options) {
|
|
2005
|
+
return localVarFp.configListPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
2006
|
+
},
|
|
2007
|
+
/**
|
|
2008
|
+
* List the available roles
|
|
2009
|
+
* @summary List Roles
|
|
2010
|
+
* @param {*} [options] Override http request option.
|
|
2011
|
+
* @throws {RequiredError}
|
|
2012
|
+
*/
|
|
2013
|
+
configListRoles: function (options) {
|
|
2014
|
+
return localVarFp.configListRoles(options).then(function (request) { return request(axios, basePath); });
|
|
2015
|
+
},
|
|
2016
|
+
/**
|
|
2017
|
+
* List the available feature based roles
|
|
2018
|
+
* @summary List Feature Based Roles
|
|
2019
|
+
* @param {*} [options] Override http request option.
|
|
2020
|
+
* @throws {RequiredError}
|
|
2021
|
+
*/
|
|
2022
|
+
listFeatureBasedRoles: function (options) {
|
|
2023
|
+
return localVarFp.listFeatureBasedRoles(options).then(function (request) { return request(axios, basePath); });
|
|
2024
|
+
},
|
|
1254
2025
|
/**
|
|
1255
2026
|
* List the available permissions
|
|
1256
2027
|
* @summary List Permissions
|
|
@@ -1260,34 +2031,98 @@ var PermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1260
2031
|
listPermissions: function (options) {
|
|
1261
2032
|
return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
1262
2033
|
},
|
|
2034
|
+
/**
|
|
2035
|
+
* List the available roles
|
|
2036
|
+
* @summary List Roles
|
|
2037
|
+
* @param {*} [options] Override http request option.
|
|
2038
|
+
* @throws {RequiredError}
|
|
2039
|
+
*/
|
|
2040
|
+
listRoles: function (options) {
|
|
2041
|
+
return localVarFp.listRoles(options).then(function (request) { return request(axios, basePath); });
|
|
2042
|
+
},
|
|
1263
2043
|
};
|
|
1264
2044
|
};
|
|
1265
|
-
exports.
|
|
2045
|
+
exports.ConfigurationDataApiFactory = ConfigurationDataApiFactory;
|
|
1266
2046
|
/**
|
|
1267
|
-
*
|
|
2047
|
+
* ConfigurationDataApi - object-oriented interface
|
|
1268
2048
|
* @export
|
|
1269
|
-
* @class
|
|
2049
|
+
* @class ConfigurationDataApi
|
|
1270
2050
|
* @extends {BaseAPI}
|
|
1271
2051
|
*/
|
|
1272
|
-
var
|
|
1273
|
-
__extends(
|
|
1274
|
-
function
|
|
2052
|
+
var ConfigurationDataApi = /** @class */ (function (_super) {
|
|
2053
|
+
__extends(ConfigurationDataApi, _super);
|
|
2054
|
+
function ConfigurationDataApi() {
|
|
1275
2055
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1276
2056
|
}
|
|
2057
|
+
/**
|
|
2058
|
+
* List the available feature based roles
|
|
2059
|
+
* @summary List Feature Based Roles
|
|
2060
|
+
* @param {*} [options] Override http request option.
|
|
2061
|
+
* @throws {RequiredError}
|
|
2062
|
+
* @memberof ConfigurationDataApi
|
|
2063
|
+
*/
|
|
2064
|
+
ConfigurationDataApi.prototype.configListFeatureBasedRoles = function (options) {
|
|
2065
|
+
var _this = this;
|
|
2066
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListFeatureBasedRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2067
|
+
};
|
|
2068
|
+
/**
|
|
2069
|
+
* List the available permissions
|
|
2070
|
+
* @summary List Permissions
|
|
2071
|
+
* @param {*} [options] Override http request option.
|
|
2072
|
+
* @throws {RequiredError}
|
|
2073
|
+
* @memberof ConfigurationDataApi
|
|
2074
|
+
*/
|
|
2075
|
+
ConfigurationDataApi.prototype.configListPermissions = function (options) {
|
|
2076
|
+
var _this = this;
|
|
2077
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2078
|
+
};
|
|
2079
|
+
/**
|
|
2080
|
+
* List the available roles
|
|
2081
|
+
* @summary List Roles
|
|
2082
|
+
* @param {*} [options] Override http request option.
|
|
2083
|
+
* @throws {RequiredError}
|
|
2084
|
+
* @memberof ConfigurationDataApi
|
|
2085
|
+
*/
|
|
2086
|
+
ConfigurationDataApi.prototype.configListRoles = function (options) {
|
|
2087
|
+
var _this = this;
|
|
2088
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2089
|
+
};
|
|
2090
|
+
/**
|
|
2091
|
+
* List the available feature based roles
|
|
2092
|
+
* @summary List Feature Based Roles
|
|
2093
|
+
* @param {*} [options] Override http request option.
|
|
2094
|
+
* @throws {RequiredError}
|
|
2095
|
+
* @memberof ConfigurationDataApi
|
|
2096
|
+
*/
|
|
2097
|
+
ConfigurationDataApi.prototype.listFeatureBasedRoles = function (options) {
|
|
2098
|
+
var _this = this;
|
|
2099
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listFeatureBasedRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2100
|
+
};
|
|
1277
2101
|
/**
|
|
1278
2102
|
* List the available permissions
|
|
1279
2103
|
* @summary List Permissions
|
|
1280
2104
|
* @param {*} [options] Override http request option.
|
|
1281
2105
|
* @throws {RequiredError}
|
|
1282
|
-
* @memberof
|
|
2106
|
+
* @memberof ConfigurationDataApi
|
|
2107
|
+
*/
|
|
2108
|
+
ConfigurationDataApi.prototype.listPermissions = function (options) {
|
|
2109
|
+
var _this = this;
|
|
2110
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2111
|
+
};
|
|
2112
|
+
/**
|
|
2113
|
+
* List the available roles
|
|
2114
|
+
* @summary List Roles
|
|
2115
|
+
* @param {*} [options] Override http request option.
|
|
2116
|
+
* @throws {RequiredError}
|
|
2117
|
+
* @memberof ConfigurationDataApi
|
|
1283
2118
|
*/
|
|
1284
|
-
|
|
2119
|
+
ConfigurationDataApi.prototype.listRoles = function (options) {
|
|
1285
2120
|
var _this = this;
|
|
1286
|
-
return (0, exports.
|
|
2121
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1287
2122
|
};
|
|
1288
|
-
return
|
|
2123
|
+
return ConfigurationDataApi;
|
|
1289
2124
|
}(base_1.BaseAPI));
|
|
1290
|
-
exports.
|
|
2125
|
+
exports.ConfigurationDataApi = ConfigurationDataApi;
|
|
1291
2126
|
/**
|
|
1292
2127
|
* RoleAssignmentApi - axios parameter creator
|
|
1293
2128
|
* @export
|
|
@@ -1370,7 +2205,7 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
1370
2205
|
if (configuration) {
|
|
1371
2206
|
baseOptions = configuration.baseOptions;
|
|
1372
2207
|
}
|
|
1373
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2208
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1374
2209
|
localVarHeaderParameter = {};
|
|
1375
2210
|
localVarQueryParameter = {};
|
|
1376
2211
|
// authentication ApiKeyAuth required
|
|
@@ -1716,6 +2551,140 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
1716
2551
|
return RoleAssignmentApi;
|
|
1717
2552
|
}(base_1.BaseAPI));
|
|
1718
2553
|
exports.RoleAssignmentApi = RoleAssignmentApi;
|
|
2554
|
+
/**
|
|
2555
|
+
* UserManagementApi - axios parameter creator
|
|
2556
|
+
* @export
|
|
2557
|
+
*/
|
|
2558
|
+
var UserManagementApiAxiosParamCreator = function (configuration) {
|
|
2559
|
+
var _this = this;
|
|
2560
|
+
return {
|
|
2561
|
+
/**
|
|
2562
|
+
* List the users in a given org
|
|
2563
|
+
* @summary List Users in Org
|
|
2564
|
+
* @param {string} orgId
|
|
2565
|
+
* @param {*} [options] Override http request option.
|
|
2566
|
+
* @throws {RequiredError}
|
|
2567
|
+
*/
|
|
2568
|
+
listUsersInOrg: function (orgId_1) {
|
|
2569
|
+
var args_1 = [];
|
|
2570
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2571
|
+
args_1[_i - 1] = arguments[_i];
|
|
2572
|
+
}
|
|
2573
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
2574
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2575
|
+
if (options === void 0) { options = {}; }
|
|
2576
|
+
return __generator(this, function (_a) {
|
|
2577
|
+
switch (_a.label) {
|
|
2578
|
+
case 0:
|
|
2579
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
2580
|
+
(0, common_1.assertParamExists)('listUsersInOrg', 'orgId', orgId);
|
|
2581
|
+
localVarPath = "/orgs/{orgId}/users"
|
|
2582
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2583
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2584
|
+
if (configuration) {
|
|
2585
|
+
baseOptions = configuration.baseOptions;
|
|
2586
|
+
}
|
|
2587
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2588
|
+
localVarHeaderParameter = {};
|
|
2589
|
+
localVarQueryParameter = {};
|
|
2590
|
+
// authentication ApiKeyAuth required
|
|
2591
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2592
|
+
case 1:
|
|
2593
|
+
// authentication ApiKeyAuth required
|
|
2594
|
+
_a.sent();
|
|
2595
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2596
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2597
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2598
|
+
return [2 /*return*/, {
|
|
2599
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2600
|
+
options: localVarRequestOptions,
|
|
2601
|
+
}];
|
|
2602
|
+
}
|
|
2603
|
+
});
|
|
2604
|
+
});
|
|
2605
|
+
},
|
|
2606
|
+
};
|
|
2607
|
+
};
|
|
2608
|
+
exports.UserManagementApiAxiosParamCreator = UserManagementApiAxiosParamCreator;
|
|
2609
|
+
/**
|
|
2610
|
+
* UserManagementApi - functional programming interface
|
|
2611
|
+
* @export
|
|
2612
|
+
*/
|
|
2613
|
+
var UserManagementApiFp = function (configuration) {
|
|
2614
|
+
var localVarAxiosParamCreator = (0, exports.UserManagementApiAxiosParamCreator)(configuration);
|
|
2615
|
+
return {
|
|
2616
|
+
/**
|
|
2617
|
+
* List the users in a given org
|
|
2618
|
+
* @summary List Users in Org
|
|
2619
|
+
* @param {string} orgId
|
|
2620
|
+
* @param {*} [options] Override http request option.
|
|
2621
|
+
* @throws {RequiredError}
|
|
2622
|
+
*/
|
|
2623
|
+
listUsersInOrg: function (orgId, options) {
|
|
2624
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2625
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2626
|
+
var _a, _b, _c;
|
|
2627
|
+
return __generator(this, function (_d) {
|
|
2628
|
+
switch (_d.label) {
|
|
2629
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsersInOrg(orgId, options)];
|
|
2630
|
+
case 1:
|
|
2631
|
+
localVarAxiosArgs = _d.sent();
|
|
2632
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2633
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManagementApi.listUsersInOrg']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2634
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2635
|
+
}
|
|
2636
|
+
});
|
|
2637
|
+
});
|
|
2638
|
+
},
|
|
2639
|
+
};
|
|
2640
|
+
};
|
|
2641
|
+
exports.UserManagementApiFp = UserManagementApiFp;
|
|
2642
|
+
/**
|
|
2643
|
+
* UserManagementApi - factory interface
|
|
2644
|
+
* @export
|
|
2645
|
+
*/
|
|
2646
|
+
var UserManagementApiFactory = function (configuration, basePath, axios) {
|
|
2647
|
+
var localVarFp = (0, exports.UserManagementApiFp)(configuration);
|
|
2648
|
+
return {
|
|
2649
|
+
/**
|
|
2650
|
+
* List the users in a given org
|
|
2651
|
+
* @summary List Users in Org
|
|
2652
|
+
* @param {string} orgId
|
|
2653
|
+
* @param {*} [options] Override http request option.
|
|
2654
|
+
* @throws {RequiredError}
|
|
2655
|
+
*/
|
|
2656
|
+
listUsersInOrg: function (orgId, options) {
|
|
2657
|
+
return localVarFp.listUsersInOrg(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
2658
|
+
},
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2661
|
+
exports.UserManagementApiFactory = UserManagementApiFactory;
|
|
2662
|
+
/**
|
|
2663
|
+
* UserManagementApi - object-oriented interface
|
|
2664
|
+
* @export
|
|
2665
|
+
* @class UserManagementApi
|
|
2666
|
+
* @extends {BaseAPI}
|
|
2667
|
+
*/
|
|
2668
|
+
var UserManagementApi = /** @class */ (function (_super) {
|
|
2669
|
+
__extends(UserManagementApi, _super);
|
|
2670
|
+
function UserManagementApi() {
|
|
2671
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2672
|
+
}
|
|
2673
|
+
/**
|
|
2674
|
+
* List the users in a given org
|
|
2675
|
+
* @summary List Users in Org
|
|
2676
|
+
* @param {string} orgId
|
|
2677
|
+
* @param {*} [options] Override http request option.
|
|
2678
|
+
* @throws {RequiredError}
|
|
2679
|
+
* @memberof UserManagementApi
|
|
2680
|
+
*/
|
|
2681
|
+
UserManagementApi.prototype.listUsersInOrg = function (orgId, options) {
|
|
2682
|
+
var _this = this;
|
|
2683
|
+
return (0, exports.UserManagementApiFp)(this.configuration).listUsersInOrg(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2684
|
+
};
|
|
2685
|
+
return UserManagementApi;
|
|
2686
|
+
}(base_1.BaseAPI));
|
|
2687
|
+
exports.UserManagementApi = UserManagementApi;
|
|
1719
2688
|
/**
|
|
1720
2689
|
* UserPermissionsApi - axios parameter creator
|
|
1721
2690
|
* @export
|
|
@@ -1723,6 +2692,96 @@ exports.RoleAssignmentApi = RoleAssignmentApi;
|
|
|
1723
2692
|
var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
1724
2693
|
var _this = this;
|
|
1725
2694
|
return {
|
|
2695
|
+
/**
|
|
2696
|
+
* List the available permissions for the current user
|
|
2697
|
+
* @summary List Org Permissions
|
|
2698
|
+
* @param {string} orgId
|
|
2699
|
+
* @param {*} [options] Override http request option.
|
|
2700
|
+
* @throws {RequiredError}
|
|
2701
|
+
*/
|
|
2702
|
+
listOrgPermissions: function (orgId_1) {
|
|
2703
|
+
var args_1 = [];
|
|
2704
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2705
|
+
args_1[_i - 1] = arguments[_i];
|
|
2706
|
+
}
|
|
2707
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
2708
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2709
|
+
if (options === void 0) { options = {}; }
|
|
2710
|
+
return __generator(this, function (_a) {
|
|
2711
|
+
switch (_a.label) {
|
|
2712
|
+
case 0:
|
|
2713
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
2714
|
+
(0, common_1.assertParamExists)('listOrgPermissions', 'orgId', orgId);
|
|
2715
|
+
localVarPath = "/orgs/{orgId}/permissions"
|
|
2716
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2717
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2718
|
+
if (configuration) {
|
|
2719
|
+
baseOptions = configuration.baseOptions;
|
|
2720
|
+
}
|
|
2721
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2722
|
+
localVarHeaderParameter = {};
|
|
2723
|
+
localVarQueryParameter = {};
|
|
2724
|
+
// authentication ApiKeyAuth required
|
|
2725
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2726
|
+
case 1:
|
|
2727
|
+
// authentication ApiKeyAuth required
|
|
2728
|
+
_a.sent();
|
|
2729
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2730
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2731
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2732
|
+
return [2 /*return*/, {
|
|
2733
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2734
|
+
options: localVarRequestOptions,
|
|
2735
|
+
}];
|
|
2736
|
+
}
|
|
2737
|
+
});
|
|
2738
|
+
});
|
|
2739
|
+
},
|
|
2740
|
+
/**
|
|
2741
|
+
* List the available roles for the current user
|
|
2742
|
+
* @summary List Org Roles
|
|
2743
|
+
* @param {string} orgId
|
|
2744
|
+
* @param {*} [options] Override http request option.
|
|
2745
|
+
* @throws {RequiredError}
|
|
2746
|
+
*/
|
|
2747
|
+
listOrgRoles: function (orgId_1) {
|
|
2748
|
+
var args_1 = [];
|
|
2749
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2750
|
+
args_1[_i - 1] = arguments[_i];
|
|
2751
|
+
}
|
|
2752
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
2753
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2754
|
+
if (options === void 0) { options = {}; }
|
|
2755
|
+
return __generator(this, function (_a) {
|
|
2756
|
+
switch (_a.label) {
|
|
2757
|
+
case 0:
|
|
2758
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
2759
|
+
(0, common_1.assertParamExists)('listOrgRoles', 'orgId', orgId);
|
|
2760
|
+
localVarPath = "/orgs/{orgId}/roles"
|
|
2761
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2762
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2763
|
+
if (configuration) {
|
|
2764
|
+
baseOptions = configuration.baseOptions;
|
|
2765
|
+
}
|
|
2766
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2767
|
+
localVarHeaderParameter = {};
|
|
2768
|
+
localVarQueryParameter = {};
|
|
2769
|
+
// authentication ApiKeyAuth required
|
|
2770
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2771
|
+
case 1:
|
|
2772
|
+
// authentication ApiKeyAuth required
|
|
2773
|
+
_a.sent();
|
|
2774
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2775
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2776
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2777
|
+
return [2 /*return*/, {
|
|
2778
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2779
|
+
options: localVarRequestOptions,
|
|
2780
|
+
}];
|
|
2781
|
+
}
|
|
2782
|
+
});
|
|
2783
|
+
});
|
|
2784
|
+
},
|
|
1726
2785
|
/**
|
|
1727
2786
|
* List the available permissions for the current user
|
|
1728
2787
|
* @summary List Own Permissions
|
|
@@ -1827,6 +2886,52 @@ exports.UserPermissionsApiAxiosParamCreator = UserPermissionsApiAxiosParamCreato
|
|
|
1827
2886
|
var UserPermissionsApiFp = function (configuration) {
|
|
1828
2887
|
var localVarAxiosParamCreator = (0, exports.UserPermissionsApiAxiosParamCreator)(configuration);
|
|
1829
2888
|
return {
|
|
2889
|
+
/**
|
|
2890
|
+
* List the available permissions for the current user
|
|
2891
|
+
* @summary List Org Permissions
|
|
2892
|
+
* @param {string} orgId
|
|
2893
|
+
* @param {*} [options] Override http request option.
|
|
2894
|
+
* @throws {RequiredError}
|
|
2895
|
+
*/
|
|
2896
|
+
listOrgPermissions: function (orgId, options) {
|
|
2897
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2898
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2899
|
+
var _a, _b, _c;
|
|
2900
|
+
return __generator(this, function (_d) {
|
|
2901
|
+
switch (_d.label) {
|
|
2902
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgPermissions(orgId, options)];
|
|
2903
|
+
case 1:
|
|
2904
|
+
localVarAxiosArgs = _d.sent();
|
|
2905
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2906
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2907
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2908
|
+
}
|
|
2909
|
+
});
|
|
2910
|
+
});
|
|
2911
|
+
},
|
|
2912
|
+
/**
|
|
2913
|
+
* List the available roles for the current user
|
|
2914
|
+
* @summary List Org Roles
|
|
2915
|
+
* @param {string} orgId
|
|
2916
|
+
* @param {*} [options] Override http request option.
|
|
2917
|
+
* @throws {RequiredError}
|
|
2918
|
+
*/
|
|
2919
|
+
listOrgRoles: function (orgId, options) {
|
|
2920
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2921
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2922
|
+
var _a, _b, _c;
|
|
2923
|
+
return __generator(this, function (_d) {
|
|
2924
|
+
switch (_d.label) {
|
|
2925
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgRoles(orgId, options)];
|
|
2926
|
+
case 1:
|
|
2927
|
+
localVarAxiosArgs = _d.sent();
|
|
2928
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2929
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2930
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2931
|
+
}
|
|
2932
|
+
});
|
|
2933
|
+
});
|
|
2934
|
+
},
|
|
1830
2935
|
/**
|
|
1831
2936
|
* List the available permissions for the current user
|
|
1832
2937
|
* @summary List Own Permissions
|
|
@@ -1884,6 +2989,26 @@ exports.UserPermissionsApiFp = UserPermissionsApiFp;
|
|
|
1884
2989
|
var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
1885
2990
|
var localVarFp = (0, exports.UserPermissionsApiFp)(configuration);
|
|
1886
2991
|
return {
|
|
2992
|
+
/**
|
|
2993
|
+
* List the available permissions for the current user
|
|
2994
|
+
* @summary List Org Permissions
|
|
2995
|
+
* @param {string} orgId
|
|
2996
|
+
* @param {*} [options] Override http request option.
|
|
2997
|
+
* @throws {RequiredError}
|
|
2998
|
+
*/
|
|
2999
|
+
listOrgPermissions: function (orgId, options) {
|
|
3000
|
+
return localVarFp.listOrgPermissions(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
3001
|
+
},
|
|
3002
|
+
/**
|
|
3003
|
+
* List the available roles for the current user
|
|
3004
|
+
* @summary List Org Roles
|
|
3005
|
+
* @param {string} orgId
|
|
3006
|
+
* @param {*} [options] Override http request option.
|
|
3007
|
+
* @throws {RequiredError}
|
|
3008
|
+
*/
|
|
3009
|
+
listOrgRoles: function (orgId, options) {
|
|
3010
|
+
return localVarFp.listOrgRoles(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
3011
|
+
},
|
|
1887
3012
|
/**
|
|
1888
3013
|
* List the available permissions for the current user
|
|
1889
3014
|
* @summary List Own Permissions
|
|
@@ -1919,6 +3044,30 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
1919
3044
|
function UserPermissionsApi() {
|
|
1920
3045
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1921
3046
|
}
|
|
3047
|
+
/**
|
|
3048
|
+
* List the available permissions for the current user
|
|
3049
|
+
* @summary List Org Permissions
|
|
3050
|
+
* @param {string} orgId
|
|
3051
|
+
* @param {*} [options] Override http request option.
|
|
3052
|
+
* @throws {RequiredError}
|
|
3053
|
+
* @memberof UserPermissionsApi
|
|
3054
|
+
*/
|
|
3055
|
+
UserPermissionsApi.prototype.listOrgPermissions = function (orgId, options) {
|
|
3056
|
+
var _this = this;
|
|
3057
|
+
return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgPermissions(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3058
|
+
};
|
|
3059
|
+
/**
|
|
3060
|
+
* List the available roles for the current user
|
|
3061
|
+
* @summary List Org Roles
|
|
3062
|
+
* @param {string} orgId
|
|
3063
|
+
* @param {*} [options] Override http request option.
|
|
3064
|
+
* @throws {RequiredError}
|
|
3065
|
+
* @memberof UserPermissionsApi
|
|
3066
|
+
*/
|
|
3067
|
+
UserPermissionsApi.prototype.listOrgRoles = function (orgId, options) {
|
|
3068
|
+
var _this = this;
|
|
3069
|
+
return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgRoles(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3070
|
+
};
|
|
1922
3071
|
/**
|
|
1923
3072
|
* List the available permissions for the current user
|
|
1924
3073
|
* @summary List Own Permissions
|