drapcode-constant 2.1.0-sandbox.4 → 2.1.0-sandbox.5

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.
@@ -1,3 +1,17 @@
1
1
  export declare const sourceOfCollection: string[];
2
2
  export declare const ConstantType: string[];
3
+ export declare const roleCollectionName = "role";
4
+ export declare const SUPER_ADMIN_ROLE = "Super Admin";
5
+ export declare const TENANT_ADMIN_ROLE = "Tenant Admin";
6
+ export declare const DEFAULT_USER_ROLE = "User";
7
+ export declare const READ = "Read";
8
+ export declare const WRITE = "Write";
9
+ export declare const DELETE = "Delete";
10
+ export declare const userCollectionName = "user";
11
+ export declare const SUPER_ADMIN_USER = "superadmin@test.com";
12
+ export declare const TENANT_ADMIN_USER = "tenantadmin@test.com";
13
+ export declare const DEFAULT_USER = "user@test.com";
14
+ export declare const organisationCollectionName = "organisation";
15
+ export declare const permissionCollectionName = "permission";
16
+ export declare const userSettingCollectionName = "user_setting";
3
17
  //# sourceMappingURL=collection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../src/constants/collection.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,kBAAkB,UAa9B,CAAC;AACF,eAAO,MAAM,YAAY,UAA2D,CAAC"}
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../src/constants/collection.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,kBAAkB,UAa9B,CAAC;AACF,eAAO,MAAM,YAAY,UAA2D,CAAC;AAIrF,eAAO,MAAM,kBAAkB,SAAS,CAAC;AACzC,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAChD,eAAO,MAAM,iBAAiB,SAAS,CAAC;AAGxC,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,MAAM,WAAW,CAAC;AAG/B,eAAO,MAAM,kBAAkB,SAAS,CAAC;AACzC,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,iBAAiB,yBAAyB,CAAC;AACxD,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAE5C,eAAO,MAAM,0BAA0B,iBAAiB,CAAC;AACzD,eAAO,MAAM,wBAAwB,eAAe,CAAC;AACrD,eAAO,MAAM,yBAAyB,iBAAiB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConstantType = exports.sourceOfCollection = void 0;
3
+ exports.userSettingCollectionName = exports.permissionCollectionName = exports.organisationCollectionName = exports.DEFAULT_USER = exports.TENANT_ADMIN_USER = exports.SUPER_ADMIN_USER = exports.userCollectionName = exports.DELETE = exports.WRITE = exports.READ = exports.DEFAULT_USER_ROLE = exports.TENANT_ADMIN_ROLE = exports.SUPER_ADMIN_ROLE = exports.roleCollectionName = exports.ConstantType = exports.sourceOfCollection = void 0;
4
4
  const externalApi_1 = require("./externalApi");
5
5
  const plugins_1 = require("./plugins");
6
6
  const DEFAULT = 'DEFAULT';
@@ -19,4 +19,22 @@ exports.sourceOfCollection = [
19
19
  externalApi_1.MYSQL,
20
20
  ];
21
21
  exports.ConstantType = ['DATE', 'BOOLEAN', 'STRING', 'NUMBER', 'LIST', 'EMAIL'];
22
+ //Item Related
23
+ //Role
24
+ exports.roleCollectionName = 'role';
25
+ exports.SUPER_ADMIN_ROLE = 'Super Admin';
26
+ exports.TENANT_ADMIN_ROLE = 'Tenant Admin';
27
+ exports.DEFAULT_USER_ROLE = 'User';
28
+ //Permission
29
+ exports.READ = 'Read';
30
+ exports.WRITE = 'Write';
31
+ exports.DELETE = 'Delete';
32
+ //User
33
+ exports.userCollectionName = 'user';
34
+ exports.SUPER_ADMIN_USER = 'superadmin@test.com';
35
+ exports.TENANT_ADMIN_USER = 'tenantadmin@test.com';
36
+ exports.DEFAULT_USER = 'user@test.com';
37
+ exports.organisationCollectionName = 'organisation';
38
+ exports.permissionCollectionName = 'permission';
39
+ exports.userSettingCollectionName = 'user_setting';
22
40
  //# sourceMappingURL=collection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/constants/collection.ts"],"names":[],"mappings":";;;AAAA,+CAUuB;AACvB,uCAAuC;AAEvC,MAAM,OAAO,GAAG,SAAS,CAAC;AACb,QAAA,kBAAkB,GAAG;IAChC,OAAO;IACP,kBAAI;IACJ,sBAAQ;IACR,sBAAQ;IACR,oBAAU,CAAC,QAAQ;IACnB,oBAAU,CAAC,SAAS;IACpB,oBAAM;IACN,uBAAS;IACT,sBAAQ;IACR,kBAAI;IACJ,wBAAU;IACV,mBAAK;CACN,CAAC;AACW,QAAA,YAAY,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/constants/collection.ts"],"names":[],"mappings":";;;AAAA,+CAUuB;AACvB,uCAAuC;AAEvC,MAAM,OAAO,GAAG,SAAS,CAAC;AACb,QAAA,kBAAkB,GAAG;IAChC,OAAO;IACP,kBAAI;IACJ,sBAAQ;IACR,sBAAQ;IACR,oBAAU,CAAC,QAAQ;IACnB,oBAAU,CAAC,SAAS;IACpB,oBAAM;IACN,uBAAS;IACT,sBAAQ;IACR,kBAAI;IACJ,wBAAU;IACV,mBAAK;CACN,CAAC;AACW,QAAA,YAAY,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAErF,cAAc;AACd,MAAM;AACO,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,gBAAgB,GAAG,aAAa,CAAC;AACjC,QAAA,iBAAiB,GAAG,cAAc,CAAC;AACnC,QAAA,iBAAiB,GAAG,MAAM,CAAC;AAExC,YAAY;AACC,QAAA,IAAI,GAAG,MAAM,CAAC;AACd,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,MAAM,GAAG,QAAQ,CAAC;AAE/B,MAAM;AACO,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,gBAAgB,GAAG,qBAAqB,CAAC;AACzC,QAAA,iBAAiB,GAAG,sBAAsB,CAAC;AAC3C,QAAA,YAAY,GAAG,eAAe,CAAC;AAE/B,QAAA,0BAA0B,GAAG,cAAc,CAAC;AAC5C,QAAA,wBAAwB,GAAG,YAAY,CAAC;AACxC,QAAA,yBAAyB,GAAG,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-constant",
3
- "version": "2.1.0-sandbox.4",
3
+ "version": "2.1.0-sandbox.5",
4
4
  "description": "Drapcode Constants",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",