@sprucelabs/mercury-chunking-emitter 1.0.4
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/.circleci/config.yml +71 -0
- package/.eslintignore +3 -0
- package/.eslintrc.js +3 -0
- package/.githooks/pre-push +17 -0
- package/.nvmrc +1 -0
- package/.vscode/launch.json +58 -0
- package/.vscode/settings.json +70 -0
- package/.vscode/tasks.json +112 -0
- package/CHANGELOG.md +16 -0
- package/README.md +24 -0
- package/package.json +84 -0
- package/release.config.js +7 -0
- package/src/.spruce/features/permission.plugin.ts +1 -0
- package/src/.spruce/permissions/permissions.types.ts +9 -0
- package/src/.spruce/schemas/chunkingEmitter/v2023_10_21/chunkPaging.schema.ts +29 -0
- package/src/.spruce/schemas/fields/fieldClassMap.ts +6 -0
- package/src/.spruce/schemas/fields/fields.types.ts +1 -0
- package/src/.spruce/schemas/schemas.types.ts +52 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/choice.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/link.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/location.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/message.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/organization.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/person.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/role.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/skill.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.ts +1 -0
- package/src/.spruce/settings.json +14 -0
- package/src/__tests__/behavioral/ChunkingEmitter.test.ts +290 -0
- package/src/__tests__/behavioral/TestingChunkingEmitter.test.ts +163 -0
- package/src/__tests__/support/AbstractChunkingEmitterTest.ts +54 -0
- package/src/chunkingEmitter/ChunkingEmitter.ts +107 -0
- package/src/chunkingEmitter/MockChunkingEmitter.ts +84 -0
- package/src/chunkingEmitter/chunkFieldDefinition.ts +12 -0
- package/src/index.ts +3 -0
- package/src/schemas/v2023_10_21/chunkPaging.builder.ts +16 -0
- package/tsconfig.dist.json +36 -0
- package/tsconfig.json +40 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { buildSchema } from '@sprucelabs/schema'
|
|
2
|
+
|
|
3
|
+
export default buildSchema({
|
|
4
|
+
id: 'chunkPaging',
|
|
5
|
+
name: 'Chunk Paging',
|
|
6
|
+
fields: {
|
|
7
|
+
total: {
|
|
8
|
+
type: 'number',
|
|
9
|
+
isRequired: true,
|
|
10
|
+
},
|
|
11
|
+
current: {
|
|
12
|
+
type: 'number',
|
|
13
|
+
isRequired: true,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
})
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "es2015",
|
|
4
|
+
"target": "es6",
|
|
5
|
+
"lib": [
|
|
6
|
+
"es2015",
|
|
7
|
+
"dom"
|
|
8
|
+
],
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"moduleResolution": "node",
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"noImplicitAny": true,
|
|
13
|
+
"forceConsistentCasingInFileNames": true,
|
|
14
|
+
"noImplicitReturns": true,
|
|
15
|
+
"strict": true,
|
|
16
|
+
"noUnusedLocals": true,
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"sourceMap": false,
|
|
19
|
+
"outDir": "./build",
|
|
20
|
+
"baseUrl": "src",
|
|
21
|
+
"experimentalDecorators": true,
|
|
22
|
+
"skipLibCheck": true,
|
|
23
|
+
"paths": {
|
|
24
|
+
"#spruce/*": [".spruce/*"]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"include": [
|
|
28
|
+
"./*.ts",
|
|
29
|
+
"./**/*.ts"
|
|
30
|
+
],
|
|
31
|
+
"exclude": [
|
|
32
|
+
"**/node_modules/*",
|
|
33
|
+
"build/*",
|
|
34
|
+
"esm/*"
|
|
35
|
+
]
|
|
36
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"skipLibCheck": true,
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"target": "ES2017",
|
|
7
|
+
"lib": [
|
|
8
|
+
"DOM",
|
|
9
|
+
"es2017",
|
|
10
|
+
"ES2020"
|
|
11
|
+
],
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"noImplicitAny": true,
|
|
14
|
+
"allowJs": true,
|
|
15
|
+
"forceConsistentCasingInFileNames": true,
|
|
16
|
+
"noImplicitReturns": true,
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"moduleResolution": "node",
|
|
21
|
+
"sourceMap": false,
|
|
22
|
+
"outDir": "build",
|
|
23
|
+
"baseUrl": "src",
|
|
24
|
+
"experimentalDecorators": true,
|
|
25
|
+
"paths": {
|
|
26
|
+
"#spruce/*": [
|
|
27
|
+
".spruce/*"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"include": [
|
|
32
|
+
"./src/*.ts",
|
|
33
|
+
"./src/**/*.ts",
|
|
34
|
+
"./src/.spruce/**/*"
|
|
35
|
+
],
|
|
36
|
+
"exclude": [
|
|
37
|
+
"build",
|
|
38
|
+
"esm"
|
|
39
|
+
]
|
|
40
|
+
}
|