@sprucelabs/mercury-chunking-emitter 2.2.1 → 2.2.2
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/schemas/mercuryChunkingEmitter/v2023_10_21/chunkPaging.schema.js +0 -2
- package/build/chunkingEmitter/chunkFieldDefinition.js +18 -5
- package/build/esm/chunkingEmitter/chunkFieldDefinition.js +18 -2
- package/package.json +1 -1
- package/build/esm/.spruce/schemas/mercuryChunkingEmitter/v2023_10_21/chunkPaging.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercuryChunkingEmitter/v2023_10_21/chunkPaging.schema.js +0 -23
- package/build/esm/.spruce/schemas/schemas.types.d.ts +0 -33
- package/build/esm/.spruce/schemas/schemas.types.js +0 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema_1 = require("@sprucelabs/schema");
|
|
4
3
|
const chunkPagingSchema = {
|
|
5
4
|
id: 'chunkPaging',
|
|
6
5
|
version: 'v2023_10_21',
|
|
@@ -21,5 +20,4 @@ const chunkPagingSchema = {
|
|
|
21
20
|
},
|
|
22
21
|
}
|
|
23
22
|
};
|
|
24
|
-
schema_1.SchemaRegistry.getInstance().trackSchema(chunkPagingSchema);
|
|
25
23
|
exports.default = chunkPagingSchema;
|
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const chunkPaging_schema_1 = __importDefault(require("./../.spruce/schemas/mercuryChunkingEmitter/v2023_10_21/chunkPaging.schema"));
|
|
7
3
|
function chunkFieldDefinition() {
|
|
8
4
|
return {
|
|
9
5
|
type: 'schema',
|
|
10
6
|
isRequired: true,
|
|
11
7
|
options: {
|
|
12
|
-
schema:
|
|
8
|
+
schema: {
|
|
9
|
+
id: 'chunkPaging',
|
|
10
|
+
version: 'v2023_10_21',
|
|
11
|
+
namespace: 'MercuryChunkingEmitter',
|
|
12
|
+
name: 'Chunk Paging',
|
|
13
|
+
fields: {
|
|
14
|
+
total: {
|
|
15
|
+
type: 'number',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
options: undefined,
|
|
18
|
+
},
|
|
19
|
+
current: {
|
|
20
|
+
type: 'number',
|
|
21
|
+
isRequired: true,
|
|
22
|
+
options: undefined,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
13
26
|
},
|
|
14
27
|
};
|
|
15
28
|
}
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import chunkPagingSchema from './../.spruce/schemas/mercuryChunkingEmitter/v2023_10_21/chunkPaging.schema.js';
|
|
2
1
|
export default function chunkFieldDefinition() {
|
|
3
2
|
return {
|
|
4
3
|
type: 'schema',
|
|
5
4
|
isRequired: true,
|
|
6
5
|
options: {
|
|
7
|
-
schema:
|
|
6
|
+
schema: {
|
|
7
|
+
id: 'chunkPaging',
|
|
8
|
+
version: 'v2023_10_21',
|
|
9
|
+
namespace: 'MercuryChunkingEmitter',
|
|
10
|
+
name: 'Chunk Paging',
|
|
11
|
+
fields: {
|
|
12
|
+
total: {
|
|
13
|
+
type: 'number',
|
|
14
|
+
isRequired: true,
|
|
15
|
+
options: undefined,
|
|
16
|
+
},
|
|
17
|
+
current: {
|
|
18
|
+
type: 'number',
|
|
19
|
+
isRequired: true,
|
|
20
|
+
options: undefined,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
8
24
|
},
|
|
9
25
|
};
|
|
10
26
|
}
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
const chunkPagingSchema = {
|
|
3
|
-
id: 'chunkPaging',
|
|
4
|
-
version: 'v2023_10_21',
|
|
5
|
-
namespace: 'MercuryChunkingEmitter',
|
|
6
|
-
name: 'Chunk Paging',
|
|
7
|
-
fields: {
|
|
8
|
-
/** . */
|
|
9
|
-
'total': {
|
|
10
|
-
type: 'number',
|
|
11
|
-
isRequired: true,
|
|
12
|
-
options: undefined
|
|
13
|
-
},
|
|
14
|
-
/** . */
|
|
15
|
-
'current': {
|
|
16
|
-
type: 'number',
|
|
17
|
-
isRequired: true,
|
|
18
|
-
options: undefined
|
|
19
|
-
},
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
SchemaRegistry.getInstance().trackSchema(chunkPagingSchema);
|
|
23
|
-
export default chunkPagingSchema;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export { SpruceSchemas } from '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types';
|
|
2
|
-
import { default as SchemaEntity } from '@sprucelabs/schema';
|
|
3
|
-
import * as SpruceSchema from '@sprucelabs/schema';
|
|
4
|
-
declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
|
|
5
|
-
namespace SpruceSchemas.MercuryChunkingEmitter.v2023_10_21 {
|
|
6
|
-
interface ChunkPaging {
|
|
7
|
-
'total': number;
|
|
8
|
-
'current': number;
|
|
9
|
-
}
|
|
10
|
-
interface ChunkPagingSchema extends SpruceSchema.Schema {
|
|
11
|
-
id: 'chunkPaging';
|
|
12
|
-
version: 'v2023_10_21';
|
|
13
|
-
namespace: 'MercuryChunkingEmitter';
|
|
14
|
-
name: 'Chunk Paging';
|
|
15
|
-
fields: {
|
|
16
|
-
/** . */
|
|
17
|
-
'total': {
|
|
18
|
-
type: 'number';
|
|
19
|
-
isRequired: true;
|
|
20
|
-
options: undefined;
|
|
21
|
-
};
|
|
22
|
-
/** . */
|
|
23
|
-
'current': {
|
|
24
|
-
type: 'number';
|
|
25
|
-
isRequired: true;
|
|
26
|
-
options: undefined;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
interface ChunkPagingEntity extends SchemaEntity<SpruceSchemas.MercuryChunkingEmitter.v2023_10_21.ChunkPagingSchema> {
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|