@workwell-global/toolkit 1.0.4 → 1.0.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.
package/README.md CHANGED
@@ -9,7 +9,54 @@ TODO: Guide users through getting your code up and running on their own system.
9
9
  4. API references
10
10
 
11
11
  # Build and Test
12
- TODO: Describe and show how to build your code and run the tests.
12
+
13
+ ## Publishing a New Version
14
+
15
+ Before publishing, ensure you're logged into npm:
16
+ ```bash
17
+ npm login
18
+ ```
19
+
20
+ Then follow these steps to publish:
21
+
22
+ 1. **Commit your changes** (required before version bump):
23
+ ```bash
24
+ git add .
25
+ git commit -m "Your commit message describing changes"
26
+ ```
27
+
28
+ 2. **Rebuild and publish the package**:
29
+ ```bash
30
+ npm run build
31
+ npm version patch # or 'minor' or 'major'
32
+ npm publish
33
+ ```
34
+
35
+ 3. **Push changes and tags to git**:
36
+ ```bash
37
+ git push && git push --tags
38
+ ```
39
+
40
+ ## Using in Your Project
41
+
42
+ In your consuming project, update the package:
43
+ ```bash
44
+ npm update @workwell-global/toolkit
45
+ # or install specific version
46
+ npm install @workwell-global/toolkit@latest
47
+ ```
48
+
49
+ ### Troubleshooting
50
+
51
+ **If npm publish fails with "Access token expired":**
52
+ ```bash
53
+ npm logout
54
+ npm login
55
+ npm publish
56
+ ```
57
+
58
+ **If npm version fails with "Git working directory not clean":**
59
+ Commit your changes first before running `npm version patch`
13
60
 
14
61
  # Contribute
15
62
  TODO: Explain how other users and developers can contribute to make your code better.
@@ -0,0 +1,2 @@
1
+ export * from './TServiceUserSettings.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/user-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './TServiceUserSettings.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/user-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './date-and-time/index.js';
2
+ export * from './encoding/index.js';
3
+ export * from './strings/index.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,5 @@
1
+ // imports must be js files, but will auto map to ts files during build
2
+ export * from './date-and-time/index.js';
3
+ export * from './encoding/index.js';
4
+ export * from './strings/index.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workwell-global/toolkit",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Shared utilities and helpers for Workwell Global",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,36 +14,83 @@
14
14
  },
15
15
  "exports": {
16
16
  ".": {
17
+ "types": "./dist/index.d.ts",
17
18
  "import": "./dist/index.js",
18
- "types": "./dist/index.d.ts"
19
+ "require": "./dist/index.js",
20
+ "default": "./dist/index.js"
19
21
  },
22
+ "./package.json": "./package.json",
20
23
  "./enums": {
24
+ "types": "./dist/enums/index.d.ts",
21
25
  "import": "./dist/enums/index.js",
22
- "types": "./dist/enums/index.d.ts"
26
+ "require": "./dist/enums/index.js",
27
+ "default": "./dist/enums/index.js"
23
28
  },
24
29
  "./models/crm-dynamics": {
30
+ "types": "./dist/models/crm-dynamics/index.d.ts",
25
31
  "import": "./dist/models/crm-dynamics/index.js",
26
- "types": "./dist/models/crm-dynamics/index.d.ts"
32
+ "require": "./dist/models/crm-dynamics/index.js",
33
+ "default": "./dist/models/crm-dynamics/index.js"
27
34
  },
28
35
  "./models/event": {
36
+ "types": "./dist/models/event/index.d.ts",
29
37
  "import": "./dist/models/event/index.js",
30
- "types": "./dist/models/event/index.d.ts"
38
+ "require": "./dist/models/event/index.js",
39
+ "default": "./dist/models/event/index.js"
40
+ },
41
+ "./models/integration-auth0": {
42
+ "types": "./dist/models/integration-auth0/index.d.ts",
43
+ "import": "./dist/models/integration-auth0/index.js",
44
+ "require": "./dist/models/integration-auth0/index.js",
45
+ "default": "./dist/models/integration-auth0/index.js"
31
46
  },
32
47
  "./models/notification": {
48
+ "types": "./dist/models/notification/index.d.ts",
33
49
  "import": "./dist/models/notification/index.js",
34
- "types": "./dist/models/notification/index.d.ts"
50
+ "require": "./dist/models/notification/index.js",
51
+ "default": "./dist/models/notification/index.js"
35
52
  },
36
53
  "./models/objects": {
54
+ "types": "./dist/models/objects/index.d.ts",
37
55
  "import": "./dist/models/objects/index.js",
38
- "types": "./dist/models/objects/index.d.ts"
56
+ "require": "./dist/models/objects/index.js",
57
+ "default": "./dist/models/objects/index.js"
39
58
  },
40
59
  "./models/types": {
60
+ "types": "./dist/models/types/index.d.ts",
41
61
  "import": "./dist/models/types/index.js",
42
- "types": "./dist/models/types/index.d.ts"
62
+ "require": "./dist/models/types/index.js",
63
+ "default": "./dist/models/types/index.js"
64
+ },
65
+ "./models/user-settings": {
66
+ "types": "./dist/models/user-settings/index.d.ts",
67
+ "import": "./dist/models/user-settings/index.js",
68
+ "require": "./dist/models/user-settings/index.js",
69
+ "default": "./dist/models/user-settings/index.js"
43
70
  },
44
71
  "./utils": {
72
+ "types": "./dist/utils/index.d.ts",
45
73
  "import": "./dist/utils/index.js",
46
- "types": "./dist/utils/index.d.ts"
74
+ "require": "./dist/utils/index.js",
75
+ "default": "./dist/utils/index.js"
76
+ },
77
+ "./utils/date-and-time": {
78
+ "types": "./dist/utils/date-and-time/index.d.ts",
79
+ "import": "./dist/utils/date-and-time/index.js",
80
+ "require": "./dist/utils/date-and-time/index.js",
81
+ "default": "./dist/utils/date-and-time/index.js"
82
+ },
83
+ "./utils/encoding": {
84
+ "types": "./dist/utils/encoding/index.d.ts",
85
+ "import": "./dist/utils/encoding/index.js",
86
+ "require": "./dist/utils/encoding/index.js",
87
+ "default": "./dist/utils/encoding/index.js"
88
+ },
89
+ "./utils/strings": {
90
+ "types": "./dist/utils/strings/index.d.ts",
91
+ "import": "./dist/utils/strings/index.js",
92
+ "require": "./dist/utils/strings/index.js",
93
+ "default": "./dist/utils/strings/index.js"
47
94
  }
48
95
  },
49
96
  "keywords": [],