woodsportal-client-sdk 1.1.0 → 1.1.2-dev.0

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +13 -31
  2. package/LICENSE +8 -8
  3. package/README.md +118 -459
  4. package/dist/index.d.ts +306 -16
  5. package/dist/index.js +2191 -47
  6. package/dist/index.js.map +1 -1
  7. package/package.json +27 -40
  8. package/dist/apis/authentication.d.ts +0 -36
  9. package/dist/apis/authentication.js +0 -105
  10. package/dist/apis/authentication.js.map +0 -1
  11. package/dist/apis/object.d.ts +0 -6
  12. package/dist/apis/object.js +0 -14
  13. package/dist/apis/object.js.map +0 -1
  14. package/dist/apis/pipeline.d.ts +0 -6
  15. package/dist/apis/pipeline.js +0 -14
  16. package/dist/apis/pipeline.js.map +0 -1
  17. package/dist/apis/users.d.ts +0 -16
  18. package/dist/apis/users.js +0 -36
  19. package/dist/apis/users.js.map +0 -1
  20. package/dist/breadcrumb/breadcrumbs.d.ts +0 -11
  21. package/dist/breadcrumb/breadcrumbs.js +0 -105
  22. package/dist/breadcrumb/breadcrumbs.js.map +0 -1
  23. package/dist/breadcrumb/generate-url.d.ts +0 -3
  24. package/dist/breadcrumb/generate-url.js +0 -125
  25. package/dist/breadcrumb/generate-url.js.map +0 -1
  26. package/dist/breadcrumb/key-map.d.ts +0 -1
  27. package/dist/breadcrumb/key-map.js +0 -24
  28. package/dist/breadcrumb/key-map.js.map +0 -1
  29. package/dist/breadcrumb/param.d.ts +0 -10
  30. package/dist/breadcrumb/param.js +0 -100
  31. package/dist/breadcrumb/param.js.map +0 -1
  32. package/dist/breadcrumb/url-utils.d.ts +0 -10
  33. package/dist/breadcrumb/url-utils.js +0 -87
  34. package/dist/breadcrumb/url-utils.js.map +0 -1
  35. package/dist/breadcrumb/url.d.ts +0 -9
  36. package/dist/breadcrumb/url.js +0 -101
  37. package/dist/breadcrumb/url.js.map +0 -1
  38. package/dist/clint/api-endpoints.d.ts +0 -1
  39. package/dist/clint/api-endpoints.js +0 -16
  40. package/dist/clint/api-endpoints.js.map +0 -1
  41. package/dist/clint/auth-utils.d.ts +0 -9
  42. package/dist/clint/auth-utils.js +0 -46
  43. package/dist/clint/auth-utils.js.map +0 -1
  44. package/dist/clint/config.d.ts +0 -4
  45. package/dist/clint/config.js +0 -4
  46. package/dist/clint/config.js.map +0 -1
  47. package/dist/clint/http-clint.d.ts +0 -34
  48. package/dist/clint/http-clint.js +0 -144
  49. package/dist/clint/http-clint.js.map +0 -1
  50. package/dist/clint/index.d.ts +0 -23
  51. package/dist/clint/index.js +0 -45
  52. package/dist/clint/index.js.map +0 -1
  53. package/dist/clint/token-store.d.ts +0 -10
  54. package/dist/clint/token-store.js +0 -45
  55. package/dist/clint/token-store.js.map +0 -1
  56. package/dist/mutation/createMutation.d.ts +0 -5
  57. package/dist/mutation/createMutation.js +0 -29
  58. package/dist/mutation/createMutation.js.map +0 -1
  59. package/dist/types/index.d.ts +0 -34
  60. package/dist/types/index.js +0 -2
  61. package/dist/types/index.js.map +0 -1
  62. package/dist/utils/compress.d.ts +0 -2
  63. package/dist/utils/compress.js +0 -30
  64. package/dist/utils/compress.js.map +0 -1
  65. package/dist/utils/config.d.ts +0 -4
  66. package/dist/utils/config.js +0 -11
  67. package/dist/utils/config.js.map +0 -1
  68. package/dist/utils/constants.d.ts +0 -6
  69. package/dist/utils/constants.js +0 -7
  70. package/dist/utils/constants.js.map +0 -1
  71. package/dist/utils/cookie.d.ts +0 -5
  72. package/dist/utils/cookie.js +0 -30
  73. package/dist/utils/cookie.js.map +0 -1
  74. package/dist/utils/cookie.test.d.ts +0 -1
  75. package/dist/utils/cookie.test.js +0 -17
  76. package/dist/utils/cookie.test.js.map +0 -1
  77. package/dist/utils/createApiAction.d.ts +0 -9
  78. package/dist/utils/createApiAction.js +0 -23
  79. package/dist/utils/createApiAction.js.map +0 -1
  80. package/dist/utils/generateApiUrl.d.ts +0 -5
  81. package/dist/utils/generateApiUrl.js +0 -22
  82. package/dist/utils/generateApiUrl.js.map +0 -1
  83. package/dist/utils/param.d.ts +0 -4
  84. package/dist/utils/param.js +0 -39
  85. package/dist/utils/param.js.map +0 -1
  86. package/dist/utils/url.d.ts +0 -1
  87. package/dist/utils/url.js +0 -17
  88. package/dist/utils/url.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,44 +1,26 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
3
+ All notable changes to **woodsportal-client-sdk** are documented in this file.
4
4
 
5
- ## 1.1.0 (2026-02-13)
6
-
7
-
8
- ### Features
9
-
10
- * add production-grade npm package setup ([11d1e22](https://github.com/Digital-Woods/digitalwoods.io-woodsportal-client-sdk/commit/11d1e2276b03cd2b0dcfe3d480b77013ec8006eb))
11
-
12
- # Changelog
13
-
14
- All notable changes to this project will be documented in this file.
15
-
16
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
17
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
18
7
 
19
8
  ## [Unreleased]
20
9
 
21
10
  ### Added
22
- - Initial release of WoodsPortal Client SDK
23
- - Authentication APIs (login, logout, preLogin, verifyEmail, forgetPassword, resetPassword)
24
- - User management APIs (me, profile, changePassword)
25
- - Pipeline and Object listing APIs
26
- - Breadcrumb utilities
27
- - URL generation and routing utilities
28
- - Token management and refresh functionality
29
- - SDK initialization function
30
11
 
31
- ### Changed
32
- - N/A
12
+ - **`examples/smoke-consumer`**: local `file:` dependency + `npm run test:consumer` to validate `dist/` and types before publish.
13
+ - **`examples/smoke-consumer/smoke-live.mjs`** + **`npm run test:consumer:live`**: optional real dev login; loads **`examples/smoke-consumer/.env`** via **`dotenv`** using **`BASE_URL`**, **`USER_NAME`**, **`USER_PASSWORD`** (plus legacy `WOODSPORTAL_*` / camelCase aliases). Skips in CI when unset. **`.env.example`** and gitignore for local `.env`.
33
14
 
34
- ### Deprecated
35
- - N/A
15
+ ### Changed
36
16
 
37
- ### Removed
38
- - N/A
17
+ - **`utils/config`:** `hubId` / `devPortalId` getters use optional chaining when `hubSpotData` is missing from storage (avoids `null` dereference in Node/tests).
18
+ - **Build pipeline:** library output is produced with **`tsup`** as one **`dist/index.js`** ESM bundle + **`dist/index.d.ts`**, so the published package runs under **Node ESM** and bundlers. Deep imports into previous per-file `dist/**` paths are no longer published—use the package root export only.
19
+ - **`createMutation`:** loading state now tracks **concurrent** `mutate` calls so `isLoading()` stays accurate under overlap.
20
+ - **`Config.devPortalId`:** type corrected to **`string`** to match runtime storage reads.
21
+ - **Documentation:** README expanded for production deployment, security, semver, and error-handling expectations.
22
+ - **`package.json`:** `prepublishOnly` now runs **`type-check`** after **`build`**; publish `files` explicitly includes `README.md` and `LICENSE`.
39
23
 
40
- ### Fixed
41
- - N/A
24
+ ### Added
42
25
 
43
- ### Security
44
- - N/A
26
+ - **CHANGELOG** for release notes.
package/LICENSE CHANGED
@@ -1,15 +1,15 @@
1
1
  ISC License
2
2
 
3
- Copyright (c) 2025, Digital Woods
3
+ Copyright (c) Digital Woods
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
6
6
  purpose with or without fee is hereby granted, provided that the above
7
7
  copyright notice and this permission notice appear in all copies.
8
8
 
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.