@admin-layout/client 1.0.3-alpha.138 → 1.0.3-alpha.140
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/index.js +25 -101
- 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 +72 -0
- package/package.json +6 -3
package/lib/index.js
CHANGED
|
@@ -240,39 +240,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
240
240
|
"use strict";
|
|
241
241
|
|
|
242
242
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
243
|
-
exports.useGetOrgNameFromContextLazyQuery = exports.useGetOrgNameFromContextQuery = exports.GetOrgNameFromContextDocument = exports.OrgNameInContextFragmentDoc = exports.
|
|
243
|
+
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
244
|
const client_1 = __webpack_require__(/*! @apollo/client */ "@apollo/client");
|
|
245
245
|
const Apollo = __webpack_require__(/*! @apollo/client */ "@apollo/client");
|
|
246
246
|
const defaultOptions = {};
|
|
247
247
|
var IApplicationRoles;
|
|
248
248
|
(function (IApplicationRoles) {
|
|
249
|
+
/** User who is logged in */
|
|
250
|
+
IApplicationRoles["USER"] = "USER";
|
|
251
|
+
/** Owner of an Organization */
|
|
252
|
+
IApplicationRoles["OWNER"] = "OWNER";
|
|
249
253
|
/** Admin of an Organization */
|
|
250
254
|
IApplicationRoles["ADMIN"] = "ADMIN";
|
|
251
255
|
/** Project Contributors */
|
|
252
256
|
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
257
|
/** Project Admin */
|
|
261
258
|
IApplicationRoles["PROJECT_ADMIN"] = "PROJECT_ADMIN";
|
|
262
259
|
/** Project Viewer */
|
|
263
260
|
IApplicationRoles["PROJECT_VIEWER"] = "PROJECT_VIEWER";
|
|
264
|
-
|
|
265
|
-
IApplicationRoles["
|
|
266
|
-
/** User who is logged in */
|
|
267
|
-
IApplicationRoles["USER"] = "USER";
|
|
261
|
+
/** Guest */
|
|
262
|
+
IApplicationRoles["GUEST"] = "GUEST";
|
|
268
263
|
})(IApplicationRoles = exports.IApplicationRoles || (exports.IApplicationRoles = {}));
|
|
269
264
|
;
|
|
270
|
-
var IClientTypes;
|
|
271
|
-
(function (IClientTypes) {
|
|
272
|
-
IClientTypes["Business"] = "Business";
|
|
273
|
-
IClientTypes["Individuals"] = "Individuals";
|
|
274
|
-
})(IClientTypes = exports.IClientTypes || (exports.IClientTypes = {}));
|
|
275
|
-
;
|
|
276
265
|
var IConfigCollectionName;
|
|
277
266
|
(function (IConfigCollectionName) {
|
|
278
267
|
IConfigCollectionName["application"] = "application";
|
|
@@ -332,30 +321,6 @@ var IConfigurationTarget;
|
|
|
332
321
|
IConfigurationTarget["MEMORY"] = "MEMORY";
|
|
333
322
|
})(IConfigurationTarget = exports.IConfigurationTarget || (exports.IConfigurationTarget = {}));
|
|
334
323
|
;
|
|
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
324
|
/** Subscription event for context */
|
|
360
325
|
var IOrganizationContextPubSubEvents;
|
|
361
326
|
(function (IOrganizationContextPubSubEvents) {
|
|
@@ -365,32 +330,20 @@ var IOrganizationContextPubSubEvents;
|
|
|
365
330
|
IOrganizationContextPubSubEvents["OrganizationPermissionUpdated"] = "OrganizationPermissionUpdated";
|
|
366
331
|
})(IOrganizationContextPubSubEvents = exports.IOrganizationContextPubSubEvents || (exports.IOrganizationContextPubSubEvents = {}));
|
|
367
332
|
;
|
|
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
333
|
var IPermissionAction;
|
|
377
334
|
(function (IPermissionAction) {
|
|
335
|
+
IPermissionAction["View"] = "View";
|
|
378
336
|
IPermissionAction["Create"] = "Create";
|
|
379
|
-
IPermissionAction["Delete"] = "Delete";
|
|
380
337
|
IPermissionAction["Edit"] = "Edit";
|
|
381
|
-
IPermissionAction["
|
|
338
|
+
IPermissionAction["Delete"] = "Delete";
|
|
382
339
|
IPermissionAction["Manage"] = "Manage";
|
|
383
|
-
IPermissionAction["View"] = "View";
|
|
384
340
|
})(IPermissionAction = exports.IPermissionAction || (exports.IPermissionAction = {}));
|
|
385
341
|
;
|
|
386
342
|
var IPermissionResource;
|
|
387
343
|
(function (IPermissionResource) {
|
|
388
|
-
IPermissionResource["Members"] = "Members";
|
|
389
|
-
IPermissionResource["Organization"] = "Organization";
|
|
390
|
-
IPermissionResource["Permissions"] = "Permissions";
|
|
391
344
|
IPermissionResource["Roles"] = "Roles";
|
|
345
|
+
IPermissionResource["Permissions"] = "Permissions";
|
|
392
346
|
IPermissionResource["Settings"] = "Settings";
|
|
393
|
-
IPermissionResource["Teams"] = "Teams";
|
|
394
347
|
})(IPermissionResource = exports.IPermissionResource || (exports.IPermissionResource = {}));
|
|
395
348
|
;
|
|
396
349
|
var IPermissionType;
|
|
@@ -400,15 +353,6 @@ var IPermissionType;
|
|
|
400
353
|
IPermissionType["NotSet"] = "NotSet";
|
|
401
354
|
})(IPermissionType = exports.IPermissionType || (exports.IPermissionType = {}));
|
|
402
355
|
;
|
|
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
356
|
var IPreDefinedRole;
|
|
413
357
|
(function (IPreDefinedRole) {
|
|
414
358
|
IPreDefinedRole["OWNER"] = "OWNER";
|
|
@@ -423,21 +367,6 @@ var IPreDefinedRole;
|
|
|
423
367
|
IPreDefinedRole["CONTRIBUTORS"] = "CONTRIBUTORS";
|
|
424
368
|
})(IPreDefinedRole = exports.IPreDefinedRole || (exports.IPreDefinedRole = {}));
|
|
425
369
|
;
|
|
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
370
|
var ISettingValueType;
|
|
442
371
|
(function (ISettingValueType) {
|
|
443
372
|
ISettingValueType["Null"] = "Null";
|
|
@@ -452,26 +381,6 @@ var ISettingValueType;
|
|
|
452
381
|
ISettingValueType["NullableNumber"] = "NullableNumber";
|
|
453
382
|
})(ISettingValueType = exports.ISettingValueType || (exports.ISettingValueType = {}));
|
|
454
383
|
;
|
|
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
384
|
exports.OrgNameInContextFragmentDoc = client_1.gql `
|
|
476
385
|
fragment OrgNameInContext on Context {
|
|
477
386
|
orgName
|
|
@@ -561,6 +470,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
561
470
|
__exportStar(__webpack_require__(/*! ./generated */ "./src/interfaces/generated/index.ts"), exports);
|
|
562
471
|
__exportStar(__webpack_require__(/*! ./default-settings */ "./src/interfaces/default-settings.ts"), exports);
|
|
563
472
|
__exportStar(__webpack_require__(/*! ./pure-settings */ "./src/interfaces/pure-settings.ts"), exports);
|
|
473
|
+
__exportStar(__webpack_require__(/*! ./typings */ "./src/interfaces/typings.ts"), exports);
|
|
564
474
|
|
|
565
475
|
|
|
566
476
|
/***/ }),
|
|
@@ -577,6 +487,20 @@ __exportStar(__webpack_require__(/*! ./pure-settings */ "./src/interfaces/pure-s
|
|
|
577
487
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
578
488
|
|
|
579
489
|
|
|
490
|
+
/***/ }),
|
|
491
|
+
|
|
492
|
+
/***/ "./src/interfaces/typings.ts":
|
|
493
|
+
/*!***********************************!*\
|
|
494
|
+
!*** ./src/interfaces/typings.ts ***!
|
|
495
|
+
\***********************************/
|
|
496
|
+
/*! no static exports found */
|
|
497
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
498
|
+
|
|
499
|
+
"use strict";
|
|
500
|
+
|
|
501
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
502
|
+
|
|
503
|
+
|
|
580
504
|
/***/ }),
|
|
581
505
|
|
|
582
506
|
/***/ "./src/redux/index.ts":
|