@admin-layout/client 1.0.3-alpha.131 → 1.0.3-alpha.190
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/ErrorBoundaryCommon.d.ts +21 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/constants/constants.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +299 -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,115 @@ 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 client_react_1 = __webpack_require__(/*! @common-stack/client-react */ "@common-stack/client-react");
|
|
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(client_react_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/ErrorBoundaryCommon.tsx":
|
|
134
|
+
/*!************************************************!*\
|
|
135
|
+
!*** ./src/components/ErrorBoundaryCommon.tsx ***!
|
|
136
|
+
\************************************************/
|
|
137
|
+
/*! no static exports found */
|
|
138
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
139
|
+
|
|
140
|
+
"use strict";
|
|
141
|
+
|
|
142
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
143
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
144
|
+
};
|
|
145
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
146
|
+
exports.ErrorBoundaryCommon = void 0;
|
|
147
|
+
const react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
|
|
148
|
+
const client_1 = __webpack_require__(/*! @cdm-logger/client */ "@cdm-logger/client");
|
|
149
|
+
class ErrorBoundaryCommon extends react_1.default.Component {
|
|
150
|
+
constructor(props) {
|
|
151
|
+
super(props);
|
|
152
|
+
this.state = { hasError: false, error: null };
|
|
153
|
+
}
|
|
154
|
+
static getDerivedStateFromError(error) {
|
|
155
|
+
return { hasError: true, error };
|
|
156
|
+
}
|
|
157
|
+
componentDidCatch(error) {
|
|
158
|
+
client_1.logger.debug(error);
|
|
159
|
+
}
|
|
160
|
+
render() {
|
|
161
|
+
if (this.state.hasError) {
|
|
162
|
+
const FallbackComponent = this.props.fallbackComponent;
|
|
163
|
+
return react_1.default.createElement(FallbackComponent, { error: this.state.error });
|
|
164
|
+
}
|
|
165
|
+
return this.props.children;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
exports.ErrorBoundaryCommon = ErrorBoundaryCommon;
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
/***/ }),
|
|
172
|
+
|
|
173
|
+
/***/ "./src/components/index.tsx":
|
|
174
|
+
/*!**********************************!*\
|
|
175
|
+
!*** ./src/components/index.tsx ***!
|
|
176
|
+
\**********************************/
|
|
177
|
+
/*! no static exports found */
|
|
178
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
179
|
+
|
|
180
|
+
"use strict";
|
|
181
|
+
|
|
182
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
183
|
+
if (k2 === undefined) k2 = k;
|
|
184
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
185
|
+
}) : (function(o, m, k, k2) {
|
|
186
|
+
if (k2 === undefined) k2 = k;
|
|
187
|
+
o[k2] = m[k];
|
|
188
|
+
}));
|
|
189
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
190
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
191
|
+
};
|
|
192
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
193
|
+
__exportStar(__webpack_require__(/*! ./ApplicationErrorHandlerCommon */ "./src/components/ApplicationErrorHandlerCommon.tsx"), exports);
|
|
194
|
+
__exportStar(__webpack_require__(/*! ./ErrorBoundaryCommon */ "./src/components/ErrorBoundaryCommon.tsx"), exports);
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/***/ }),
|
|
198
|
+
|
|
90
199
|
/***/ "./src/config/config.ts":
|
|
91
200
|
/*!******************************!*\
|
|
92
201
|
!*** ./src/config/config.ts ***!
|
|
@@ -96,9 +205,28 @@ module.exports =
|
|
|
96
205
|
|
|
97
206
|
"use strict";
|
|
98
207
|
|
|
208
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
209
|
+
if (k2 === undefined) k2 = k;
|
|
210
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
211
|
+
}) : (function(o, m, k, k2) {
|
|
212
|
+
if (k2 === undefined) k2 = k;
|
|
213
|
+
o[k2] = m[k];
|
|
214
|
+
}));
|
|
215
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
216
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
217
|
+
}) : function(o, v) {
|
|
218
|
+
o["default"] = v;
|
|
219
|
+
});
|
|
220
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
221
|
+
if (mod && mod.__esModule) return mod;
|
|
222
|
+
var result = {};
|
|
223
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
224
|
+
__setModuleDefault(result, mod);
|
|
225
|
+
return result;
|
|
226
|
+
};
|
|
99
227
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
100
228
|
exports.config = void 0;
|
|
101
|
-
const envalid = __webpack_require__(/*! envalid */ "envalid");
|
|
229
|
+
const envalid = __importStar(__webpack_require__(/*! envalid */ "envalid"));
|
|
102
230
|
const { json } = envalid;
|
|
103
231
|
const env = process.APP_ENV || process.env;
|
|
104
232
|
exports.config = envalid.cleanEnv(env, {
|
|
@@ -157,9 +285,10 @@ __exportStar(__webpack_require__(/*! ./config */ "./src/config/config.ts"), expo
|
|
|
157
285
|
"use strict";
|
|
158
286
|
|
|
159
287
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
160
|
-
exports.CHANGE_LANGUAGE = exports.CHANGE_SETTINGS_ACTION = void 0;
|
|
288
|
+
exports.BACKEND_ERROR_SLOT_FILL = exports.CHANGE_LANGUAGE = exports.CHANGE_SETTINGS_ACTION = void 0;
|
|
161
289
|
exports.CHANGE_SETTINGS_ACTION = 'settings/changeSetting';
|
|
162
290
|
exports.CHANGE_LANGUAGE = 'language/changeLanguage';
|
|
291
|
+
exports.BACKEND_ERROR_SLOT_FILL = "BACKEND_ERROR_SLOT_FILL";
|
|
163
292
|
|
|
164
293
|
|
|
165
294
|
/***/ }),
|
|
@@ -212,6 +341,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
212
341
|
__exportStar(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"), exports);
|
|
213
342
|
__exportStar(__webpack_require__(/*! ./constants */ "./src/constants/index.ts"), exports);
|
|
214
343
|
__exportStar(__webpack_require__(/*! ./redux */ "./src/redux/index.ts"), exports);
|
|
344
|
+
__exportStar(__webpack_require__(/*! ./utils */ "./src/utils/index.ts"), exports);
|
|
345
|
+
__exportStar(__webpack_require__(/*! ./components */ "./src/components/index.tsx"), exports);
|
|
215
346
|
|
|
216
347
|
|
|
217
348
|
/***/ }),
|
|
@@ -239,40 +370,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
239
370
|
|
|
240
371
|
"use strict";
|
|
241
372
|
|
|
373
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
374
|
+
if (k2 === undefined) k2 = k;
|
|
375
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
376
|
+
}) : (function(o, m, k, k2) {
|
|
377
|
+
if (k2 === undefined) k2 = k;
|
|
378
|
+
o[k2] = m[k];
|
|
379
|
+
}));
|
|
380
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
381
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
382
|
+
}) : function(o, v) {
|
|
383
|
+
o["default"] = v;
|
|
384
|
+
});
|
|
385
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
386
|
+
if (mod && mod.__esModule) return mod;
|
|
387
|
+
var result = {};
|
|
388
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
389
|
+
__setModuleDefault(result, mod);
|
|
390
|
+
return result;
|
|
391
|
+
};
|
|
242
392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
243
|
-
exports.useGetOrgNameFromContextLazyQuery = exports.useGetOrgNameFromContextQuery = exports.GetOrgNameFromContextDocument = exports.OrgNameInContextFragmentDoc = exports.
|
|
393
|
+
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
394
|
const client_1 = __webpack_require__(/*! @apollo/client */ "@apollo/client");
|
|
245
|
-
const Apollo = __webpack_require__(/*! @apollo/client */ "@apollo/client");
|
|
395
|
+
const Apollo = __importStar(__webpack_require__(/*! @apollo/client */ "@apollo/client"));
|
|
246
396
|
const defaultOptions = {};
|
|
247
397
|
var IApplicationRoles;
|
|
248
398
|
(function (IApplicationRoles) {
|
|
399
|
+
/** User who is logged in */
|
|
400
|
+
IApplicationRoles["USER"] = "USER";
|
|
401
|
+
/** Owner of an Organization */
|
|
402
|
+
IApplicationRoles["OWNER"] = "OWNER";
|
|
249
403
|
/** Admin of an Organization */
|
|
250
404
|
IApplicationRoles["ADMIN"] = "ADMIN";
|
|
251
405
|
/** Project Contributors */
|
|
252
406
|
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
407
|
/** Project Admin */
|
|
261
408
|
IApplicationRoles["PROJECT_ADMIN"] = "PROJECT_ADMIN";
|
|
262
409
|
/** Project Viewer */
|
|
263
410
|
IApplicationRoles["PROJECT_VIEWER"] = "PROJECT_VIEWER";
|
|
264
|
-
|
|
265
|
-
IApplicationRoles["
|
|
266
|
-
/** User who is logged in */
|
|
267
|
-
IApplicationRoles["USER"] = "USER";
|
|
411
|
+
/** Guest */
|
|
412
|
+
IApplicationRoles["GUEST"] = "GUEST";
|
|
268
413
|
})(IApplicationRoles = exports.IApplicationRoles || (exports.IApplicationRoles = {}));
|
|
269
414
|
;
|
|
270
|
-
var IClientTypes;
|
|
271
|
-
(function (IClientTypes) {
|
|
272
|
-
IClientTypes["Business"] = "Business";
|
|
273
|
-
IClientTypes["Individuals"] = "Individuals";
|
|
274
|
-
})(IClientTypes = exports.IClientTypes || (exports.IClientTypes = {}));
|
|
275
|
-
;
|
|
276
415
|
var IConfigCollectionName;
|
|
277
416
|
(function (IConfigCollectionName) {
|
|
278
417
|
IConfigCollectionName["application"] = "application";
|
|
@@ -332,30 +471,6 @@ var IConfigurationTarget;
|
|
|
332
471
|
IConfigurationTarget["MEMORY"] = "MEMORY";
|
|
333
472
|
})(IConfigurationTarget = exports.IConfigurationTarget || (exports.IConfigurationTarget = {}));
|
|
334
473
|
;
|
|
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
474
|
/** Subscription event for context */
|
|
360
475
|
var IOrganizationContextPubSubEvents;
|
|
361
476
|
(function (IOrganizationContextPubSubEvents) {
|
|
@@ -365,32 +480,20 @@ var IOrganizationContextPubSubEvents;
|
|
|
365
480
|
IOrganizationContextPubSubEvents["OrganizationPermissionUpdated"] = "OrganizationPermissionUpdated";
|
|
366
481
|
})(IOrganizationContextPubSubEvents = exports.IOrganizationContextPubSubEvents || (exports.IOrganizationContextPubSubEvents = {}));
|
|
367
482
|
;
|
|
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
483
|
var IPermissionAction;
|
|
377
484
|
(function (IPermissionAction) {
|
|
485
|
+
IPermissionAction["View"] = "View";
|
|
378
486
|
IPermissionAction["Create"] = "Create";
|
|
379
|
-
IPermissionAction["Delete"] = "Delete";
|
|
380
487
|
IPermissionAction["Edit"] = "Edit";
|
|
381
|
-
IPermissionAction["
|
|
488
|
+
IPermissionAction["Delete"] = "Delete";
|
|
382
489
|
IPermissionAction["Manage"] = "Manage";
|
|
383
|
-
IPermissionAction["View"] = "View";
|
|
384
490
|
})(IPermissionAction = exports.IPermissionAction || (exports.IPermissionAction = {}));
|
|
385
491
|
;
|
|
386
492
|
var IPermissionResource;
|
|
387
493
|
(function (IPermissionResource) {
|
|
388
|
-
IPermissionResource["Members"] = "Members";
|
|
389
|
-
IPermissionResource["Organization"] = "Organization";
|
|
390
|
-
IPermissionResource["Permissions"] = "Permissions";
|
|
391
494
|
IPermissionResource["Roles"] = "Roles";
|
|
495
|
+
IPermissionResource["Permissions"] = "Permissions";
|
|
392
496
|
IPermissionResource["Settings"] = "Settings";
|
|
393
|
-
IPermissionResource["Teams"] = "Teams";
|
|
394
497
|
})(IPermissionResource = exports.IPermissionResource || (exports.IPermissionResource = {}));
|
|
395
498
|
;
|
|
396
499
|
var IPermissionType;
|
|
@@ -400,15 +503,6 @@ var IPermissionType;
|
|
|
400
503
|
IPermissionType["NotSet"] = "NotSet";
|
|
401
504
|
})(IPermissionType = exports.IPermissionType || (exports.IPermissionType = {}));
|
|
402
505
|
;
|
|
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
506
|
var IPreDefinedRole;
|
|
413
507
|
(function (IPreDefinedRole) {
|
|
414
508
|
IPreDefinedRole["OWNER"] = "OWNER";
|
|
@@ -423,21 +517,6 @@ var IPreDefinedRole;
|
|
|
423
517
|
IPreDefinedRole["CONTRIBUTORS"] = "CONTRIBUTORS";
|
|
424
518
|
})(IPreDefinedRole = exports.IPreDefinedRole || (exports.IPreDefinedRole = {}));
|
|
425
519
|
;
|
|
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
520
|
var ISettingValueType;
|
|
442
521
|
(function (ISettingValueType) {
|
|
443
522
|
ISettingValueType["Null"] = "Null";
|
|
@@ -452,26 +531,6 @@ var ISettingValueType;
|
|
|
452
531
|
ISettingValueType["NullableNumber"] = "NullableNumber";
|
|
453
532
|
})(ISettingValueType = exports.ISettingValueType || (exports.ISettingValueType = {}));
|
|
454
533
|
;
|
|
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
534
|
exports.OrgNameInContextFragmentDoc = client_1.gql `
|
|
476
535
|
fragment OrgNameInContext on Context {
|
|
477
536
|
orgName
|
|
@@ -561,6 +620,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
561
620
|
__exportStar(__webpack_require__(/*! ./generated */ "./src/interfaces/generated/index.ts"), exports);
|
|
562
621
|
__exportStar(__webpack_require__(/*! ./default-settings */ "./src/interfaces/default-settings.ts"), exports);
|
|
563
622
|
__exportStar(__webpack_require__(/*! ./pure-settings */ "./src/interfaces/pure-settings.ts"), exports);
|
|
623
|
+
__exportStar(__webpack_require__(/*! ./typings */ "./src/interfaces/typings.ts"), exports);
|
|
564
624
|
|
|
565
625
|
|
|
566
626
|
/***/ }),
|
|
@@ -577,6 +637,20 @@ __exportStar(__webpack_require__(/*! ./pure-settings */ "./src/interfaces/pure-s
|
|
|
577
637
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
578
638
|
|
|
579
639
|
|
|
640
|
+
/***/ }),
|
|
641
|
+
|
|
642
|
+
/***/ "./src/interfaces/typings.ts":
|
|
643
|
+
/*!***********************************!*\
|
|
644
|
+
!*** ./src/interfaces/typings.ts ***!
|
|
645
|
+
\***********************************/
|
|
646
|
+
/*! no static exports found */
|
|
647
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
648
|
+
|
|
649
|
+
"use strict";
|
|
650
|
+
|
|
651
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
652
|
+
|
|
653
|
+
|
|
580
654
|
/***/ }),
|
|
581
655
|
|
|
582
656
|
/***/ "./src/redux/index.ts":
|
|
@@ -651,6 +725,72 @@ const settingsReducer = (state = config_1.config.LAYOUT_SETTINGS, { type, payloa
|
|
|
651
725
|
exports.settingsReducer = settingsReducer;
|
|
652
726
|
|
|
653
727
|
|
|
728
|
+
/***/ }),
|
|
729
|
+
|
|
730
|
+
/***/ "./src/utils/index.ts":
|
|
731
|
+
/*!****************************!*\
|
|
732
|
+
!*** ./src/utils/index.ts ***!
|
|
733
|
+
\****************************/
|
|
734
|
+
/*! no static exports found */
|
|
735
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
736
|
+
|
|
737
|
+
"use strict";
|
|
738
|
+
|
|
739
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
740
|
+
if (k2 === undefined) k2 = k;
|
|
741
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
742
|
+
}) : (function(o, m, k, k2) {
|
|
743
|
+
if (k2 === undefined) k2 = k;
|
|
744
|
+
o[k2] = m[k];
|
|
745
|
+
}));
|
|
746
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
747
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
748
|
+
};
|
|
749
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
750
|
+
__exportStar(__webpack_require__(/*! ./seperatedMenus */ "./src/utils/seperatedMenus.ts"), exports);
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
/***/ }),
|
|
754
|
+
|
|
755
|
+
/***/ "./src/utils/seperatedMenus.ts":
|
|
756
|
+
/*!*************************************!*\
|
|
757
|
+
!*** ./src/utils/seperatedMenus.ts ***!
|
|
758
|
+
\*************************************/
|
|
759
|
+
/*! no static exports found */
|
|
760
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
761
|
+
|
|
762
|
+
"use strict";
|
|
763
|
+
|
|
764
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
765
|
+
exports.getMenuSeparation = void 0;
|
|
766
|
+
// @sri custom function
|
|
767
|
+
const getMenuSeparation = (menus) => {
|
|
768
|
+
const upperMenus = menus.filter((menu) => menu.position === 'UPPER');
|
|
769
|
+
const middleMenus = menus.filter((menu) => menu.position === 'MIDDLE' ||
|
|
770
|
+
(menu.position !== 'UPPER' && menu.position !== 'LOWER' && menu.position !== 'BOTTOM'));
|
|
771
|
+
const lowerMenus = menus.filter((menu) => menu.position === 'LOWER');
|
|
772
|
+
const bottomMenus = menus.filter((menu) => menu.position === 'BOTTOM');
|
|
773
|
+
return {
|
|
774
|
+
upperMenus,
|
|
775
|
+
middleMenus,
|
|
776
|
+
lowerMenus,
|
|
777
|
+
bottomMenus,
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
exports.getMenuSeparation = getMenuSeparation;
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
/***/ }),
|
|
784
|
+
|
|
785
|
+
/***/ "@adminide-stack/user-auth0-client":
|
|
786
|
+
/*!****************************************************!*\
|
|
787
|
+
!*** external "@adminide-stack/user-auth0-client" ***!
|
|
788
|
+
\****************************************************/
|
|
789
|
+
/*! no static exports found */
|
|
790
|
+
/***/ (function(module, exports) {
|
|
791
|
+
|
|
792
|
+
module.exports = require("@adminide-stack/user-auth0-client");
|
|
793
|
+
|
|
654
794
|
/***/ }),
|
|
655
795
|
|
|
656
796
|
/***/ "@apollo/client":
|
|
@@ -664,6 +804,28 @@ module.exports = require("@apollo/client");
|
|
|
664
804
|
|
|
665
805
|
/***/ }),
|
|
666
806
|
|
|
807
|
+
/***/ "@cdm-logger/client":
|
|
808
|
+
/*!*************************************!*\
|
|
809
|
+
!*** external "@cdm-logger/client" ***!
|
|
810
|
+
\*************************************/
|
|
811
|
+
/*! no static exports found */
|
|
812
|
+
/***/ (function(module, exports) {
|
|
813
|
+
|
|
814
|
+
module.exports = require("@cdm-logger/client");
|
|
815
|
+
|
|
816
|
+
/***/ }),
|
|
817
|
+
|
|
818
|
+
/***/ "@common-stack/client-react":
|
|
819
|
+
/*!*********************************************!*\
|
|
820
|
+
!*** external "@common-stack/client-react" ***!
|
|
821
|
+
\*********************************************/
|
|
822
|
+
/*! no static exports found */
|
|
823
|
+
/***/ (function(module, exports) {
|
|
824
|
+
|
|
825
|
+
module.exports = require("@common-stack/client-react");
|
|
826
|
+
|
|
827
|
+
/***/ }),
|
|
828
|
+
|
|
667
829
|
/***/ "envalid":
|
|
668
830
|
/*!**************************!*\
|
|
669
831
|
!*** external "envalid" ***!
|
|
@@ -673,6 +835,39 @@ module.exports = require("@apollo/client");
|
|
|
673
835
|
|
|
674
836
|
module.exports = require("envalid");
|
|
675
837
|
|
|
838
|
+
/***/ }),
|
|
839
|
+
|
|
840
|
+
/***/ "lodash":
|
|
841
|
+
/*!*************************!*\
|
|
842
|
+
!*** external "lodash" ***!
|
|
843
|
+
\*************************/
|
|
844
|
+
/*! no static exports found */
|
|
845
|
+
/***/ (function(module, exports) {
|
|
846
|
+
|
|
847
|
+
module.exports = require("lodash");
|
|
848
|
+
|
|
849
|
+
/***/ }),
|
|
850
|
+
|
|
851
|
+
/***/ "react":
|
|
852
|
+
/*!************************!*\
|
|
853
|
+
!*** external "react" ***!
|
|
854
|
+
\************************/
|
|
855
|
+
/*! no static exports found */
|
|
856
|
+
/***/ (function(module, exports) {
|
|
857
|
+
|
|
858
|
+
module.exports = require("react");
|
|
859
|
+
|
|
860
|
+
/***/ }),
|
|
861
|
+
|
|
862
|
+
/***/ "react-redux":
|
|
863
|
+
/*!******************************!*\
|
|
864
|
+
!*** external "react-redux" ***!
|
|
865
|
+
\******************************/
|
|
866
|
+
/*! no static exports found */
|
|
867
|
+
/***/ (function(module, exports) {
|
|
868
|
+
|
|
869
|
+
module.exports = require("react-redux");
|
|
870
|
+
|
|
676
871
|
/***/ })
|
|
677
872
|
|
|
678
873
|
/******/ });
|