@sprucelabs/mercury-types 46.0.300 → 47.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/build/.spruce/errors/errors.types.js +0 -2
- package/build/.spruce/errors/mercury/invalidEventContract.schema.js +1 -1
- package/build/.spruce/errors/options.types.d.ts +2 -2
- package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/eventContract.schema.js +6 -6
- package/build/.spruce/schemas/mercury/v2020_12_25/eventSignature.schema.js +18 -18
- package/build/.spruce/schemas/mercury/v2020_12_25/eventSignaturesByName.schema.js +1 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/feedOptions.schema.js +9 -9
- package/build/.spruce/schemas/mercury/v2020_12_25/permission.schema.js +13 -13
- package/build/.spruce/schemas/mercury/v2020_12_25/permissionContract.schema.js +12 -12
- package/build/.spruce/schemas/mercury/v2020_12_25/permissionDefaults.schema.js +17 -17
- package/build/.spruce/schemas/mercury/v2020_12_25/permissionReference.schema.js +8 -6
- package/build/.spruce/schemas/mercury/v2020_12_25/statusFlags.schema.js +12 -12
- package/build/.spruce/schemas/schemas.types.d.ts +87 -88
- package/build/.spruce/schemas/schemas.types.js +0 -2
- package/build/errors/SpruceError.d.ts +1 -1
- package/build/errors/SpruceError.js +2 -2
- package/build/esm/.spruce/errors/errors.types.js +0 -2
- package/build/esm/.spruce/errors/options.types.d.ts +2 -2
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/eventContract.schema.js +6 -6
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/eventSignature.schema.js +18 -18
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/eventSignaturesByName.schema.js +1 -1
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/feedOptions.schema.js +9 -9
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/permission.schema.js +13 -13
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/permissionContract.schema.js +12 -12
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/permissionDefaults.schema.js +17 -17
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/permissionReference.schema.js +8 -6
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/statusFlags.schema.js +12 -12
- package/build/esm/.spruce/schemas/schemas.types.d.ts +87 -88
- package/build/esm/.spruce/schemas/schemas.types.js +0 -2
- package/build/esm/errors/SpruceError.d.ts +1 -1
- package/build/esm/schemas/v2020_12_25/eventContract.builder.js +6 -2
- package/build/esm/types/mercury.types.d.ts +2 -4
- package/build/schemas/v2020_12_25/eventContract.builder.js +6 -2
- package/build/schemas/v2020_12_25/permissionContract.builder.js +25 -29
- package/build/types/mercury.types.d.ts +2 -4
- package/package.json +18 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AbstractSpruceError from '@sprucelabs/error';
|
|
2
2
|
import { Schema, SchemaRequiredFieldNames, SchemaValues } from '@sprucelabs/schema';
|
|
3
|
-
import { SpruceSchemas } from
|
|
3
|
+
import { SpruceSchemas } from './../.spruce/schemas/schemas.types';
|
|
4
4
|
import { authorizerStatuses } from '../constants';
|
|
5
5
|
export type EventContract = SpruceSchemas.Mercury.v2020_12_25.EventContract;
|
|
6
6
|
export type EventSignature = SpruceSchemas.Mercury.v2020_12_25.EventSignature;
|
|
@@ -44,9 +44,7 @@ export interface SkillEventSignatures extends EventSignaturesByName {
|
|
|
44
44
|
export interface SkillEventContract extends EventContract {
|
|
45
45
|
eventSignatures: RemoveStringKeys<SkillEventSignatures>;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
[contractId: string]: string[];
|
|
49
|
-
}
|
|
47
|
+
type PCM = Record<string, string[]>;
|
|
50
48
|
export interface PermissionContractMap extends PCM {
|
|
51
49
|
}
|
|
52
50
|
export type PermissionContractId = keyof RemoveStringKeys<PermissionContractMap>;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "47.0.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"build"
|
|
9
9
|
],
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"clean.build": "rm -rf build/",
|
|
47
47
|
"clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock",
|
|
48
48
|
"clean.dist": "rm -rf build/__tests__ build/esm/__tests__",
|
|
49
|
-
"fix.lint": "eslint --fix --cache
|
|
50
|
-
"lint": "eslint --cache
|
|
51
|
-
"rebuild": "yarn clean.all && yarn && yarn build.dev",
|
|
49
|
+
"fix.lint": "eslint --fix --cache",
|
|
50
|
+
"lint": "eslint --cache",
|
|
51
|
+
"rebuild": "yarn clean.all && yarn install && yarn build.dev",
|
|
52
52
|
"release": "semantic-release",
|
|
53
53
|
"test": "jest",
|
|
54
54
|
"update.dependencies": "yarn clean.dependencies && yarn",
|
|
@@ -61,32 +61,32 @@
|
|
|
61
61
|
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn post.watch.build'",
|
|
62
62
|
"lint.tsc": "tsc -p . --noEmit",
|
|
63
63
|
"resolve-paths.lint": "yarn build.resolve-paths ; yarn lint",
|
|
64
|
-
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev"
|
|
64
|
+
"watch.rebuild": "yarn clean.all && yarn install && yarn watch.build.dev"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@sprucelabs/error": "^
|
|
68
|
-
"@sprucelabs/schema": "^
|
|
69
|
-
"@sprucelabs/spruce-core-schemas": "^
|
|
67
|
+
"@sprucelabs/error": "^6.0.2",
|
|
68
|
+
"@sprucelabs/schema": "^30.0.3",
|
|
69
|
+
"@sprucelabs/spruce-core-schemas": "^40.0.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@sprucelabs/esm-postbuild": "^
|
|
73
|
-
"@sprucelabs/jest-json-reporter": "^
|
|
74
|
-
"@sprucelabs/resolve-path-aliases": "^
|
|
75
|
-
"@sprucelabs/semantic-release": "^
|
|
76
|
-
"@sprucelabs/test": "^
|
|
77
|
-
"@sprucelabs/test-utils": "^
|
|
78
|
-
"@types/node": "^20.12.
|
|
72
|
+
"@sprucelabs/esm-postbuild": "^6.0.2",
|
|
73
|
+
"@sprucelabs/jest-json-reporter": "^8.0.0",
|
|
74
|
+
"@sprucelabs/resolve-path-aliases": "^2.0.4",
|
|
75
|
+
"@sprucelabs/semantic-release": "^5.0.1",
|
|
76
|
+
"@sprucelabs/test": "^9.0.3",
|
|
77
|
+
"@sprucelabs/test-utils": "^5.0.2",
|
|
78
|
+
"@types/node": "^20.12.7",
|
|
79
79
|
"chokidar-cli": "^3.0.0",
|
|
80
80
|
"concurrently": "^8.2.2",
|
|
81
|
-
"eslint": "^
|
|
82
|
-
"eslint-config-spruce": "^
|
|
81
|
+
"eslint": "^9.0.0",
|
|
82
|
+
"eslint-config-spruce": "^11.2.7",
|
|
83
83
|
"jest": "^29.7.0",
|
|
84
84
|
"jest-circus": "^29.7.0",
|
|
85
85
|
"prettier": "^3.2.5",
|
|
86
86
|
"ts-node": "^10.9.2",
|
|
87
87
|
"tsc-watch": "^6.2.0",
|
|
88
88
|
"tsconfig-paths": "^4.2.0",
|
|
89
|
-
"typescript": "^5.4.
|
|
89
|
+
"typescript": "^5.4.5"
|
|
90
90
|
},
|
|
91
91
|
"jest": {
|
|
92
92
|
"maxWorkers": 4,
|