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.
- package/CHANGELOG.md +13 -31
- package/LICENSE +8 -8
- package/README.md +118 -459
- package/dist/index.d.ts +306 -16
- package/dist/index.js +2191 -47
- package/dist/index.js.map +1 -1
- package/package.json +27 -40
- package/dist/apis/authentication.d.ts +0 -36
- package/dist/apis/authentication.js +0 -105
- package/dist/apis/authentication.js.map +0 -1
- package/dist/apis/object.d.ts +0 -6
- package/dist/apis/object.js +0 -14
- package/dist/apis/object.js.map +0 -1
- package/dist/apis/pipeline.d.ts +0 -6
- package/dist/apis/pipeline.js +0 -14
- package/dist/apis/pipeline.js.map +0 -1
- package/dist/apis/users.d.ts +0 -16
- package/dist/apis/users.js +0 -36
- package/dist/apis/users.js.map +0 -1
- package/dist/breadcrumb/breadcrumbs.d.ts +0 -11
- package/dist/breadcrumb/breadcrumbs.js +0 -105
- package/dist/breadcrumb/breadcrumbs.js.map +0 -1
- package/dist/breadcrumb/generate-url.d.ts +0 -3
- package/dist/breadcrumb/generate-url.js +0 -125
- package/dist/breadcrumb/generate-url.js.map +0 -1
- package/dist/breadcrumb/key-map.d.ts +0 -1
- package/dist/breadcrumb/key-map.js +0 -24
- package/dist/breadcrumb/key-map.js.map +0 -1
- package/dist/breadcrumb/param.d.ts +0 -10
- package/dist/breadcrumb/param.js +0 -100
- package/dist/breadcrumb/param.js.map +0 -1
- package/dist/breadcrumb/url-utils.d.ts +0 -10
- package/dist/breadcrumb/url-utils.js +0 -87
- package/dist/breadcrumb/url-utils.js.map +0 -1
- package/dist/breadcrumb/url.d.ts +0 -9
- package/dist/breadcrumb/url.js +0 -101
- package/dist/breadcrumb/url.js.map +0 -1
- package/dist/clint/api-endpoints.d.ts +0 -1
- package/dist/clint/api-endpoints.js +0 -16
- package/dist/clint/api-endpoints.js.map +0 -1
- package/dist/clint/auth-utils.d.ts +0 -9
- package/dist/clint/auth-utils.js +0 -46
- package/dist/clint/auth-utils.js.map +0 -1
- package/dist/clint/config.d.ts +0 -4
- package/dist/clint/config.js +0 -4
- package/dist/clint/config.js.map +0 -1
- package/dist/clint/http-clint.d.ts +0 -34
- package/dist/clint/http-clint.js +0 -144
- package/dist/clint/http-clint.js.map +0 -1
- package/dist/clint/index.d.ts +0 -23
- package/dist/clint/index.js +0 -45
- package/dist/clint/index.js.map +0 -1
- package/dist/clint/token-store.d.ts +0 -10
- package/dist/clint/token-store.js +0 -45
- package/dist/clint/token-store.js.map +0 -1
- package/dist/mutation/createMutation.d.ts +0 -5
- package/dist/mutation/createMutation.js +0 -29
- package/dist/mutation/createMutation.js.map +0 -1
- package/dist/types/index.d.ts +0 -34
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/utils/compress.d.ts +0 -2
- package/dist/utils/compress.js +0 -30
- package/dist/utils/compress.js.map +0 -1
- package/dist/utils/config.d.ts +0 -4
- package/dist/utils/config.js +0 -11
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/constants.d.ts +0 -6
- package/dist/utils/constants.js +0 -7
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/cookie.d.ts +0 -5
- package/dist/utils/cookie.js +0 -30
- package/dist/utils/cookie.js.map +0 -1
- package/dist/utils/cookie.test.d.ts +0 -1
- package/dist/utils/cookie.test.js +0 -17
- package/dist/utils/cookie.test.js.map +0 -1
- package/dist/utils/createApiAction.d.ts +0 -9
- package/dist/utils/createApiAction.js +0 -23
- package/dist/utils/createApiAction.js.map +0 -1
- package/dist/utils/generateApiUrl.d.ts +0 -5
- package/dist/utils/generateApiUrl.js +0 -22
- package/dist/utils/generateApiUrl.js.map +0 -1
- package/dist/utils/param.d.ts +0 -4
- package/dist/utils/param.js +0 -39
- package/dist/utils/param.js.map +0 -1
- package/dist/utils/url.d.ts +0 -1
- package/dist/utils/url.js +0 -17
- 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
|
|
3
|
+
All notable changes to **woodsportal-client-sdk** are documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
32
|
-
-
|
|
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
|
-
###
|
|
35
|
-
- N/A
|
|
15
|
+
### Changed
|
|
36
16
|
|
|
37
|
-
|
|
38
|
-
-
|
|
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
|
-
###
|
|
41
|
-
- N/A
|
|
24
|
+
### Added
|
|
42
25
|
|
|
43
|
-
|
|
44
|
-
- N/A
|
|
26
|
+
- **CHANGELOG** for release notes.
|
package/LICENSE
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
ISC License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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.
|