@flipdish/authorization 0.0.3 → 0.0.4-rc.1766093992
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +216 -101
- package/api.ts +2031 -653
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1222 -407
- package/dist/api.js +1604 -391
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g =
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.
|
|
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,11 +193,16 @@ exports.AuthorizationRequestResourceOneOf2TypeEnum = {
|
|
|
181
193
|
exports.AuthorizationRequestResourceOneOf3TypeEnum = {
|
|
182
194
|
SalesChannel: 'SalesChannel'
|
|
183
195
|
};
|
|
196
|
+
exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = {
|
|
197
|
+
User: 'User',
|
|
198
|
+
Automation: 'Automation'
|
|
199
|
+
};
|
|
184
200
|
exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
|
|
185
201
|
Main: 'Main',
|
|
186
202
|
BrandOverride: 'BrandOverride',
|
|
187
203
|
OrgOverride: 'OrgOverride',
|
|
188
|
-
Forbidden: 'Forbidden'
|
|
204
|
+
Forbidden: 'Forbidden',
|
|
205
|
+
NamedRole: 'NamedRole'
|
|
189
206
|
};
|
|
190
207
|
exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
|
|
191
208
|
Property: 'Property',
|
|
@@ -193,13 +210,106 @@ exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
|
|
|
193
210
|
Brand: 'Brand',
|
|
194
211
|
SalesChannel: 'SalesChannel'
|
|
195
212
|
};
|
|
213
|
+
exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = {
|
|
214
|
+
User: 'User',
|
|
215
|
+
Automation: 'Automation'
|
|
216
|
+
};
|
|
196
217
|
exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
197
218
|
Property: 'Property',
|
|
198
219
|
Org: 'Org',
|
|
199
220
|
Brand: 'Brand',
|
|
200
221
|
SalesChannel: 'SalesChannel'
|
|
201
222
|
};
|
|
202
|
-
exports.
|
|
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 = {
|
|
234
|
+
OrgViewer: 'OrgViewer',
|
|
235
|
+
OrgManager: 'OrgManager',
|
|
236
|
+
OrgAdmin: 'OrgAdmin',
|
|
237
|
+
BrandViewer: 'BrandViewer',
|
|
238
|
+
BrandManager: 'BrandManager',
|
|
239
|
+
BrandAdmin: 'BrandAdmin',
|
|
240
|
+
StoreViewer: 'StoreViewer',
|
|
241
|
+
StoreEditor: 'StoreEditor',
|
|
242
|
+
StoreManager: 'StoreManager',
|
|
243
|
+
CustomerViewer: 'CustomerViewer',
|
|
244
|
+
CustomerManager: 'CustomerManager',
|
|
245
|
+
VoucherViewer: 'VoucherViewer',
|
|
246
|
+
VoucherEditor: 'VoucherEditor',
|
|
247
|
+
VoucherManager: 'VoucherManager',
|
|
248
|
+
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
249
|
+
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
250
|
+
AnalyticsViewer: 'AnalyticsViewer',
|
|
251
|
+
ReportsViewer: 'ReportsViewer',
|
|
252
|
+
FinanceViewer: 'FinanceViewer',
|
|
253
|
+
FinanceManager: 'FinanceManager',
|
|
254
|
+
TeamViewer: 'TeamViewer',
|
|
255
|
+
TeamManager: 'TeamManager',
|
|
256
|
+
TeamAdmin: 'TeamAdmin',
|
|
257
|
+
TechViewer: 'TechViewer',
|
|
258
|
+
TechManager: 'TechManager',
|
|
259
|
+
AppStoreViewer: 'AppStoreViewer',
|
|
260
|
+
AppStoreManager: 'AppStoreManager',
|
|
261
|
+
SalesChannelViewer: 'SalesChannelViewer',
|
|
262
|
+
SalesChannelEditor: 'SalesChannelEditor',
|
|
263
|
+
SalesChannelManager: 'SalesChannelManager',
|
|
264
|
+
DeliveryViewer: 'DeliveryViewer',
|
|
265
|
+
DeliveryManager: 'DeliveryManager',
|
|
266
|
+
DriverManager: 'DriverManager',
|
|
267
|
+
AuditViewer: 'AuditViewer',
|
|
268
|
+
AuditManager: 'AuditManager',
|
|
269
|
+
AccountsViewer: 'AccountsViewer',
|
|
270
|
+
AccountsEditor: 'AccountsEditor',
|
|
271
|
+
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
272
|
+
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
273
|
+
PayrollViewer: 'PayrollViewer',
|
|
274
|
+
PayrollEditor: 'PayrollEditor',
|
|
275
|
+
PropertyViewer: 'PropertyViewer',
|
|
276
|
+
PropertyManager: 'PropertyManager',
|
|
277
|
+
PropertyAdmin: 'PropertyAdmin',
|
|
278
|
+
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
279
|
+
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
280
|
+
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
281
|
+
MenuViewer: 'MenuViewer',
|
|
282
|
+
MenuEditor: 'MenuEditor',
|
|
283
|
+
MenuManager: 'MenuManager',
|
|
284
|
+
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
285
|
+
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
286
|
+
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
287
|
+
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
288
|
+
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
289
|
+
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
290
|
+
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
291
|
+
OrderManager: 'OrderManager',
|
|
292
|
+
OrderEditor: 'OrderEditor',
|
|
293
|
+
OrderViewer: 'OrderViewer',
|
|
294
|
+
InventoryManager: 'InventoryManager',
|
|
295
|
+
InventoryEditor: 'InventoryEditor',
|
|
296
|
+
InventoryViewer: 'InventoryViewer',
|
|
297
|
+
PaymentManager: 'PaymentManager',
|
|
298
|
+
OnboardingManager: 'OnboardingManager',
|
|
299
|
+
FeatureFlagManager: 'FeatureFlagManager',
|
|
300
|
+
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
301
|
+
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
302
|
+
IntegratorMisc: 'IntegratorMisc',
|
|
303
|
+
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
304
|
+
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
305
|
+
SupportMisc: 'SupportMisc'
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Permissions
|
|
309
|
+
* @export
|
|
310
|
+
* @enum {string}
|
|
311
|
+
*/
|
|
312
|
+
exports.Permissions = {
|
|
203
313
|
AnyAuditLogs: 'AnyAuditLogs',
|
|
204
314
|
ViewApp: 'ViewApp',
|
|
205
315
|
CreateApp: 'CreateApp',
|
|
@@ -423,320 +533,102 @@ exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
|
|
|
423
533
|
EditEntityFeatureFlags: 'EditEntityFeatureFlags',
|
|
424
534
|
CreateOrg: 'CreateOrg',
|
|
425
535
|
EditOrg: 'EditOrg',
|
|
426
|
-
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'
|
|
427
623
|
};
|
|
428
624
|
/**
|
|
429
|
-
*
|
|
625
|
+
* Role names
|
|
430
626
|
* @export
|
|
431
627
|
* @enum {string}
|
|
432
628
|
*/
|
|
433
|
-
exports.
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
CreateApp: 'CreateApp',
|
|
437
|
-
UpdateApp: 'UpdateApp',
|
|
438
|
-
ViewAppName: 'ViewAppName',
|
|
439
|
-
EditAppAssets: 'EditAppAssets',
|
|
440
|
-
EditAppFeatures: 'EditAppFeatures',
|
|
441
|
-
ViewTeammates: 'ViewTeammates',
|
|
442
|
-
EditTeammates: 'EditTeammates',
|
|
443
|
-
CreateTeammateOwner: 'CreateTeammateOwner',
|
|
444
|
-
CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
|
|
445
|
-
CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
|
|
446
|
-
CreateTeammateStoreManager: 'CreateTeammateStoreManager',
|
|
447
|
-
CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
|
|
448
|
-
CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
|
|
449
|
-
CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
|
|
450
|
-
CreateTeammateIntegrator: 'CreateTeammateIntegrator',
|
|
451
|
-
CreateTeammateOnboarding: 'CreateTeammateOnboarding',
|
|
452
|
-
CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
|
|
453
|
-
CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
|
|
454
|
-
ViewApmConfigurations: 'ViewApmConfigurations',
|
|
455
|
-
EditApmConfigurations: 'EditApmConfigurations',
|
|
456
|
-
ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
|
|
457
|
-
CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
|
|
458
|
-
UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
|
|
459
|
-
DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
|
|
460
|
-
StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
|
|
461
|
-
ViewDevelopersSettings: 'ViewDevelopersSettings',
|
|
462
|
-
EditDevelopersSettings: 'EditDevelopersSettings',
|
|
463
|
-
ViewOrders: 'ViewOrders',
|
|
464
|
-
UpdateOrdersAccept: 'UpdateOrdersAccept',
|
|
465
|
-
UpdateOrdersReject: 'UpdateOrdersReject',
|
|
466
|
-
UpdateOrdersRefund: 'UpdateOrdersRefund',
|
|
467
|
-
UpdateOrdersDispatch: 'UpdateOrdersDispatch',
|
|
468
|
-
ViewStores: 'ViewStores',
|
|
469
|
-
CreateStores: 'CreateStores',
|
|
470
|
-
EditStores: 'EditStores',
|
|
471
|
-
ViewStoresOpeningHours: 'ViewStoresOpeningHours',
|
|
472
|
-
UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
|
|
473
|
-
UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
|
|
474
|
-
ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
|
|
475
|
-
EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
|
|
476
|
-
EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
|
|
477
|
-
UpdateStoresName: 'UpdateStoresName',
|
|
478
|
-
EditStoreKioskSettings: 'EditStoreKioskSettings',
|
|
479
|
-
EditStoreOrderCapacity: 'EditStoreOrderCapacity',
|
|
480
|
-
EditStoreNotifications: 'EditStoreNotifications',
|
|
481
|
-
ArchiveStores: 'ArchiveStores',
|
|
482
|
-
PublishStores: 'PublishStores',
|
|
483
|
-
UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
|
|
484
|
-
UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
|
|
485
|
-
ViewStoreGroups: 'ViewStoreGroups',
|
|
486
|
-
CreateStoreGroups: 'CreateStoreGroups',
|
|
487
|
-
UpdateStoreGroups: 'UpdateStoreGroups',
|
|
488
|
-
DeleteStoreGroups: 'DeleteStoreGroups',
|
|
489
|
-
ViewDeliveryZones: 'ViewDeliveryZones',
|
|
490
|
-
CreateDeliveryZones: 'CreateDeliveryZones',
|
|
491
|
-
UpdateDeliveryZones: 'UpdateDeliveryZones',
|
|
492
|
-
DeleteDeliveryZones: 'DeleteDeliveryZones',
|
|
493
|
-
ViewMenu: 'ViewMenu',
|
|
494
|
-
CreateMenu: 'CreateMenu',
|
|
495
|
-
UpdateMenu: 'UpdateMenu',
|
|
496
|
-
DeleteMenu: 'DeleteMenu',
|
|
497
|
-
UpdateMenuLock: 'UpdateMenuLock',
|
|
498
|
-
UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
|
|
499
|
-
EditMenuImage: 'EditMenuImage',
|
|
500
|
-
ViewVouchers: 'ViewVouchers',
|
|
501
|
-
EditVouchers: 'EditVouchers',
|
|
502
|
-
ViewWebsiteContent: 'ViewWebsiteContent',
|
|
503
|
-
EditWebsiteContent: 'EditWebsiteContent',
|
|
504
|
-
ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
|
|
505
|
-
ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
|
|
506
|
-
ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
|
|
507
|
-
ViewBankAccounts: 'ViewBankAccounts',
|
|
508
|
-
CreateBankAccounts: 'CreateBankAccounts',
|
|
509
|
-
UpdateBankAccounts: 'UpdateBankAccounts',
|
|
510
|
-
UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
|
|
511
|
-
ViewAssignedBankAccount: 'ViewAssignedBankAccount',
|
|
512
|
-
VerifyBankAccounts: 'VerifyBankAccounts',
|
|
513
|
-
ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
|
|
514
|
-
EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
|
|
515
|
-
EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
|
|
516
|
-
EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
|
|
517
|
-
ViewHydraConfig: 'ViewHydraConfig',
|
|
518
|
-
UpdateHydraConfigManage: 'UpdateHydraConfigManage',
|
|
519
|
-
InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
|
|
520
|
-
DeleteTerminal: 'DeleteTerminal',
|
|
521
|
-
ViewKioskTelemetry: 'ViewKioskTelemetry',
|
|
522
|
-
ViewCustomers: 'ViewCustomers',
|
|
523
|
-
EditCustomers: 'EditCustomers',
|
|
524
|
-
CreateCustomers: 'CreateCustomers',
|
|
525
|
-
CreateCatalogElements: 'CreateCatalogElements',
|
|
526
|
-
UpdateCatalogElements: 'UpdateCatalogElements',
|
|
527
|
-
ViewCatalogElements: 'ViewCatalogElements',
|
|
528
|
-
DeleteCatalogElements: 'DeleteCatalogElements',
|
|
529
|
-
ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
|
|
530
|
-
CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
|
|
531
|
-
UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
|
|
532
|
-
DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
|
|
533
|
-
UpdateMetafields: 'UpdateMetafields',
|
|
534
|
-
ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
|
|
535
|
-
PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
|
|
536
|
-
ViewAppStatistics: 'ViewAppStatistics',
|
|
537
|
-
ViewApmStatistics: 'ViewApmStatistics',
|
|
538
|
-
ViewCampaignsStatistics: 'ViewCampaignsStatistics',
|
|
539
|
-
ViewCustomerStatistics: 'ViewCustomerStatistics',
|
|
540
|
-
ViewLiveStatistics: 'ViewLiveStatistics',
|
|
541
|
-
ViewOrderStatistics: 'ViewOrderStatistics',
|
|
542
|
-
ViewSalesStatistics: 'ViewSalesStatistics',
|
|
543
|
-
ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
|
|
544
|
-
ViewVouchersStatistics: 'ViewVouchersStatistics',
|
|
545
|
-
DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
|
|
546
|
-
ViewApmAuditLogs: 'ViewApmAuditLogs',
|
|
547
|
-
ViewStoreAuditLogs: 'ViewStoreAuditLogs',
|
|
548
|
-
ViewMenuAuditLogs: 'ViewMenuAuditLogs',
|
|
549
|
-
ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
|
|
550
|
-
ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
|
|
551
|
-
ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
|
|
552
|
-
ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
|
|
553
|
-
ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
|
|
554
|
-
ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
|
|
555
|
-
ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
|
|
556
|
-
ViewAppAuditLogs: 'ViewAppAuditLogs',
|
|
557
|
-
ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
|
|
558
|
-
ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
|
|
559
|
-
ViewHydraAuditLogs: 'ViewHydraAuditLogs',
|
|
560
|
-
ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
|
|
561
|
-
ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
|
|
562
|
-
ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
|
|
563
|
-
ViewExternalAuditLogs: 'ViewExternalAuditLogs',
|
|
564
|
-
CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
|
|
565
|
-
ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
|
|
566
|
-
ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
|
|
567
|
-
ViewChannelAuditLogs: 'ViewChannelAuditLogs',
|
|
568
|
-
ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
|
|
569
|
-
SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
|
|
570
|
-
InviteDriverToApp: 'InviteDriverToApp',
|
|
571
|
-
GetDriverForApp: 'GetDriverForApp',
|
|
572
|
-
RemoveDriverFromApp: 'RemoveDriverFromApp',
|
|
573
|
-
AssignDriverToOrder: 'AssignDriverToOrder',
|
|
574
|
-
UnassignDriverFromOrder: 'UnassignDriverFromOrder',
|
|
575
|
-
UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
|
|
576
|
-
UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
|
|
577
|
-
ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
|
|
578
|
-
CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
|
|
579
|
-
UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
|
|
580
|
-
DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
|
|
581
|
-
ViewPayouts: 'ViewPayouts',
|
|
582
|
-
ViewChannels: 'ViewChannels',
|
|
583
|
-
ViewOnboarding: 'ViewOnboarding',
|
|
584
|
-
UpdateOnboarding: 'UpdateOnboarding',
|
|
585
|
-
ViewClientDevices: 'ViewClientDevices',
|
|
586
|
-
UpdateClientDevices: 'UpdateClientDevices',
|
|
587
|
-
EnrollClientDevices: 'EnrollClientDevices',
|
|
588
|
-
AssignClientDevices: 'AssignClientDevices',
|
|
589
|
-
ViewClientAuditLogs: 'ViewClientAuditLogs',
|
|
590
|
-
CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
|
|
591
|
-
ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
|
|
592
|
-
UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
|
|
593
|
-
DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
|
|
594
|
-
UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
|
|
595
|
-
CreateAppStoreSubscription: 'CreateAppStoreSubscription',
|
|
596
|
-
UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
|
|
597
|
-
DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
|
|
598
|
-
ViewSalesChannels: 'ViewSalesChannels',
|
|
599
|
-
EditSalesChannels: 'EditSalesChannels',
|
|
600
|
-
CreateSalesChannel: 'CreateSalesChannel',
|
|
601
|
-
ArchiveSalesChannel: 'ArchiveSalesChannel',
|
|
602
|
-
UnarchiveSalesChannel: 'UnarchiveSalesChannel',
|
|
603
|
-
PublishSalesChannel: 'PublishSalesChannel',
|
|
604
|
-
UnpublishSalesChannel: 'UnpublishSalesChannel',
|
|
605
|
-
CloneSalesChannel: 'CloneSalesChannel',
|
|
606
|
-
ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
|
|
607
|
-
CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
|
|
608
|
-
UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
|
|
609
|
-
UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
|
|
610
|
-
ViewSubscriptions: 'ViewSubscriptions',
|
|
611
|
-
ViewInvoices: 'ViewInvoices',
|
|
612
|
-
EditAccountsBills: 'EditAccountsBills',
|
|
613
|
-
ViewAccountsBills: 'ViewAccountsBills',
|
|
614
|
-
EditAccountsCategories: 'EditAccountsCategories',
|
|
615
|
-
ViewAccountsCategories: 'ViewAccountsCategories',
|
|
616
|
-
EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
|
|
617
|
-
ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
|
|
618
|
-
EditAccountsCreditBooks: 'EditAccountsCreditBooks',
|
|
619
|
-
ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
|
|
620
|
-
EditAccountsExpenses: 'EditAccountsExpenses',
|
|
621
|
-
ViewAccountsExpenses: 'ViewAccountsExpenses',
|
|
622
|
-
EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
|
|
623
|
-
ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
|
|
624
|
-
EditDocumentExplorer: 'EditDocumentExplorer',
|
|
625
|
-
ViewDocumentExplorer: 'ViewDocumentExplorer',
|
|
626
|
-
ViewInventoryReports: 'ViewInventoryReports',
|
|
627
|
-
EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
|
|
628
|
-
ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
|
|
629
|
-
EditInventoryStockItems: 'EditInventoryStockItems',
|
|
630
|
-
ViewInventoryStockItems: 'ViewInventoryStockItems',
|
|
631
|
-
EditInventorySupplier: 'EditInventorySupplier',
|
|
632
|
-
ViewInventorySupplier: 'ViewInventorySupplier',
|
|
633
|
-
EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
|
|
634
|
-
ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
|
|
635
|
-
ViewPayrollReports: 'ViewPayrollReports',
|
|
636
|
-
EditPayrollHoliday: 'EditPayrollHoliday',
|
|
637
|
-
ViewPayrollHoliday: 'ViewPayrollHoliday',
|
|
638
|
-
EditPayrollRota: 'EditPayrollRota',
|
|
639
|
-
ViewPayrollRota: 'ViewPayrollRota',
|
|
640
|
-
EditPayrollStaff: 'EditPayrollStaff',
|
|
641
|
-
ViewPayrollStaff: 'ViewPayrollStaff',
|
|
642
|
-
ViewSalesReports: 'ViewSalesReports',
|
|
643
|
-
ViewCostReports: 'ViewCostReports',
|
|
644
|
-
ViewMenuReports: 'ViewMenuReports',
|
|
645
|
-
ViewBrand: 'ViewBrand',
|
|
646
|
-
EditBrand: 'EditBrand',
|
|
647
|
-
CreateBrand: 'CreateBrand',
|
|
648
|
-
TransferBrand: 'TransferBrand',
|
|
649
|
-
ViewProperty: 'ViewProperty',
|
|
650
|
-
EditProperty: 'EditProperty',
|
|
651
|
-
CreateProperty: 'CreateProperty',
|
|
652
|
-
ArchiveProperty: 'ArchiveProperty',
|
|
653
|
-
ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
|
|
654
|
-
EditEntityFeatureFlags: 'EditEntityFeatureFlags',
|
|
655
|
-
CreateOrg: 'CreateOrg',
|
|
656
|
-
EditOrg: 'EditOrg',
|
|
657
|
-
ViewOrg: 'ViewOrg'
|
|
658
|
-
};
|
|
659
|
-
exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
|
|
660
|
-
OwnerCompensating: 'OwnerCompensating',
|
|
661
|
-
PropertyOwnerCompensating: 'PropertyOwnerCompensating',
|
|
662
|
-
ManagedOwnerCompensating: 'ManagedOwnerCompensating',
|
|
663
|
-
IntegratorCompensating: 'IntegratorCompensating',
|
|
664
|
-
PropertyManagerCompensating: 'PropertyManagerCompensating',
|
|
665
|
-
FinanceManagerCompensating: 'FinanceManagerCompensating'
|
|
666
|
-
};
|
|
667
|
-
exports.RevokeRoleRequestBodyRoleEnum = {
|
|
668
|
-
OrgViewer: 'OrgViewer',
|
|
669
|
-
OrgManager: 'OrgManager',
|
|
670
|
-
OrgAdmin: 'OrgAdmin',
|
|
671
|
-
BrandViewer: 'BrandViewer',
|
|
672
|
-
BrandManager: 'BrandManager',
|
|
673
|
-
BrandAdmin: 'BrandAdmin',
|
|
674
|
-
StoreViewer: 'StoreViewer',
|
|
675
|
-
StoreEditor: 'StoreEditor',
|
|
676
|
-
StoreManager: 'StoreManager',
|
|
677
|
-
CustomerViewer: 'CustomerViewer',
|
|
678
|
-
CustomerManager: 'CustomerManager',
|
|
679
|
-
VoucherViewer: 'VoucherViewer',
|
|
680
|
-
VoucherEditor: 'VoucherEditor',
|
|
681
|
-
VoucherManager: 'VoucherManager',
|
|
682
|
-
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
683
|
-
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
684
|
-
AnalyticsViewer: 'AnalyticsViewer',
|
|
685
|
-
ReportsViewer: 'ReportsViewer',
|
|
686
|
-
FinanceViewer: 'FinanceViewer',
|
|
687
|
-
FinanceManager: 'FinanceManager',
|
|
688
|
-
TeamViewer: 'TeamViewer',
|
|
689
|
-
TeamManager: 'TeamManager',
|
|
690
|
-
TeamAdmin: 'TeamAdmin',
|
|
691
|
-
TechViewer: 'TechViewer',
|
|
692
|
-
TechManager: 'TechManager',
|
|
693
|
-
AppStoreViewer: 'AppStoreViewer',
|
|
694
|
-
AppStoreManager: 'AppStoreManager',
|
|
695
|
-
SalesChannelViewer: 'SalesChannelViewer',
|
|
696
|
-
SalesChannelEditor: 'SalesChannelEditor',
|
|
697
|
-
SalesChannelManager: 'SalesChannelManager',
|
|
698
|
-
DeliveryViewer: 'DeliveryViewer',
|
|
699
|
-
DeliveryManager: 'DeliveryManager',
|
|
700
|
-
DriverManager: 'DriverManager',
|
|
701
|
-
AuditViewer: 'AuditViewer',
|
|
702
|
-
AuditManager: 'AuditManager',
|
|
703
|
-
AccountsViewer: 'AccountsViewer',
|
|
704
|
-
AccountsEditor: 'AccountsEditor',
|
|
705
|
-
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
706
|
-
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
707
|
-
PayrollViewer: 'PayrollViewer',
|
|
708
|
-
PayrollEditor: 'PayrollEditor',
|
|
709
|
-
PropertyViewer: 'PropertyViewer',
|
|
710
|
-
PropertyManager: 'PropertyManager',
|
|
711
|
-
PropertyAdmin: 'PropertyAdmin',
|
|
712
|
-
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
713
|
-
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
714
|
-
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
715
|
-
MenuViewer: 'MenuViewer',
|
|
716
|
-
MenuEditor: 'MenuEditor',
|
|
717
|
-
MenuManager: 'MenuManager',
|
|
718
|
-
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
719
|
-
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
720
|
-
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
721
|
-
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
722
|
-
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
723
|
-
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
724
|
-
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
725
|
-
OrderManager: 'OrderManager',
|
|
726
|
-
OrderEditor: 'OrderEditor',
|
|
727
|
-
OrderViewer: 'OrderViewer',
|
|
728
|
-
InventoryManager: 'InventoryManager',
|
|
729
|
-
InventoryEditor: 'InventoryEditor',
|
|
730
|
-
InventoryViewer: 'InventoryViewer',
|
|
731
|
-
PaymentManager: 'PaymentManager',
|
|
732
|
-
OnboardingManager: 'OnboardingManager',
|
|
733
|
-
FeatureFlagManager: 'FeatureFlagManager',
|
|
734
|
-
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
735
|
-
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
736
|
-
IntegratorMisc: 'IntegratorMisc',
|
|
737
|
-
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
738
|
-
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
739
|
-
SupportMisc: 'SupportMisc'
|
|
629
|
+
exports.RoleNames = {
|
|
630
|
+
Admin: 'Admin',
|
|
631
|
+
Factory: 'Factory'
|
|
740
632
|
};
|
|
741
633
|
/**
|
|
742
634
|
* AuthenticationApi - axios parameter creator
|
|
@@ -927,24 +819,24 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
927
819
|
});
|
|
928
820
|
},
|
|
929
821
|
/**
|
|
930
|
-
*
|
|
931
|
-
* @summary
|
|
932
|
-
* @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]
|
|
933
825
|
* @param {*} [options] Override http request option.
|
|
934
826
|
* @throws {RequiredError}
|
|
935
827
|
*/
|
|
936
|
-
|
|
828
|
+
authenticateAndCheckIsInRole: function (authenticateAndCheckIsInRoleRequest_1) {
|
|
937
829
|
var args_1 = [];
|
|
938
830
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
939
831
|
args_1[_i - 1] = arguments[_i];
|
|
940
832
|
}
|
|
941
|
-
return __awaiter(_this, __spreadArray([
|
|
833
|
+
return __awaiter(_this, __spreadArray([authenticateAndCheckIsInRoleRequest_1], args_1, true), void 0, function (authenticateAndCheckIsInRoleRequest, options) {
|
|
942
834
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
943
835
|
if (options === void 0) { options = {}; }
|
|
944
836
|
return __generator(this, function (_a) {
|
|
945
837
|
switch (_a.label) {
|
|
946
838
|
case 0:
|
|
947
|
-
localVarPath = "/
|
|
839
|
+
localVarPath = "/authenticateAndCheckIsInRole";
|
|
948
840
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
949
841
|
if (configuration) {
|
|
950
842
|
baseOptions = configuration.baseOptions;
|
|
@@ -961,7 +853,7 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
961
853
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
962
854
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
963
855
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
964
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
856
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndCheckIsInRoleRequest, localVarRequestOptions, configuration);
|
|
965
857
|
return [2 /*return*/, {
|
|
966
858
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
967
859
|
options: localVarRequestOptions,
|
|
@@ -970,30 +862,162 @@ var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
|
970
862
|
});
|
|
971
863
|
});
|
|
972
864
|
},
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
exports.AuthorizationApiAxiosParamCreator = AuthorizationApiAxiosParamCreator;
|
|
976
|
-
/**
|
|
977
|
-
* AuthorizationApi - functional programming interface
|
|
978
|
-
* @export
|
|
979
|
-
*/
|
|
980
|
-
var AuthorizationApiFp = function (configuration) {
|
|
981
|
-
var localVarAxiosParamCreator = (0, exports.AuthorizationApiAxiosParamCreator)(configuration);
|
|
982
|
-
return {
|
|
983
865
|
/**
|
|
984
|
-
*
|
|
985
|
-
* @summary
|
|
986
|
-
* @param {
|
|
866
|
+
* Check if a user is authorized to perform an action
|
|
867
|
+
* @summary Authorize Request
|
|
868
|
+
* @param {AuthorizationRequest} [authorizationRequest]
|
|
987
869
|
* @param {*} [options] Override http request option.
|
|
988
870
|
* @throws {RequiredError}
|
|
989
871
|
*/
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
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)];
|
|
893
|
+
case 1:
|
|
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
|
+
}];
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
});
|
|
908
|
+
},
|
|
909
|
+
/**
|
|
910
|
+
* Check if a user is authorized to perform an action on multiple resources
|
|
911
|
+
* @summary Authorize Batch Request
|
|
912
|
+
* @param {AuthorizationBatchRequest} [authorizationBatchRequest]
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
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)];
|
|
997
1021
|
case 1:
|
|
998
1022
|
localVarAxiosArgs = _d.sent();
|
|
999
1023
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -1003,6 +1027,29 @@ var AuthorizationApiFp = function (configuration) {
|
|
|
1003
1027
|
});
|
|
1004
1028
|
});
|
|
1005
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
|
+
},
|
|
1006
1053
|
/**
|
|
1007
1054
|
* Check if a user is authorized to perform an action
|
|
1008
1055
|
* @summary Authorize Request
|
|
@@ -1026,6 +1073,52 @@ var AuthorizationApiFp = function (configuration) {
|
|
|
1026
1073
|
});
|
|
1027
1074
|
});
|
|
1028
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
|
+
},
|
|
1029
1122
|
};
|
|
1030
1123
|
};
|
|
1031
1124
|
exports.AuthorizationApiFp = AuthorizationApiFp;
|
|
@@ -1046,6 +1139,16 @@ var AuthorizationApiFactory = function (configuration, basePath, axios) {
|
|
|
1046
1139
|
authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
|
|
1047
1140
|
return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1048
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
|
+
},
|
|
1049
1152
|
/**
|
|
1050
1153
|
* Check if a user is authorized to perform an action
|
|
1051
1154
|
* @summary Authorize Request
|
|
@@ -1056,6 +1159,26 @@ var AuthorizationApiFactory = function (configuration, basePath, axios) {
|
|
|
1056
1159
|
authorize: function (authorizationRequest, options) {
|
|
1057
1160
|
return localVarFp.authorize(authorizationRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1058
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
|
+
},
|
|
1059
1182
|
};
|
|
1060
1183
|
};
|
|
1061
1184
|
exports.AuthorizationApiFactory = AuthorizationApiFactory;
|
|
@@ -1082,6 +1205,18 @@ var AuthorizationApi = /** @class */ (function (_super) {
|
|
|
1082
1205
|
var _this = this;
|
|
1083
1206
|
return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1084
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
|
+
};
|
|
1085
1220
|
/**
|
|
1086
1221
|
* Check if a user is authorized to perform an action
|
|
1087
1222
|
* @summary Authorize Request
|
|
@@ -1094,39 +1229,68 @@ var AuthorizationApi = /** @class */ (function (_super) {
|
|
|
1094
1229
|
var _this = this;
|
|
1095
1230
|
return (0, exports.AuthorizationApiFp)(this.configuration).authorize(authorizationRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1096
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
|
+
};
|
|
1097
1256
|
return AuthorizationApi;
|
|
1098
1257
|
}(base_1.BaseAPI));
|
|
1099
1258
|
exports.AuthorizationApi = AuthorizationApi;
|
|
1100
1259
|
/**
|
|
1101
|
-
*
|
|
1260
|
+
* AuthorizedEntitiesApi - axios parameter creator
|
|
1102
1261
|
* @export
|
|
1103
1262
|
*/
|
|
1104
|
-
var
|
|
1263
|
+
var AuthorizedEntitiesApiAxiosParamCreator = function (configuration) {
|
|
1105
1264
|
var _this = this;
|
|
1106
1265
|
return {
|
|
1107
1266
|
/**
|
|
1108
|
-
*
|
|
1109
|
-
* @summary
|
|
1267
|
+
* Get the authorized brands for a given org
|
|
1268
|
+
* @summary Get Authorized Brands
|
|
1269
|
+
* @param {string} orgId
|
|
1270
|
+
* @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest]
|
|
1110
1271
|
* @param {*} [options] Override http request option.
|
|
1111
1272
|
* @throws {RequiredError}
|
|
1112
1273
|
*/
|
|
1113
|
-
|
|
1274
|
+
getAuthorizedBrands: function (orgId_1, getAuthorizedBrandsRequest_1) {
|
|
1114
1275
|
var args_1 = [];
|
|
1115
|
-
for (var _i =
|
|
1116
|
-
args_1[_i] = arguments[_i];
|
|
1276
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1277
|
+
args_1[_i - 2] = arguments[_i];
|
|
1117
1278
|
}
|
|
1118
|
-
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) {
|
|
1119
1280
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1120
1281
|
if (options === void 0) { options = {}; }
|
|
1121
1282
|
return __generator(this, function (_a) {
|
|
1122
1283
|
switch (_a.label) {
|
|
1123
1284
|
case 0:
|
|
1124
|
-
|
|
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)));
|
|
1125
1289
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1126
1290
|
if (configuration) {
|
|
1127
1291
|
baseOptions = configuration.baseOptions;
|
|
1128
1292
|
}
|
|
1129
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1293
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1130
1294
|
localVarHeaderParameter = {};
|
|
1131
1295
|
localVarQueryParameter = {};
|
|
1132
1296
|
// authentication ApiKeyAuth required
|
|
@@ -1134,9 +1298,11 @@ var PermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
1134
1298
|
case 1:
|
|
1135
1299
|
// authentication ApiKeyAuth required
|
|
1136
1300
|
_a.sent();
|
|
1301
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1137
1302
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1138
1303
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1139
1304
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1305
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAuthorizedBrandsRequest, localVarRequestOptions, configuration);
|
|
1140
1306
|
return [2 /*return*/, {
|
|
1141
1307
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1142
1308
|
options: localVarRequestOptions,
|
|
@@ -1145,48 +1311,717 @@ var PermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
1145
1311
|
});
|
|
1146
1312
|
});
|
|
1147
1313
|
},
|
|
1148
|
-
};
|
|
1149
|
-
};
|
|
1150
|
-
exports.PermissionsApiAxiosParamCreator = PermissionsApiAxiosParamCreator;
|
|
1151
|
-
/**
|
|
1152
|
-
* PermissionsApi - functional programming interface
|
|
1153
|
-
* @export
|
|
1154
|
-
*/
|
|
1155
|
-
var PermissionsApiFp = function (configuration) {
|
|
1156
|
-
var localVarAxiosParamCreator = (0, exports.PermissionsApiAxiosParamCreator)(configuration);
|
|
1157
|
-
return {
|
|
1158
1314
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* @summary
|
|
1315
|
+
* Get the authorized orgs for a given principal
|
|
1316
|
+
* @summary Get Authorized Orgs
|
|
1317
|
+
* @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest]
|
|
1161
1318
|
* @param {*} [options] Override http request option.
|
|
1162
1319
|
* @throws {RequiredError}
|
|
1163
1320
|
*/
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
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)];
|
|
1342
|
+
case 1:
|
|
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;
|
|
1974
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1176
1975
|
}
|
|
1177
1976
|
});
|
|
1178
1977
|
});
|
|
1179
1978
|
},
|
|
1180
1979
|
};
|
|
1181
1980
|
};
|
|
1182
|
-
exports.
|
|
1981
|
+
exports.ConfigurationDataApiFp = ConfigurationDataApiFp;
|
|
1183
1982
|
/**
|
|
1184
|
-
*
|
|
1983
|
+
* ConfigurationDataApi - factory interface
|
|
1185
1984
|
* @export
|
|
1186
1985
|
*/
|
|
1187
|
-
var
|
|
1188
|
-
var localVarFp = (0, exports.
|
|
1986
|
+
var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
|
|
1987
|
+
var localVarFp = (0, exports.ConfigurationDataApiFp)(configuration);
|
|
1189
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
|
+
},
|
|
1190
2025
|
/**
|
|
1191
2026
|
* List the available permissions
|
|
1192
2027
|
* @summary List Permissions
|
|
@@ -1196,34 +2031,98 @@ var PermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1196
2031
|
listPermissions: function (options) {
|
|
1197
2032
|
return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
1198
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
|
+
},
|
|
1199
2043
|
};
|
|
1200
2044
|
};
|
|
1201
|
-
exports.
|
|
2045
|
+
exports.ConfigurationDataApiFactory = ConfigurationDataApiFactory;
|
|
1202
2046
|
/**
|
|
1203
|
-
*
|
|
2047
|
+
* ConfigurationDataApi - object-oriented interface
|
|
1204
2048
|
* @export
|
|
1205
|
-
* @class
|
|
2049
|
+
* @class ConfigurationDataApi
|
|
1206
2050
|
* @extends {BaseAPI}
|
|
1207
2051
|
*/
|
|
1208
|
-
var
|
|
1209
|
-
__extends(
|
|
1210
|
-
function
|
|
2052
|
+
var ConfigurationDataApi = /** @class */ (function (_super) {
|
|
2053
|
+
__extends(ConfigurationDataApi, _super);
|
|
2054
|
+
function ConfigurationDataApi() {
|
|
1211
2055
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1212
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
|
+
};
|
|
1213
2101
|
/**
|
|
1214
2102
|
* List the available permissions
|
|
1215
2103
|
* @summary List Permissions
|
|
1216
2104
|
* @param {*} [options] Override http request option.
|
|
1217
2105
|
* @throws {RequiredError}
|
|
1218
|
-
* @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
|
|
1219
2118
|
*/
|
|
1220
|
-
|
|
2119
|
+
ConfigurationDataApi.prototype.listRoles = function (options) {
|
|
1221
2120
|
var _this = this;
|
|
1222
|
-
return (0, exports.
|
|
2121
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1223
2122
|
};
|
|
1224
|
-
return
|
|
2123
|
+
return ConfigurationDataApi;
|
|
1225
2124
|
}(base_1.BaseAPI));
|
|
1226
|
-
exports.
|
|
2125
|
+
exports.ConfigurationDataApi = ConfigurationDataApi;
|
|
1227
2126
|
/**
|
|
1228
2127
|
* RoleAssignmentApi - axios parameter creator
|
|
1229
2128
|
* @export
|
|
@@ -1306,7 +2205,7 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
1306
2205
|
if (configuration) {
|
|
1307
2206
|
baseOptions = configuration.baseOptions;
|
|
1308
2207
|
}
|
|
1309
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2208
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1310
2209
|
localVarHeaderParameter = {};
|
|
1311
2210
|
localVarQueryParameter = {};
|
|
1312
2211
|
// authentication ApiKeyAuth required
|
|
@@ -1652,6 +2551,140 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
1652
2551
|
return RoleAssignmentApi;
|
|
1653
2552
|
}(base_1.BaseAPI));
|
|
1654
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;
|
|
1655
2688
|
/**
|
|
1656
2689
|
* UserPermissionsApi - axios parameter creator
|
|
1657
2690
|
* @export
|
|
@@ -1659,6 +2692,96 @@ exports.RoleAssignmentApi = RoleAssignmentApi;
|
|
|
1659
2692
|
var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
1660
2693
|
var _this = this;
|
|
1661
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
|
+
},
|
|
1662
2785
|
/**
|
|
1663
2786
|
* List the available permissions for the current user
|
|
1664
2787
|
* @summary List Own Permissions
|
|
@@ -1763,6 +2886,52 @@ exports.UserPermissionsApiAxiosParamCreator = UserPermissionsApiAxiosParamCreato
|
|
|
1763
2886
|
var UserPermissionsApiFp = function (configuration) {
|
|
1764
2887
|
var localVarAxiosParamCreator = (0, exports.UserPermissionsApiAxiosParamCreator)(configuration);
|
|
1765
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
|
+
},
|
|
1766
2935
|
/**
|
|
1767
2936
|
* List the available permissions for the current user
|
|
1768
2937
|
* @summary List Own Permissions
|
|
@@ -1820,6 +2989,26 @@ exports.UserPermissionsApiFp = UserPermissionsApiFp;
|
|
|
1820
2989
|
var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
1821
2990
|
var localVarFp = (0, exports.UserPermissionsApiFp)(configuration);
|
|
1822
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
|
+
},
|
|
1823
3012
|
/**
|
|
1824
3013
|
* List the available permissions for the current user
|
|
1825
3014
|
* @summary List Own Permissions
|
|
@@ -1855,6 +3044,30 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
1855
3044
|
function UserPermissionsApi() {
|
|
1856
3045
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1857
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
|
+
};
|
|
1858
3071
|
/**
|
|
1859
3072
|
* List the available permissions for the current user
|
|
1860
3073
|
* @summary List Own Permissions
|