@flipdish/authorization 0.0.2-rc.1756733622
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 +12 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +28 -0
- package/api.ts +2484 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +128 -0
- package/dist/api.d.ts +1959 -0
- package/dist/api.js +1945 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +86 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +253 -0
- package/dist/configuration.d.ts +99 -0
- package/dist/configuration.js +61 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,1945 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Authorization API
|
|
6
|
+
* Authorization API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
* Contact: support@flipdish.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
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 = 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
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
};
|
|
86
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.Permissions = exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
|
|
88
|
+
var axios_1 = require("axios");
|
|
89
|
+
// Some imports not used depending on template conditions
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
var common_1 = require("./common");
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
var base_1 = require("./base");
|
|
94
|
+
exports.AssignRoleRequestBodyRoleEnum = {
|
|
95
|
+
OrgViewer: 'OrgViewer',
|
|
96
|
+
OrgManager: 'OrgManager',
|
|
97
|
+
OrgAdmin: 'OrgAdmin',
|
|
98
|
+
BrandViewer: 'BrandViewer',
|
|
99
|
+
BrandManager: 'BrandManager',
|
|
100
|
+
BrandAdmin: 'BrandAdmin',
|
|
101
|
+
StoreViewer: 'StoreViewer',
|
|
102
|
+
StoreEditor: 'StoreEditor',
|
|
103
|
+
StoreManager: 'StoreManager',
|
|
104
|
+
CustomerViewer: 'CustomerViewer',
|
|
105
|
+
CustomerManager: 'CustomerManager',
|
|
106
|
+
VoucherViewer: 'VoucherViewer',
|
|
107
|
+
VoucherEditor: 'VoucherEditor',
|
|
108
|
+
VoucherManager: 'VoucherManager',
|
|
109
|
+
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
110
|
+
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
111
|
+
AnalyticsViewer: 'AnalyticsViewer',
|
|
112
|
+
ReportsViewer: 'ReportsViewer',
|
|
113
|
+
FinanceViewer: 'FinanceViewer',
|
|
114
|
+
FinanceManager: 'FinanceManager',
|
|
115
|
+
TeamViewer: 'TeamViewer',
|
|
116
|
+
TeamManager: 'TeamManager',
|
|
117
|
+
TeamAdmin: 'TeamAdmin',
|
|
118
|
+
TechViewer: 'TechViewer',
|
|
119
|
+
TechManager: 'TechManager',
|
|
120
|
+
AppStoreViewer: 'AppStoreViewer',
|
|
121
|
+
AppStoreManager: 'AppStoreManager',
|
|
122
|
+
SalesChannelViewer: 'SalesChannelViewer',
|
|
123
|
+
SalesChannelEditor: 'SalesChannelEditor',
|
|
124
|
+
SalesChannelManager: 'SalesChannelManager',
|
|
125
|
+
DeliveryViewer: 'DeliveryViewer',
|
|
126
|
+
DeliveryManager: 'DeliveryManager',
|
|
127
|
+
DriverManager: 'DriverManager',
|
|
128
|
+
AuditViewer: 'AuditViewer',
|
|
129
|
+
AuditManager: 'AuditManager',
|
|
130
|
+
AccountsViewer: 'AccountsViewer',
|
|
131
|
+
AccountsEditor: 'AccountsEditor',
|
|
132
|
+
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
133
|
+
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
134
|
+
PayrollViewer: 'PayrollViewer',
|
|
135
|
+
PayrollEditor: 'PayrollEditor',
|
|
136
|
+
PropertyViewer: 'PropertyViewer',
|
|
137
|
+
PropertyManager: 'PropertyManager',
|
|
138
|
+
PropertyAdmin: 'PropertyAdmin',
|
|
139
|
+
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
140
|
+
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
141
|
+
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
142
|
+
MenuViewer: 'MenuViewer',
|
|
143
|
+
MenuEditor: 'MenuEditor',
|
|
144
|
+
MenuManager: 'MenuManager',
|
|
145
|
+
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
146
|
+
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
147
|
+
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
148
|
+
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
149
|
+
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
150
|
+
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
151
|
+
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
152
|
+
OrderManager: 'OrderManager',
|
|
153
|
+
OrderEditor: 'OrderEditor',
|
|
154
|
+
OrderViewer: 'OrderViewer',
|
|
155
|
+
InventoryManager: 'InventoryManager',
|
|
156
|
+
InventoryEditor: 'InventoryEditor',
|
|
157
|
+
InventoryViewer: 'InventoryViewer',
|
|
158
|
+
PaymentManager: 'PaymentManager',
|
|
159
|
+
OnboardingManager: 'OnboardingManager',
|
|
160
|
+
FeatureFlagManager: 'FeatureFlagManager',
|
|
161
|
+
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
162
|
+
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
163
|
+
IntegratorMisc: 'IntegratorMisc',
|
|
164
|
+
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
165
|
+
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
166
|
+
SupportMisc: 'SupportMisc'
|
|
167
|
+
};
|
|
168
|
+
exports.AuthorizationRequestPrincipalTypeEnum = {
|
|
169
|
+
User: 'User',
|
|
170
|
+
Automation: 'Automation'
|
|
171
|
+
};
|
|
172
|
+
exports.AuthorizationRequestResourceOneOfTypeEnum = {
|
|
173
|
+
Property: 'Property'
|
|
174
|
+
};
|
|
175
|
+
exports.AuthorizationRequestResourceOneOf1TypeEnum = {
|
|
176
|
+
Org: 'Org'
|
|
177
|
+
};
|
|
178
|
+
exports.AuthorizationRequestResourceOneOf2TypeEnum = {
|
|
179
|
+
Brand: 'Brand'
|
|
180
|
+
};
|
|
181
|
+
exports.AuthorizationRequestResourceOneOf3TypeEnum = {
|
|
182
|
+
SalesChannel: 'SalesChannel'
|
|
183
|
+
};
|
|
184
|
+
exports.GetPrincipalRolesSuccessResponseRolesInnerRoleNameEnum = {
|
|
185
|
+
OrgViewer: 'OrgViewer',
|
|
186
|
+
OrgManager: 'OrgManager',
|
|
187
|
+
OrgAdmin: 'OrgAdmin',
|
|
188
|
+
BrandViewer: 'BrandViewer',
|
|
189
|
+
BrandManager: 'BrandManager',
|
|
190
|
+
BrandAdmin: 'BrandAdmin',
|
|
191
|
+
StoreViewer: 'StoreViewer',
|
|
192
|
+
StoreEditor: 'StoreEditor',
|
|
193
|
+
StoreManager: 'StoreManager',
|
|
194
|
+
CustomerViewer: 'CustomerViewer',
|
|
195
|
+
CustomerManager: 'CustomerManager',
|
|
196
|
+
VoucherViewer: 'VoucherViewer',
|
|
197
|
+
VoucherEditor: 'VoucherEditor',
|
|
198
|
+
VoucherManager: 'VoucherManager',
|
|
199
|
+
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
200
|
+
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
201
|
+
AnalyticsViewer: 'AnalyticsViewer',
|
|
202
|
+
ReportsViewer: 'ReportsViewer',
|
|
203
|
+
FinanceViewer: 'FinanceViewer',
|
|
204
|
+
FinanceManager: 'FinanceManager',
|
|
205
|
+
TeamViewer: 'TeamViewer',
|
|
206
|
+
TeamManager: 'TeamManager',
|
|
207
|
+
TeamAdmin: 'TeamAdmin',
|
|
208
|
+
TechViewer: 'TechViewer',
|
|
209
|
+
TechManager: 'TechManager',
|
|
210
|
+
AppStoreViewer: 'AppStoreViewer',
|
|
211
|
+
AppStoreManager: 'AppStoreManager',
|
|
212
|
+
SalesChannelViewer: 'SalesChannelViewer',
|
|
213
|
+
SalesChannelEditor: 'SalesChannelEditor',
|
|
214
|
+
SalesChannelManager: 'SalesChannelManager',
|
|
215
|
+
DeliveryViewer: 'DeliveryViewer',
|
|
216
|
+
DeliveryManager: 'DeliveryManager',
|
|
217
|
+
DriverManager: 'DriverManager',
|
|
218
|
+
AuditViewer: 'AuditViewer',
|
|
219
|
+
AuditManager: 'AuditManager',
|
|
220
|
+
AccountsViewer: 'AccountsViewer',
|
|
221
|
+
AccountsEditor: 'AccountsEditor',
|
|
222
|
+
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
223
|
+
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
224
|
+
PayrollViewer: 'PayrollViewer',
|
|
225
|
+
PayrollEditor: 'PayrollEditor',
|
|
226
|
+
PropertyViewer: 'PropertyViewer',
|
|
227
|
+
PropertyManager: 'PropertyManager',
|
|
228
|
+
PropertyAdmin: 'PropertyAdmin',
|
|
229
|
+
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
230
|
+
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
231
|
+
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
232
|
+
MenuViewer: 'MenuViewer',
|
|
233
|
+
MenuEditor: 'MenuEditor',
|
|
234
|
+
MenuManager: 'MenuManager',
|
|
235
|
+
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
236
|
+
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
237
|
+
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
238
|
+
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
239
|
+
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
240
|
+
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
241
|
+
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
242
|
+
OrderManager: 'OrderManager',
|
|
243
|
+
OrderEditor: 'OrderEditor',
|
|
244
|
+
OrderViewer: 'OrderViewer',
|
|
245
|
+
InventoryManager: 'InventoryManager',
|
|
246
|
+
InventoryEditor: 'InventoryEditor',
|
|
247
|
+
InventoryViewer: 'InventoryViewer',
|
|
248
|
+
PaymentManager: 'PaymentManager',
|
|
249
|
+
OnboardingManager: 'OnboardingManager',
|
|
250
|
+
FeatureFlagManager: 'FeatureFlagManager',
|
|
251
|
+
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
252
|
+
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
253
|
+
IntegratorMisc: 'IntegratorMisc',
|
|
254
|
+
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
255
|
+
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
256
|
+
SupportMisc: 'SupportMisc'
|
|
257
|
+
};
|
|
258
|
+
exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
|
|
259
|
+
Property: 'Property',
|
|
260
|
+
Org: 'Org',
|
|
261
|
+
Brand: 'Brand',
|
|
262
|
+
SalesChannel: 'SalesChannel'
|
|
263
|
+
};
|
|
264
|
+
exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
265
|
+
Property: 'Property',
|
|
266
|
+
Org: 'Org',
|
|
267
|
+
Brand: 'Brand',
|
|
268
|
+
SalesChannel: 'SalesChannel'
|
|
269
|
+
};
|
|
270
|
+
exports.GetUserPermissionsSuccessResponseResourcesValuePermissionsEnum = {
|
|
271
|
+
AnyAuditLogs: 'AnyAuditLogs',
|
|
272
|
+
ViewApp: 'ViewApp',
|
|
273
|
+
CreateApp: 'CreateApp',
|
|
274
|
+
UpdateApp: 'UpdateApp',
|
|
275
|
+
ViewAppName: 'ViewAppName',
|
|
276
|
+
EditAppAssets: 'EditAppAssets',
|
|
277
|
+
EditAppFeatures: 'EditAppFeatures',
|
|
278
|
+
ViewTeammates: 'ViewTeammates',
|
|
279
|
+
EditTeammates: 'EditTeammates',
|
|
280
|
+
CreateTeammateOwner: 'CreateTeammateOwner',
|
|
281
|
+
CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
|
|
282
|
+
CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
|
|
283
|
+
CreateTeammateStoreManager: 'CreateTeammateStoreManager',
|
|
284
|
+
CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
|
|
285
|
+
CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
|
|
286
|
+
CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
|
|
287
|
+
CreateTeammateIntegrator: 'CreateTeammateIntegrator',
|
|
288
|
+
CreateTeammateOnboarding: 'CreateTeammateOnboarding',
|
|
289
|
+
CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
|
|
290
|
+
CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
|
|
291
|
+
ViewApmConfigurations: 'ViewApmConfigurations',
|
|
292
|
+
EditApmConfigurations: 'EditApmConfigurations',
|
|
293
|
+
ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
|
|
294
|
+
CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
|
|
295
|
+
UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
|
|
296
|
+
DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
|
|
297
|
+
StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
|
|
298
|
+
ViewDevelopersSettings: 'ViewDevelopersSettings',
|
|
299
|
+
EditDevelopersSettings: 'EditDevelopersSettings',
|
|
300
|
+
ViewOrders: 'ViewOrders',
|
|
301
|
+
UpdateOrdersAccept: 'UpdateOrdersAccept',
|
|
302
|
+
UpdateOrdersReject: 'UpdateOrdersReject',
|
|
303
|
+
UpdateOrdersRefund: 'UpdateOrdersRefund',
|
|
304
|
+
UpdateOrdersDispatch: 'UpdateOrdersDispatch',
|
|
305
|
+
ViewStores: 'ViewStores',
|
|
306
|
+
CreateStores: 'CreateStores',
|
|
307
|
+
EditStores: 'EditStores',
|
|
308
|
+
ViewStoresOpeningHours: 'ViewStoresOpeningHours',
|
|
309
|
+
UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
|
|
310
|
+
UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
|
|
311
|
+
ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
|
|
312
|
+
EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
|
|
313
|
+
EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
|
|
314
|
+
UpdateStoresName: 'UpdateStoresName',
|
|
315
|
+
EditStoreKioskSettings: 'EditStoreKioskSettings',
|
|
316
|
+
EditStoreOrderCapacity: 'EditStoreOrderCapacity',
|
|
317
|
+
EditStoreNotifications: 'EditStoreNotifications',
|
|
318
|
+
ArchiveStores: 'ArchiveStores',
|
|
319
|
+
PublishStores: 'PublishStores',
|
|
320
|
+
UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
|
|
321
|
+
UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
|
|
322
|
+
ViewStoreGroups: 'ViewStoreGroups',
|
|
323
|
+
CreateStoreGroups: 'CreateStoreGroups',
|
|
324
|
+
UpdateStoreGroups: 'UpdateStoreGroups',
|
|
325
|
+
DeleteStoreGroups: 'DeleteStoreGroups',
|
|
326
|
+
ViewDeliveryZones: 'ViewDeliveryZones',
|
|
327
|
+
CreateDeliveryZones: 'CreateDeliveryZones',
|
|
328
|
+
UpdateDeliveryZones: 'UpdateDeliveryZones',
|
|
329
|
+
DeleteDeliveryZones: 'DeleteDeliveryZones',
|
|
330
|
+
ViewMenu: 'ViewMenu',
|
|
331
|
+
CreateMenu: 'CreateMenu',
|
|
332
|
+
UpdateMenu: 'UpdateMenu',
|
|
333
|
+
DeleteMenu: 'DeleteMenu',
|
|
334
|
+
UpdateMenuLock: 'UpdateMenuLock',
|
|
335
|
+
UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
|
|
336
|
+
EditMenuImage: 'EditMenuImage',
|
|
337
|
+
ViewVouchers: 'ViewVouchers',
|
|
338
|
+
EditVouchers: 'EditVouchers',
|
|
339
|
+
ViewWebsiteContent: 'ViewWebsiteContent',
|
|
340
|
+
EditWebsiteContent: 'EditWebsiteContent',
|
|
341
|
+
ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
|
|
342
|
+
ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
|
|
343
|
+
ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
|
|
344
|
+
ViewBankAccounts: 'ViewBankAccounts',
|
|
345
|
+
CreateBankAccounts: 'CreateBankAccounts',
|
|
346
|
+
UpdateBankAccounts: 'UpdateBankAccounts',
|
|
347
|
+
UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
|
|
348
|
+
ViewAssignedBankAccount: 'ViewAssignedBankAccount',
|
|
349
|
+
VerifyBankAccounts: 'VerifyBankAccounts',
|
|
350
|
+
ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
|
|
351
|
+
EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
|
|
352
|
+
EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
|
|
353
|
+
EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
|
|
354
|
+
ViewHydraConfig: 'ViewHydraConfig',
|
|
355
|
+
UpdateHydraConfigManage: 'UpdateHydraConfigManage',
|
|
356
|
+
InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
|
|
357
|
+
DeleteTerminal: 'DeleteTerminal',
|
|
358
|
+
ViewKioskTelemetry: 'ViewKioskTelemetry',
|
|
359
|
+
ViewCustomers: 'ViewCustomers',
|
|
360
|
+
EditCustomers: 'EditCustomers',
|
|
361
|
+
CreateCustomers: 'CreateCustomers',
|
|
362
|
+
CreateCatalogElements: 'CreateCatalogElements',
|
|
363
|
+
UpdateCatalogElements: 'UpdateCatalogElements',
|
|
364
|
+
ViewCatalogElements: 'ViewCatalogElements',
|
|
365
|
+
DeleteCatalogElements: 'DeleteCatalogElements',
|
|
366
|
+
ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
|
|
367
|
+
CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
|
|
368
|
+
UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
|
|
369
|
+
DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
|
|
370
|
+
UpdateMetafields: 'UpdateMetafields',
|
|
371
|
+
ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
|
|
372
|
+
PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
|
|
373
|
+
ViewAppStatistics: 'ViewAppStatistics',
|
|
374
|
+
ViewApmStatistics: 'ViewApmStatistics',
|
|
375
|
+
ViewCampaignsStatistics: 'ViewCampaignsStatistics',
|
|
376
|
+
ViewCustomerStatistics: 'ViewCustomerStatistics',
|
|
377
|
+
ViewLiveStatistics: 'ViewLiveStatistics',
|
|
378
|
+
ViewOrderStatistics: 'ViewOrderStatistics',
|
|
379
|
+
ViewSalesStatistics: 'ViewSalesStatistics',
|
|
380
|
+
ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
|
|
381
|
+
ViewVouchersStatistics: 'ViewVouchersStatistics',
|
|
382
|
+
DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
|
|
383
|
+
ViewApmAuditLogs: 'ViewApmAuditLogs',
|
|
384
|
+
ViewStoreAuditLogs: 'ViewStoreAuditLogs',
|
|
385
|
+
ViewMenuAuditLogs: 'ViewMenuAuditLogs',
|
|
386
|
+
ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
|
|
387
|
+
ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
|
|
388
|
+
ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
|
|
389
|
+
ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
|
|
390
|
+
ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
|
|
391
|
+
ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
|
|
392
|
+
ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
|
|
393
|
+
ViewAppAuditLogs: 'ViewAppAuditLogs',
|
|
394
|
+
ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
|
|
395
|
+
ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
|
|
396
|
+
ViewHydraAuditLogs: 'ViewHydraAuditLogs',
|
|
397
|
+
ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
|
|
398
|
+
ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
|
|
399
|
+
ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
|
|
400
|
+
ViewExternalAuditLogs: 'ViewExternalAuditLogs',
|
|
401
|
+
CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
|
|
402
|
+
ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
|
|
403
|
+
ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
|
|
404
|
+
ViewChannelAuditLogs: 'ViewChannelAuditLogs',
|
|
405
|
+
ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
|
|
406
|
+
SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
|
|
407
|
+
InviteDriverToApp: 'InviteDriverToApp',
|
|
408
|
+
GetDriverForApp: 'GetDriverForApp',
|
|
409
|
+
RemoveDriverFromApp: 'RemoveDriverFromApp',
|
|
410
|
+
AssignDriverToOrder: 'AssignDriverToOrder',
|
|
411
|
+
UnassignDriverFromOrder: 'UnassignDriverFromOrder',
|
|
412
|
+
UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
|
|
413
|
+
UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
|
|
414
|
+
ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
|
|
415
|
+
CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
|
|
416
|
+
UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
|
|
417
|
+
DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
|
|
418
|
+
ViewPayouts: 'ViewPayouts',
|
|
419
|
+
ViewChannels: 'ViewChannels',
|
|
420
|
+
ViewOnboarding: 'ViewOnboarding',
|
|
421
|
+
UpdateOnboarding: 'UpdateOnboarding',
|
|
422
|
+
ViewClientDevices: 'ViewClientDevices',
|
|
423
|
+
UpdateClientDevices: 'UpdateClientDevices',
|
|
424
|
+
EnrollClientDevices: 'EnrollClientDevices',
|
|
425
|
+
AssignClientDevices: 'AssignClientDevices',
|
|
426
|
+
ViewClientAuditLogs: 'ViewClientAuditLogs',
|
|
427
|
+
CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
|
|
428
|
+
ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
|
|
429
|
+
UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
|
|
430
|
+
DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
|
|
431
|
+
UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
|
|
432
|
+
CreateAppStoreSubscription: 'CreateAppStoreSubscription',
|
|
433
|
+
UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
|
|
434
|
+
DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
|
|
435
|
+
ViewSalesChannels: 'ViewSalesChannels',
|
|
436
|
+
EditSalesChannels: 'EditSalesChannels',
|
|
437
|
+
CreateSalesChannel: 'CreateSalesChannel',
|
|
438
|
+
ArchiveSalesChannel: 'ArchiveSalesChannel',
|
|
439
|
+
UnarchiveSalesChannel: 'UnarchiveSalesChannel',
|
|
440
|
+
PublishSalesChannel: 'PublishSalesChannel',
|
|
441
|
+
UnpublishSalesChannel: 'UnpublishSalesChannel',
|
|
442
|
+
CloneSalesChannel: 'CloneSalesChannel',
|
|
443
|
+
ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
|
|
444
|
+
CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
|
|
445
|
+
UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
|
|
446
|
+
UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
|
|
447
|
+
ViewSubscriptions: 'ViewSubscriptions',
|
|
448
|
+
ViewInvoices: 'ViewInvoices',
|
|
449
|
+
EditAccountsBills: 'EditAccountsBills',
|
|
450
|
+
ViewAccountsBills: 'ViewAccountsBills',
|
|
451
|
+
EditAccountsCategories: 'EditAccountsCategories',
|
|
452
|
+
ViewAccountsCategories: 'ViewAccountsCategories',
|
|
453
|
+
EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
|
|
454
|
+
ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
|
|
455
|
+
EditAccountsCreditBooks: 'EditAccountsCreditBooks',
|
|
456
|
+
ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
|
|
457
|
+
EditAccountsExpenses: 'EditAccountsExpenses',
|
|
458
|
+
ViewAccountsExpenses: 'ViewAccountsExpenses',
|
|
459
|
+
EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
|
|
460
|
+
ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
|
|
461
|
+
EditDocumentExplorer: 'EditDocumentExplorer',
|
|
462
|
+
ViewDocumentExplorer: 'ViewDocumentExplorer',
|
|
463
|
+
ViewInventoryReports: 'ViewInventoryReports',
|
|
464
|
+
EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
|
|
465
|
+
ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
|
|
466
|
+
EditInventoryStockItems: 'EditInventoryStockItems',
|
|
467
|
+
ViewInventoryStockItems: 'ViewInventoryStockItems',
|
|
468
|
+
EditInventorySupplier: 'EditInventorySupplier',
|
|
469
|
+
ViewInventorySupplier: 'ViewInventorySupplier',
|
|
470
|
+
EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
|
|
471
|
+
ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
|
|
472
|
+
ViewPayrollReports: 'ViewPayrollReports',
|
|
473
|
+
EditPayrollHoliday: 'EditPayrollHoliday',
|
|
474
|
+
ViewPayrollHoliday: 'ViewPayrollHoliday',
|
|
475
|
+
EditPayrollRota: 'EditPayrollRota',
|
|
476
|
+
ViewPayrollRota: 'ViewPayrollRota',
|
|
477
|
+
EditPayrollStaff: 'EditPayrollStaff',
|
|
478
|
+
ViewPayrollStaff: 'ViewPayrollStaff',
|
|
479
|
+
ViewSalesReports: 'ViewSalesReports',
|
|
480
|
+
ViewCostReports: 'ViewCostReports',
|
|
481
|
+
ViewMenuReports: 'ViewMenuReports',
|
|
482
|
+
ViewBrand: 'ViewBrand',
|
|
483
|
+
EditBrand: 'EditBrand',
|
|
484
|
+
CreateBrand: 'CreateBrand',
|
|
485
|
+
TransferBrand: 'TransferBrand',
|
|
486
|
+
ViewProperty: 'ViewProperty',
|
|
487
|
+
EditProperty: 'EditProperty',
|
|
488
|
+
CreateProperty: 'CreateProperty',
|
|
489
|
+
ArchiveProperty: 'ArchiveProperty',
|
|
490
|
+
ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
|
|
491
|
+
EditEntityFeatureFlags: 'EditEntityFeatureFlags',
|
|
492
|
+
CreateOrg: 'CreateOrg',
|
|
493
|
+
EditOrg: 'EditOrg',
|
|
494
|
+
ViewOrg: 'ViewOrg'
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @export
|
|
499
|
+
* @enum {string}
|
|
500
|
+
*/
|
|
501
|
+
exports.Permissions = {
|
|
502
|
+
AnyAuditLogs: 'AnyAuditLogs',
|
|
503
|
+
ViewApp: 'ViewApp',
|
|
504
|
+
CreateApp: 'CreateApp',
|
|
505
|
+
UpdateApp: 'UpdateApp',
|
|
506
|
+
ViewAppName: 'ViewAppName',
|
|
507
|
+
EditAppAssets: 'EditAppAssets',
|
|
508
|
+
EditAppFeatures: 'EditAppFeatures',
|
|
509
|
+
ViewTeammates: 'ViewTeammates',
|
|
510
|
+
EditTeammates: 'EditTeammates',
|
|
511
|
+
CreateTeammateOwner: 'CreateTeammateOwner',
|
|
512
|
+
CreateTeammateManagedOwner: 'CreateTeammateManagedOwner',
|
|
513
|
+
CreateTeammateStoreOwner: 'CreateTeammateStoreOwner',
|
|
514
|
+
CreateTeammateStoreManager: 'CreateTeammateStoreManager',
|
|
515
|
+
CreateTeammateStoreStaff: 'CreateTeammateStoreStaff',
|
|
516
|
+
CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess',
|
|
517
|
+
CreateTeammateFinanceManager: 'CreateTeammateFinanceManager',
|
|
518
|
+
CreateTeammateIntegrator: 'CreateTeammateIntegrator',
|
|
519
|
+
CreateTeammateOnboarding: 'CreateTeammateOnboarding',
|
|
520
|
+
CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
|
|
521
|
+
CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
|
|
522
|
+
ViewApmConfigurations: 'ViewApmConfigurations',
|
|
523
|
+
EditApmConfigurations: 'EditApmConfigurations',
|
|
524
|
+
ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
|
|
525
|
+
CreateCampaignsConfigurations: 'CreateCampaignsConfigurations',
|
|
526
|
+
UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations',
|
|
527
|
+
DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations',
|
|
528
|
+
StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations',
|
|
529
|
+
ViewDevelopersSettings: 'ViewDevelopersSettings',
|
|
530
|
+
EditDevelopersSettings: 'EditDevelopersSettings',
|
|
531
|
+
ViewOrders: 'ViewOrders',
|
|
532
|
+
UpdateOrdersAccept: 'UpdateOrdersAccept',
|
|
533
|
+
UpdateOrdersReject: 'UpdateOrdersReject',
|
|
534
|
+
UpdateOrdersRefund: 'UpdateOrdersRefund',
|
|
535
|
+
UpdateOrdersDispatch: 'UpdateOrdersDispatch',
|
|
536
|
+
ViewStores: 'ViewStores',
|
|
537
|
+
CreateStores: 'CreateStores',
|
|
538
|
+
EditStores: 'EditStores',
|
|
539
|
+
ViewStoresOpeningHours: 'ViewStoresOpeningHours',
|
|
540
|
+
UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery',
|
|
541
|
+
UpdateStoresOpeningHours: 'UpdateStoresOpeningHours',
|
|
542
|
+
ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride',
|
|
543
|
+
EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride',
|
|
544
|
+
EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary',
|
|
545
|
+
UpdateStoresName: 'UpdateStoresName',
|
|
546
|
+
EditStoreKioskSettings: 'EditStoreKioskSettings',
|
|
547
|
+
EditStoreOrderCapacity: 'EditStoreOrderCapacity',
|
|
548
|
+
EditStoreNotifications: 'EditStoreNotifications',
|
|
549
|
+
ArchiveStores: 'ArchiveStores',
|
|
550
|
+
PublishStores: 'PublishStores',
|
|
551
|
+
UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign',
|
|
552
|
+
UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle',
|
|
553
|
+
ViewStoreGroups: 'ViewStoreGroups',
|
|
554
|
+
CreateStoreGroups: 'CreateStoreGroups',
|
|
555
|
+
UpdateStoreGroups: 'UpdateStoreGroups',
|
|
556
|
+
DeleteStoreGroups: 'DeleteStoreGroups',
|
|
557
|
+
ViewDeliveryZones: 'ViewDeliveryZones',
|
|
558
|
+
CreateDeliveryZones: 'CreateDeliveryZones',
|
|
559
|
+
UpdateDeliveryZones: 'UpdateDeliveryZones',
|
|
560
|
+
DeleteDeliveryZones: 'DeleteDeliveryZones',
|
|
561
|
+
ViewMenu: 'ViewMenu',
|
|
562
|
+
CreateMenu: 'CreateMenu',
|
|
563
|
+
UpdateMenu: 'UpdateMenu',
|
|
564
|
+
DeleteMenu: 'DeleteMenu',
|
|
565
|
+
UpdateMenuLock: 'UpdateMenuLock',
|
|
566
|
+
UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily',
|
|
567
|
+
EditMenuImage: 'EditMenuImage',
|
|
568
|
+
ViewVouchers: 'ViewVouchers',
|
|
569
|
+
EditVouchers: 'EditVouchers',
|
|
570
|
+
ViewWebsiteContent: 'ViewWebsiteContent',
|
|
571
|
+
EditWebsiteContent: 'EditWebsiteContent',
|
|
572
|
+
ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified',
|
|
573
|
+
ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated',
|
|
574
|
+
ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed',
|
|
575
|
+
ViewBankAccounts: 'ViewBankAccounts',
|
|
576
|
+
CreateBankAccounts: 'CreateBankAccounts',
|
|
577
|
+
UpdateBankAccounts: 'UpdateBankAccounts',
|
|
578
|
+
UpdateBankAccountsAssign: 'UpdateBankAccountsAssign',
|
|
579
|
+
ViewAssignedBankAccount: 'ViewAssignedBankAccount',
|
|
580
|
+
VerifyBankAccounts: 'VerifyBankAccounts',
|
|
581
|
+
ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations',
|
|
582
|
+
EditServiceChargeConfigurations: 'EditServiceChargeConfigurations',
|
|
583
|
+
EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees',
|
|
584
|
+
EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited',
|
|
585
|
+
ViewHydraConfig: 'ViewHydraConfig',
|
|
586
|
+
UpdateHydraConfigManage: 'UpdateHydraConfigManage',
|
|
587
|
+
InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode',
|
|
588
|
+
DeleteTerminal: 'DeleteTerminal',
|
|
589
|
+
ViewKioskTelemetry: 'ViewKioskTelemetry',
|
|
590
|
+
ViewCustomers: 'ViewCustomers',
|
|
591
|
+
EditCustomers: 'EditCustomers',
|
|
592
|
+
CreateCustomers: 'CreateCustomers',
|
|
593
|
+
CreateCatalogElements: 'CreateCatalogElements',
|
|
594
|
+
UpdateCatalogElements: 'UpdateCatalogElements',
|
|
595
|
+
ViewCatalogElements: 'ViewCatalogElements',
|
|
596
|
+
DeleteCatalogElements: 'DeleteCatalogElements',
|
|
597
|
+
ViewMetafieldDefinitions: 'ViewMetafieldDefinitions',
|
|
598
|
+
CreateMetafieldDefinitions: 'CreateMetafieldDefinitions',
|
|
599
|
+
UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions',
|
|
600
|
+
DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions',
|
|
601
|
+
UpdateMetafields: 'UpdateMetafields',
|
|
602
|
+
ViewCatalogMenuChanges: 'ViewCatalogMenuChanges',
|
|
603
|
+
PublishCatalogMenuChanges: 'PublishCatalogMenuChanges',
|
|
604
|
+
ViewAppStatistics: 'ViewAppStatistics',
|
|
605
|
+
ViewApmStatistics: 'ViewApmStatistics',
|
|
606
|
+
ViewCampaignsStatistics: 'ViewCampaignsStatistics',
|
|
607
|
+
ViewCustomerStatistics: 'ViewCustomerStatistics',
|
|
608
|
+
ViewLiveStatistics: 'ViewLiveStatistics',
|
|
609
|
+
ViewOrderStatistics: 'ViewOrderStatistics',
|
|
610
|
+
ViewSalesStatistics: 'ViewSalesStatistics',
|
|
611
|
+
ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics',
|
|
612
|
+
ViewVouchersStatistics: 'ViewVouchersStatistics',
|
|
613
|
+
DownloadCustomerCsvExport: 'DownloadCustomerCsvExport',
|
|
614
|
+
ViewApmAuditLogs: 'ViewApmAuditLogs',
|
|
615
|
+
ViewStoreAuditLogs: 'ViewStoreAuditLogs',
|
|
616
|
+
ViewMenuAuditLogs: 'ViewMenuAuditLogs',
|
|
617
|
+
ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs',
|
|
618
|
+
ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs',
|
|
619
|
+
ViewOrdersAuditLogs: 'ViewOrdersAuditLogs',
|
|
620
|
+
ViewVouchersAuditLogs: 'ViewVouchersAuditLogs',
|
|
621
|
+
ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs',
|
|
622
|
+
ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs',
|
|
623
|
+
ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs',
|
|
624
|
+
ViewAppAuditLogs: 'ViewAppAuditLogs',
|
|
625
|
+
ViewCustomerAuditLogs: 'ViewCustomerAuditLogs',
|
|
626
|
+
ViewPrinterAuditLogs: 'ViewPrinterAuditLogs',
|
|
627
|
+
ViewHydraAuditLogs: 'ViewHydraAuditLogs',
|
|
628
|
+
ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs',
|
|
629
|
+
ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs',
|
|
630
|
+
ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs',
|
|
631
|
+
ViewExternalAuditLogs: 'ViewExternalAuditLogs',
|
|
632
|
+
CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents',
|
|
633
|
+
ViewCatalogAuditLogs: 'ViewCatalogAuditLogs',
|
|
634
|
+
ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs',
|
|
635
|
+
ViewChannelAuditLogs: 'ViewChannelAuditLogs',
|
|
636
|
+
ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs',
|
|
637
|
+
SendPushNotificationToCustomer: 'SendPushNotificationToCustomer',
|
|
638
|
+
InviteDriverToApp: 'InviteDriverToApp',
|
|
639
|
+
GetDriverForApp: 'GetDriverForApp',
|
|
640
|
+
RemoveDriverFromApp: 'RemoveDriverFromApp',
|
|
641
|
+
AssignDriverToOrder: 'AssignDriverToOrder',
|
|
642
|
+
UnassignDriverFromOrder: 'UnassignDriverFromOrder',
|
|
643
|
+
UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus',
|
|
644
|
+
UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus',
|
|
645
|
+
ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration',
|
|
646
|
+
CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration',
|
|
647
|
+
UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration',
|
|
648
|
+
DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration',
|
|
649
|
+
ViewPayouts: 'ViewPayouts',
|
|
650
|
+
ViewChannels: 'ViewChannels',
|
|
651
|
+
ViewOnboarding: 'ViewOnboarding',
|
|
652
|
+
UpdateOnboarding: 'UpdateOnboarding',
|
|
653
|
+
ViewClientDevices: 'ViewClientDevices',
|
|
654
|
+
UpdateClientDevices: 'UpdateClientDevices',
|
|
655
|
+
EnrollClientDevices: 'EnrollClientDevices',
|
|
656
|
+
AssignClientDevices: 'AssignClientDevices',
|
|
657
|
+
ViewClientAuditLogs: 'ViewClientAuditLogs',
|
|
658
|
+
CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration',
|
|
659
|
+
ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration',
|
|
660
|
+
UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration',
|
|
661
|
+
DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration',
|
|
662
|
+
UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings',
|
|
663
|
+
CreateAppStoreSubscription: 'CreateAppStoreSubscription',
|
|
664
|
+
UpdateAppStoreSubscription: 'UpdateAppStoreSubscription',
|
|
665
|
+
DeleteAppStoreSubscription: 'DeleteAppStoreSubscription',
|
|
666
|
+
ViewSalesChannels: 'ViewSalesChannels',
|
|
667
|
+
EditSalesChannels: 'EditSalesChannels',
|
|
668
|
+
CreateSalesChannel: 'CreateSalesChannel',
|
|
669
|
+
ArchiveSalesChannel: 'ArchiveSalesChannel',
|
|
670
|
+
UnarchiveSalesChannel: 'UnarchiveSalesChannel',
|
|
671
|
+
PublishSalesChannel: 'PublishSalesChannel',
|
|
672
|
+
UnpublishSalesChannel: 'UnpublishSalesChannel',
|
|
673
|
+
CloneSalesChannel: 'CloneSalesChannel',
|
|
674
|
+
ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration',
|
|
675
|
+
CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration',
|
|
676
|
+
UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration',
|
|
677
|
+
UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration',
|
|
678
|
+
ViewSubscriptions: 'ViewSubscriptions',
|
|
679
|
+
ViewInvoices: 'ViewInvoices',
|
|
680
|
+
EditAccountsBills: 'EditAccountsBills',
|
|
681
|
+
ViewAccountsBills: 'ViewAccountsBills',
|
|
682
|
+
EditAccountsCategories: 'EditAccountsCategories',
|
|
683
|
+
ViewAccountsCategories: 'ViewAccountsCategories',
|
|
684
|
+
EditAccountsCreditAccounts: 'EditAccountsCreditAccounts',
|
|
685
|
+
ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts',
|
|
686
|
+
EditAccountsCreditBooks: 'EditAccountsCreditBooks',
|
|
687
|
+
ViewAccountsCreditBooks: 'ViewAccountsCreditBooks',
|
|
688
|
+
EditAccountsExpenses: 'EditAccountsExpenses',
|
|
689
|
+
ViewAccountsExpenses: 'ViewAccountsExpenses',
|
|
690
|
+
EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts',
|
|
691
|
+
ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts',
|
|
692
|
+
EditDocumentExplorer: 'EditDocumentExplorer',
|
|
693
|
+
ViewDocumentExplorer: 'ViewDocumentExplorer',
|
|
694
|
+
ViewInventoryReports: 'ViewInventoryReports',
|
|
695
|
+
EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders',
|
|
696
|
+
ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders',
|
|
697
|
+
EditInventoryStockItems: 'EditInventoryStockItems',
|
|
698
|
+
ViewInventoryStockItems: 'ViewInventoryStockItems',
|
|
699
|
+
EditInventorySupplier: 'EditInventorySupplier',
|
|
700
|
+
ViewInventorySupplier: 'ViewInventorySupplier',
|
|
701
|
+
EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles',
|
|
702
|
+
ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles',
|
|
703
|
+
ViewPayrollReports: 'ViewPayrollReports',
|
|
704
|
+
EditPayrollHoliday: 'EditPayrollHoliday',
|
|
705
|
+
ViewPayrollHoliday: 'ViewPayrollHoliday',
|
|
706
|
+
EditPayrollRota: 'EditPayrollRota',
|
|
707
|
+
ViewPayrollRota: 'ViewPayrollRota',
|
|
708
|
+
EditPayrollStaff: 'EditPayrollStaff',
|
|
709
|
+
ViewPayrollStaff: 'ViewPayrollStaff',
|
|
710
|
+
ViewSalesReports: 'ViewSalesReports',
|
|
711
|
+
ViewCostReports: 'ViewCostReports',
|
|
712
|
+
ViewMenuReports: 'ViewMenuReports',
|
|
713
|
+
ViewBrand: 'ViewBrand',
|
|
714
|
+
EditBrand: 'EditBrand',
|
|
715
|
+
CreateBrand: 'CreateBrand',
|
|
716
|
+
TransferBrand: 'TransferBrand',
|
|
717
|
+
ViewProperty: 'ViewProperty',
|
|
718
|
+
EditProperty: 'EditProperty',
|
|
719
|
+
CreateProperty: 'CreateProperty',
|
|
720
|
+
ArchiveProperty: 'ArchiveProperty',
|
|
721
|
+
ViewEntityFeatureFlags: 'ViewEntityFeatureFlags',
|
|
722
|
+
EditEntityFeatureFlags: 'EditEntityFeatureFlags',
|
|
723
|
+
CreateOrg: 'CreateOrg',
|
|
724
|
+
EditOrg: 'EditOrg',
|
|
725
|
+
ViewOrg: 'ViewOrg'
|
|
726
|
+
};
|
|
727
|
+
exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = {
|
|
728
|
+
OwnerCompensating: 'OwnerCompensating',
|
|
729
|
+
PropertyOwnerCompensating: 'PropertyOwnerCompensating',
|
|
730
|
+
ManagedOwnerCompensating: 'ManagedOwnerCompensating',
|
|
731
|
+
IntegratorCompensating: 'IntegratorCompensating',
|
|
732
|
+
PropertyManagerCompensating: 'PropertyManagerCompensating',
|
|
733
|
+
FinanceManagerCompensating: 'FinanceManagerCompensating'
|
|
734
|
+
};
|
|
735
|
+
exports.RevokeRoleRequestBodyRoleEnum = {
|
|
736
|
+
OrgViewer: 'OrgViewer',
|
|
737
|
+
OrgManager: 'OrgManager',
|
|
738
|
+
OrgAdmin: 'OrgAdmin',
|
|
739
|
+
BrandViewer: 'BrandViewer',
|
|
740
|
+
BrandManager: 'BrandManager',
|
|
741
|
+
BrandAdmin: 'BrandAdmin',
|
|
742
|
+
StoreViewer: 'StoreViewer',
|
|
743
|
+
StoreEditor: 'StoreEditor',
|
|
744
|
+
StoreManager: 'StoreManager',
|
|
745
|
+
CustomerViewer: 'CustomerViewer',
|
|
746
|
+
CustomerManager: 'CustomerManager',
|
|
747
|
+
VoucherViewer: 'VoucherViewer',
|
|
748
|
+
VoucherEditor: 'VoucherEditor',
|
|
749
|
+
VoucherManager: 'VoucherManager',
|
|
750
|
+
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
751
|
+
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
752
|
+
AnalyticsViewer: 'AnalyticsViewer',
|
|
753
|
+
ReportsViewer: 'ReportsViewer',
|
|
754
|
+
FinanceViewer: 'FinanceViewer',
|
|
755
|
+
FinanceManager: 'FinanceManager',
|
|
756
|
+
TeamViewer: 'TeamViewer',
|
|
757
|
+
TeamManager: 'TeamManager',
|
|
758
|
+
TeamAdmin: 'TeamAdmin',
|
|
759
|
+
TechViewer: 'TechViewer',
|
|
760
|
+
TechManager: 'TechManager',
|
|
761
|
+
AppStoreViewer: 'AppStoreViewer',
|
|
762
|
+
AppStoreManager: 'AppStoreManager',
|
|
763
|
+
SalesChannelViewer: 'SalesChannelViewer',
|
|
764
|
+
SalesChannelEditor: 'SalesChannelEditor',
|
|
765
|
+
SalesChannelManager: 'SalesChannelManager',
|
|
766
|
+
DeliveryViewer: 'DeliveryViewer',
|
|
767
|
+
DeliveryManager: 'DeliveryManager',
|
|
768
|
+
DriverManager: 'DriverManager',
|
|
769
|
+
AuditViewer: 'AuditViewer',
|
|
770
|
+
AuditManager: 'AuditManager',
|
|
771
|
+
AccountsViewer: 'AccountsViewer',
|
|
772
|
+
AccountsEditor: 'AccountsEditor',
|
|
773
|
+
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
774
|
+
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
775
|
+
PayrollViewer: 'PayrollViewer',
|
|
776
|
+
PayrollEditor: 'PayrollEditor',
|
|
777
|
+
PropertyViewer: 'PropertyViewer',
|
|
778
|
+
PropertyManager: 'PropertyManager',
|
|
779
|
+
PropertyAdmin: 'PropertyAdmin',
|
|
780
|
+
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
781
|
+
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
782
|
+
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
783
|
+
MenuViewer: 'MenuViewer',
|
|
784
|
+
MenuEditor: 'MenuEditor',
|
|
785
|
+
MenuManager: 'MenuManager',
|
|
786
|
+
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
787
|
+
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
788
|
+
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
789
|
+
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
790
|
+
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
791
|
+
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
792
|
+
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
793
|
+
OrderManager: 'OrderManager',
|
|
794
|
+
OrderEditor: 'OrderEditor',
|
|
795
|
+
OrderViewer: 'OrderViewer',
|
|
796
|
+
InventoryManager: 'InventoryManager',
|
|
797
|
+
InventoryEditor: 'InventoryEditor',
|
|
798
|
+
InventoryViewer: 'InventoryViewer',
|
|
799
|
+
PaymentManager: 'PaymentManager',
|
|
800
|
+
OnboardingManager: 'OnboardingManager',
|
|
801
|
+
FeatureFlagManager: 'FeatureFlagManager',
|
|
802
|
+
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
803
|
+
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
804
|
+
IntegratorMisc: 'IntegratorMisc',
|
|
805
|
+
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
806
|
+
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
807
|
+
SupportMisc: 'SupportMisc'
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* AuthenticationApi - axios parameter creator
|
|
811
|
+
* @export
|
|
812
|
+
*/
|
|
813
|
+
var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
814
|
+
var _this = this;
|
|
815
|
+
return {
|
|
816
|
+
/**
|
|
817
|
+
* Authenticate and authorize a user to perform an action
|
|
818
|
+
* @summary Authenticate and authorize Request
|
|
819
|
+
* @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @throws {RequiredError}
|
|
822
|
+
*/
|
|
823
|
+
authenticateAndAuthorize: function (authenticateAndAuthorizeRequest_1) {
|
|
824
|
+
var args_1 = [];
|
|
825
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
826
|
+
args_1[_i - 1] = arguments[_i];
|
|
827
|
+
}
|
|
828
|
+
return __awaiter(_this, __spreadArray([authenticateAndAuthorizeRequest_1], args_1, true), void 0, function (authenticateAndAuthorizeRequest, options) {
|
|
829
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
830
|
+
if (options === void 0) { options = {}; }
|
|
831
|
+
return __generator(this, function (_a) {
|
|
832
|
+
switch (_a.label) {
|
|
833
|
+
case 0:
|
|
834
|
+
localVarPath = "/authenticateAndAuthorize";
|
|
835
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
836
|
+
if (configuration) {
|
|
837
|
+
baseOptions = configuration.baseOptions;
|
|
838
|
+
}
|
|
839
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
840
|
+
localVarHeaderParameter = {};
|
|
841
|
+
localVarQueryParameter = {};
|
|
842
|
+
// authentication ApiKeyAuth required
|
|
843
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
844
|
+
case 1:
|
|
845
|
+
// authentication ApiKeyAuth required
|
|
846
|
+
_a.sent();
|
|
847
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
848
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
849
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
850
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
851
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration);
|
|
852
|
+
return [2 /*return*/, {
|
|
853
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
854
|
+
options: localVarRequestOptions,
|
|
855
|
+
}];
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
});
|
|
859
|
+
},
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
|
|
863
|
+
/**
|
|
864
|
+
* AuthenticationApi - functional programming interface
|
|
865
|
+
* @export
|
|
866
|
+
*/
|
|
867
|
+
var AuthenticationApiFp = function (configuration) {
|
|
868
|
+
var localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
|
|
869
|
+
return {
|
|
870
|
+
/**
|
|
871
|
+
* Authenticate and authorize a user to perform an action
|
|
872
|
+
* @summary Authenticate and authorize Request
|
|
873
|
+
* @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
|
|
874
|
+
* @param {*} [options] Override http request option.
|
|
875
|
+
* @throws {RequiredError}
|
|
876
|
+
*/
|
|
877
|
+
authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
|
|
878
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
879
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
880
|
+
var _a, _b, _c;
|
|
881
|
+
return __generator(this, function (_d) {
|
|
882
|
+
switch (_d.label) {
|
|
883
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
|
|
884
|
+
case 1:
|
|
885
|
+
localVarAxiosArgs = _d.sent();
|
|
886
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
887
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.authenticateAndAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
888
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
});
|
|
892
|
+
},
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
exports.AuthenticationApiFp = AuthenticationApiFp;
|
|
896
|
+
/**
|
|
897
|
+
* AuthenticationApi - factory interface
|
|
898
|
+
* @export
|
|
899
|
+
*/
|
|
900
|
+
var AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
901
|
+
var localVarFp = (0, exports.AuthenticationApiFp)(configuration);
|
|
902
|
+
return {
|
|
903
|
+
/**
|
|
904
|
+
* Authenticate and authorize a user to perform an action
|
|
905
|
+
* @summary Authenticate and authorize Request
|
|
906
|
+
* @param {AuthenticationApiAuthenticateAndAuthorizeRequest} requestParameters Request parameters.
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
*/
|
|
910
|
+
authenticateAndAuthorize: function (requestParameters, options) {
|
|
911
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
912
|
+
return localVarFp.authenticateAndAuthorize(requestParameters.authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
|
|
913
|
+
},
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
exports.AuthenticationApiFactory = AuthenticationApiFactory;
|
|
917
|
+
/**
|
|
918
|
+
* AuthenticationApi - object-oriented interface
|
|
919
|
+
* @export
|
|
920
|
+
* @class AuthenticationApi
|
|
921
|
+
* @extends {BaseAPI}
|
|
922
|
+
*/
|
|
923
|
+
var AuthenticationApi = /** @class */ (function (_super) {
|
|
924
|
+
__extends(AuthenticationApi, _super);
|
|
925
|
+
function AuthenticationApi() {
|
|
926
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Authenticate and authorize a user to perform an action
|
|
930
|
+
* @summary Authenticate and authorize Request
|
|
931
|
+
* @param {AuthenticationApiAuthenticateAndAuthorizeRequest} requestParameters Request parameters.
|
|
932
|
+
* @param {*} [options] Override http request option.
|
|
933
|
+
* @throws {RequiredError}
|
|
934
|
+
* @memberof AuthenticationApi
|
|
935
|
+
*/
|
|
936
|
+
AuthenticationApi.prototype.authenticateAndAuthorize = function (requestParameters, options) {
|
|
937
|
+
var _this = this;
|
|
938
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
939
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).authenticateAndAuthorize(requestParameters.authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
940
|
+
};
|
|
941
|
+
return AuthenticationApi;
|
|
942
|
+
}(base_1.BaseAPI));
|
|
943
|
+
exports.AuthenticationApi = AuthenticationApi;
|
|
944
|
+
/**
|
|
945
|
+
* AuthorizationApi - axios parameter creator
|
|
946
|
+
* @export
|
|
947
|
+
*/
|
|
948
|
+
var AuthorizationApiAxiosParamCreator = function (configuration) {
|
|
949
|
+
var _this = this;
|
|
950
|
+
return {
|
|
951
|
+
/**
|
|
952
|
+
* Authenticate and authorize a user to perform an action
|
|
953
|
+
* @summary Authenticate and authorize Request
|
|
954
|
+
* @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
authenticateAndAuthorize: function (authenticateAndAuthorizeRequest_1) {
|
|
959
|
+
var args_1 = [];
|
|
960
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
961
|
+
args_1[_i - 1] = arguments[_i];
|
|
962
|
+
}
|
|
963
|
+
return __awaiter(_this, __spreadArray([authenticateAndAuthorizeRequest_1], args_1, true), void 0, function (authenticateAndAuthorizeRequest, options) {
|
|
964
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
965
|
+
if (options === void 0) { options = {}; }
|
|
966
|
+
return __generator(this, function (_a) {
|
|
967
|
+
switch (_a.label) {
|
|
968
|
+
case 0:
|
|
969
|
+
localVarPath = "/authenticateAndAuthorize";
|
|
970
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
971
|
+
if (configuration) {
|
|
972
|
+
baseOptions = configuration.baseOptions;
|
|
973
|
+
}
|
|
974
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
975
|
+
localVarHeaderParameter = {};
|
|
976
|
+
localVarQueryParameter = {};
|
|
977
|
+
// authentication ApiKeyAuth required
|
|
978
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
979
|
+
case 1:
|
|
980
|
+
// authentication ApiKeyAuth required
|
|
981
|
+
_a.sent();
|
|
982
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
983
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
984
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
985
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
986
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration);
|
|
987
|
+
return [2 /*return*/, {
|
|
988
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
989
|
+
options: localVarRequestOptions,
|
|
990
|
+
}];
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
});
|
|
994
|
+
},
|
|
995
|
+
/**
|
|
996
|
+
* Check if a user is authorized to perform an action
|
|
997
|
+
* @summary Authorize Request
|
|
998
|
+
* @param {AuthorizationRequest} [authorizationRequest]
|
|
999
|
+
* @param {*} [options] Override http request option.
|
|
1000
|
+
* @throws {RequiredError}
|
|
1001
|
+
*/
|
|
1002
|
+
authorize: function (authorizationRequest_1) {
|
|
1003
|
+
var args_1 = [];
|
|
1004
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1005
|
+
args_1[_i - 1] = arguments[_i];
|
|
1006
|
+
}
|
|
1007
|
+
return __awaiter(_this, __spreadArray([authorizationRequest_1], args_1, true), void 0, function (authorizationRequest, options) {
|
|
1008
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1009
|
+
if (options === void 0) { options = {}; }
|
|
1010
|
+
return __generator(this, function (_a) {
|
|
1011
|
+
switch (_a.label) {
|
|
1012
|
+
case 0:
|
|
1013
|
+
localVarPath = "/authorize";
|
|
1014
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1015
|
+
if (configuration) {
|
|
1016
|
+
baseOptions = configuration.baseOptions;
|
|
1017
|
+
}
|
|
1018
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1019
|
+
localVarHeaderParameter = {};
|
|
1020
|
+
localVarQueryParameter = {};
|
|
1021
|
+
// authentication ApiKeyAuth required
|
|
1022
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1023
|
+
case 1:
|
|
1024
|
+
// authentication ApiKeyAuth required
|
|
1025
|
+
_a.sent();
|
|
1026
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1027
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1028
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1029
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1030
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authorizationRequest, localVarRequestOptions, configuration);
|
|
1031
|
+
return [2 /*return*/, {
|
|
1032
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1033
|
+
options: localVarRequestOptions,
|
|
1034
|
+
}];
|
|
1035
|
+
}
|
|
1036
|
+
});
|
|
1037
|
+
});
|
|
1038
|
+
},
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1041
|
+
exports.AuthorizationApiAxiosParamCreator = AuthorizationApiAxiosParamCreator;
|
|
1042
|
+
/**
|
|
1043
|
+
* AuthorizationApi - functional programming interface
|
|
1044
|
+
* @export
|
|
1045
|
+
*/
|
|
1046
|
+
var AuthorizationApiFp = function (configuration) {
|
|
1047
|
+
var localVarAxiosParamCreator = (0, exports.AuthorizationApiAxiosParamCreator)(configuration);
|
|
1048
|
+
return {
|
|
1049
|
+
/**
|
|
1050
|
+
* Authenticate and authorize a user to perform an action
|
|
1051
|
+
* @summary Authenticate and authorize Request
|
|
1052
|
+
* @param {AuthenticateAndAuthorizeRequest} [authenticateAndAuthorizeRequest]
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
*/
|
|
1056
|
+
authenticateAndAuthorize: function (authenticateAndAuthorizeRequest, options) {
|
|
1057
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1058
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1059
|
+
var _a, _b, _c;
|
|
1060
|
+
return __generator(this, function (_d) {
|
|
1061
|
+
switch (_d.label) {
|
|
1062
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options)];
|
|
1063
|
+
case 1:
|
|
1064
|
+
localVarAxiosArgs = _d.sent();
|
|
1065
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1066
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authenticateAndAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1067
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
});
|
|
1071
|
+
},
|
|
1072
|
+
/**
|
|
1073
|
+
* Check if a user is authorized to perform an action
|
|
1074
|
+
* @summary Authorize Request
|
|
1075
|
+
* @param {AuthorizationRequest} [authorizationRequest]
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
*/
|
|
1079
|
+
authorize: function (authorizationRequest, options) {
|
|
1080
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1081
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1082
|
+
var _a, _b, _c;
|
|
1083
|
+
return __generator(this, function (_d) {
|
|
1084
|
+
switch (_d.label) {
|
|
1085
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.authorize(authorizationRequest, options)];
|
|
1086
|
+
case 1:
|
|
1087
|
+
localVarAxiosArgs = _d.sent();
|
|
1088
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1089
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthorizationApi.authorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1090
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1093
|
+
});
|
|
1094
|
+
},
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
exports.AuthorizationApiFp = AuthorizationApiFp;
|
|
1098
|
+
/**
|
|
1099
|
+
* AuthorizationApi - factory interface
|
|
1100
|
+
* @export
|
|
1101
|
+
*/
|
|
1102
|
+
var AuthorizationApiFactory = function (configuration, basePath, axios) {
|
|
1103
|
+
var localVarFp = (0, exports.AuthorizationApiFp)(configuration);
|
|
1104
|
+
return {
|
|
1105
|
+
/**
|
|
1106
|
+
* Authenticate and authorize a user to perform an action
|
|
1107
|
+
* @summary Authenticate and authorize Request
|
|
1108
|
+
* @param {AuthorizationApiAuthenticateAndAuthorizeRequest} requestParameters Request parameters.
|
|
1109
|
+
* @param {*} [options] Override http request option.
|
|
1110
|
+
* @throws {RequiredError}
|
|
1111
|
+
*/
|
|
1112
|
+
authenticateAndAuthorize: function (requestParameters, options) {
|
|
1113
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1114
|
+
return localVarFp.authenticateAndAuthorize(requestParameters.authenticateAndAuthorizeRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1115
|
+
},
|
|
1116
|
+
/**
|
|
1117
|
+
* Check if a user is authorized to perform an action
|
|
1118
|
+
* @summary Authorize Request
|
|
1119
|
+
* @param {AuthorizationApiAuthorizeRequest} requestParameters Request parameters.
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
*/
|
|
1123
|
+
authorize: function (requestParameters, options) {
|
|
1124
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1125
|
+
return localVarFp.authorize(requestParameters.authorizationRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1126
|
+
},
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
exports.AuthorizationApiFactory = AuthorizationApiFactory;
|
|
1130
|
+
/**
|
|
1131
|
+
* AuthorizationApi - object-oriented interface
|
|
1132
|
+
* @export
|
|
1133
|
+
* @class AuthorizationApi
|
|
1134
|
+
* @extends {BaseAPI}
|
|
1135
|
+
*/
|
|
1136
|
+
var AuthorizationApi = /** @class */ (function (_super) {
|
|
1137
|
+
__extends(AuthorizationApi, _super);
|
|
1138
|
+
function AuthorizationApi() {
|
|
1139
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Authenticate and authorize a user to perform an action
|
|
1143
|
+
* @summary Authenticate and authorize Request
|
|
1144
|
+
* @param {AuthorizationApiAuthenticateAndAuthorizeRequest} requestParameters Request parameters.
|
|
1145
|
+
* @param {*} [options] Override http request option.
|
|
1146
|
+
* @throws {RequiredError}
|
|
1147
|
+
* @memberof AuthorizationApi
|
|
1148
|
+
*/
|
|
1149
|
+
AuthorizationApi.prototype.authenticateAndAuthorize = function (requestParameters, options) {
|
|
1150
|
+
var _this = this;
|
|
1151
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1152
|
+
return (0, exports.AuthorizationApiFp)(this.configuration).authenticateAndAuthorize(requestParameters.authenticateAndAuthorizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1153
|
+
};
|
|
1154
|
+
/**
|
|
1155
|
+
* Check if a user is authorized to perform an action
|
|
1156
|
+
* @summary Authorize Request
|
|
1157
|
+
* @param {AuthorizationApiAuthorizeRequest} requestParameters Request parameters.
|
|
1158
|
+
* @param {*} [options] Override http request option.
|
|
1159
|
+
* @throws {RequiredError}
|
|
1160
|
+
* @memberof AuthorizationApi
|
|
1161
|
+
*/
|
|
1162
|
+
AuthorizationApi.prototype.authorize = function (requestParameters, options) {
|
|
1163
|
+
var _this = this;
|
|
1164
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1165
|
+
return (0, exports.AuthorizationApiFp)(this.configuration).authorize(requestParameters.authorizationRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1166
|
+
};
|
|
1167
|
+
return AuthorizationApi;
|
|
1168
|
+
}(base_1.BaseAPI));
|
|
1169
|
+
exports.AuthorizationApi = AuthorizationApi;
|
|
1170
|
+
/**
|
|
1171
|
+
* PermissionsApi - axios parameter creator
|
|
1172
|
+
* @export
|
|
1173
|
+
*/
|
|
1174
|
+
var PermissionsApiAxiosParamCreator = function (configuration) {
|
|
1175
|
+
var _this = this;
|
|
1176
|
+
return {
|
|
1177
|
+
/**
|
|
1178
|
+
* List the available permissions
|
|
1179
|
+
* @summary List Permissions
|
|
1180
|
+
* @param {*} [options] Override http request option.
|
|
1181
|
+
* @throws {RequiredError}
|
|
1182
|
+
*/
|
|
1183
|
+
listPermissions: function () {
|
|
1184
|
+
var args_1 = [];
|
|
1185
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1186
|
+
args_1[_i] = arguments[_i];
|
|
1187
|
+
}
|
|
1188
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1189
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1190
|
+
if (options === void 0) { options = {}; }
|
|
1191
|
+
return __generator(this, function (_a) {
|
|
1192
|
+
switch (_a.label) {
|
|
1193
|
+
case 0:
|
|
1194
|
+
localVarPath = "/permissions";
|
|
1195
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1196
|
+
if (configuration) {
|
|
1197
|
+
baseOptions = configuration.baseOptions;
|
|
1198
|
+
}
|
|
1199
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1200
|
+
localVarHeaderParameter = {};
|
|
1201
|
+
localVarQueryParameter = {};
|
|
1202
|
+
// authentication ApiKeyAuth required
|
|
1203
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1204
|
+
case 1:
|
|
1205
|
+
// authentication ApiKeyAuth required
|
|
1206
|
+
_a.sent();
|
|
1207
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1208
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1209
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1210
|
+
return [2 /*return*/, {
|
|
1211
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1212
|
+
options: localVarRequestOptions,
|
|
1213
|
+
}];
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
});
|
|
1217
|
+
},
|
|
1218
|
+
};
|
|
1219
|
+
};
|
|
1220
|
+
exports.PermissionsApiAxiosParamCreator = PermissionsApiAxiosParamCreator;
|
|
1221
|
+
/**
|
|
1222
|
+
* PermissionsApi - functional programming interface
|
|
1223
|
+
* @export
|
|
1224
|
+
*/
|
|
1225
|
+
var PermissionsApiFp = function (configuration) {
|
|
1226
|
+
var localVarAxiosParamCreator = (0, exports.PermissionsApiAxiosParamCreator)(configuration);
|
|
1227
|
+
return {
|
|
1228
|
+
/**
|
|
1229
|
+
* List the available permissions
|
|
1230
|
+
* @summary List Permissions
|
|
1231
|
+
* @param {*} [options] Override http request option.
|
|
1232
|
+
* @throws {RequiredError}
|
|
1233
|
+
*/
|
|
1234
|
+
listPermissions: function (options) {
|
|
1235
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1236
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1237
|
+
var _a, _b, _c;
|
|
1238
|
+
return __generator(this, function (_d) {
|
|
1239
|
+
switch (_d.label) {
|
|
1240
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPermissions(options)];
|
|
1241
|
+
case 1:
|
|
1242
|
+
localVarAxiosArgs = _d.sent();
|
|
1243
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1244
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PermissionsApi.listPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1245
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1248
|
+
});
|
|
1249
|
+
},
|
|
1250
|
+
};
|
|
1251
|
+
};
|
|
1252
|
+
exports.PermissionsApiFp = PermissionsApiFp;
|
|
1253
|
+
/**
|
|
1254
|
+
* PermissionsApi - factory interface
|
|
1255
|
+
* @export
|
|
1256
|
+
*/
|
|
1257
|
+
var PermissionsApiFactory = function (configuration, basePath, axios) {
|
|
1258
|
+
var localVarFp = (0, exports.PermissionsApiFp)(configuration);
|
|
1259
|
+
return {
|
|
1260
|
+
/**
|
|
1261
|
+
* List the available permissions
|
|
1262
|
+
* @summary List Permissions
|
|
1263
|
+
* @param {*} [options] Override http request option.
|
|
1264
|
+
* @throws {RequiredError}
|
|
1265
|
+
*/
|
|
1266
|
+
listPermissions: function (options) {
|
|
1267
|
+
return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
1268
|
+
},
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
exports.PermissionsApiFactory = PermissionsApiFactory;
|
|
1272
|
+
/**
|
|
1273
|
+
* PermissionsApi - object-oriented interface
|
|
1274
|
+
* @export
|
|
1275
|
+
* @class PermissionsApi
|
|
1276
|
+
* @extends {BaseAPI}
|
|
1277
|
+
*/
|
|
1278
|
+
var PermissionsApi = /** @class */ (function (_super) {
|
|
1279
|
+
__extends(PermissionsApi, _super);
|
|
1280
|
+
function PermissionsApi() {
|
|
1281
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* List the available permissions
|
|
1285
|
+
* @summary List Permissions
|
|
1286
|
+
* @param {*} [options] Override http request option.
|
|
1287
|
+
* @throws {RequiredError}
|
|
1288
|
+
* @memberof PermissionsApi
|
|
1289
|
+
*/
|
|
1290
|
+
PermissionsApi.prototype.listPermissions = function (options) {
|
|
1291
|
+
var _this = this;
|
|
1292
|
+
return (0, exports.PermissionsApiFp)(this.configuration).listPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1293
|
+
};
|
|
1294
|
+
return PermissionsApi;
|
|
1295
|
+
}(base_1.BaseAPI));
|
|
1296
|
+
exports.PermissionsApi = PermissionsApi;
|
|
1297
|
+
/**
|
|
1298
|
+
* RoleAssignmentApi - axios parameter creator
|
|
1299
|
+
* @export
|
|
1300
|
+
*/
|
|
1301
|
+
var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
1302
|
+
var _this = this;
|
|
1303
|
+
return {
|
|
1304
|
+
/**
|
|
1305
|
+
* Assigns a specified role to a given principal (user, group, etc.)
|
|
1306
|
+
* @summary Assign Role to Principal
|
|
1307
|
+
* @param {string} orgId
|
|
1308
|
+
* @param {AssignRoleRequestBody} [assignRoleRequestBody]
|
|
1309
|
+
* @param {*} [options] Override http request option.
|
|
1310
|
+
* @throws {RequiredError}
|
|
1311
|
+
*/
|
|
1312
|
+
assignRoleToPrincipal: function (orgId_1, assignRoleRequestBody_1) {
|
|
1313
|
+
var args_1 = [];
|
|
1314
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1315
|
+
args_1[_i - 2] = arguments[_i];
|
|
1316
|
+
}
|
|
1317
|
+
return __awaiter(_this, __spreadArray([orgId_1, assignRoleRequestBody_1], args_1, true), void 0, function (orgId, assignRoleRequestBody, options) {
|
|
1318
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1319
|
+
if (options === void 0) { options = {}; }
|
|
1320
|
+
return __generator(this, function (_a) {
|
|
1321
|
+
switch (_a.label) {
|
|
1322
|
+
case 0:
|
|
1323
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1324
|
+
(0, common_1.assertParamExists)('assignRoleToPrincipal', 'orgId', orgId);
|
|
1325
|
+
localVarPath = "/orgs/{orgId}/roles/assignRoleToPrincipal"
|
|
1326
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1327
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1328
|
+
if (configuration) {
|
|
1329
|
+
baseOptions = configuration.baseOptions;
|
|
1330
|
+
}
|
|
1331
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1332
|
+
localVarHeaderParameter = {};
|
|
1333
|
+
localVarQueryParameter = {};
|
|
1334
|
+
// authentication ApiKeyAuth required
|
|
1335
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1336
|
+
case 1:
|
|
1337
|
+
// authentication ApiKeyAuth required
|
|
1338
|
+
_a.sent();
|
|
1339
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1340
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1341
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1342
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1343
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignRoleRequestBody, localVarRequestOptions, configuration);
|
|
1344
|
+
return [2 /*return*/, {
|
|
1345
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1346
|
+
options: localVarRequestOptions,
|
|
1347
|
+
}];
|
|
1348
|
+
}
|
|
1349
|
+
});
|
|
1350
|
+
});
|
|
1351
|
+
},
|
|
1352
|
+
/**
|
|
1353
|
+
* Get the active roles for a given principal
|
|
1354
|
+
* @summary Get Principal Roles
|
|
1355
|
+
* @param {string} orgId
|
|
1356
|
+
* @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
*/
|
|
1360
|
+
getPrincipalRoles: function (orgId_1, getPrincipalRolesRequestBody_1) {
|
|
1361
|
+
var args_1 = [];
|
|
1362
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1363
|
+
args_1[_i - 2] = arguments[_i];
|
|
1364
|
+
}
|
|
1365
|
+
return __awaiter(_this, __spreadArray([orgId_1, getPrincipalRolesRequestBody_1], args_1, true), void 0, function (orgId, getPrincipalRolesRequestBody, options) {
|
|
1366
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1367
|
+
if (options === void 0) { options = {}; }
|
|
1368
|
+
return __generator(this, function (_a) {
|
|
1369
|
+
switch (_a.label) {
|
|
1370
|
+
case 0:
|
|
1371
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1372
|
+
(0, common_1.assertParamExists)('getPrincipalRoles', 'orgId', orgId);
|
|
1373
|
+
localVarPath = "/orgs/{orgId}/roles/getPrincipalRoles"
|
|
1374
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1375
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1376
|
+
if (configuration) {
|
|
1377
|
+
baseOptions = configuration.baseOptions;
|
|
1378
|
+
}
|
|
1379
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1380
|
+
localVarHeaderParameter = {};
|
|
1381
|
+
localVarQueryParameter = {};
|
|
1382
|
+
// authentication ApiKeyAuth required
|
|
1383
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1384
|
+
case 1:
|
|
1385
|
+
// authentication ApiKeyAuth required
|
|
1386
|
+
_a.sent();
|
|
1387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1389
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1390
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1391
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getPrincipalRolesRequestBody, localVarRequestOptions, configuration);
|
|
1392
|
+
return [2 /*return*/, {
|
|
1393
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1394
|
+
options: localVarRequestOptions,
|
|
1395
|
+
}];
|
|
1396
|
+
}
|
|
1397
|
+
});
|
|
1398
|
+
});
|
|
1399
|
+
},
|
|
1400
|
+
/**
|
|
1401
|
+
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
1402
|
+
* @summary Revoke Forbidden Role from Principal
|
|
1403
|
+
* @param {string} orgId
|
|
1404
|
+
* @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
|
|
1405
|
+
* @param {*} [options] Override http request option.
|
|
1406
|
+
* @throws {RequiredError}
|
|
1407
|
+
*/
|
|
1408
|
+
revokeForbiddenRoleFromPrincipal: function (orgId_1, revokeForbiddenRoleRequestBody_1) {
|
|
1409
|
+
var args_1 = [];
|
|
1410
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1411
|
+
args_1[_i - 2] = arguments[_i];
|
|
1412
|
+
}
|
|
1413
|
+
return __awaiter(_this, __spreadArray([orgId_1, revokeForbiddenRoleRequestBody_1], args_1, true), void 0, function (orgId, revokeForbiddenRoleRequestBody, options) {
|
|
1414
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1415
|
+
if (options === void 0) { options = {}; }
|
|
1416
|
+
return __generator(this, function (_a) {
|
|
1417
|
+
switch (_a.label) {
|
|
1418
|
+
case 0:
|
|
1419
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1420
|
+
(0, common_1.assertParamExists)('revokeForbiddenRoleFromPrincipal', 'orgId', orgId);
|
|
1421
|
+
localVarPath = "/orgs/{orgId}/roles/revokeForbiddenRoleFromPrincipal"
|
|
1422
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1423
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1424
|
+
if (configuration) {
|
|
1425
|
+
baseOptions = configuration.baseOptions;
|
|
1426
|
+
}
|
|
1427
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1428
|
+
localVarHeaderParameter = {};
|
|
1429
|
+
localVarQueryParameter = {};
|
|
1430
|
+
// authentication ApiKeyAuth required
|
|
1431
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1432
|
+
case 1:
|
|
1433
|
+
// authentication ApiKeyAuth required
|
|
1434
|
+
_a.sent();
|
|
1435
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1436
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1437
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1438
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1439
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revokeForbiddenRoleRequestBody, localVarRequestOptions, configuration);
|
|
1440
|
+
return [2 /*return*/, {
|
|
1441
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1442
|
+
options: localVarRequestOptions,
|
|
1443
|
+
}];
|
|
1444
|
+
}
|
|
1445
|
+
});
|
|
1446
|
+
});
|
|
1447
|
+
},
|
|
1448
|
+
/**
|
|
1449
|
+
* Revokes a specified role from a given principal (user, group, etc.)
|
|
1450
|
+
* @summary Revoke Role from Principal
|
|
1451
|
+
* @param {string} orgId
|
|
1452
|
+
* @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
|
|
1453
|
+
* @param {*} [options] Override http request option.
|
|
1454
|
+
* @throws {RequiredError}
|
|
1455
|
+
*/
|
|
1456
|
+
revokeRoleFromPrincipal: function (orgId_1, revokeRoleRequestBody_1) {
|
|
1457
|
+
var args_1 = [];
|
|
1458
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1459
|
+
args_1[_i - 2] = arguments[_i];
|
|
1460
|
+
}
|
|
1461
|
+
return __awaiter(_this, __spreadArray([orgId_1, revokeRoleRequestBody_1], args_1, true), void 0, function (orgId, revokeRoleRequestBody, options) {
|
|
1462
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1463
|
+
if (options === void 0) { options = {}; }
|
|
1464
|
+
return __generator(this, function (_a) {
|
|
1465
|
+
switch (_a.label) {
|
|
1466
|
+
case 0:
|
|
1467
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1468
|
+
(0, common_1.assertParamExists)('revokeRoleFromPrincipal', 'orgId', orgId);
|
|
1469
|
+
localVarPath = "/orgs/{orgId}/roles/revokeRoleFromPrincipal"
|
|
1470
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1471
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1472
|
+
if (configuration) {
|
|
1473
|
+
baseOptions = configuration.baseOptions;
|
|
1474
|
+
}
|
|
1475
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1476
|
+
localVarHeaderParameter = {};
|
|
1477
|
+
localVarQueryParameter = {};
|
|
1478
|
+
// authentication ApiKeyAuth required
|
|
1479
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1480
|
+
case 1:
|
|
1481
|
+
// authentication ApiKeyAuth required
|
|
1482
|
+
_a.sent();
|
|
1483
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1484
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1485
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1486
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1487
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revokeRoleRequestBody, localVarRequestOptions, configuration);
|
|
1488
|
+
return [2 /*return*/, {
|
|
1489
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1490
|
+
options: localVarRequestOptions,
|
|
1491
|
+
}];
|
|
1492
|
+
}
|
|
1493
|
+
});
|
|
1494
|
+
});
|
|
1495
|
+
},
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
|
|
1499
|
+
/**
|
|
1500
|
+
* RoleAssignmentApi - functional programming interface
|
|
1501
|
+
* @export
|
|
1502
|
+
*/
|
|
1503
|
+
var RoleAssignmentApiFp = function (configuration) {
|
|
1504
|
+
var localVarAxiosParamCreator = (0, exports.RoleAssignmentApiAxiosParamCreator)(configuration);
|
|
1505
|
+
return {
|
|
1506
|
+
/**
|
|
1507
|
+
* Assigns a specified role to a given principal (user, group, etc.)
|
|
1508
|
+
* @summary Assign Role to Principal
|
|
1509
|
+
* @param {string} orgId
|
|
1510
|
+
* @param {AssignRoleRequestBody} [assignRoleRequestBody]
|
|
1511
|
+
* @param {*} [options] Override http request option.
|
|
1512
|
+
* @throws {RequiredError}
|
|
1513
|
+
*/
|
|
1514
|
+
assignRoleToPrincipal: function (orgId, assignRoleRequestBody, options) {
|
|
1515
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1516
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1517
|
+
var _a, _b, _c;
|
|
1518
|
+
return __generator(this, function (_d) {
|
|
1519
|
+
switch (_d.label) {
|
|
1520
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignRoleToPrincipal(orgId, assignRoleRequestBody, options)];
|
|
1521
|
+
case 1:
|
|
1522
|
+
localVarAxiosArgs = _d.sent();
|
|
1523
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1524
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.assignRoleToPrincipal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1525
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
});
|
|
1529
|
+
},
|
|
1530
|
+
/**
|
|
1531
|
+
* Get the active roles for a given principal
|
|
1532
|
+
* @summary Get Principal Roles
|
|
1533
|
+
* @param {string} orgId
|
|
1534
|
+
* @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
|
|
1535
|
+
* @param {*} [options] Override http request option.
|
|
1536
|
+
* @throws {RequiredError}
|
|
1537
|
+
*/
|
|
1538
|
+
getPrincipalRoles: function (orgId, getPrincipalRolesRequestBody, options) {
|
|
1539
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1540
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1541
|
+
var _a, _b, _c;
|
|
1542
|
+
return __generator(this, function (_d) {
|
|
1543
|
+
switch (_d.label) {
|
|
1544
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options)];
|
|
1545
|
+
case 1:
|
|
1546
|
+
localVarAxiosArgs = _d.sent();
|
|
1547
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1548
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.getPrincipalRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1549
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
});
|
|
1553
|
+
},
|
|
1554
|
+
/**
|
|
1555
|
+
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
1556
|
+
* @summary Revoke Forbidden Role from Principal
|
|
1557
|
+
* @param {string} orgId
|
|
1558
|
+
* @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
|
|
1559
|
+
* @param {*} [options] Override http request option.
|
|
1560
|
+
* @throws {RequiredError}
|
|
1561
|
+
*/
|
|
1562
|
+
revokeForbiddenRoleFromPrincipal: function (orgId, revokeForbiddenRoleRequestBody, options) {
|
|
1563
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1564
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1565
|
+
var _a, _b, _c;
|
|
1566
|
+
return __generator(this, function (_d) {
|
|
1567
|
+
switch (_d.label) {
|
|
1568
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.revokeForbiddenRoleFromPrincipal(orgId, revokeForbiddenRoleRequestBody, options)];
|
|
1569
|
+
case 1:
|
|
1570
|
+
localVarAxiosArgs = _d.sent();
|
|
1571
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1572
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.revokeForbiddenRoleFromPrincipal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1573
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1574
|
+
}
|
|
1575
|
+
});
|
|
1576
|
+
});
|
|
1577
|
+
},
|
|
1578
|
+
/**
|
|
1579
|
+
* Revokes a specified role from a given principal (user, group, etc.)
|
|
1580
|
+
* @summary Revoke Role from Principal
|
|
1581
|
+
* @param {string} orgId
|
|
1582
|
+
* @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
|
|
1583
|
+
* @param {*} [options] Override http request option.
|
|
1584
|
+
* @throws {RequiredError}
|
|
1585
|
+
*/
|
|
1586
|
+
revokeRoleFromPrincipal: function (orgId, revokeRoleRequestBody, options) {
|
|
1587
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1588
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1589
|
+
var _a, _b, _c;
|
|
1590
|
+
return __generator(this, function (_d) {
|
|
1591
|
+
switch (_d.label) {
|
|
1592
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options)];
|
|
1593
|
+
case 1:
|
|
1594
|
+
localVarAxiosArgs = _d.sent();
|
|
1595
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1596
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.revokeRoleFromPrincipal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1597
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1598
|
+
}
|
|
1599
|
+
});
|
|
1600
|
+
});
|
|
1601
|
+
},
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1604
|
+
exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
|
|
1605
|
+
/**
|
|
1606
|
+
* RoleAssignmentApi - factory interface
|
|
1607
|
+
* @export
|
|
1608
|
+
*/
|
|
1609
|
+
var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
1610
|
+
var localVarFp = (0, exports.RoleAssignmentApiFp)(configuration);
|
|
1611
|
+
return {
|
|
1612
|
+
/**
|
|
1613
|
+
* Assigns a specified role to a given principal (user, group, etc.)
|
|
1614
|
+
* @summary Assign Role to Principal
|
|
1615
|
+
* @param {RoleAssignmentApiAssignRoleToPrincipalRequest} requestParameters Request parameters.
|
|
1616
|
+
* @param {*} [options] Override http request option.
|
|
1617
|
+
* @throws {RequiredError}
|
|
1618
|
+
*/
|
|
1619
|
+
assignRoleToPrincipal: function (requestParameters, options) {
|
|
1620
|
+
return localVarFp.assignRoleToPrincipal(requestParameters.orgId, requestParameters.assignRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
1621
|
+
},
|
|
1622
|
+
/**
|
|
1623
|
+
* Get the active roles for a given principal
|
|
1624
|
+
* @summary Get Principal Roles
|
|
1625
|
+
* @param {RoleAssignmentApiGetPrincipalRolesRequest} requestParameters Request parameters.
|
|
1626
|
+
* @param {*} [options] Override http request option.
|
|
1627
|
+
* @throws {RequiredError}
|
|
1628
|
+
*/
|
|
1629
|
+
getPrincipalRoles: function (requestParameters, options) {
|
|
1630
|
+
return localVarFp.getPrincipalRoles(requestParameters.orgId, requestParameters.getPrincipalRolesRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
1631
|
+
},
|
|
1632
|
+
/**
|
|
1633
|
+
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
1634
|
+
* @summary Revoke Forbidden Role from Principal
|
|
1635
|
+
* @param {RoleAssignmentApiRevokeForbiddenRoleFromPrincipalRequest} requestParameters Request parameters.
|
|
1636
|
+
* @param {*} [options] Override http request option.
|
|
1637
|
+
* @throws {RequiredError}
|
|
1638
|
+
*/
|
|
1639
|
+
revokeForbiddenRoleFromPrincipal: function (requestParameters, options) {
|
|
1640
|
+
return localVarFp.revokeForbiddenRoleFromPrincipal(requestParameters.orgId, requestParameters.revokeForbiddenRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
1641
|
+
},
|
|
1642
|
+
/**
|
|
1643
|
+
* Revokes a specified role from a given principal (user, group, etc.)
|
|
1644
|
+
* @summary Revoke Role from Principal
|
|
1645
|
+
* @param {RoleAssignmentApiRevokeRoleFromPrincipalRequest} requestParameters Request parameters.
|
|
1646
|
+
* @param {*} [options] Override http request option.
|
|
1647
|
+
* @throws {RequiredError}
|
|
1648
|
+
*/
|
|
1649
|
+
revokeRoleFromPrincipal: function (requestParameters, options) {
|
|
1650
|
+
return localVarFp.revokeRoleFromPrincipal(requestParameters.orgId, requestParameters.revokeRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
1651
|
+
},
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
|
|
1655
|
+
/**
|
|
1656
|
+
* RoleAssignmentApi - object-oriented interface
|
|
1657
|
+
* @export
|
|
1658
|
+
* @class RoleAssignmentApi
|
|
1659
|
+
* @extends {BaseAPI}
|
|
1660
|
+
*/
|
|
1661
|
+
var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
1662
|
+
__extends(RoleAssignmentApi, _super);
|
|
1663
|
+
function RoleAssignmentApi() {
|
|
1664
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Assigns a specified role to a given principal (user, group, etc.)
|
|
1668
|
+
* @summary Assign Role to Principal
|
|
1669
|
+
* @param {RoleAssignmentApiAssignRoleToPrincipalRequest} requestParameters Request parameters.
|
|
1670
|
+
* @param {*} [options] Override http request option.
|
|
1671
|
+
* @throws {RequiredError}
|
|
1672
|
+
* @memberof RoleAssignmentApi
|
|
1673
|
+
*/
|
|
1674
|
+
RoleAssignmentApi.prototype.assignRoleToPrincipal = function (requestParameters, options) {
|
|
1675
|
+
var _this = this;
|
|
1676
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).assignRoleToPrincipal(requestParameters.orgId, requestParameters.assignRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1677
|
+
};
|
|
1678
|
+
/**
|
|
1679
|
+
* Get the active roles for a given principal
|
|
1680
|
+
* @summary Get Principal Roles
|
|
1681
|
+
* @param {RoleAssignmentApiGetPrincipalRolesRequest} requestParameters Request parameters.
|
|
1682
|
+
* @param {*} [options] Override http request option.
|
|
1683
|
+
* @throws {RequiredError}
|
|
1684
|
+
* @memberof RoleAssignmentApi
|
|
1685
|
+
*/
|
|
1686
|
+
RoleAssignmentApi.prototype.getPrincipalRoles = function (requestParameters, options) {
|
|
1687
|
+
var _this = this;
|
|
1688
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).getPrincipalRoles(requestParameters.orgId, requestParameters.getPrincipalRolesRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1689
|
+
};
|
|
1690
|
+
/**
|
|
1691
|
+
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
1692
|
+
* @summary Revoke Forbidden Role from Principal
|
|
1693
|
+
* @param {RoleAssignmentApiRevokeForbiddenRoleFromPrincipalRequest} requestParameters Request parameters.
|
|
1694
|
+
* @param {*} [options] Override http request option.
|
|
1695
|
+
* @throws {RequiredError}
|
|
1696
|
+
* @memberof RoleAssignmentApi
|
|
1697
|
+
*/
|
|
1698
|
+
RoleAssignmentApi.prototype.revokeForbiddenRoleFromPrincipal = function (requestParameters, options) {
|
|
1699
|
+
var _this = this;
|
|
1700
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).revokeForbiddenRoleFromPrincipal(requestParameters.orgId, requestParameters.revokeForbiddenRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1701
|
+
};
|
|
1702
|
+
/**
|
|
1703
|
+
* Revokes a specified role from a given principal (user, group, etc.)
|
|
1704
|
+
* @summary Revoke Role from Principal
|
|
1705
|
+
* @param {RoleAssignmentApiRevokeRoleFromPrincipalRequest} requestParameters Request parameters.
|
|
1706
|
+
* @param {*} [options] Override http request option.
|
|
1707
|
+
* @throws {RequiredError}
|
|
1708
|
+
* @memberof RoleAssignmentApi
|
|
1709
|
+
*/
|
|
1710
|
+
RoleAssignmentApi.prototype.revokeRoleFromPrincipal = function (requestParameters, options) {
|
|
1711
|
+
var _this = this;
|
|
1712
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).revokeRoleFromPrincipal(requestParameters.orgId, requestParameters.revokeRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1713
|
+
};
|
|
1714
|
+
return RoleAssignmentApi;
|
|
1715
|
+
}(base_1.BaseAPI));
|
|
1716
|
+
exports.RoleAssignmentApi = RoleAssignmentApi;
|
|
1717
|
+
/**
|
|
1718
|
+
* UserPermissionsApi - axios parameter creator
|
|
1719
|
+
* @export
|
|
1720
|
+
*/
|
|
1721
|
+
var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
1722
|
+
var _this = this;
|
|
1723
|
+
return {
|
|
1724
|
+
/**
|
|
1725
|
+
* List the available permissions for the current user
|
|
1726
|
+
* @summary List Own Permissions
|
|
1727
|
+
* @param {string} orgId
|
|
1728
|
+
* @param {*} [options] Override http request option.
|
|
1729
|
+
* @throws {RequiredError}
|
|
1730
|
+
*/
|
|
1731
|
+
listOwnPermissions: function (orgId_1) {
|
|
1732
|
+
var args_1 = [];
|
|
1733
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1734
|
+
args_1[_i - 1] = arguments[_i];
|
|
1735
|
+
}
|
|
1736
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
1737
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1738
|
+
if (options === void 0) { options = {}; }
|
|
1739
|
+
return __generator(this, function (_a) {
|
|
1740
|
+
switch (_a.label) {
|
|
1741
|
+
case 0:
|
|
1742
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1743
|
+
(0, common_1.assertParamExists)('listOwnPermissions', 'orgId', orgId);
|
|
1744
|
+
localVarPath = "/orgs/{orgId}/user/permissions"
|
|
1745
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1746
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1747
|
+
if (configuration) {
|
|
1748
|
+
baseOptions = configuration.baseOptions;
|
|
1749
|
+
}
|
|
1750
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1751
|
+
localVarHeaderParameter = {};
|
|
1752
|
+
localVarQueryParameter = {};
|
|
1753
|
+
// authentication ApiKeyAuth required
|
|
1754
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1755
|
+
case 1:
|
|
1756
|
+
// authentication ApiKeyAuth required
|
|
1757
|
+
_a.sent();
|
|
1758
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1759
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1760
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1761
|
+
return [2 /*return*/, {
|
|
1762
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1763
|
+
options: localVarRequestOptions,
|
|
1764
|
+
}];
|
|
1765
|
+
}
|
|
1766
|
+
});
|
|
1767
|
+
});
|
|
1768
|
+
},
|
|
1769
|
+
/**
|
|
1770
|
+
* List the available permissions for a given user
|
|
1771
|
+
* @summary List User Permissions
|
|
1772
|
+
* @param {string} orgId
|
|
1773
|
+
* @param {string} userId
|
|
1774
|
+
* @param {*} [options] Override http request option.
|
|
1775
|
+
* @throws {RequiredError}
|
|
1776
|
+
*/
|
|
1777
|
+
listUserPermissions: function (orgId_1, userId_1) {
|
|
1778
|
+
var args_1 = [];
|
|
1779
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1780
|
+
args_1[_i - 2] = arguments[_i];
|
|
1781
|
+
}
|
|
1782
|
+
return __awaiter(_this, __spreadArray([orgId_1, userId_1], args_1, true), void 0, function (orgId, userId, options) {
|
|
1783
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1784
|
+
if (options === void 0) { options = {}; }
|
|
1785
|
+
return __generator(this, function (_a) {
|
|
1786
|
+
switch (_a.label) {
|
|
1787
|
+
case 0:
|
|
1788
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1789
|
+
(0, common_1.assertParamExists)('listUserPermissions', 'orgId', orgId);
|
|
1790
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1791
|
+
(0, common_1.assertParamExists)('listUserPermissions', 'userId', userId);
|
|
1792
|
+
localVarPath = "/orgs/{orgId}/user/{userId}/permissions"
|
|
1793
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
1794
|
+
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
1795
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1796
|
+
if (configuration) {
|
|
1797
|
+
baseOptions = configuration.baseOptions;
|
|
1798
|
+
}
|
|
1799
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1800
|
+
localVarHeaderParameter = {};
|
|
1801
|
+
localVarQueryParameter = {};
|
|
1802
|
+
// authentication ApiKeyAuth required
|
|
1803
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1804
|
+
case 1:
|
|
1805
|
+
// authentication ApiKeyAuth required
|
|
1806
|
+
_a.sent();
|
|
1807
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1808
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1809
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1810
|
+
return [2 /*return*/, {
|
|
1811
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1812
|
+
options: localVarRequestOptions,
|
|
1813
|
+
}];
|
|
1814
|
+
}
|
|
1815
|
+
});
|
|
1816
|
+
});
|
|
1817
|
+
},
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
exports.UserPermissionsApiAxiosParamCreator = UserPermissionsApiAxiosParamCreator;
|
|
1821
|
+
/**
|
|
1822
|
+
* UserPermissionsApi - functional programming interface
|
|
1823
|
+
* @export
|
|
1824
|
+
*/
|
|
1825
|
+
var UserPermissionsApiFp = function (configuration) {
|
|
1826
|
+
var localVarAxiosParamCreator = (0, exports.UserPermissionsApiAxiosParamCreator)(configuration);
|
|
1827
|
+
return {
|
|
1828
|
+
/**
|
|
1829
|
+
* List the available permissions for the current user
|
|
1830
|
+
* @summary List Own Permissions
|
|
1831
|
+
* @param {string} orgId
|
|
1832
|
+
* @param {*} [options] Override http request option.
|
|
1833
|
+
* @throws {RequiredError}
|
|
1834
|
+
*/
|
|
1835
|
+
listOwnPermissions: function (orgId, options) {
|
|
1836
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1837
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1838
|
+
var _a, _b, _c;
|
|
1839
|
+
return __generator(this, function (_d) {
|
|
1840
|
+
switch (_d.label) {
|
|
1841
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOwnPermissions(orgId, options)];
|
|
1842
|
+
case 1:
|
|
1843
|
+
localVarAxiosArgs = _d.sent();
|
|
1844
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1845
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOwnPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1846
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
1849
|
+
});
|
|
1850
|
+
},
|
|
1851
|
+
/**
|
|
1852
|
+
* List the available permissions for a given user
|
|
1853
|
+
* @summary List User Permissions
|
|
1854
|
+
* @param {string} orgId
|
|
1855
|
+
* @param {string} userId
|
|
1856
|
+
* @param {*} [options] Override http request option.
|
|
1857
|
+
* @throws {RequiredError}
|
|
1858
|
+
*/
|
|
1859
|
+
listUserPermissions: function (orgId, userId, options) {
|
|
1860
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1861
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1862
|
+
var _a, _b, _c;
|
|
1863
|
+
return __generator(this, function (_d) {
|
|
1864
|
+
switch (_d.label) {
|
|
1865
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUserPermissions(orgId, userId, options)];
|
|
1866
|
+
case 1:
|
|
1867
|
+
localVarAxiosArgs = _d.sent();
|
|
1868
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1869
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listUserPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1870
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1871
|
+
}
|
|
1872
|
+
});
|
|
1873
|
+
});
|
|
1874
|
+
},
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1877
|
+
exports.UserPermissionsApiFp = UserPermissionsApiFp;
|
|
1878
|
+
/**
|
|
1879
|
+
* UserPermissionsApi - factory interface
|
|
1880
|
+
* @export
|
|
1881
|
+
*/
|
|
1882
|
+
var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
1883
|
+
var localVarFp = (0, exports.UserPermissionsApiFp)(configuration);
|
|
1884
|
+
return {
|
|
1885
|
+
/**
|
|
1886
|
+
* List the available permissions for the current user
|
|
1887
|
+
* @summary List Own Permissions
|
|
1888
|
+
* @param {UserPermissionsApiListOwnPermissionsRequest} requestParameters Request parameters.
|
|
1889
|
+
* @param {*} [options] Override http request option.
|
|
1890
|
+
* @throws {RequiredError}
|
|
1891
|
+
*/
|
|
1892
|
+
listOwnPermissions: function (requestParameters, options) {
|
|
1893
|
+
return localVarFp.listOwnPermissions(requestParameters.orgId, options).then(function (request) { return request(axios, basePath); });
|
|
1894
|
+
},
|
|
1895
|
+
/**
|
|
1896
|
+
* List the available permissions for a given user
|
|
1897
|
+
* @summary List User Permissions
|
|
1898
|
+
* @param {UserPermissionsApiListUserPermissionsRequest} requestParameters Request parameters.
|
|
1899
|
+
* @param {*} [options] Override http request option.
|
|
1900
|
+
* @throws {RequiredError}
|
|
1901
|
+
*/
|
|
1902
|
+
listUserPermissions: function (requestParameters, options) {
|
|
1903
|
+
return localVarFp.listUserPermissions(requestParameters.orgId, requestParameters.userId, options).then(function (request) { return request(axios, basePath); });
|
|
1904
|
+
},
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1907
|
+
exports.UserPermissionsApiFactory = UserPermissionsApiFactory;
|
|
1908
|
+
/**
|
|
1909
|
+
* UserPermissionsApi - object-oriented interface
|
|
1910
|
+
* @export
|
|
1911
|
+
* @class UserPermissionsApi
|
|
1912
|
+
* @extends {BaseAPI}
|
|
1913
|
+
*/
|
|
1914
|
+
var UserPermissionsApi = /** @class */ (function (_super) {
|
|
1915
|
+
__extends(UserPermissionsApi, _super);
|
|
1916
|
+
function UserPermissionsApi() {
|
|
1917
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1918
|
+
}
|
|
1919
|
+
/**
|
|
1920
|
+
* List the available permissions for the current user
|
|
1921
|
+
* @summary List Own Permissions
|
|
1922
|
+
* @param {UserPermissionsApiListOwnPermissionsRequest} requestParameters Request parameters.
|
|
1923
|
+
* @param {*} [options] Override http request option.
|
|
1924
|
+
* @throws {RequiredError}
|
|
1925
|
+
* @memberof UserPermissionsApi
|
|
1926
|
+
*/
|
|
1927
|
+
UserPermissionsApi.prototype.listOwnPermissions = function (requestParameters, options) {
|
|
1928
|
+
var _this = this;
|
|
1929
|
+
return (0, exports.UserPermissionsApiFp)(this.configuration).listOwnPermissions(requestParameters.orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1930
|
+
};
|
|
1931
|
+
/**
|
|
1932
|
+
* List the available permissions for a given user
|
|
1933
|
+
* @summary List User Permissions
|
|
1934
|
+
* @param {UserPermissionsApiListUserPermissionsRequest} requestParameters Request parameters.
|
|
1935
|
+
* @param {*} [options] Override http request option.
|
|
1936
|
+
* @throws {RequiredError}
|
|
1937
|
+
* @memberof UserPermissionsApi
|
|
1938
|
+
*/
|
|
1939
|
+
UserPermissionsApi.prototype.listUserPermissions = function (requestParameters, options) {
|
|
1940
|
+
var _this = this;
|
|
1941
|
+
return (0, exports.UserPermissionsApiFp)(this.configuration).listUserPermissions(requestParameters.orgId, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1942
|
+
};
|
|
1943
|
+
return UserPermissionsApi;
|
|
1944
|
+
}(base_1.BaseAPI));
|
|
1945
|
+
exports.UserPermissionsApi = UserPermissionsApi;
|