@accesswebspero/shared 0.0.1

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/dist/index.cjs ADDED
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ ROLES: () => ROLES
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var ROLES = {
27
+ ADMIN: "admin",
28
+ MEMBER: "member",
29
+ HEALTH_GUIDE: "health_guide",
30
+ DOCTOR: "doctor",
31
+ NUTRITIONIST: "nutritionist",
32
+ TRAINER: "trainer",
33
+ PHYSIOTHERAPIST: "physiotherapist",
34
+ SALES_EXECUTIVE: "sales_executive"
35
+ };
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ ROLES
39
+ });
@@ -0,0 +1,12 @@
1
+ declare const ROLES: {
2
+ ADMIN: string;
3
+ MEMBER: string;
4
+ HEALTH_GUIDE: string;
5
+ DOCTOR: string;
6
+ NUTRITIONIST: string;
7
+ TRAINER: string;
8
+ PHYSIOTHERAPIST: string;
9
+ SALES_EXECUTIVE: string;
10
+ };
11
+
12
+ export { ROLES };
@@ -0,0 +1,12 @@
1
+ declare const ROLES: {
2
+ ADMIN: string;
3
+ MEMBER: string;
4
+ HEALTH_GUIDE: string;
5
+ DOCTOR: string;
6
+ NUTRITIONIST: string;
7
+ TRAINER: string;
8
+ PHYSIOTHERAPIST: string;
9
+ SALES_EXECUTIVE: string;
10
+ };
11
+
12
+ export { ROLES };
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ // src/index.ts
2
+ var ROLES = {
3
+ ADMIN: "admin",
4
+ MEMBER: "member",
5
+ HEALTH_GUIDE: "health_guide",
6
+ DOCTOR: "doctor",
7
+ NUTRITIONIST: "nutritionist",
8
+ TRAINER: "trainer",
9
+ PHYSIOTHERAPIST: "physiotherapist",
10
+ SALES_EXECUTIVE: "sales_executive"
11
+ };
12
+ export {
13
+ ROLES
14
+ };
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@accesswebspero/shared",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs"
13
+ }
14
+ },
15
+ "devDependencies": {
16
+ "@types/node": "^26.6.1",
17
+ "tsup": "^8.0.0",
18
+ "typescript": "^5.0.0"
19
+ },
20
+ "scripts": {
21
+ "build": "tsup src/index.ts --format esm,cjs --dts --clean",
22
+ "dev": "tsup src/index.ts --format esm,cjs --dts --watch"
23
+ }
24
+ }
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ export const ROLES = {
2
+ ADMIN: 'admin',
3
+ MEMBER: 'member',
4
+ HEALTH_GUIDE: 'health_guide',
5
+ DOCTOR: 'doctor',
6
+ NUTRITIONIST: 'nutritionist',
7
+ TRAINER: 'trainer',
8
+ PHYSIOTHERAPIST: 'physiotherapist',
9
+ SALES_EXECUTIVE: 'sales_executive',
10
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "CommonJS",
5
+ "outDir": "bundle",
6
+ "rootDir": "src",
7
+ "esModuleInterop": true,
8
+ "strict": true,
9
+ "skipLibCheck": true,
10
+ "forceConsistentCasingInFileNames": true,
11
+ "types": ["node"]
12
+ }
13
+ }