@admin-layout/client 1.0.3-alpha.138 → 1.0.3-alpha.191
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/lib/components/ApplicationErrorHandlerCommon.d.ts +10 -0
- package/lib/components/BackendErrorFillWrapper.d.ts +2 -0
- package/lib/components/ErrorBoundaryCommon.d.ts +21 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/constants/constants.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +341 -104
- package/lib/index.js.map +1 -1
- package/lib/interfaces/generated/generated-models.d.ts +24 -2184
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/interfaces/typings.d.ts +77 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/seperatedMenus.d.ts +8 -0
- package/package.json +6 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* An HOC that will render components using SLOT-FILL in case of
|
|
5
|
+
* backendError else it will render the Component Passed
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const ApplicationErrorHandlerCommon: (FallbackComponent: any) => ({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => ReactElement;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
declare type IErrorBoundryState = {
|
|
3
|
+
hasError: boolean;
|
|
4
|
+
error: Error | null;
|
|
5
|
+
};
|
|
6
|
+
declare type IErrorBoundryProps = {
|
|
7
|
+
children: ReactElement;
|
|
8
|
+
fallbackComponent: (props: {
|
|
9
|
+
error: Error;
|
|
10
|
+
}) => ReactElement;
|
|
11
|
+
};
|
|
12
|
+
export declare class ErrorBoundaryCommon extends React.Component<IErrorBoundryProps, IErrorBoundryState> {
|
|
13
|
+
constructor(props: IErrorBoundryProps);
|
|
14
|
+
static getDerivedStateFromError(error: Error): {
|
|
15
|
+
hasError: boolean;
|
|
16
|
+
error: Error;
|
|
17
|
+
};
|
|
18
|
+
componentDidCatch(error: Error): void;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -87,6 +87,157 @@ module.exports =
|
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
+
/***/ "./src/components/ApplicationErrorHandlerCommon.tsx":
|
|
91
|
+
/*!**********************************************************!*\
|
|
92
|
+
!*** ./src/components/ApplicationErrorHandlerCommon.tsx ***!
|
|
93
|
+
\**********************************************************/
|
|
94
|
+
/*! no static exports found */
|
|
95
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
96
|
+
|
|
97
|
+
"use strict";
|
|
98
|
+
|
|
99
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
100
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
101
|
+
};
|
|
102
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103
|
+
exports.ApplicationErrorHandlerCommon = void 0;
|
|
104
|
+
const react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
105
|
+
const react_redux_1 = __webpack_require__(/*! react-redux */ "react-redux");
|
|
106
|
+
const user_auth0_client_1 = __webpack_require__(/*! @adminide-stack/user-auth0-client */ "@adminide-stack/user-auth0-client");
|
|
107
|
+
const components_1 = __webpack_require__(/*! @workbench-stack/components */ "@workbench-stack/components");
|
|
108
|
+
const constants_1 = __webpack_require__(/*! ../constants/constants */ "./src/constants/constants.ts");
|
|
109
|
+
const lodash_1 = __webpack_require__(/*! lodash */ "lodash");
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* An HOC that will render components using SLOT-FILL in case of
|
|
113
|
+
* backendError else it will render the Component Passed
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
const ApplicationErrorHandlerCommon = (FallbackComponent) => ({ children }) => {
|
|
117
|
+
const errors = react_redux_1.useSelector((state) => state === null || state === void 0 ? void 0 : state.error);
|
|
118
|
+
const type = Object.keys(errors).find((key) => !lodash_1.isEmpty(errors[key].error));
|
|
119
|
+
const error = type ? errors[type].error : null;
|
|
120
|
+
if (type === user_auth0_client_1.ErrorTypes.BackendError) {
|
|
121
|
+
react_1.default.createElement(FallbackComponent, { error: error });
|
|
122
|
+
}
|
|
123
|
+
if (error) {
|
|
124
|
+
return react_1.default.createElement(components_1.Slot, { name: constants_1.BACKEND_ERROR_SLOT_FILL, fillProps: { active: true, error, type } });
|
|
125
|
+
}
|
|
126
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, children));
|
|
127
|
+
};
|
|
128
|
+
exports.ApplicationErrorHandlerCommon = ApplicationErrorHandlerCommon;
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/***/ }),
|
|
132
|
+
|
|
133
|
+
/***/ "./src/components/BackendErrorFillWrapper.tsx":
|
|
134
|
+
/*!****************************************************!*\
|
|
135
|
+
!*** ./src/components/BackendErrorFillWrapper.tsx ***!
|
|
136
|
+
\****************************************************/
|
|
137
|
+
/*! no static exports found */
|
|
138
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
139
|
+
|
|
140
|
+
"use strict";
|
|
141
|
+
|
|
142
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
143
|
+
if (k2 === undefined) k2 = k;
|
|
144
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
145
|
+
}) : (function(o, m, k, k2) {
|
|
146
|
+
if (k2 === undefined) k2 = k;
|
|
147
|
+
o[k2] = m[k];
|
|
148
|
+
}));
|
|
149
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
150
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
151
|
+
}) : function(o, v) {
|
|
152
|
+
o["default"] = v;
|
|
153
|
+
});
|
|
154
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
155
|
+
if (mod && mod.__esModule) return mod;
|
|
156
|
+
var result = {};
|
|
157
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
158
|
+
__setModuleDefault(result, mod);
|
|
159
|
+
return result;
|
|
160
|
+
};
|
|
161
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
162
|
+
exports.BackendErrorFillWrapper = void 0;
|
|
163
|
+
const components_1 = __webpack_require__(/*! @workbench-stack/components */ "@workbench-stack/components");
|
|
164
|
+
const constants_1 = __webpack_require__(/*! ../constants */ "./src/constants/index.ts");
|
|
165
|
+
const React = __importStar(__webpack_require__(/*! react */ "react"));
|
|
166
|
+
const BackendErrorFillWrapper = (props) => {
|
|
167
|
+
return React.createElement(components_1.Fill, Object.assign({}, props, { name: constants_1.BACKEND_ERROR_SLOT_FILL }));
|
|
168
|
+
};
|
|
169
|
+
exports.BackendErrorFillWrapper = BackendErrorFillWrapper;
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
/***/ }),
|
|
173
|
+
|
|
174
|
+
/***/ "./src/components/ErrorBoundaryCommon.tsx":
|
|
175
|
+
/*!************************************************!*\
|
|
176
|
+
!*** ./src/components/ErrorBoundaryCommon.tsx ***!
|
|
177
|
+
\************************************************/
|
|
178
|
+
/*! no static exports found */
|
|
179
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
180
|
+
|
|
181
|
+
"use strict";
|
|
182
|
+
|
|
183
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
184
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
185
|
+
};
|
|
186
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
187
|
+
exports.ErrorBoundaryCommon = void 0;
|
|
188
|
+
const react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
189
|
+
const client_1 = __webpack_require__(/*! @cdm-logger/client */ "@cdm-logger/client");
|
|
190
|
+
class ErrorBoundaryCommon extends react_1.default.Component {
|
|
191
|
+
constructor(props) {
|
|
192
|
+
super(props);
|
|
193
|
+
this.state = { hasError: false, error: null };
|
|
194
|
+
}
|
|
195
|
+
static getDerivedStateFromError(error) {
|
|
196
|
+
return { hasError: true, error };
|
|
197
|
+
}
|
|
198
|
+
componentDidCatch(error) {
|
|
199
|
+
client_1.logger.debug(error);
|
|
200
|
+
}
|
|
201
|
+
render() {
|
|
202
|
+
if (this.state.hasError) {
|
|
203
|
+
const FallbackComponent = this.props.fallbackComponent;
|
|
204
|
+
return react_1.default.createElement(FallbackComponent, { error: this.state.error });
|
|
205
|
+
}
|
|
206
|
+
return this.props.children;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.ErrorBoundaryCommon = ErrorBoundaryCommon;
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/***/ }),
|
|
213
|
+
|
|
214
|
+
/***/ "./src/components/index.tsx":
|
|
215
|
+
/*!**********************************!*\
|
|
216
|
+
!*** ./src/components/index.tsx ***!
|
|
217
|
+
\**********************************/
|
|
218
|
+
/*! no static exports found */
|
|
219
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
220
|
+
|
|
221
|
+
"use strict";
|
|
222
|
+
|
|
223
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
224
|
+
if (k2 === undefined) k2 = k;
|
|
225
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
226
|
+
}) : (function(o, m, k, k2) {
|
|
227
|
+
if (k2 === undefined) k2 = k;
|
|
228
|
+
o[k2] = m[k];
|
|
229
|
+
}));
|
|
230
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
231
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
232
|
+
};
|
|
233
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
234
|
+
__exportStar(__webpack_require__(/*! ./ApplicationErrorHandlerCommon */ "./src/components/ApplicationErrorHandlerCommon.tsx"), exports);
|
|
235
|
+
__exportStar(__webpack_require__(/*! ./ErrorBoundaryCommon */ "./src/components/ErrorBoundaryCommon.tsx"), exports);
|
|
236
|
+
__exportStar(__webpack_require__(/*! ./BackendErrorFillWrapper */ "./src/components/BackendErrorFillWrapper.tsx"), exports);
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
/***/ }),
|
|
240
|
+
|
|
90
241
|
/***/ "./src/config/config.ts":
|
|
91
242
|
/*!******************************!*\
|
|
92
243
|
!*** ./src/config/config.ts ***!
|
|
@@ -96,9 +247,28 @@ module.exports =
|
|
|
96
247
|
|
|
97
248
|
"use strict";
|
|
98
249
|
|
|
250
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
251
|
+
if (k2 === undefined) k2 = k;
|
|
252
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
253
|
+
}) : (function(o, m, k, k2) {
|
|
254
|
+
if (k2 === undefined) k2 = k;
|
|
255
|
+
o[k2] = m[k];
|
|
256
|
+
}));
|
|
257
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
258
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
259
|
+
}) : function(o, v) {
|
|
260
|
+
o["default"] = v;
|
|
261
|
+
});
|
|
262
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
263
|
+
if (mod && mod.__esModule) return mod;
|
|
264
|
+
var result = {};
|
|
265
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
266
|
+
__setModuleDefault(result, mod);
|
|
267
|
+
return result;
|
|
268
|
+
};
|
|
99
269
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
100
270
|
exports.config = void 0;
|
|
101
|
-
const envalid = __webpack_require__(/*! envalid */ "envalid");
|
|
271
|
+
const envalid = __importStar(__webpack_require__(/*! envalid */ "envalid"));
|
|
102
272
|
const { json } = envalid;
|
|
103
273
|
const env = process.APP_ENV || process.env;
|
|
104
274
|
exports.config = envalid.cleanEnv(env, {
|
|
@@ -157,9 +327,10 @@ __exportStar(__webpack_require__(/*! ./config */ "./src/config/config.ts"), expo
|
|
|
157
327
|
"use strict";
|
|
158
328
|
|
|
159
329
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
160
|
-
exports.CHANGE_LANGUAGE = exports.CHANGE_SETTINGS_ACTION = void 0;
|
|
330
|
+
exports.BACKEND_ERROR_SLOT_FILL = exports.CHANGE_LANGUAGE = exports.CHANGE_SETTINGS_ACTION = void 0;
|
|
161
331
|
exports.CHANGE_SETTINGS_ACTION = 'settings/changeSetting';
|
|
162
332
|
exports.CHANGE_LANGUAGE = 'language/changeLanguage';
|
|
333
|
+
exports.BACKEND_ERROR_SLOT_FILL = "BACKEND_ERROR_SLOT_FILL";
|
|
163
334
|
|
|
164
335
|
|
|
165
336
|
/***/ }),
|
|
@@ -212,6 +383,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
212
383
|
__exportStar(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"), exports);
|
|
213
384
|
__exportStar(__webpack_require__(/*! ./constants */ "./src/constants/index.ts"), exports);
|
|
214
385
|
__exportStar(__webpack_require__(/*! ./redux */ "./src/redux/index.ts"), exports);
|
|
386
|
+
__exportStar(__webpack_require__(/*! ./utils */ "./src/utils/index.ts"), exports);
|
|
387
|
+
__exportStar(__webpack_require__(/*! ./components */ "./src/components/index.tsx"), exports);
|
|
215
388
|
|
|
216
389
|
|
|
217
390
|
/***/ }),
|
|
@@ -239,40 +412,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
239
412
|
|
|
240
413
|
"use strict";
|
|
241
414
|
|
|
415
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
416
|
+
if (k2 === undefined) k2 = k;
|
|
417
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
418
|
+
}) : (function(o, m, k, k2) {
|
|
419
|
+
if (k2 === undefined) k2 = k;
|
|
420
|
+
o[k2] = m[k];
|
|
421
|
+
}));
|
|
422
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
423
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
424
|
+
}) : function(o, v) {
|
|
425
|
+
o["default"] = v;
|
|
426
|
+
});
|
|
427
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
428
|
+
if (mod && mod.__esModule) return mod;
|
|
429
|
+
var result = {};
|
|
430
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
431
|
+
__setModuleDefault(result, mod);
|
|
432
|
+
return result;
|
|
433
|
+
};
|
|
242
434
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
243
|
-
exports.useGetOrgNameFromContextLazyQuery = exports.useGetOrgNameFromContextQuery = exports.GetOrgNameFromContextDocument = exports.OrgNameInContextFragmentDoc = exports.
|
|
435
|
+
exports.useGetOrgNameFromContextLazyQuery = exports.useGetOrgNameFromContextQuery = exports.GetOrgNameFromContextDocument = exports.OrgNameInContextFragmentDoc = exports.ISettingValueType = exports.IPreDefinedRole = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrganizationContextPubSubEvents = exports.IConfigurationTarget = exports.IConfigurationScope = exports.IConfigFragmentName = exports.IConfigCollectionName = exports.IApplicationRoles = void 0;
|
|
244
436
|
const client_1 = __webpack_require__(/*! @apollo/client */ "@apollo/client");
|
|
245
|
-
const Apollo = __webpack_require__(/*! @apollo/client */ "@apollo/client");
|
|
437
|
+
const Apollo = __importStar(__webpack_require__(/*! @apollo/client */ "@apollo/client"));
|
|
246
438
|
const defaultOptions = {};
|
|
247
439
|
var IApplicationRoles;
|
|
248
440
|
(function (IApplicationRoles) {
|
|
441
|
+
/** User who is logged in */
|
|
442
|
+
IApplicationRoles["USER"] = "USER";
|
|
443
|
+
/** Owner of an Organization */
|
|
444
|
+
IApplicationRoles["OWNER"] = "OWNER";
|
|
249
445
|
/** Admin of an Organization */
|
|
250
446
|
IApplicationRoles["ADMIN"] = "ADMIN";
|
|
251
447
|
/** Project Contributors */
|
|
252
448
|
IApplicationRoles["CONTRIBUTORS"] = "CONTRIBUTORS";
|
|
253
|
-
/** Guest */
|
|
254
|
-
IApplicationRoles["GUEST"] = "GUEST";
|
|
255
|
-
IApplicationRoles["MEMBER"] = "MEMBER";
|
|
256
|
-
/** organization member */
|
|
257
|
-
IApplicationRoles["ORGANIZATION_MANAGER"] = "ORGANIZATION_MANAGER";
|
|
258
|
-
/** Owner of an Organization */
|
|
259
|
-
IApplicationRoles["OWNER"] = "OWNER";
|
|
260
449
|
/** Project Admin */
|
|
261
450
|
IApplicationRoles["PROJECT_ADMIN"] = "PROJECT_ADMIN";
|
|
262
451
|
/** Project Viewer */
|
|
263
452
|
IApplicationRoles["PROJECT_VIEWER"] = "PROJECT_VIEWER";
|
|
264
|
-
|
|
265
|
-
IApplicationRoles["
|
|
266
|
-
/** User who is logged in */
|
|
267
|
-
IApplicationRoles["USER"] = "USER";
|
|
453
|
+
/** Guest */
|
|
454
|
+
IApplicationRoles["GUEST"] = "GUEST";
|
|
268
455
|
})(IApplicationRoles = exports.IApplicationRoles || (exports.IApplicationRoles = {}));
|
|
269
456
|
;
|
|
270
|
-
var IClientTypes;
|
|
271
|
-
(function (IClientTypes) {
|
|
272
|
-
IClientTypes["Business"] = "Business";
|
|
273
|
-
IClientTypes["Individuals"] = "Individuals";
|
|
274
|
-
})(IClientTypes = exports.IClientTypes || (exports.IClientTypes = {}));
|
|
275
|
-
;
|
|
276
457
|
var IConfigCollectionName;
|
|
277
458
|
(function (IConfigCollectionName) {
|
|
278
459
|
IConfigCollectionName["application"] = "application";
|
|
@@ -332,30 +513,6 @@ var IConfigurationTarget;
|
|
|
332
513
|
IConfigurationTarget["MEMORY"] = "MEMORY";
|
|
333
514
|
})(IConfigurationTarget = exports.IConfigurationTarget || (exports.IConfigurationTarget = {}));
|
|
334
515
|
;
|
|
335
|
-
var IInviteStatus;
|
|
336
|
-
(function (IInviteStatus) {
|
|
337
|
-
IInviteStatus["PENDING"] = "PENDING";
|
|
338
|
-
IInviteStatus["ACCEPTED"] = "ACCEPTED";
|
|
339
|
-
IInviteStatus["DECLINED"] = "DECLINED";
|
|
340
|
-
})(IInviteStatus = exports.IInviteStatus || (exports.IInviteStatus = {}));
|
|
341
|
-
;
|
|
342
|
-
/**
|
|
343
|
-
* OrganizationInvitationRole: The possible organization invitation roles.
|
|
344
|
-
*
|
|
345
|
-
* @property
|
|
346
|
-
* ADMIN: The user is invited to be an admin of the organization
|
|
347
|
-
* BILLING_MANAGER: The user is invited to be a billing manager of the organization.
|
|
348
|
-
* DIRECT_MEMBER: The user is invited to be a direct member of the organization.
|
|
349
|
-
* REINSTATE: The user's previous role will be reinstated.
|
|
350
|
-
*/
|
|
351
|
-
var IOrgainizationInvitationRole;
|
|
352
|
-
(function (IOrgainizationInvitationRole) {
|
|
353
|
-
IOrgainizationInvitationRole["ADMIN"] = "ADMIN";
|
|
354
|
-
IOrgainizationInvitationRole["REINSTATE"] = "REINSTATE";
|
|
355
|
-
IOrgainizationInvitationRole["DIRECT_MEMBER"] = "DIRECT_MEMBER";
|
|
356
|
-
IOrgainizationInvitationRole["BILLING_MANAGER"] = "BILLING_MANAGER";
|
|
357
|
-
})(IOrgainizationInvitationRole = exports.IOrgainizationInvitationRole || (exports.IOrgainizationInvitationRole = {}));
|
|
358
|
-
;
|
|
359
516
|
/** Subscription event for context */
|
|
360
517
|
var IOrganizationContextPubSubEvents;
|
|
361
518
|
(function (IOrganizationContextPubSubEvents) {
|
|
@@ -365,32 +522,20 @@ var IOrganizationContextPubSubEvents;
|
|
|
365
522
|
IOrganizationContextPubSubEvents["OrganizationPermissionUpdated"] = "OrganizationPermissionUpdated";
|
|
366
523
|
})(IOrganizationContextPubSubEvents = exports.IOrganizationContextPubSubEvents || (exports.IOrganizationContextPubSubEvents = {}));
|
|
367
524
|
;
|
|
368
|
-
var IOrgUserRole;
|
|
369
|
-
(function (IOrgUserRole) {
|
|
370
|
-
IOrgUserRole["BILLING_LEADER"] = "BILLING_LEADER";
|
|
371
|
-
IOrgUserRole["MEMBER"] = "MEMBER";
|
|
372
|
-
IOrgUserRole["ADMIN"] = "ADMIN";
|
|
373
|
-
IOrgUserRole["OWNER"] = "OWNER";
|
|
374
|
-
})(IOrgUserRole = exports.IOrgUserRole || (exports.IOrgUserRole = {}));
|
|
375
|
-
;
|
|
376
525
|
var IPermissionAction;
|
|
377
526
|
(function (IPermissionAction) {
|
|
527
|
+
IPermissionAction["View"] = "View";
|
|
378
528
|
IPermissionAction["Create"] = "Create";
|
|
379
|
-
IPermissionAction["Delete"] = "Delete";
|
|
380
529
|
IPermissionAction["Edit"] = "Edit";
|
|
381
|
-
IPermissionAction["
|
|
530
|
+
IPermissionAction["Delete"] = "Delete";
|
|
382
531
|
IPermissionAction["Manage"] = "Manage";
|
|
383
|
-
IPermissionAction["View"] = "View";
|
|
384
532
|
})(IPermissionAction = exports.IPermissionAction || (exports.IPermissionAction = {}));
|
|
385
533
|
;
|
|
386
534
|
var IPermissionResource;
|
|
387
535
|
(function (IPermissionResource) {
|
|
388
|
-
IPermissionResource["Members"] = "Members";
|
|
389
|
-
IPermissionResource["Organization"] = "Organization";
|
|
390
|
-
IPermissionResource["Permissions"] = "Permissions";
|
|
391
536
|
IPermissionResource["Roles"] = "Roles";
|
|
537
|
+
IPermissionResource["Permissions"] = "Permissions";
|
|
392
538
|
IPermissionResource["Settings"] = "Settings";
|
|
393
|
-
IPermissionResource["Teams"] = "Teams";
|
|
394
539
|
})(IPermissionResource = exports.IPermissionResource || (exports.IPermissionResource = {}));
|
|
395
540
|
;
|
|
396
541
|
var IPermissionType;
|
|
@@ -400,15 +545,6 @@ var IPermissionType;
|
|
|
400
545
|
IPermissionType["NotSet"] = "NotSet";
|
|
401
546
|
})(IPermissionType = exports.IPermissionType || (exports.IPermissionType = {}));
|
|
402
547
|
;
|
|
403
|
-
var IPortalLanguage;
|
|
404
|
-
(function (IPortalLanguage) {
|
|
405
|
-
IPortalLanguage["English"] = "English";
|
|
406
|
-
IPortalLanguage["Hindi"] = "Hindi";
|
|
407
|
-
IPortalLanguage["Gujarati"] = "Gujarati";
|
|
408
|
-
IPortalLanguage["Spanish"] = "Spanish";
|
|
409
|
-
IPortalLanguage["Russian"] = "Russian";
|
|
410
|
-
})(IPortalLanguage = exports.IPortalLanguage || (exports.IPortalLanguage = {}));
|
|
411
|
-
;
|
|
412
548
|
var IPreDefinedRole;
|
|
413
549
|
(function (IPreDefinedRole) {
|
|
414
550
|
IPreDefinedRole["OWNER"] = "OWNER";
|
|
@@ -423,21 +559,6 @@ var IPreDefinedRole;
|
|
|
423
559
|
IPreDefinedRole["CONTRIBUTORS"] = "CONTRIBUTORS";
|
|
424
560
|
})(IPreDefinedRole = exports.IPreDefinedRole || (exports.IPreDefinedRole = {}));
|
|
425
561
|
;
|
|
426
|
-
var IProjectType;
|
|
427
|
-
(function (IProjectType) {
|
|
428
|
-
IProjectType["internal"] = "internal";
|
|
429
|
-
IProjectType["others"] = "others";
|
|
430
|
-
IProjectType["asana"] = "asana";
|
|
431
|
-
})(IProjectType = exports.IProjectType || (exports.IProjectType = {}));
|
|
432
|
-
;
|
|
433
|
-
var IRole;
|
|
434
|
-
(function (IRole) {
|
|
435
|
-
IRole["ADMIN"] = "ADMIN";
|
|
436
|
-
IRole["REVIEWER"] = "REVIEWER";
|
|
437
|
-
IRole["USER"] = "USER";
|
|
438
|
-
IRole["UNKNOWN"] = "UNKNOWN";
|
|
439
|
-
})(IRole = exports.IRole || (exports.IRole = {}));
|
|
440
|
-
;
|
|
441
562
|
var ISettingValueType;
|
|
442
563
|
(function (ISettingValueType) {
|
|
443
564
|
ISettingValueType["Null"] = "Null";
|
|
@@ -452,26 +573,6 @@ var ISettingValueType;
|
|
|
452
573
|
ISettingValueType["NullableNumber"] = "NullableNumber";
|
|
453
574
|
})(ISettingValueType = exports.ISettingValueType || (exports.ISettingValueType = {}));
|
|
454
575
|
;
|
|
455
|
-
var IUserOrderBy;
|
|
456
|
-
(function (IUserOrderBy) {
|
|
457
|
-
IUserOrderBy["auth0UserId_ASC"] = "auth0UserId_ASC";
|
|
458
|
-
IUserOrderBy["auth0UserId_DESC"] = "auth0UserId_DESC";
|
|
459
|
-
IUserOrderBy["createdAt_ASC"] = "createdAt_ASC";
|
|
460
|
-
IUserOrderBy["createdAt_DESC"] = "createdAt_DESC";
|
|
461
|
-
IUserOrderBy["emailSubscription_ASC"] = "emailSubscription_ASC";
|
|
462
|
-
IUserOrderBy["emailSubscription_DESC"] = "emailSubscription_DESC";
|
|
463
|
-
IUserOrderBy["id_ASC"] = "id_ASC";
|
|
464
|
-
IUserOrderBy["id_DESC"] = "id_DESC";
|
|
465
|
-
IUserOrderBy["updatedAt_ASC"] = "updatedAt_ASC";
|
|
466
|
-
IUserOrderBy["updatedAt_DESC"] = "updatedAt_DESC";
|
|
467
|
-
})(IUserOrderBy = exports.IUserOrderBy || (exports.IUserOrderBy = {}));
|
|
468
|
-
;
|
|
469
|
-
var IVisibility;
|
|
470
|
-
(function (IVisibility) {
|
|
471
|
-
IVisibility["private"] = "private";
|
|
472
|
-
IVisibility["public"] = "public";
|
|
473
|
-
})(IVisibility = exports.IVisibility || (exports.IVisibility = {}));
|
|
474
|
-
;
|
|
475
576
|
exports.OrgNameInContextFragmentDoc = client_1.gql `
|
|
476
577
|
fragment OrgNameInContext on Context {
|
|
477
578
|
orgName
|
|
@@ -561,6 +662,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
561
662
|
__exportStar(__webpack_require__(/*! ./generated */ "./src/interfaces/generated/index.ts"), exports);
|
|
562
663
|
__exportStar(__webpack_require__(/*! ./default-settings */ "./src/interfaces/default-settings.ts"), exports);
|
|
563
664
|
__exportStar(__webpack_require__(/*! ./pure-settings */ "./src/interfaces/pure-settings.ts"), exports);
|
|
665
|
+
__exportStar(__webpack_require__(/*! ./typings */ "./src/interfaces/typings.ts"), exports);
|
|
564
666
|
|
|
565
667
|
|
|
566
668
|
/***/ }),
|
|
@@ -577,6 +679,20 @@ __exportStar(__webpack_require__(/*! ./pure-settings */ "./src/interfaces/pure-s
|
|
|
577
679
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
578
680
|
|
|
579
681
|
|
|
682
|
+
/***/ }),
|
|
683
|
+
|
|
684
|
+
/***/ "./src/interfaces/typings.ts":
|
|
685
|
+
/*!***********************************!*\
|
|
686
|
+
!*** ./src/interfaces/typings.ts ***!
|
|
687
|
+
\***********************************/
|
|
688
|
+
/*! no static exports found */
|
|
689
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
690
|
+
|
|
691
|
+
"use strict";
|
|
692
|
+
|
|
693
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
694
|
+
|
|
695
|
+
|
|
580
696
|
/***/ }),
|
|
581
697
|
|
|
582
698
|
/***/ "./src/redux/index.ts":
|
|
@@ -651,6 +767,72 @@ const settingsReducer = (state = config_1.config.LAYOUT_SETTINGS, { type, payloa
|
|
|
651
767
|
exports.settingsReducer = settingsReducer;
|
|
652
768
|
|
|
653
769
|
|
|
770
|
+
/***/ }),
|
|
771
|
+
|
|
772
|
+
/***/ "./src/utils/index.ts":
|
|
773
|
+
/*!****************************!*\
|
|
774
|
+
!*** ./src/utils/index.ts ***!
|
|
775
|
+
\****************************/
|
|
776
|
+
/*! no static exports found */
|
|
777
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
778
|
+
|
|
779
|
+
"use strict";
|
|
780
|
+
|
|
781
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
782
|
+
if (k2 === undefined) k2 = k;
|
|
783
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
784
|
+
}) : (function(o, m, k, k2) {
|
|
785
|
+
if (k2 === undefined) k2 = k;
|
|
786
|
+
o[k2] = m[k];
|
|
787
|
+
}));
|
|
788
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
789
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
790
|
+
};
|
|
791
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
792
|
+
__exportStar(__webpack_require__(/*! ./seperatedMenus */ "./src/utils/seperatedMenus.ts"), exports);
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
/***/ }),
|
|
796
|
+
|
|
797
|
+
/***/ "./src/utils/seperatedMenus.ts":
|
|
798
|
+
/*!*************************************!*\
|
|
799
|
+
!*** ./src/utils/seperatedMenus.ts ***!
|
|
800
|
+
\*************************************/
|
|
801
|
+
/*! no static exports found */
|
|
802
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
803
|
+
|
|
804
|
+
"use strict";
|
|
805
|
+
|
|
806
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
807
|
+
exports.getMenuSeparation = void 0;
|
|
808
|
+
// @sri custom function
|
|
809
|
+
const getMenuSeparation = (menus) => {
|
|
810
|
+
const upperMenus = menus.filter((menu) => menu.position === 'UPPER');
|
|
811
|
+
const middleMenus = menus.filter((menu) => menu.position === 'MIDDLE' ||
|
|
812
|
+
(menu.position !== 'UPPER' && menu.position !== 'LOWER' && menu.position !== 'BOTTOM'));
|
|
813
|
+
const lowerMenus = menus.filter((menu) => menu.position === 'LOWER');
|
|
814
|
+
const bottomMenus = menus.filter((menu) => menu.position === 'BOTTOM');
|
|
815
|
+
return {
|
|
816
|
+
upperMenus,
|
|
817
|
+
middleMenus,
|
|
818
|
+
lowerMenus,
|
|
819
|
+
bottomMenus,
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
exports.getMenuSeparation = getMenuSeparation;
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
/***/ }),
|
|
826
|
+
|
|
827
|
+
/***/ "@adminide-stack/user-auth0-client":
|
|
828
|
+
/*!****************************************************!*\
|
|
829
|
+
!*** external "@adminide-stack/user-auth0-client" ***!
|
|
830
|
+
\****************************************************/
|
|
831
|
+
/*! no static exports found */
|
|
832
|
+
/***/ (function(module, exports) {
|
|
833
|
+
|
|
834
|
+
module.exports = require("@adminide-stack/user-auth0-client");
|
|
835
|
+
|
|
654
836
|
/***/ }),
|
|
655
837
|
|
|
656
838
|
/***/ "@apollo/client":
|
|
@@ -664,6 +846,28 @@ module.exports = require("@apollo/client");
|
|
|
664
846
|
|
|
665
847
|
/***/ }),
|
|
666
848
|
|
|
849
|
+
/***/ "@cdm-logger/client":
|
|
850
|
+
/*!*************************************!*\
|
|
851
|
+
!*** external "@cdm-logger/client" ***!
|
|
852
|
+
\*************************************/
|
|
853
|
+
/*! no static exports found */
|
|
854
|
+
/***/ (function(module, exports) {
|
|
855
|
+
|
|
856
|
+
module.exports = require("@cdm-logger/client");
|
|
857
|
+
|
|
858
|
+
/***/ }),
|
|
859
|
+
|
|
860
|
+
/***/ "@workbench-stack/components":
|
|
861
|
+
/*!**********************************************!*\
|
|
862
|
+
!*** external "@workbench-stack/components" ***!
|
|
863
|
+
\**********************************************/
|
|
864
|
+
/*! no static exports found */
|
|
865
|
+
/***/ (function(module, exports) {
|
|
866
|
+
|
|
867
|
+
module.exports = require("@workbench-stack/components");
|
|
868
|
+
|
|
869
|
+
/***/ }),
|
|
870
|
+
|
|
667
871
|
/***/ "envalid":
|
|
668
872
|
/*!**************************!*\
|
|
669
873
|
!*** external "envalid" ***!
|
|
@@ -673,6 +877,39 @@ module.exports = require("@apollo/client");
|
|
|
673
877
|
|
|
674
878
|
module.exports = require("envalid");
|
|
675
879
|
|
|
880
|
+
/***/ }),
|
|
881
|
+
|
|
882
|
+
/***/ "lodash":
|
|
883
|
+
/*!*************************!*\
|
|
884
|
+
!*** external "lodash" ***!
|
|
885
|
+
\*************************/
|
|
886
|
+
/*! no static exports found */
|
|
887
|
+
/***/ (function(module, exports) {
|
|
888
|
+
|
|
889
|
+
module.exports = require("lodash");
|
|
890
|
+
|
|
891
|
+
/***/ }),
|
|
892
|
+
|
|
893
|
+
/***/ "react":
|
|
894
|
+
/*!************************!*\
|
|
895
|
+
!*** external "react" ***!
|
|
896
|
+
\************************/
|
|
897
|
+
/*! no static exports found */
|
|
898
|
+
/***/ (function(module, exports) {
|
|
899
|
+
|
|
900
|
+
module.exports = require("react");
|
|
901
|
+
|
|
902
|
+
/***/ }),
|
|
903
|
+
|
|
904
|
+
/***/ "react-redux":
|
|
905
|
+
/*!******************************!*\
|
|
906
|
+
!*** external "react-redux" ***!
|
|
907
|
+
\******************************/
|
|
908
|
+
/*! no static exports found */
|
|
909
|
+
/***/ (function(module, exports) {
|
|
910
|
+
|
|
911
|
+
module.exports = require("react-redux");
|
|
912
|
+
|
|
676
913
|
/***/ })
|
|
677
914
|
|
|
678
915
|
/******/ });
|