@flipdish/authorization 0.2.11-rc.1764849351 → 0.2.12-rc.1765346440
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/api.ts +587 -97
- package/configuration.ts +1 -1
- package/dist/api.d.ts +573 -94
- package/dist/api.js +475 -11
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -169,7 +169,21 @@ export interface AuthenticateAndAuthorizeRequest {
|
|
|
169
169
|
* @memberof AuthenticateAndAuthorizeRequest
|
|
170
170
|
*/
|
|
171
171
|
'resource'?: AuthorizationRequestResource;
|
|
172
|
+
/**
|
|
173
|
+
* How to check authorisation - any or all of the actions must be allowed
|
|
174
|
+
* @type {string}
|
|
175
|
+
* @memberof AuthenticateAndAuthorizeRequest
|
|
176
|
+
*/
|
|
177
|
+
'checkMode'?: AuthenticateAndAuthorizeRequestCheckModeEnum;
|
|
172
178
|
}
|
|
179
|
+
|
|
180
|
+
export const AuthenticateAndAuthorizeRequestCheckModeEnum = {
|
|
181
|
+
Any: 'any',
|
|
182
|
+
All: 'all'
|
|
183
|
+
} as const;
|
|
184
|
+
|
|
185
|
+
export type AuthenticateAndAuthorizeRequestCheckModeEnum = typeof AuthenticateAndAuthorizeRequestCheckModeEnum[keyof typeof AuthenticateAndAuthorizeRequestCheckModeEnum];
|
|
186
|
+
|
|
173
187
|
/**
|
|
174
188
|
* Response containing the authentication and authorization decision
|
|
175
189
|
* @export
|
|
@@ -208,7 +222,7 @@ export interface AuthenticateAndCheckIsInRoleRequest {
|
|
|
208
222
|
*/
|
|
209
223
|
'roles': Array<AuthenticateAndCheckIsInRoleRequestRolesEnum>;
|
|
210
224
|
/**
|
|
211
|
-
*
|
|
225
|
+
*
|
|
212
226
|
* @type {string}
|
|
213
227
|
* @memberof AuthenticateAndCheckIsInRoleRequest
|
|
214
228
|
*/
|
|
@@ -285,11 +299,11 @@ export interface AuthorizationBatchRequest {
|
|
|
285
299
|
*/
|
|
286
300
|
'principal': AuthorizationRequestPrincipal;
|
|
287
301
|
/**
|
|
288
|
-
*
|
|
289
|
-
* @type {
|
|
302
|
+
* The action to check authorisation for
|
|
303
|
+
* @type {string}
|
|
290
304
|
* @memberof AuthorizationBatchRequest
|
|
291
305
|
*/
|
|
292
|
-
'action':
|
|
306
|
+
'action': AuthorizationBatchRequestActionEnum;
|
|
293
307
|
/**
|
|
294
308
|
* Array of resources to check authorisation for
|
|
295
309
|
* @type {Array<AuthorizationRequestResource>}
|
|
@@ -297,6 +311,240 @@ export interface AuthorizationBatchRequest {
|
|
|
297
311
|
*/
|
|
298
312
|
'resources': Array<AuthorizationRequestResource>;
|
|
299
313
|
}
|
|
314
|
+
|
|
315
|
+
export const AuthorizationBatchRequestActionEnum = {
|
|
316
|
+
AnyAuditLogs: 'AnyAuditLogs',
|
|
317
|
+
ViewApp: 'ViewApp',
|
|
318
|
+
CreateApp: 'CreateApp',
|
|
319
|
+
UpdateApp: 'UpdateApp',
|
|
320
|
+
ViewAppName: 'ViewAppName',
|
|
321
|
+
EditAppAssets: 'EditAppAssets',
|
|
322
|
+
EditAppFeatures: 'EditAppFeatures',
|
|
323
|
+
ViewTeammates: 'ViewTeammates',
|
|
324
|
+
EditTeammates: 'EditTeammates',
|
|
325
|
+
CreateTeammateOwner: 'CreateTeammateOwner',
|
|
326
|
+
CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
|
|
327
|
+
CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
|
|
328
|
+
CreateTeammateStoreManager: 'CreateTeammateStoreManager',
|
|
329
|
+
CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
|
|
330
|
+
CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
|
|
331
|
+
CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
|
|
332
|
+
CreateTeammateIntegrator: 'CreateTeammateIntegrator',
|
|
333
|
+
CreateTeammateOnboarding: 'CreateTeammateOnboarding',
|
|
334
|
+
CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
|
|
335
|
+
CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
|
|
336
|
+
ViewApmConfigurations: 'ViewApmConfigurations',
|
|
337
|
+
EditApmConfigurations: 'EditApmConfigurations',
|
|
338
|
+
ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
|
|
339
|
+
CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
|
|
340
|
+
UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
|
|
341
|
+
DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
|
|
342
|
+
StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
|
|
343
|
+
ViewDevelopersSettings: 'ViewDevelopersSettings',
|
|
344
|
+
EditDevelopersSettings: 'EditDevelopersSettings',
|
|
345
|
+
ViewOrders: 'ViewOrders',
|
|
346
|
+
UpdateOrdersAccept: 'UpdateOrdersAccept',
|
|
347
|
+
UpdateOrdersReject: 'UpdateOrdersReject',
|
|
348
|
+
UpdateOrdersRefund: 'UpdateOrdersRefund',
|
|
349
|
+
UpdateOrdersDispatch: 'UpdateOrdersDispatch',
|
|
350
|
+
ViewStores: 'ViewStores',
|
|
351
|
+
CreateStores: 'CreateStores',
|
|
352
|
+
EditStores: 'EditStores',
|
|
353
|
+
ViewStoresOpeningHours: 'ViewStoresOpeningHours',
|
|
354
|
+
UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
|
|
355
|
+
UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
|
|
356
|
+
ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
|
|
357
|
+
EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
|
|
358
|
+
EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
|
|
359
|
+
UpdateStoresName: 'UpdateStoresName',
|
|
360
|
+
EditStoreKioskSettings: 'EditStoreKioskSettings',
|
|
361
|
+
EditStoreOrderCapacity: 'EditStoreOrderCapacity',
|
|
362
|
+
EditStoreNotifications: 'EditStoreNotifications',
|
|
363
|
+
ArchiveStores: 'ArchiveStores',
|
|
364
|
+
PublishStores: 'PublishStores',
|
|
365
|
+
UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
|
|
366
|
+
UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
|
|
367
|
+
ViewStoreGroups: 'ViewStoreGroups',
|
|
368
|
+
CreateStoreGroups: 'CreateStoreGroups',
|
|
369
|
+
UpdateStoreGroups: 'UpdateStoreGroups',
|
|
370
|
+
DeleteStoreGroups: 'DeleteStoreGroups',
|
|
371
|
+
ViewDeliveryZones: 'ViewDeliveryZones',
|
|
372
|
+
CreateDeliveryZones: 'CreateDeliveryZones',
|
|
373
|
+
UpdateDeliveryZones: 'UpdateDeliveryZones',
|
|
374
|
+
DeleteDeliveryZones: 'DeleteDeliveryZones',
|
|
375
|
+
ViewMenu: 'ViewMenu',
|
|
376
|
+
CreateMenu: 'CreateMenu',
|
|
377
|
+
UpdateMenu: 'UpdateMenu',
|
|
378
|
+
DeleteMenu: 'DeleteMenu',
|
|
379
|
+
UpdateMenuLock: 'UpdateMenuLock',
|
|
380
|
+
UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
|
|
381
|
+
EditMenuImage: 'EditMenuImage',
|
|
382
|
+
ViewVouchers: 'ViewVouchers',
|
|
383
|
+
EditVouchers: 'EditVouchers',
|
|
384
|
+
ViewWebsiteContent: 'ViewWebsiteContent',
|
|
385
|
+
EditWebsiteContent: 'EditWebsiteContent',
|
|
386
|
+
ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
|
|
387
|
+
ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
|
|
388
|
+
ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
|
|
389
|
+
ViewBankAccounts: 'ViewBankAccounts',
|
|
390
|
+
CreateBankAccounts: 'CreateBankAccounts',
|
|
391
|
+
UpdateBankAccounts: 'UpdateBankAccounts',
|
|
392
|
+
UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
|
|
393
|
+
ViewAssignedBankAccount: 'ViewAssignedBankAccount',
|
|
394
|
+
VerifyBankAccounts: 'VerifyBankAccounts',
|
|
395
|
+
ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
|
|
396
|
+
EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
|
|
397
|
+
EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
|
|
398
|
+
EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
|
|
399
|
+
ViewHydraConfig: 'ViewHydraConfig',
|
|
400
|
+
UpdateHydraConfigManage: 'UpdateHydraConfigManage',
|
|
401
|
+
InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
|
|
402
|
+
DeleteTerminal: 'DeleteTerminal',
|
|
403
|
+
ViewKioskTelemetry: 'ViewKioskTelemetry',
|
|
404
|
+
ViewCustomers: 'ViewCustomers',
|
|
405
|
+
EditCustomers: 'EditCustomers',
|
|
406
|
+
CreateCustomers: 'CreateCustomers',
|
|
407
|
+
CreateCatalogElements: 'CreateCatalogElements',
|
|
408
|
+
UpdateCatalogElements: 'UpdateCatalogElements',
|
|
409
|
+
ViewCatalogElements: 'ViewCatalogElements',
|
|
410
|
+
DeleteCatalogElements: 'DeleteCatalogElements',
|
|
411
|
+
ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
|
|
412
|
+
CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
|
|
413
|
+
UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
|
|
414
|
+
DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
|
|
415
|
+
UpdateMetafields: 'UpdateMetafields',
|
|
416
|
+
ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
|
|
417
|
+
PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
|
|
418
|
+
ViewAppStatistics: 'ViewAppStatistics',
|
|
419
|
+
ViewApmStatistics: 'ViewApmStatistics',
|
|
420
|
+
ViewCampaignsStatistics: 'ViewCampaignsStatistics',
|
|
421
|
+
ViewCustomerStatistics: 'ViewCustomerStatistics',
|
|
422
|
+
ViewLiveStatistics: 'ViewLiveStatistics',
|
|
423
|
+
ViewOrderStatistics: 'ViewOrderStatistics',
|
|
424
|
+
ViewSalesStatistics: 'ViewSalesStatistics',
|
|
425
|
+
ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
|
|
426
|
+
ViewVouchersStatistics: 'ViewVouchersStatistics',
|
|
427
|
+
DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
|
|
428
|
+
ViewApmAuditLogs: 'ViewApmAuditLogs',
|
|
429
|
+
ViewStoreAuditLogs: 'ViewStoreAuditLogs',
|
|
430
|
+
ViewMenuAuditLogs: 'ViewMenuAuditLogs',
|
|
431
|
+
ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
|
|
432
|
+
ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
|
|
433
|
+
ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
|
|
434
|
+
ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
|
|
435
|
+
ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
|
|
436
|
+
ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
|
|
437
|
+
ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
|
|
438
|
+
ViewAppAuditLogs: 'ViewAppAuditLogs',
|
|
439
|
+
ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
|
|
440
|
+
ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
|
|
441
|
+
ViewHydraAuditLogs: 'ViewHydraAuditLogs',
|
|
442
|
+
ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
|
|
443
|
+
ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
|
|
444
|
+
ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
|
|
445
|
+
ViewExternalAuditLogs: 'ViewExternalAuditLogs',
|
|
446
|
+
CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
|
|
447
|
+
ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
|
|
448
|
+
ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
|
|
449
|
+
ViewChannelAuditLogs: 'ViewChannelAuditLogs',
|
|
450
|
+
ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
|
|
451
|
+
SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
|
|
452
|
+
InviteDriverToApp: 'InviteDriverToApp',
|
|
453
|
+
GetDriverForApp: 'GetDriverForApp',
|
|
454
|
+
RemoveDriverFromApp: 'RemoveDriverFromApp',
|
|
455
|
+
AssignDriverToOrder: 'AssignDriverToOrder',
|
|
456
|
+
UnassignDriverFromOrder: 'UnassignDriverFromOrder',
|
|
457
|
+
UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
|
|
458
|
+
UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
|
|
459
|
+
ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
|
|
460
|
+
CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
|
|
461
|
+
UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
|
|
462
|
+
DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
|
|
463
|
+
ViewPayouts: 'ViewPayouts',
|
|
464
|
+
ViewChannels: 'ViewChannels',
|
|
465
|
+
ViewOnboarding: 'ViewOnboarding',
|
|
466
|
+
UpdateOnboarding: 'UpdateOnboarding',
|
|
467
|
+
ViewClientDevices: 'ViewClientDevices',
|
|
468
|
+
UpdateClientDevices: 'UpdateClientDevices',
|
|
469
|
+
EnrollClientDevices: 'EnrollClientDevices',
|
|
470
|
+
AssignClientDevices: 'AssignClientDevices',
|
|
471
|
+
ViewClientAuditLogs: 'ViewClientAuditLogs',
|
|
472
|
+
CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
|
|
473
|
+
ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
|
|
474
|
+
UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
|
|
475
|
+
DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
|
|
476
|
+
UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
|
|
477
|
+
CreateAppStoreSubscription: 'CreateAppStoreSubscription',
|
|
478
|
+
UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
|
|
479
|
+
DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
|
|
480
|
+
ViewSalesChannels: 'ViewSalesChannels',
|
|
481
|
+
EditSalesChannels: 'EditSalesChannels',
|
|
482
|
+
CreateSalesChannel: 'CreateSalesChannel',
|
|
483
|
+
ArchiveSalesChannel: 'ArchiveSalesChannel',
|
|
484
|
+
UnarchiveSalesChannel: 'UnarchiveSalesChannel',
|
|
485
|
+
PublishSalesChannel: 'PublishSalesChannel',
|
|
486
|
+
UnpublishSalesChannel: 'UnpublishSalesChannel',
|
|
487
|
+
CloneSalesChannel: 'CloneSalesChannel',
|
|
488
|
+
ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
|
|
489
|
+
CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
|
|
490
|
+
UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
|
|
491
|
+
UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
|
|
492
|
+
ViewSubscriptions: 'ViewSubscriptions',
|
|
493
|
+
ViewInvoices: 'ViewInvoices',
|
|
494
|
+
EditAccountsBills: 'EditAccountsBills',
|
|
495
|
+
ViewAccountsBills: 'ViewAccountsBills',
|
|
496
|
+
EditAccountsCategories: 'EditAccountsCategories',
|
|
497
|
+
ViewAccountsCategories: 'ViewAccountsCategories',
|
|
498
|
+
EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
|
|
499
|
+
ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
|
|
500
|
+
EditAccountsCreditBooks: 'EditAccountsCreditBooks',
|
|
501
|
+
ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
|
|
502
|
+
EditAccountsExpenses: 'EditAccountsExpenses',
|
|
503
|
+
ViewAccountsExpenses: 'ViewAccountsExpenses',
|
|
504
|
+
EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
|
|
505
|
+
ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
|
|
506
|
+
EditDocumentExplorer: 'EditDocumentExplorer',
|
|
507
|
+
ViewDocumentExplorer: 'ViewDocumentExplorer',
|
|
508
|
+
ViewInventoryReports: 'ViewInventoryReports',
|
|
509
|
+
EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
|
|
510
|
+
ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
|
|
511
|
+
EditInventoryStockItems: 'EditInventoryStockItems',
|
|
512
|
+
ViewInventoryStockItems: 'ViewInventoryStockItems',
|
|
513
|
+
EditInventorySupplier: 'EditInventorySupplier',
|
|
514
|
+
ViewInventorySupplier: 'ViewInventorySupplier',
|
|
515
|
+
EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
|
|
516
|
+
ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
|
|
517
|
+
ViewPayrollReports: 'ViewPayrollReports',
|
|
518
|
+
EditPayrollHoliday: 'EditPayrollHoliday',
|
|
519
|
+
ViewPayrollHoliday: 'ViewPayrollHoliday',
|
|
520
|
+
EditPayrollRota: 'EditPayrollRota',
|
|
521
|
+
ViewPayrollRota: 'ViewPayrollRota',
|
|
522
|
+
EditPayrollStaff: 'EditPayrollStaff',
|
|
523
|
+
ViewPayrollStaff: 'ViewPayrollStaff',
|
|
524
|
+
ViewSalesReports: 'ViewSalesReports',
|
|
525
|
+
ViewCostReports: 'ViewCostReports',
|
|
526
|
+
ViewMenuReports: 'ViewMenuReports',
|
|
527
|
+
ViewBrand: 'ViewBrand',
|
|
528
|
+
EditBrand: 'EditBrand',
|
|
529
|
+
CreateBrand: 'CreateBrand',
|
|
530
|
+
TransferBrand: 'TransferBrand',
|
|
531
|
+
ViewProperty: 'ViewProperty',
|
|
532
|
+
EditProperty: 'EditProperty',
|
|
533
|
+
CreateProperty: 'CreateProperty',
|
|
534
|
+
ArchiveProperty: 'ArchiveProperty',
|
|
535
|
+
ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
|
|
536
|
+
EditEntityFeatureFlags: 'EditEntityFeatureFlags',
|
|
537
|
+
CreateOrg: 'CreateOrg',
|
|
538
|
+
EditOrg: 'EditOrg',
|
|
539
|
+
ViewOrg: 'ViewOrg',
|
|
540
|
+
ViewWebhooks: 'ViewWebhooks',
|
|
541
|
+
EditWebhooks: 'EditWebhooks',
|
|
542
|
+
RoleAdmin: 'RoleAdmin',
|
|
543
|
+
RoleFactory: 'RoleFactory'
|
|
544
|
+
} as const;
|
|
545
|
+
|
|
546
|
+
export type AuthorizationBatchRequestActionEnum = typeof AuthorizationBatchRequestActionEnum[keyof typeof AuthorizationBatchRequestActionEnum];
|
|
547
|
+
|
|
300
548
|
/**
|
|
301
549
|
*
|
|
302
550
|
* @export
|
|
@@ -349,13 +597,13 @@ export interface AuthorizationBatchResponseAllowedResourcesInner {
|
|
|
349
597
|
}
|
|
350
598
|
/**
|
|
351
599
|
* @type AuthorizationBatchResponseAllowedResourcesInnerResource
|
|
352
|
-
*
|
|
600
|
+
* Resource that the action was checked for
|
|
353
601
|
* @export
|
|
354
602
|
*/
|
|
355
603
|
export type AuthorizationBatchResponseAllowedResourcesInnerResource = AuthorizationRequestResourceOneOf | AuthorizationRequestResourceOneOf1 | AuthorizationRequestResourceOneOf2 | AuthorizationRequestResourceOneOf3;
|
|
356
604
|
|
|
357
605
|
/**
|
|
358
|
-
* Request to check if a user is authorized to perform an action(s). If you pass in an array of permissions, you will receive a single allow / deny response (based on
|
|
606
|
+
* Request to check if a user is authorized to perform an action(s). If you pass in an array of permissions, you will receive a single allow / deny response (based on the checkMode - any or all of the permissions must be allowed).
|
|
359
607
|
* @export
|
|
360
608
|
* @interface AuthorizationRequest
|
|
361
609
|
*/
|
|
@@ -378,9 +626,23 @@ export interface AuthorizationRequest {
|
|
|
378
626
|
* @memberof AuthorizationRequest
|
|
379
627
|
*/
|
|
380
628
|
'resource'?: AuthorizationRequestResource;
|
|
629
|
+
/**
|
|
630
|
+
* How to check authorisation - any or all of the actions must be allowed
|
|
631
|
+
* @type {string}
|
|
632
|
+
* @memberof AuthorizationRequest
|
|
633
|
+
*/
|
|
634
|
+
'checkMode'?: AuthorizationRequestCheckModeEnum;
|
|
381
635
|
}
|
|
636
|
+
|
|
637
|
+
export const AuthorizationRequestCheckModeEnum = {
|
|
638
|
+
Any: 'any',
|
|
639
|
+
All: 'all'
|
|
640
|
+
} as const;
|
|
641
|
+
|
|
642
|
+
export type AuthorizationRequestCheckModeEnum = typeof AuthorizationRequestCheckModeEnum[keyof typeof AuthorizationRequestCheckModeEnum];
|
|
643
|
+
|
|
382
644
|
/**
|
|
383
|
-
*
|
|
645
|
+
* Permission or array of permissions - note that you still only receive a single allow / deny response (calculated based on the checkMode)
|
|
384
646
|
* @export
|
|
385
647
|
* @interface AuthorizationRequestAction
|
|
386
648
|
*/
|
|
@@ -539,65 +801,299 @@ export const AuthorizationRequestResourceOneOf3TypeEnum = {
|
|
|
539
801
|
SalesChannel: 'SalesChannel'
|
|
540
802
|
} as const;
|
|
541
803
|
|
|
542
|
-
export type AuthorizationRequestResourceOneOf3TypeEnum = typeof AuthorizationRequestResourceOneOf3TypeEnum[keyof typeof AuthorizationRequestResourceOneOf3TypeEnum];
|
|
804
|
+
export type AuthorizationRequestResourceOneOf3TypeEnum = typeof AuthorizationRequestResourceOneOf3TypeEnum[keyof typeof AuthorizationRequestResourceOneOf3TypeEnum];
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Response containing the authorization decision
|
|
808
|
+
* @export
|
|
809
|
+
* @interface AuthorizationResponse
|
|
810
|
+
*/
|
|
811
|
+
export interface AuthorizationResponse {
|
|
812
|
+
/**
|
|
813
|
+
* Whether the action is allowed
|
|
814
|
+
* @type {boolean}
|
|
815
|
+
* @memberof AuthorizationResponse
|
|
816
|
+
*/
|
|
817
|
+
'allowed': boolean;
|
|
818
|
+
/**
|
|
819
|
+
* The authorization decision
|
|
820
|
+
* @type {string}
|
|
821
|
+
* @memberof AuthorizationResponse
|
|
822
|
+
*/
|
|
823
|
+
'decision': string;
|
|
824
|
+
/**
|
|
825
|
+
* The policy IDs that were used to make the decision
|
|
826
|
+
* @type {Array<string>}
|
|
827
|
+
* @memberof AuthorizationResponse
|
|
828
|
+
*/
|
|
829
|
+
'policyIds': Array<string>;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @export
|
|
834
|
+
* @interface ErrorResponse
|
|
835
|
+
*/
|
|
836
|
+
export interface ErrorResponse {
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @type {string}
|
|
840
|
+
* @memberof ErrorResponse
|
|
841
|
+
*/
|
|
842
|
+
'message': string;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Feature based role and its permissions
|
|
846
|
+
* @export
|
|
847
|
+
* @interface FeatureBasedRole
|
|
848
|
+
*/
|
|
849
|
+
export interface FeatureBasedRole {
|
|
850
|
+
/**
|
|
851
|
+
* Name of the role
|
|
852
|
+
* @type {string}
|
|
853
|
+
* @memberof FeatureBasedRole
|
|
854
|
+
*/
|
|
855
|
+
'name': string;
|
|
856
|
+
/**
|
|
857
|
+
* List of permissions
|
|
858
|
+
* @type {Array<string>}
|
|
859
|
+
* @memberof FeatureBasedRole
|
|
860
|
+
*/
|
|
861
|
+
'permissions': Array<FeatureBasedRolePermissionsEnum>;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export const FeatureBasedRolePermissionsEnum = {
|
|
865
|
+
AnyAuditLogs: 'AnyAuditLogs',
|
|
866
|
+
ViewApp: 'ViewApp',
|
|
867
|
+
CreateApp: 'CreateApp',
|
|
868
|
+
UpdateApp: 'UpdateApp',
|
|
869
|
+
ViewAppName: 'ViewAppName',
|
|
870
|
+
EditAppAssets: 'EditAppAssets',
|
|
871
|
+
EditAppFeatures: 'EditAppFeatures',
|
|
872
|
+
ViewTeammates: 'ViewTeammates',
|
|
873
|
+
EditTeammates: 'EditTeammates',
|
|
874
|
+
CreateTeammateOwner: 'CreateTeammateOwner',
|
|
875
|
+
CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
|
|
876
|
+
CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
|
|
877
|
+
CreateTeammateStoreManager: 'CreateTeammateStoreManager',
|
|
878
|
+
CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
|
|
879
|
+
CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
|
|
880
|
+
CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
|
|
881
|
+
CreateTeammateIntegrator: 'CreateTeammateIntegrator',
|
|
882
|
+
CreateTeammateOnboarding: 'CreateTeammateOnboarding',
|
|
883
|
+
CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
|
|
884
|
+
CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
|
|
885
|
+
ViewApmConfigurations: 'ViewApmConfigurations',
|
|
886
|
+
EditApmConfigurations: 'EditApmConfigurations',
|
|
887
|
+
ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
|
|
888
|
+
CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
|
|
889
|
+
UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
|
|
890
|
+
DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
|
|
891
|
+
StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
|
|
892
|
+
ViewDevelopersSettings: 'ViewDevelopersSettings',
|
|
893
|
+
EditDevelopersSettings: 'EditDevelopersSettings',
|
|
894
|
+
ViewOrders: 'ViewOrders',
|
|
895
|
+
UpdateOrdersAccept: 'UpdateOrdersAccept',
|
|
896
|
+
UpdateOrdersReject: 'UpdateOrdersReject',
|
|
897
|
+
UpdateOrdersRefund: 'UpdateOrdersRefund',
|
|
898
|
+
UpdateOrdersDispatch: 'UpdateOrdersDispatch',
|
|
899
|
+
ViewStores: 'ViewStores',
|
|
900
|
+
CreateStores: 'CreateStores',
|
|
901
|
+
EditStores: 'EditStores',
|
|
902
|
+
ViewStoresOpeningHours: 'ViewStoresOpeningHours',
|
|
903
|
+
UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
|
|
904
|
+
UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
|
|
905
|
+
ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
|
|
906
|
+
EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
|
|
907
|
+
EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
|
|
908
|
+
UpdateStoresName: 'UpdateStoresName',
|
|
909
|
+
EditStoreKioskSettings: 'EditStoreKioskSettings',
|
|
910
|
+
EditStoreOrderCapacity: 'EditStoreOrderCapacity',
|
|
911
|
+
EditStoreNotifications: 'EditStoreNotifications',
|
|
912
|
+
ArchiveStores: 'ArchiveStores',
|
|
913
|
+
PublishStores: 'PublishStores',
|
|
914
|
+
UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
|
|
915
|
+
UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
|
|
916
|
+
ViewStoreGroups: 'ViewStoreGroups',
|
|
917
|
+
CreateStoreGroups: 'CreateStoreGroups',
|
|
918
|
+
UpdateStoreGroups: 'UpdateStoreGroups',
|
|
919
|
+
DeleteStoreGroups: 'DeleteStoreGroups',
|
|
920
|
+
ViewDeliveryZones: 'ViewDeliveryZones',
|
|
921
|
+
CreateDeliveryZones: 'CreateDeliveryZones',
|
|
922
|
+
UpdateDeliveryZones: 'UpdateDeliveryZones',
|
|
923
|
+
DeleteDeliveryZones: 'DeleteDeliveryZones',
|
|
924
|
+
ViewMenu: 'ViewMenu',
|
|
925
|
+
CreateMenu: 'CreateMenu',
|
|
926
|
+
UpdateMenu: 'UpdateMenu',
|
|
927
|
+
DeleteMenu: 'DeleteMenu',
|
|
928
|
+
UpdateMenuLock: 'UpdateMenuLock',
|
|
929
|
+
UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
|
|
930
|
+
EditMenuImage: 'EditMenuImage',
|
|
931
|
+
ViewVouchers: 'ViewVouchers',
|
|
932
|
+
EditVouchers: 'EditVouchers',
|
|
933
|
+
ViewWebsiteContent: 'ViewWebsiteContent',
|
|
934
|
+
EditWebsiteContent: 'EditWebsiteContent',
|
|
935
|
+
ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
|
|
936
|
+
ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
|
|
937
|
+
ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
|
|
938
|
+
ViewBankAccounts: 'ViewBankAccounts',
|
|
939
|
+
CreateBankAccounts: 'CreateBankAccounts',
|
|
940
|
+
UpdateBankAccounts: 'UpdateBankAccounts',
|
|
941
|
+
UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
|
|
942
|
+
ViewAssignedBankAccount: 'ViewAssignedBankAccount',
|
|
943
|
+
VerifyBankAccounts: 'VerifyBankAccounts',
|
|
944
|
+
ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
|
|
945
|
+
EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
|
|
946
|
+
EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
|
|
947
|
+
EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
|
|
948
|
+
ViewHydraConfig: 'ViewHydraConfig',
|
|
949
|
+
UpdateHydraConfigManage: 'UpdateHydraConfigManage',
|
|
950
|
+
InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
|
|
951
|
+
DeleteTerminal: 'DeleteTerminal',
|
|
952
|
+
ViewKioskTelemetry: 'ViewKioskTelemetry',
|
|
953
|
+
ViewCustomers: 'ViewCustomers',
|
|
954
|
+
EditCustomers: 'EditCustomers',
|
|
955
|
+
CreateCustomers: 'CreateCustomers',
|
|
956
|
+
CreateCatalogElements: 'CreateCatalogElements',
|
|
957
|
+
UpdateCatalogElements: 'UpdateCatalogElements',
|
|
958
|
+
ViewCatalogElements: 'ViewCatalogElements',
|
|
959
|
+
DeleteCatalogElements: 'DeleteCatalogElements',
|
|
960
|
+
ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
|
|
961
|
+
CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
|
|
962
|
+
UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
|
|
963
|
+
DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
|
|
964
|
+
UpdateMetafields: 'UpdateMetafields',
|
|
965
|
+
ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
|
|
966
|
+
PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
|
|
967
|
+
ViewAppStatistics: 'ViewAppStatistics',
|
|
968
|
+
ViewApmStatistics: 'ViewApmStatistics',
|
|
969
|
+
ViewCampaignsStatistics: 'ViewCampaignsStatistics',
|
|
970
|
+
ViewCustomerStatistics: 'ViewCustomerStatistics',
|
|
971
|
+
ViewLiveStatistics: 'ViewLiveStatistics',
|
|
972
|
+
ViewOrderStatistics: 'ViewOrderStatistics',
|
|
973
|
+
ViewSalesStatistics: 'ViewSalesStatistics',
|
|
974
|
+
ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
|
|
975
|
+
ViewVouchersStatistics: 'ViewVouchersStatistics',
|
|
976
|
+
DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
|
|
977
|
+
ViewApmAuditLogs: 'ViewApmAuditLogs',
|
|
978
|
+
ViewStoreAuditLogs: 'ViewStoreAuditLogs',
|
|
979
|
+
ViewMenuAuditLogs: 'ViewMenuAuditLogs',
|
|
980
|
+
ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
|
|
981
|
+
ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
|
|
982
|
+
ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
|
|
983
|
+
ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
|
|
984
|
+
ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
|
|
985
|
+
ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
|
|
986
|
+
ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
|
|
987
|
+
ViewAppAuditLogs: 'ViewAppAuditLogs',
|
|
988
|
+
ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
|
|
989
|
+
ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
|
|
990
|
+
ViewHydraAuditLogs: 'ViewHydraAuditLogs',
|
|
991
|
+
ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
|
|
992
|
+
ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
|
|
993
|
+
ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
|
|
994
|
+
ViewExternalAuditLogs: 'ViewExternalAuditLogs',
|
|
995
|
+
CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
|
|
996
|
+
ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
|
|
997
|
+
ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
|
|
998
|
+
ViewChannelAuditLogs: 'ViewChannelAuditLogs',
|
|
999
|
+
ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
|
|
1000
|
+
SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
|
|
1001
|
+
InviteDriverToApp: 'InviteDriverToApp',
|
|
1002
|
+
GetDriverForApp: 'GetDriverForApp',
|
|
1003
|
+
RemoveDriverFromApp: 'RemoveDriverFromApp',
|
|
1004
|
+
AssignDriverToOrder: 'AssignDriverToOrder',
|
|
1005
|
+
UnassignDriverFromOrder: 'UnassignDriverFromOrder',
|
|
1006
|
+
UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
|
|
1007
|
+
UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
|
|
1008
|
+
ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
|
|
1009
|
+
CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
|
|
1010
|
+
UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
|
|
1011
|
+
DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
|
|
1012
|
+
ViewPayouts: 'ViewPayouts',
|
|
1013
|
+
ViewChannels: 'ViewChannels',
|
|
1014
|
+
ViewOnboarding: 'ViewOnboarding',
|
|
1015
|
+
UpdateOnboarding: 'UpdateOnboarding',
|
|
1016
|
+
ViewClientDevices: 'ViewClientDevices',
|
|
1017
|
+
UpdateClientDevices: 'UpdateClientDevices',
|
|
1018
|
+
EnrollClientDevices: 'EnrollClientDevices',
|
|
1019
|
+
AssignClientDevices: 'AssignClientDevices',
|
|
1020
|
+
ViewClientAuditLogs: 'ViewClientAuditLogs',
|
|
1021
|
+
CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
|
|
1022
|
+
ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
|
|
1023
|
+
UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
|
|
1024
|
+
DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
|
|
1025
|
+
UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
|
|
1026
|
+
CreateAppStoreSubscription: 'CreateAppStoreSubscription',
|
|
1027
|
+
UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
|
|
1028
|
+
DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
|
|
1029
|
+
ViewSalesChannels: 'ViewSalesChannels',
|
|
1030
|
+
EditSalesChannels: 'EditSalesChannels',
|
|
1031
|
+
CreateSalesChannel: 'CreateSalesChannel',
|
|
1032
|
+
ArchiveSalesChannel: 'ArchiveSalesChannel',
|
|
1033
|
+
UnarchiveSalesChannel: 'UnarchiveSalesChannel',
|
|
1034
|
+
PublishSalesChannel: 'PublishSalesChannel',
|
|
1035
|
+
UnpublishSalesChannel: 'UnpublishSalesChannel',
|
|
1036
|
+
CloneSalesChannel: 'CloneSalesChannel',
|
|
1037
|
+
ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
|
|
1038
|
+
CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
|
|
1039
|
+
UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
|
|
1040
|
+
UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
|
|
1041
|
+
ViewSubscriptions: 'ViewSubscriptions',
|
|
1042
|
+
ViewInvoices: 'ViewInvoices',
|
|
1043
|
+
EditAccountsBills: 'EditAccountsBills',
|
|
1044
|
+
ViewAccountsBills: 'ViewAccountsBills',
|
|
1045
|
+
EditAccountsCategories: 'EditAccountsCategories',
|
|
1046
|
+
ViewAccountsCategories: 'ViewAccountsCategories',
|
|
1047
|
+
EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
|
|
1048
|
+
ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
|
|
1049
|
+
EditAccountsCreditBooks: 'EditAccountsCreditBooks',
|
|
1050
|
+
ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
|
|
1051
|
+
EditAccountsExpenses: 'EditAccountsExpenses',
|
|
1052
|
+
ViewAccountsExpenses: 'ViewAccountsExpenses',
|
|
1053
|
+
EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
|
|
1054
|
+
ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
|
|
1055
|
+
EditDocumentExplorer: 'EditDocumentExplorer',
|
|
1056
|
+
ViewDocumentExplorer: 'ViewDocumentExplorer',
|
|
1057
|
+
ViewInventoryReports: 'ViewInventoryReports',
|
|
1058
|
+
EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
|
|
1059
|
+
ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
|
|
1060
|
+
EditInventoryStockItems: 'EditInventoryStockItems',
|
|
1061
|
+
ViewInventoryStockItems: 'ViewInventoryStockItems',
|
|
1062
|
+
EditInventorySupplier: 'EditInventorySupplier',
|
|
1063
|
+
ViewInventorySupplier: 'ViewInventorySupplier',
|
|
1064
|
+
EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
|
|
1065
|
+
ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
|
|
1066
|
+
ViewPayrollReports: 'ViewPayrollReports',
|
|
1067
|
+
EditPayrollHoliday: 'EditPayrollHoliday',
|
|
1068
|
+
ViewPayrollHoliday: 'ViewPayrollHoliday',
|
|
1069
|
+
EditPayrollRota: 'EditPayrollRota',
|
|
1070
|
+
ViewPayrollRota: 'ViewPayrollRota',
|
|
1071
|
+
EditPayrollStaff: 'EditPayrollStaff',
|
|
1072
|
+
ViewPayrollStaff: 'ViewPayrollStaff',
|
|
1073
|
+
ViewSalesReports: 'ViewSalesReports',
|
|
1074
|
+
ViewCostReports: 'ViewCostReports',
|
|
1075
|
+
ViewMenuReports: 'ViewMenuReports',
|
|
1076
|
+
ViewBrand: 'ViewBrand',
|
|
1077
|
+
EditBrand: 'EditBrand',
|
|
1078
|
+
CreateBrand: 'CreateBrand',
|
|
1079
|
+
TransferBrand: 'TransferBrand',
|
|
1080
|
+
ViewProperty: 'ViewProperty',
|
|
1081
|
+
EditProperty: 'EditProperty',
|
|
1082
|
+
CreateProperty: 'CreateProperty',
|
|
1083
|
+
ArchiveProperty: 'ArchiveProperty',
|
|
1084
|
+
ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
|
|
1085
|
+
EditEntityFeatureFlags: 'EditEntityFeatureFlags',
|
|
1086
|
+
CreateOrg: 'CreateOrg',
|
|
1087
|
+
EditOrg: 'EditOrg',
|
|
1088
|
+
ViewOrg: 'ViewOrg',
|
|
1089
|
+
ViewWebhooks: 'ViewWebhooks',
|
|
1090
|
+
EditWebhooks: 'EditWebhooks',
|
|
1091
|
+
RoleAdmin: 'RoleAdmin',
|
|
1092
|
+
RoleFactory: 'RoleFactory'
|
|
1093
|
+
} as const;
|
|
1094
|
+
|
|
1095
|
+
export type FeatureBasedRolePermissionsEnum = typeof FeatureBasedRolePermissionsEnum[keyof typeof FeatureBasedRolePermissionsEnum];
|
|
543
1096
|
|
|
544
|
-
/**
|
|
545
|
-
* Response containing the authorization decision
|
|
546
|
-
* @export
|
|
547
|
-
* @interface AuthorizationResponse
|
|
548
|
-
*/
|
|
549
|
-
export interface AuthorizationResponse {
|
|
550
|
-
/**
|
|
551
|
-
* Whether the action is allowed
|
|
552
|
-
* @type {boolean}
|
|
553
|
-
* @memberof AuthorizationResponse
|
|
554
|
-
*/
|
|
555
|
-
'allowed': boolean;
|
|
556
|
-
/**
|
|
557
|
-
* The authorization decision
|
|
558
|
-
* @type {string}
|
|
559
|
-
* @memberof AuthorizationResponse
|
|
560
|
-
*/
|
|
561
|
-
'decision': string;
|
|
562
|
-
/**
|
|
563
|
-
* The policy IDs that were used to make the decision
|
|
564
|
-
* @type {Array<string>}
|
|
565
|
-
* @memberof AuthorizationResponse
|
|
566
|
-
*/
|
|
567
|
-
'policyIds': Array<string>;
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
*
|
|
571
|
-
* @export
|
|
572
|
-
* @interface ErrorResponse
|
|
573
|
-
*/
|
|
574
|
-
export interface ErrorResponse {
|
|
575
|
-
/**
|
|
576
|
-
*
|
|
577
|
-
* @type {string}
|
|
578
|
-
* @memberof ErrorResponse
|
|
579
|
-
*/
|
|
580
|
-
'message': string;
|
|
581
|
-
}
|
|
582
|
-
/**
|
|
583
|
-
* Feature based role and its permissions
|
|
584
|
-
* @export
|
|
585
|
-
* @interface FeatureBasedRole
|
|
586
|
-
*/
|
|
587
|
-
export interface FeatureBasedRole {
|
|
588
|
-
/**
|
|
589
|
-
* Name of the role
|
|
590
|
-
* @type {string}
|
|
591
|
-
* @memberof FeatureBasedRole
|
|
592
|
-
*/
|
|
593
|
-
'name': string;
|
|
594
|
-
/**
|
|
595
|
-
*
|
|
596
|
-
* @type {Permissions & Array<string>}
|
|
597
|
-
* @memberof FeatureBasedRole
|
|
598
|
-
*/
|
|
599
|
-
'permissions': Permissions & Array<string>;
|
|
600
|
-
}
|
|
601
1097
|
/**
|
|
602
1098
|
* Request to get authorized brands for a principal or the authenticated user based on the headers. Either principal or headers must be provided, but not both. If both are provided, the principal will be used.
|
|
603
1099
|
* @export
|
|
@@ -1926,7 +2422,7 @@ export interface IsInRoleRequest {
|
|
|
1926
2422
|
*/
|
|
1927
2423
|
'roles': Array<IsInRoleRequestRolesEnum>;
|
|
1928
2424
|
/**
|
|
1929
|
-
* How to check
|
|
2425
|
+
* How to check authorisation - any or all of the actions must be allowed
|
|
1930
2426
|
* @type {string}
|
|
1931
2427
|
* @memberof IsInRoleRequest
|
|
1932
2428
|
*/
|
|
@@ -2090,40 +2586,14 @@ export type ListOrgRolesSuccessResponseValueValueRolesEnum = typeof ListOrgRoles
|
|
|
2090
2586
|
*/
|
|
2091
2587
|
export interface ListPermissionsSuccessResponse {
|
|
2092
2588
|
/**
|
|
2093
|
-
*
|
|
2094
|
-
* @type {Permissions & Array<string>}
|
|
2095
|
-
* @memberof ListPermissionsSuccessResponse
|
|
2096
|
-
*/
|
|
2097
|
-
'permissions': Permissions & Array<string>;
|
|
2098
|
-
}
|
|
2099
|
-
/**
|
|
2100
|
-
* Successful roles retrieval response
|
|
2101
|
-
* @export
|
|
2102
|
-
* @interface ListRolesSuccessResponse
|
|
2103
|
-
*/
|
|
2104
|
-
export interface ListRolesSuccessResponse {
|
|
2105
|
-
/**
|
|
2106
|
-
* List of named roles
|
|
2589
|
+
* List of permissions
|
|
2107
2590
|
* @type {Array<string>}
|
|
2108
|
-
* @memberof
|
|
2591
|
+
* @memberof ListPermissionsSuccessResponse
|
|
2109
2592
|
*/
|
|
2110
|
-
'
|
|
2593
|
+
'permissions': Array<ListPermissionsSuccessResponsePermissionsEnum>;
|
|
2111
2594
|
}
|
|
2112
2595
|
|
|
2113
|
-
export const
|
|
2114
|
-
Admin: 'Admin',
|
|
2115
|
-
Factory: 'Factory'
|
|
2116
|
-
} as const;
|
|
2117
|
-
|
|
2118
|
-
export type ListRolesSuccessResponseRolesEnum = typeof ListRolesSuccessResponseRolesEnum[keyof typeof ListRolesSuccessResponseRolesEnum];
|
|
2119
|
-
|
|
2120
|
-
/**
|
|
2121
|
-
*
|
|
2122
|
-
* @export
|
|
2123
|
-
* @enum {string}
|
|
2124
|
-
*/
|
|
2125
|
-
|
|
2126
|
-
export const Permissions = {
|
|
2596
|
+
export const ListPermissionsSuccessResponsePermissionsEnum = {
|
|
2127
2597
|
AnyAuditLogs: 'AnyAuditLogs',
|
|
2128
2598
|
ViewApp: 'ViewApp',
|
|
2129
2599
|
CreateApp: 'CreateApp',
|
|
@@ -2354,8 +2824,28 @@ export const Permissions = {
|
|
|
2354
2824
|
RoleFactory: 'RoleFactory'
|
|
2355
2825
|
} as const;
|
|
2356
2826
|
|
|
2357
|
-
export type
|
|
2827
|
+
export type ListPermissionsSuccessResponsePermissionsEnum = typeof ListPermissionsSuccessResponsePermissionsEnum[keyof typeof ListPermissionsSuccessResponsePermissionsEnum];
|
|
2828
|
+
|
|
2829
|
+
/**
|
|
2830
|
+
* Successful roles retrieval response
|
|
2831
|
+
* @export
|
|
2832
|
+
* @interface ListRolesSuccessResponse
|
|
2833
|
+
*/
|
|
2834
|
+
export interface ListRolesSuccessResponse {
|
|
2835
|
+
/**
|
|
2836
|
+
* List of named roles
|
|
2837
|
+
* @type {Array<string>}
|
|
2838
|
+
* @memberof ListRolesSuccessResponse
|
|
2839
|
+
*/
|
|
2840
|
+
'roles': Array<ListRolesSuccessResponseRolesEnum>;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
export const ListRolesSuccessResponseRolesEnum = {
|
|
2844
|
+
Admin: 'Admin',
|
|
2845
|
+
Factory: 'Factory'
|
|
2846
|
+
} as const;
|
|
2358
2847
|
|
|
2848
|
+
export type ListRolesSuccessResponseRolesEnum = typeof ListRolesSuccessResponseRolesEnum[keyof typeof ListRolesSuccessResponseRolesEnum];
|
|
2359
2849
|
|
|
2360
2850
|
/**
|
|
2361
2851
|
* Details for revoking a forbidden role from a principal
|