@sprucelabs/spruce-test-fixtures 62.0.1 → 62.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/build/.spruce/errors/errors.types.d.ts +27 -30
- package/build/.spruce/errors/options.types.d.ts +2 -2
- package/build/.spruce/errors/spruceTestFixtures/fakeEventError.schema.js +3 -3
- package/build/.spruce/errors/spruceTestFixtures/invalidFixture.schema.js +5 -5
- package/build/.spruce/errors/spruceTestFixtures/invalidScopeRequest.schema.js +5 -10
- package/build/.spruce/errors/spruceTestFixtures/invalidTarget.schema.js +1 -1
- package/build/.spruce/errors/spruceTestFixtures/invalidViewController.schema.js +5 -5
- package/build/.spruce/errors/spruceTestFixtures/notFound.schema.js +1 -1
- package/build/.spruce/errors/spruceTestFixtures/scopeRequirementsNotMet.schema.js +1 -1
- package/build/.spruce/errors/spruceTestFixtures/skillNotFound.schema.js +3 -3
- package/build/.spruce/errors/spruceTestFixtures/unknownViewControllerError.schema.js +5 -5
- package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
- package/build/.spruce/schemas/schemas.types.d.ts +7 -7
- package/build/.spruce/schemas/schemas.types.js +4 -0
- package/build/.spruce/schemas/spruceTestFixtures/v2021_07_19/testRouterEmitPayload.schema.js +7 -9
- package/build/esm/.spruce/errors/errors.types.d.ts +27 -30
- package/build/esm/.spruce/errors/options.types.d.ts +2 -2
- package/build/esm/.spruce/schemas/schemas.types.d.ts +7 -7
- package/build/esm/.spruce/schemas/schemas.types.js +4 -0
- package/build/esm/.spruce/schemas/spruceTestFixtures/v2021_07_19/testRouterEmitPayload.schema.js +7 -9
- package/package.json +22 -24
@@ -2,8 +2,8 @@ import { default as SchemaEntity } from '@sprucelabs/schema';
|
|
2
2
|
import * as SpruceSchema from '@sprucelabs/schema';
|
3
3
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
4
4
|
interface UnknownViewControllerError {
|
5
|
-
id?: string | undefined | null;
|
6
|
-
name?: string | undefined | null;
|
5
|
+
'id'?: string | undefined | null;
|
6
|
+
'name'?: string | undefined | null;
|
7
7
|
}
|
8
8
|
interface UnknownViewControllerErrorSchema extends SpruceSchema.Schema {
|
9
9
|
id: 'unknownViewControllerError';
|
@@ -11,12 +11,12 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
11
11
|
name: 'Unkown view controller error';
|
12
12
|
fields: {
|
13
13
|
/** . */
|
14
|
-
id: {
|
14
|
+
'id': {
|
15
15
|
type: 'text';
|
16
16
|
options: undefined;
|
17
17
|
};
|
18
18
|
/** . */
|
19
|
-
name: {
|
19
|
+
'name': {
|
20
20
|
type: 'text';
|
21
21
|
options: undefined;
|
22
22
|
};
|
@@ -26,7 +26,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
26
26
|
}
|
27
27
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
28
28
|
interface SkillNotFound {
|
29
|
-
slug: string;
|
29
|
+
'slug': string;
|
30
30
|
}
|
31
31
|
interface SkillNotFoundSchema extends SpruceSchema.Schema {
|
32
32
|
id: 'skillNotFound';
|
@@ -34,7 +34,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
34
34
|
name: 'Skill not found';
|
35
35
|
fields: {
|
36
36
|
/** . */
|
37
|
-
slug: {
|
37
|
+
'slug': {
|
38
38
|
type: 'text';
|
39
39
|
isRequired: true;
|
40
40
|
options: undefined;
|
@@ -67,8 +67,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
67
67
|
}
|
68
68
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
69
69
|
interface InvalidViewController {
|
70
|
-
name?: string | undefined | null;
|
71
|
-
id?: string | undefined | null;
|
70
|
+
'name'?: string | undefined | null;
|
71
|
+
'id'?: string | undefined | null;
|
72
72
|
}
|
73
73
|
interface InvalidViewControllerSchema extends SpruceSchema.Schema {
|
74
74
|
id: 'invalidViewController';
|
@@ -76,12 +76,12 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
76
76
|
name: 'Invalid view controller';
|
77
77
|
fields: {
|
78
78
|
/** . */
|
79
|
-
name: {
|
79
|
+
'name': {
|
80
80
|
type: 'text';
|
81
81
|
options: undefined;
|
82
82
|
};
|
83
83
|
/** . */
|
84
|
-
id: {
|
84
|
+
'id': {
|
85
85
|
type: 'text';
|
86
86
|
options: undefined;
|
87
87
|
};
|
@@ -102,8 +102,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
102
102
|
}
|
103
103
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
104
104
|
interface InvalidScopeRequest {
|
105
|
-
flags: string[];
|
106
|
-
attemptedToGet:
|
105
|
+
'flags': string[];
|
106
|
+
'attemptedToGet': ("location" | "organization");
|
107
107
|
}
|
108
108
|
interface InvalidScopeRequestSchema extends SpruceSchema.Schema {
|
109
109
|
id: 'invalidScopeRequest';
|
@@ -111,27 +111,24 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
111
111
|
name: '';
|
112
112
|
fields: {
|
113
113
|
/** . */
|
114
|
-
flags: {
|
114
|
+
'flags': {
|
115
115
|
type: 'text';
|
116
116
|
isRequired: true;
|
117
117
|
isArray: true;
|
118
118
|
options: undefined;
|
119
119
|
};
|
120
120
|
/** . */
|
121
|
-
attemptedToGet: {
|
121
|
+
'attemptedToGet': {
|
122
122
|
type: 'select';
|
123
123
|
isRequired: true;
|
124
124
|
options: {
|
125
|
-
choices: [
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
label: 'Organization';
|
133
|
-
}
|
134
|
-
];
|
125
|
+
choices: [{
|
126
|
+
"value": "location";
|
127
|
+
"label": "Location";
|
128
|
+
}, {
|
129
|
+
"value": "organization";
|
130
|
+
"label": "Organization";
|
131
|
+
}];
|
135
132
|
};
|
136
133
|
};
|
137
134
|
};
|
@@ -140,8 +137,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
140
137
|
}
|
141
138
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
142
139
|
interface InvalidFixture {
|
143
|
-
suppliedName: string;
|
144
|
-
validNames: string[];
|
140
|
+
'suppliedName': string;
|
141
|
+
'validNames': string[];
|
145
142
|
}
|
146
143
|
interface InvalidFixtureSchema extends SpruceSchema.Schema {
|
147
144
|
id: 'invalidFixture';
|
@@ -149,13 +146,13 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
149
146
|
name: 'Invalid factory';
|
150
147
|
fields: {
|
151
148
|
/** . */
|
152
|
-
suppliedName: {
|
149
|
+
'suppliedName': {
|
153
150
|
type: 'text';
|
154
151
|
isRequired: true;
|
155
152
|
options: undefined;
|
156
153
|
};
|
157
154
|
/** . */
|
158
|
-
validNames: {
|
155
|
+
'validNames': {
|
159
156
|
type: 'text';
|
160
157
|
isRequired: true;
|
161
158
|
isArray: true;
|
@@ -167,7 +164,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
167
164
|
}
|
168
165
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
169
166
|
interface FakeEventError {
|
170
|
-
fqen: string;
|
167
|
+
'fqen': string;
|
171
168
|
}
|
172
169
|
interface FakeEventErrorSchema extends SpruceSchema.Schema {
|
173
170
|
id: 'fakeEventError';
|
@@ -175,7 +172,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
175
172
|
name: 'Fake event error';
|
176
173
|
fields: {
|
177
174
|
/** . */
|
178
|
-
fqen: {
|
175
|
+
'fqen': {
|
179
176
|
type: 'text';
|
180
177
|
isRequired: true;
|
181
178
|
options: undefined;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { SpruceErrors } from "./errors.types";
|
2
|
+
import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
|
3
3
|
export interface UnknownViewControllerErrorErrorOptions extends SpruceErrors.SpruceTestFixtures.UnknownViewControllerError, ISpruceErrorOptions {
|
4
4
|
code: 'UNKNOWN_VIEW_CONTROLLER_ERROR';
|
5
5
|
}
|
@@ -7,12 +7,12 @@ const fakeEventErrorSchema = {
|
|
7
7
|
name: 'Fake event error',
|
8
8
|
fields: {
|
9
9
|
/** . */
|
10
|
-
fqen: {
|
10
|
+
'fqen': {
|
11
11
|
type: 'text',
|
12
12
|
isRequired: true,
|
13
|
-
options: undefined
|
13
|
+
options: undefined
|
14
14
|
},
|
15
|
-
}
|
15
|
+
}
|
16
16
|
};
|
17
17
|
schema_1.SchemaRegistry.getInstance().trackSchema(fakeEventErrorSchema);
|
18
18
|
exports.default = fakeEventErrorSchema;
|
@@ -7,19 +7,19 @@ const invalidFixtureSchema = {
|
|
7
7
|
name: 'Invalid factory',
|
8
8
|
fields: {
|
9
9
|
/** . */
|
10
|
-
suppliedName: {
|
10
|
+
'suppliedName': {
|
11
11
|
type: 'text',
|
12
12
|
isRequired: true,
|
13
|
-
options: undefined
|
13
|
+
options: undefined
|
14
14
|
},
|
15
15
|
/** . */
|
16
|
-
validNames: {
|
16
|
+
'validNames': {
|
17
17
|
type: 'text',
|
18
18
|
isRequired: true,
|
19
19
|
isArray: true,
|
20
|
-
options: undefined
|
20
|
+
options: undefined
|
21
21
|
},
|
22
|
-
}
|
22
|
+
}
|
23
23
|
};
|
24
24
|
schema_1.SchemaRegistry.getInstance().trackSchema(invalidFixtureSchema);
|
25
25
|
exports.default = invalidFixtureSchema;
|
@@ -7,24 +7,19 @@ const invalidScopeRequestSchema = {
|
|
7
7
|
name: '',
|
8
8
|
fields: {
|
9
9
|
/** . */
|
10
|
-
flags: {
|
10
|
+
'flags': {
|
11
11
|
type: 'text',
|
12
12
|
isRequired: true,
|
13
13
|
isArray: true,
|
14
|
-
options: undefined
|
14
|
+
options: undefined
|
15
15
|
},
|
16
16
|
/** . */
|
17
|
-
attemptedToGet: {
|
17
|
+
'attemptedToGet': {
|
18
18
|
type: 'select',
|
19
19
|
isRequired: true,
|
20
|
-
options: {
|
21
|
-
choices: [
|
22
|
-
{ value: 'location', label: 'Location' },
|
23
|
-
{ value: 'organization', label: 'Organization' },
|
24
|
-
],
|
25
|
-
},
|
20
|
+
options: { choices: [{ "value": "location", "label": "Location" }, { "value": "organization", "label": "Organization" }], }
|
26
21
|
},
|
27
|
-
}
|
22
|
+
}
|
28
23
|
};
|
29
24
|
schema_1.SchemaRegistry.getInstance().trackSchema(invalidScopeRequestSchema);
|
30
25
|
exports.default = invalidScopeRequestSchema;
|
@@ -7,16 +7,16 @@ const invalidViewControllerSchema = {
|
|
7
7
|
name: 'Invalid view controller',
|
8
8
|
fields: {
|
9
9
|
/** . */
|
10
|
-
name: {
|
10
|
+
'name': {
|
11
11
|
type: 'text',
|
12
|
-
options: undefined
|
12
|
+
options: undefined
|
13
13
|
},
|
14
14
|
/** . */
|
15
|
-
id: {
|
15
|
+
'id': {
|
16
16
|
type: 'text',
|
17
|
-
options: undefined
|
17
|
+
options: undefined
|
18
18
|
},
|
19
|
-
}
|
19
|
+
}
|
20
20
|
};
|
21
21
|
schema_1.SchemaRegistry.getInstance().trackSchema(invalidViewControllerSchema);
|
22
22
|
exports.default = invalidViewControllerSchema;
|
@@ -5,7 +5,7 @@ const scopeRequirementsNotMetSchema = {
|
|
5
5
|
id: 'scopeRequirementsNotMet',
|
6
6
|
namespace: 'SpruceTestFixtures',
|
7
7
|
name: 'scope requirements not met',
|
8
|
-
fields: {}
|
8
|
+
fields: {}
|
9
9
|
};
|
10
10
|
schema_1.SchemaRegistry.getInstance().trackSchema(scopeRequirementsNotMetSchema);
|
11
11
|
exports.default = scopeRequirementsNotMetSchema;
|
@@ -7,12 +7,12 @@ const skillNotFoundSchema = {
|
|
7
7
|
name: 'Skill not found',
|
8
8
|
fields: {
|
9
9
|
/** . */
|
10
|
-
slug: {
|
10
|
+
'slug': {
|
11
11
|
type: 'text',
|
12
12
|
isRequired: true,
|
13
|
-
options: undefined
|
13
|
+
options: undefined
|
14
14
|
},
|
15
|
-
}
|
15
|
+
}
|
16
16
|
};
|
17
17
|
schema_1.SchemaRegistry.getInstance().trackSchema(skillNotFoundSchema);
|
18
18
|
exports.default = skillNotFoundSchema;
|
@@ -7,16 +7,16 @@ const unknownViewControllerErrorSchema = {
|
|
7
7
|
name: 'Unkown view controller error',
|
8
8
|
fields: {
|
9
9
|
/** . */
|
10
|
-
id: {
|
10
|
+
'id': {
|
11
11
|
type: 'text',
|
12
|
-
options: undefined
|
12
|
+
options: undefined
|
13
13
|
},
|
14
14
|
/** . */
|
15
|
-
name: {
|
15
|
+
'name': {
|
16
16
|
type: 'text',
|
17
|
-
options: undefined
|
17
|
+
options: undefined
|
18
18
|
},
|
19
|
-
}
|
19
|
+
}
|
20
20
|
};
|
21
21
|
schema_1.SchemaRegistry.getInstance().trackSchema(unknownViewControllerErrorSchema);
|
22
22
|
exports.default = unknownViewControllerErrorSchema;
|
@@ -1 +1 @@
|
|
1
|
-
export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap
|
1
|
+
export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap } from '@sprucelabs/schema';
|
@@ -1,13 +1,13 @@
|
|
1
1
|
export { SpruceSchemas } from '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types';
|
2
|
-
import * as HeartwoodViewController from '@sprucelabs/heartwood-view-controllers';
|
3
2
|
import { default as SchemaEntity } from '@sprucelabs/schema';
|
4
3
|
import * as SpruceSchema from '@sprucelabs/schema';
|
4
|
+
import * as HeartwoodViewController from "@sprucelabs/heartwood-view-controllers";
|
5
5
|
declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
|
6
6
|
namespace SpruceSchemas.SpruceTestFixtures.v2021_07_19 {
|
7
7
|
interface TestRouterEmitPayload {
|
8
|
-
id: string;
|
9
|
-
vc: HeartwoodViewController.SkillViewController;
|
10
|
-
args?: Record<string, any> | undefined | null;
|
8
|
+
'id': string;
|
9
|
+
'vc': (HeartwoodViewController.SkillViewController);
|
10
|
+
'args'?: (Record<string, any>) | undefined | null;
|
11
11
|
}
|
12
12
|
interface TestRouterEmitPayloadSchema extends SpruceSchema.Schema {
|
13
13
|
id: 'testRouterEmitPayload';
|
@@ -16,13 +16,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
16
16
|
name: 'Test Router Emit payload';
|
17
17
|
fields: {
|
18
18
|
/** . */
|
19
|
-
id: {
|
19
|
+
'id': {
|
20
20
|
type: 'text';
|
21
21
|
isRequired: true;
|
22
22
|
options: undefined;
|
23
23
|
};
|
24
24
|
/** . */
|
25
|
-
vc: {
|
25
|
+
'vc': {
|
26
26
|
type: 'raw';
|
27
27
|
isRequired: true;
|
28
28
|
options: {
|
@@ -30,7 +30,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
30
30
|
};
|
31
31
|
};
|
32
32
|
/** . */
|
33
|
-
args: {
|
33
|
+
'args': {
|
34
34
|
type: 'raw';
|
35
35
|
options: {
|
36
36
|
valueType: `Record<string, any>`;
|
package/build/.spruce/schemas/spruceTestFixtures/v2021_07_19/testRouterEmitPayload.schema.js
CHANGED
@@ -8,25 +8,23 @@ const testRouterEmitPayloadSchema = {
|
|
8
8
|
name: 'Test Router Emit payload',
|
9
9
|
fields: {
|
10
10
|
/** . */
|
11
|
-
id: {
|
11
|
+
'id': {
|
12
12
|
type: 'text',
|
13
13
|
isRequired: true,
|
14
|
-
options: undefined
|
14
|
+
options: undefined
|
15
15
|
},
|
16
16
|
/** . */
|
17
|
-
vc: {
|
17
|
+
'vc': {
|
18
18
|
type: 'raw',
|
19
19
|
isRequired: true,
|
20
|
-
options: {
|
21
|
-
valueType: `HeartwoodViewController.SkillViewController`,
|
22
|
-
},
|
20
|
+
options: { valueType: `HeartwoodViewController.SkillViewController`, }
|
23
21
|
},
|
24
22
|
/** . */
|
25
|
-
args: {
|
23
|
+
'args': {
|
26
24
|
type: 'raw',
|
27
|
-
options: { valueType: `Record<string, any
|
25
|
+
options: { valueType: `Record<string, any>`, }
|
28
26
|
},
|
29
|
-
}
|
27
|
+
}
|
30
28
|
};
|
31
29
|
schema_1.SchemaRegistry.getInstance().trackSchema(testRouterEmitPayloadSchema);
|
32
30
|
exports.default = testRouterEmitPayloadSchema;
|
@@ -2,8 +2,8 @@ import { default as SchemaEntity } from '@sprucelabs/schema';
|
|
2
2
|
import * as SpruceSchema from '@sprucelabs/schema';
|
3
3
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
4
4
|
interface UnknownViewControllerError {
|
5
|
-
id?: string | undefined | null;
|
6
|
-
name?: string | undefined | null;
|
5
|
+
'id'?: string | undefined | null;
|
6
|
+
'name'?: string | undefined | null;
|
7
7
|
}
|
8
8
|
interface UnknownViewControllerErrorSchema extends SpruceSchema.Schema {
|
9
9
|
id: 'unknownViewControllerError';
|
@@ -11,12 +11,12 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
11
11
|
name: 'Unkown view controller error';
|
12
12
|
fields: {
|
13
13
|
/** . */
|
14
|
-
id: {
|
14
|
+
'id': {
|
15
15
|
type: 'text';
|
16
16
|
options: undefined;
|
17
17
|
};
|
18
18
|
/** . */
|
19
|
-
name: {
|
19
|
+
'name': {
|
20
20
|
type: 'text';
|
21
21
|
options: undefined;
|
22
22
|
};
|
@@ -26,7 +26,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
26
26
|
}
|
27
27
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
28
28
|
interface SkillNotFound {
|
29
|
-
slug: string;
|
29
|
+
'slug': string;
|
30
30
|
}
|
31
31
|
interface SkillNotFoundSchema extends SpruceSchema.Schema {
|
32
32
|
id: 'skillNotFound';
|
@@ -34,7 +34,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
34
34
|
name: 'Skill not found';
|
35
35
|
fields: {
|
36
36
|
/** . */
|
37
|
-
slug: {
|
37
|
+
'slug': {
|
38
38
|
type: 'text';
|
39
39
|
isRequired: true;
|
40
40
|
options: undefined;
|
@@ -67,8 +67,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
67
67
|
}
|
68
68
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
69
69
|
interface InvalidViewController {
|
70
|
-
name?: string | undefined | null;
|
71
|
-
id?: string | undefined | null;
|
70
|
+
'name'?: string | undefined | null;
|
71
|
+
'id'?: string | undefined | null;
|
72
72
|
}
|
73
73
|
interface InvalidViewControllerSchema extends SpruceSchema.Schema {
|
74
74
|
id: 'invalidViewController';
|
@@ -76,12 +76,12 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
76
76
|
name: 'Invalid view controller';
|
77
77
|
fields: {
|
78
78
|
/** . */
|
79
|
-
name: {
|
79
|
+
'name': {
|
80
80
|
type: 'text';
|
81
81
|
options: undefined;
|
82
82
|
};
|
83
83
|
/** . */
|
84
|
-
id: {
|
84
|
+
'id': {
|
85
85
|
type: 'text';
|
86
86
|
options: undefined;
|
87
87
|
};
|
@@ -102,8 +102,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
102
102
|
}
|
103
103
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
104
104
|
interface InvalidScopeRequest {
|
105
|
-
flags: string[];
|
106
|
-
attemptedToGet:
|
105
|
+
'flags': string[];
|
106
|
+
'attemptedToGet': ("location" | "organization");
|
107
107
|
}
|
108
108
|
interface InvalidScopeRequestSchema extends SpruceSchema.Schema {
|
109
109
|
id: 'invalidScopeRequest';
|
@@ -111,27 +111,24 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
111
111
|
name: '';
|
112
112
|
fields: {
|
113
113
|
/** . */
|
114
|
-
flags: {
|
114
|
+
'flags': {
|
115
115
|
type: 'text';
|
116
116
|
isRequired: true;
|
117
117
|
isArray: true;
|
118
118
|
options: undefined;
|
119
119
|
};
|
120
120
|
/** . */
|
121
|
-
attemptedToGet: {
|
121
|
+
'attemptedToGet': {
|
122
122
|
type: 'select';
|
123
123
|
isRequired: true;
|
124
124
|
options: {
|
125
|
-
choices: [
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
label: 'Organization';
|
133
|
-
}
|
134
|
-
];
|
125
|
+
choices: [{
|
126
|
+
"value": "location";
|
127
|
+
"label": "Location";
|
128
|
+
}, {
|
129
|
+
"value": "organization";
|
130
|
+
"label": "Organization";
|
131
|
+
}];
|
135
132
|
};
|
136
133
|
};
|
137
134
|
};
|
@@ -140,8 +137,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
140
137
|
}
|
141
138
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
142
139
|
interface InvalidFixture {
|
143
|
-
suppliedName: string;
|
144
|
-
validNames: string[];
|
140
|
+
'suppliedName': string;
|
141
|
+
'validNames': string[];
|
145
142
|
}
|
146
143
|
interface InvalidFixtureSchema extends SpruceSchema.Schema {
|
147
144
|
id: 'invalidFixture';
|
@@ -149,13 +146,13 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
149
146
|
name: 'Invalid factory';
|
150
147
|
fields: {
|
151
148
|
/** . */
|
152
|
-
suppliedName: {
|
149
|
+
'suppliedName': {
|
153
150
|
type: 'text';
|
154
151
|
isRequired: true;
|
155
152
|
options: undefined;
|
156
153
|
};
|
157
154
|
/** . */
|
158
|
-
validNames: {
|
155
|
+
'validNames': {
|
159
156
|
type: 'text';
|
160
157
|
isRequired: true;
|
161
158
|
isArray: true;
|
@@ -167,7 +164,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
167
164
|
}
|
168
165
|
export declare namespace SpruceErrors.SpruceTestFixtures {
|
169
166
|
interface FakeEventError {
|
170
|
-
fqen: string;
|
167
|
+
'fqen': string;
|
171
168
|
}
|
172
169
|
interface FakeEventErrorSchema extends SpruceSchema.Schema {
|
173
170
|
id: 'fakeEventError';
|
@@ -175,7 +172,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
|
|
175
172
|
name: 'Fake event error';
|
176
173
|
fields: {
|
177
174
|
/** . */
|
178
|
-
fqen: {
|
175
|
+
'fqen': {
|
179
176
|
type: 'text';
|
180
177
|
isRequired: true;
|
181
178
|
options: undefined;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { SpruceErrors } from "./errors.types";
|
2
|
+
import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
|
3
3
|
export interface UnknownViewControllerErrorErrorOptions extends SpruceErrors.SpruceTestFixtures.UnknownViewControllerError, ISpruceErrorOptions {
|
4
4
|
code: 'UNKNOWN_VIEW_CONTROLLER_ERROR';
|
5
5
|
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
export { SpruceSchemas } from '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types';
|
2
|
-
import * as HeartwoodViewController from '@sprucelabs/heartwood-view-controllers';
|
3
2
|
import { default as SchemaEntity } from '@sprucelabs/schema';
|
4
3
|
import * as SpruceSchema from '@sprucelabs/schema';
|
4
|
+
import * as HeartwoodViewController from "@sprucelabs/heartwood-view-controllers";
|
5
5
|
declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
|
6
6
|
namespace SpruceSchemas.SpruceTestFixtures.v2021_07_19 {
|
7
7
|
interface TestRouterEmitPayload {
|
8
|
-
id: string;
|
9
|
-
vc: HeartwoodViewController.SkillViewController;
|
10
|
-
args?: Record<string, any> | undefined | null;
|
8
|
+
'id': string;
|
9
|
+
'vc': (HeartwoodViewController.SkillViewController);
|
10
|
+
'args'?: (Record<string, any>) | undefined | null;
|
11
11
|
}
|
12
12
|
interface TestRouterEmitPayloadSchema extends SpruceSchema.Schema {
|
13
13
|
id: 'testRouterEmitPayload';
|
@@ -16,13 +16,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
16
16
|
name: 'Test Router Emit payload';
|
17
17
|
fields: {
|
18
18
|
/** . */
|
19
|
-
id: {
|
19
|
+
'id': {
|
20
20
|
type: 'text';
|
21
21
|
isRequired: true;
|
22
22
|
options: undefined;
|
23
23
|
};
|
24
24
|
/** . */
|
25
|
-
vc: {
|
25
|
+
'vc': {
|
26
26
|
type: 'raw';
|
27
27
|
isRequired: true;
|
28
28
|
options: {
|
@@ -30,7 +30,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
30
30
|
};
|
31
31
|
};
|
32
32
|
/** . */
|
33
|
-
args: {
|
33
|
+
'args': {
|
34
34
|
type: 'raw';
|
35
35
|
options: {
|
36
36
|
valueType: `Record<string, any>`;
|
package/build/esm/.spruce/schemas/spruceTestFixtures/v2021_07_19/testRouterEmitPayload.schema.js
CHANGED
@@ -6,25 +6,23 @@ const testRouterEmitPayloadSchema = {
|
|
6
6
|
name: 'Test Router Emit payload',
|
7
7
|
fields: {
|
8
8
|
/** . */
|
9
|
-
id: {
|
9
|
+
'id': {
|
10
10
|
type: 'text',
|
11
11
|
isRequired: true,
|
12
|
-
options: undefined
|
12
|
+
options: undefined
|
13
13
|
},
|
14
14
|
/** . */
|
15
|
-
vc: {
|
15
|
+
'vc': {
|
16
16
|
type: 'raw',
|
17
17
|
isRequired: true,
|
18
|
-
options: {
|
19
|
-
valueType: `HeartwoodViewController.SkillViewController`,
|
20
|
-
},
|
18
|
+
options: { valueType: `HeartwoodViewController.SkillViewController`, }
|
21
19
|
},
|
22
20
|
/** . */
|
23
|
-
args: {
|
21
|
+
'args': {
|
24
22
|
type: 'raw',
|
25
|
-
options: { valueType: `Record<string, any
|
23
|
+
options: { valueType: `Record<string, any>`, }
|
26
24
|
},
|
27
|
-
}
|
25
|
+
}
|
28
26
|
};
|
29
27
|
SchemaRegistry.getInstance().trackSchema(testRouterEmitPayloadSchema);
|
30
28
|
export default testRouterEmitPayloadSchema;
|
package/package.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
"@sprucelabs/spruce-test-fixtures"
|
14
14
|
]
|
15
15
|
},
|
16
|
-
"version": "62.0.
|
16
|
+
"version": "62.0.3",
|
17
17
|
"files": [
|
18
18
|
"build/**/*",
|
19
19
|
"!build/__tests__",
|
@@ -56,42 +56,40 @@
|
|
56
56
|
"post.watch.build": "yarn run build.copy-files && yarn run build.resolve-paths",
|
57
57
|
"spruce.upgrade": "spruce upgrade",
|
58
58
|
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn run post.watch.build'",
|
59
|
-
"watch.lint": "concurrently 'yarn run lint' \"chokidar 'src/**/*' -c 'yarn run lint.tsc'\"",
|
60
59
|
"watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev",
|
61
60
|
"watch.tsc": "tsc -w",
|
62
61
|
"lint.tsc": "tsc -p . --noEmit"
|
63
62
|
},
|
64
63
|
"dependencies": {
|
65
|
-
"@sprucelabs/data-stores": "^27.0.
|
66
|
-
"@sprucelabs/error": "^6.0.
|
67
|
-
"@sprucelabs/heartwood-view-controllers": "^110.0.
|
68
|
-
"@sprucelabs/mercury-client": "^42.0.
|
69
|
-
"@sprucelabs/mercury-core-events": "^24.0.
|
70
|
-
"@sprucelabs/mercury-event-emitter": "^42.0.
|
71
|
-
"@sprucelabs/schema": "^30.0.
|
72
|
-
"@sprucelabs/spruce-core-schemas": "^40.0.
|
73
|
-
"@sprucelabs/spruce-event-utils": "^40.0.
|
74
|
-
"@sprucelabs/spruce-permission-utils": "^8.0.
|
75
|
-
"@sprucelabs/spruce-skill-booter": "^62.0.
|
76
|
-
"@sprucelabs/spruce-skill-utils": "^31.0.
|
77
|
-
"@sprucelabs/test-utils": "^5.0.
|
64
|
+
"@sprucelabs/data-stores": "^27.0.16",
|
65
|
+
"@sprucelabs/error": "^6.0.13",
|
66
|
+
"@sprucelabs/heartwood-view-controllers": "^110.0.6",
|
67
|
+
"@sprucelabs/mercury-client": "^42.0.13",
|
68
|
+
"@sprucelabs/mercury-core-events": "^24.0.8",
|
69
|
+
"@sprucelabs/mercury-event-emitter": "^42.0.13",
|
70
|
+
"@sprucelabs/schema": "^30.0.17",
|
71
|
+
"@sprucelabs/spruce-core-schemas": "^40.0.13",
|
72
|
+
"@sprucelabs/spruce-event-utils": "^40.0.13",
|
73
|
+
"@sprucelabs/spruce-permission-utils": "^8.0.11",
|
74
|
+
"@sprucelabs/spruce-skill-booter": "^62.0.3",
|
75
|
+
"@sprucelabs/spruce-skill-utils": "^31.0.17",
|
76
|
+
"@sprucelabs/test-utils": "^5.0.12",
|
78
77
|
"dotenv": "^16.4.5",
|
79
78
|
"unique-names-generator": "^4.7.1"
|
80
79
|
},
|
81
80
|
"devDependencies": {
|
82
|
-
"@sprucelabs/esm-postbuild": "^6.0.
|
83
|
-
"@sprucelabs/jest-json-reporter": "^8.0.
|
81
|
+
"@sprucelabs/esm-postbuild": "^6.0.12",
|
82
|
+
"@sprucelabs/jest-json-reporter": "^8.0.15",
|
84
83
|
"@sprucelabs/jest-sheets-reporter": "^3.0.26",
|
85
|
-
"@sprucelabs/mercury-types": "^47.0.
|
86
|
-
"@sprucelabs/resolve-path-aliases": "^2.0.
|
84
|
+
"@sprucelabs/mercury-types": "^47.0.13",
|
85
|
+
"@sprucelabs/resolve-path-aliases": "^2.0.14",
|
87
86
|
"@sprucelabs/semantic-release": "^5.0.1",
|
88
|
-
"@sprucelabs/test": "^9.0.
|
87
|
+
"@sprucelabs/test": "^9.0.10",
|
89
88
|
"@types/node": "17.0.5",
|
90
89
|
"calendar-utils": "^0.10.4",
|
91
90
|
"chokidar-cli": "^3.0.0",
|
92
|
-
"
|
93
|
-
"eslint": "^
|
94
|
-
"eslint-config-spruce": "^11.2.7",
|
91
|
+
"eslint": "^9.1.1",
|
92
|
+
"eslint-config-spruce": "^11.2.14",
|
95
93
|
"jest": "^29.7.0",
|
96
94
|
"jest-circus": "^29.7.0",
|
97
95
|
"prettier": "^3.2.5",
|
@@ -132,5 +130,5 @@
|
|
132
130
|
]
|
133
131
|
]
|
134
132
|
},
|
135
|
-
"gitHead": "
|
133
|
+
"gitHead": "cd2ddfd22a6c237cb6b20f085967f5df56623e78"
|
136
134
|
}
|