@lokalise/maestro-nextgen-tenant-lib 1.0.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/LICENSE.md ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2025 Lokalise, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # ✨ maestro-nextgen-tenant-lib
2
+
3
+ This library provides shared objects, types and zod schemas for NextGen tenant to work with Maestro. This includes, but is not limited to:
4
+ - contracts for NextGen APIs in Maestro;
5
+ - schemas for NextGen events in Maestro.
6
+
7
+ # 🏃‍♀️ Getting Started
8
+
9
+ Install all dependencies:
10
+
11
+ ```shell
12
+ npm install
13
+ ```
14
+
15
+ Build the library:
16
+
17
+ ```shell
18
+ npm run build
19
+ ```
20
+
21
+ Run all tests:
22
+
23
+ ```shell
24
+ npm run test
25
+ ```
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const TASK_CREATED_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
3
+ taskId: z.ZodGUID;
4
+ }, z.core.$strip>;
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod/v4';
2
+ export const TASK_CREATED_EVENT_PAYLOAD_SCHEMA = z.object({
3
+ taskId: z.guid(),
4
+ }); // TODO: this is just to set up the lib, should be extended in https://lokalise.atlassian.net/browse/MET-993
5
+ //# sourceMappingURL=tasks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../src/event-schemas/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE;CACjB,CAAC,CAAA,CAAC,4GAA4G"}
@@ -0,0 +1 @@
1
+ export * from './event-schemas/tasks.js';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './event-schemas/tasks.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@lokalise/maestro-nextgen-tenant-lib",
3
+ "version": "1.0.0",
4
+ "license": "Apache-2.0",
5
+ "homepage": "https://github.com/lokalise/maestro",
6
+ "description": "This library provides objects, types and zod schemas for NextGen tenant to work with Maestro",
7
+ "author": "",
8
+ "bugs": {
9
+ "url": "https://github.com/lokalise/maestro/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git://github.com/lokalise/maestro.git"
14
+ },
15
+ "files": ["dist"],
16
+ "main": "./dist/index.js",
17
+ "type": "module",
18
+ "exports": {
19
+ ".": "./dist/index.js",
20
+ "./package.json": "./package.json"
21
+ },
22
+ "scripts": {
23
+ "build": "rimraf dist && tsc --project tsconfig.build.json",
24
+ "build:watch": "rimraf dist && tsc --project tsconfig.build.json --watch",
25
+ "test": "vitest",
26
+ "test:coverage": "vitest --coverage",
27
+ "test:ci": "npm run lint && npm run test:coverage",
28
+ "test:update-snapshots": "vitest -u",
29
+ "lint": "biome check . && tsc",
30
+ "lint:fix": "biome check --write",
31
+ "version": "auto-changelog -p && git add CHANGELOG.md",
32
+ "prepublishOnly": "npm run build",
33
+ "package-version": "echo $npm_package_version"
34
+ },
35
+ "peerDependencies": {
36
+ "@lokalise/maestro-common": "^5.0.0",
37
+ "zod": ">=3.25.76"
38
+ },
39
+ "devDependencies": {
40
+ "@biomejs/biome": "^1.9.4",
41
+ "@lokalise/biome-config": "^2.0.0",
42
+ "@lokalise/maestro-common": "*",
43
+ "@lokalise/tsconfig": "~1.3.0",
44
+ "@types/node": "^24.1.0",
45
+ "@vitest/coverage-v8": "^3.1.4",
46
+ "auto-changelog": "^2.5.0",
47
+ "rimraf": "^6.0.1",
48
+ "tslib": "^2.8.1",
49
+ "typescript": "^5.8.3",
50
+ "vitest": "^3.2.4",
51
+ "zod": "^3.25.76"
52
+ }
53
+ }