@scenario-labs/sdk 0.3.0 → 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/CHANGELOG.md +22 -0
- package/README.md +40 -6
- package/client.d.mts +34 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +34 -14
- package/client.d.ts.map +1 -1
- package/client.js +10 -0
- package/client.js.map +1 -1
- package/client.mjs +10 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +153 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +153 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +276 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +263 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +2 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +7 -1
- package/index.js.map +1 -1
- package/index.mjs +2 -0
- package/index.mjs.map +1 -1
- package/lib/models.d.mts +34 -2
- package/lib/models.d.mts.map +1 -1
- package/lib/models.d.ts +34 -2
- package/lib/models.d.ts.map +1 -1
- package/lib/models.js +39 -2
- package/lib/models.js.map +1 -1
- package/lib/models.mjs +37 -1
- package/lib/models.mjs.map +1 -1
- package/lib/scenario.d.mts +2 -0
- package/lib/scenario.d.mts.map +1 -1
- package/lib/scenario.d.ts +2 -0
- package/lib/scenario.d.ts.map +1 -1
- package/lib/scenario.js +2 -0
- package/lib/scenario.js.map +1 -1
- package/lib/scenario.mjs +2 -0
- package/lib/scenario.mjs.map +1 -1
- package/lib/upload.d.mts +89 -0
- package/lib/upload.d.mts.map +1 -0
- package/lib/upload.d.ts +89 -0
- package/lib/upload.d.ts.map +1 -0
- package/lib/upload.js +193 -0
- package/lib/upload.js.map +1 -0
- package/lib/upload.mjs +156 -0
- package/lib/upload.mjs.map +1 -0
- package/lib/workflow.d.mts +13 -2
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts +13 -2
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.js +17 -4
- package/lib/workflow.js.map +1 -1
- package/lib/workflow.mjs +17 -4
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_import_validator.d.mts +40 -0
- package/lib/workflow_import_validator.d.mts.map +1 -0
- package/lib/workflow_import_validator.d.ts +40 -0
- package/lib/workflow_import_validator.d.ts.map +1 -0
- package/lib/workflow_import_validator.js +69 -0
- package/lib/workflow_import_validator.js.map +1 -0
- package/lib/workflow_import_validator.mjs +64 -0
- package/lib/workflow_import_validator.mjs.map +1 -0
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/assets/assets.d.mts +623 -646
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +623 -646
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +3 -2
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +3 -2
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/index.d.mts +1 -1
- package/resources/assets/index.d.mts.map +1 -1
- package/resources/assets/index.d.ts +1 -1
- package/resources/assets/index.d.ts.map +1 -1
- package/resources/assets/index.js.map +1 -1
- package/resources/assets/index.mjs.map +1 -1
- package/resources/collections/collections.d.mts +38 -49
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts +38 -49
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js +5 -1
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs +5 -1
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/index.d.mts +1 -1
- package/resources/collections/index.d.mts.map +1 -1
- package/resources/collections/index.d.ts +1 -1
- package/resources/collections/index.d.ts.map +1 -1
- package/resources/collections/index.js.map +1 -1
- package/resources/collections/index.mjs.map +1 -1
- package/resources/index.d.mts +7 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +369 -380
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +369 -380
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +2 -1
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +2 -1
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +839 -850
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +839 -850
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +2 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +2 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/search.d.mts +215 -295
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +215 -295
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +9 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +9 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts +23 -35
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts +23 -35
- package/resources/tags.d.ts.map +1 -1
- package/resources/tags.js +2 -1
- package/resources/tags.js.map +1 -1
- package/resources/tags.mjs +2 -1
- package/resources/tags.mjs.map +1 -1
- package/resources/workflows.d.mts +688 -704
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +688 -704
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +5 -1
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +5 -1
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +103 -2
- package/src/core/pagination.ts +497 -0
- package/src/index.ts +8 -0
- package/src/lib/models.ts +62 -2
- package/src/lib/scenario.ts +2 -0
- package/src/lib/upload.ts +250 -0
- package/src/lib/workflow.ts +29 -4
- package/src/lib/workflow_import_validator.ts +104 -0
- package/src/pagination.ts +2 -0
- package/src/resources/assets/assets.ts +887 -902
- package/src/resources/assets/index.ts +2 -0
- package/src/resources/collections/collections.ts +45 -54
- package/src/resources/collections/index.ts +1 -0
- package/src/resources/index.ts +9 -1
- package/src/resources/jobs.ts +613 -622
- package/src/resources/models/index.ts +1 -0
- package/src/resources/models/models.ts +1052 -1064
- package/src/resources/search.ts +239 -327
- package/src/resources/tags.ts +32 -39
- package/src/resources/workflows.ts +850 -864
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare class WorkflowImportError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export type WorkflowEditorNodeType = 'text' | 'asset' | 'model' | 'llm' | 'transformText' | 'splitText' | 'ifElse' | 'groupItems' | 'sliceAssets' | 'forEach' | 'forEachEnd' | 'stickyNote';
|
|
5
|
+
export declare const VALID_EDITOR_NODE_TYPES: readonly WorkflowEditorNodeType[];
|
|
6
|
+
export interface WorkflowExportData {
|
|
7
|
+
version: '1.0';
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
editorInfo: {
|
|
11
|
+
nodes: Array<{
|
|
12
|
+
type: WorkflowEditorNodeType;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}>;
|
|
15
|
+
edges: Array<{
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}>;
|
|
18
|
+
inputKeys: string[];
|
|
19
|
+
};
|
|
20
|
+
inputs: unknown[];
|
|
21
|
+
tagSet: string[];
|
|
22
|
+
uiConfig?: object;
|
|
23
|
+
exportedAt: string;
|
|
24
|
+
exportedBy: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Validates a workflow export payload (e.g. from a JSON file import).
|
|
28
|
+
*
|
|
29
|
+
* Throws a `WorkflowImportError` with a human-readable message on the first
|
|
30
|
+
* violation found. Returns the validated data cast to `WorkflowExportData`.
|
|
31
|
+
*
|
|
32
|
+
* Checks performed:
|
|
33
|
+
* 1. Data is a non-null object
|
|
34
|
+
* 2. `version` field is present and equals "1.0"
|
|
35
|
+
* 3. `editorInfo` has non-empty `nodes` and `edges` arrays
|
|
36
|
+
* 4. Each node's `type` is a recognized editor node type
|
|
37
|
+
* 5. `inputs` is an array
|
|
38
|
+
*/
|
|
39
|
+
export declare function validateEditorInfo(data: unknown): WorkflowExportData;
|
|
40
|
+
//# sourceMappingURL=workflow_import_validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow_import_validator.d.ts","sourceRoot":"","sources":["../src/lib/workflow_import_validator.ts"],"names":[],"mappings":"AAAA,qBAAa,mBAAoB,SAAQ,KAAK;gBAChC,OAAO,EAAE,MAAM;CAI5B;AAED,MAAM,MAAM,sBAAsB,GAC9B,MAAM,GACN,OAAO,GACP,OAAO,GACP,KAAK,GACL,eAAe,GACf,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,aAAa,GACb,SAAS,GACT,YAAY,GACZ,YAAY,CAAC;AAEjB,eAAO,MAAM,uBAAuB,EAAE,SAAS,sBAAsB,EAapE,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,KAAK,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE;QACV,KAAK,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,sBAAsB,CAAC;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC,CAAC;QACvE,KAAK,EAAE,KAAK,CAAC;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC,CAAC;QACzC,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,kBAAkB,CAsCpE"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VALID_EDITOR_NODE_TYPES = exports.WorkflowImportError = void 0;
|
|
4
|
+
exports.validateEditorInfo = validateEditorInfo;
|
|
5
|
+
class WorkflowImportError extends Error {
|
|
6
|
+
constructor(message) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.name = 'WorkflowImportError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.WorkflowImportError = WorkflowImportError;
|
|
12
|
+
exports.VALID_EDITOR_NODE_TYPES = [
|
|
13
|
+
'text',
|
|
14
|
+
'asset',
|
|
15
|
+
'model',
|
|
16
|
+
'llm',
|
|
17
|
+
'transformText',
|
|
18
|
+
'splitText',
|
|
19
|
+
'ifElse',
|
|
20
|
+
'groupItems',
|
|
21
|
+
'sliceAssets',
|
|
22
|
+
'forEach',
|
|
23
|
+
'forEachEnd',
|
|
24
|
+
'stickyNote',
|
|
25
|
+
];
|
|
26
|
+
/**
|
|
27
|
+
* Validates a workflow export payload (e.g. from a JSON file import).
|
|
28
|
+
*
|
|
29
|
+
* Throws a `WorkflowImportError` with a human-readable message on the first
|
|
30
|
+
* violation found. Returns the validated data cast to `WorkflowExportData`.
|
|
31
|
+
*
|
|
32
|
+
* Checks performed:
|
|
33
|
+
* 1. Data is a non-null object
|
|
34
|
+
* 2. `version` field is present and equals "1.0"
|
|
35
|
+
* 3. `editorInfo` has non-empty `nodes` and `edges` arrays
|
|
36
|
+
* 4. Each node's `type` is a recognized editor node type
|
|
37
|
+
* 5. `inputs` is an array
|
|
38
|
+
*/
|
|
39
|
+
function validateEditorInfo(data) {
|
|
40
|
+
if (typeof data !== 'object' || data === null) {
|
|
41
|
+
throw new WorkflowImportError('Invalid JSON format');
|
|
42
|
+
}
|
|
43
|
+
const workflow = data;
|
|
44
|
+
if (!workflow.version) {
|
|
45
|
+
throw new WorkflowImportError('Missing version field');
|
|
46
|
+
}
|
|
47
|
+
if (workflow.version !== '1.0') {
|
|
48
|
+
throw new WorkflowImportError(`Unsupported version: ${workflow.version}`);
|
|
49
|
+
}
|
|
50
|
+
if (!workflow.editorInfo || !workflow.editorInfo.nodes || !workflow.editorInfo.edges) {
|
|
51
|
+
throw new WorkflowImportError('Missing editorInfo structure');
|
|
52
|
+
}
|
|
53
|
+
if (!Array.isArray(workflow.editorInfo.nodes)) {
|
|
54
|
+
throw new WorkflowImportError('Invalid nodes array');
|
|
55
|
+
}
|
|
56
|
+
if (!Array.isArray(workflow.editorInfo.edges)) {
|
|
57
|
+
throw new WorkflowImportError('Invalid edges array');
|
|
58
|
+
}
|
|
59
|
+
if (!workflow.inputs || !Array.isArray(workflow.inputs)) {
|
|
60
|
+
throw new WorkflowImportError('Invalid inputs array');
|
|
61
|
+
}
|
|
62
|
+
for (const node of workflow.editorInfo.nodes) {
|
|
63
|
+
if (!exports.VALID_EDITOR_NODE_TYPES.includes(node.type)) {
|
|
64
|
+
throw new WorkflowImportError(`Invalid node type: ${node.type}`);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return workflow;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=workflow_import_validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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BAAmB,CAAC,qBAAqB,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QAC7C,IAAI,CAAE,+BAA6C,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACxE,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,OAAO,QAA8B,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export class WorkflowImportError extends Error {
|
|
2
|
+
constructor(message) {
|
|
3
|
+
super(message);
|
|
4
|
+
this.name = 'WorkflowImportError';
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export const VALID_EDITOR_NODE_TYPES = [
|
|
8
|
+
'text',
|
|
9
|
+
'asset',
|
|
10
|
+
'model',
|
|
11
|
+
'llm',
|
|
12
|
+
'transformText',
|
|
13
|
+
'splitText',
|
|
14
|
+
'ifElse',
|
|
15
|
+
'groupItems',
|
|
16
|
+
'sliceAssets',
|
|
17
|
+
'forEach',
|
|
18
|
+
'forEachEnd',
|
|
19
|
+
'stickyNote',
|
|
20
|
+
];
|
|
21
|
+
/**
|
|
22
|
+
* Validates a workflow export payload (e.g. from a JSON file import).
|
|
23
|
+
*
|
|
24
|
+
* Throws a `WorkflowImportError` with a human-readable message on the first
|
|
25
|
+
* violation found. Returns the validated data cast to `WorkflowExportData`.
|
|
26
|
+
*
|
|
27
|
+
* Checks performed:
|
|
28
|
+
* 1. Data is a non-null object
|
|
29
|
+
* 2. `version` field is present and equals "1.0"
|
|
30
|
+
* 3. `editorInfo` has non-empty `nodes` and `edges` arrays
|
|
31
|
+
* 4. Each node's `type` is a recognized editor node type
|
|
32
|
+
* 5. `inputs` is an array
|
|
33
|
+
*/
|
|
34
|
+
export function validateEditorInfo(data) {
|
|
35
|
+
if (typeof data !== 'object' || data === null) {
|
|
36
|
+
throw new WorkflowImportError('Invalid JSON format');
|
|
37
|
+
}
|
|
38
|
+
const workflow = data;
|
|
39
|
+
if (!workflow.version) {
|
|
40
|
+
throw new WorkflowImportError('Missing version field');
|
|
41
|
+
}
|
|
42
|
+
if (workflow.version !== '1.0') {
|
|
43
|
+
throw new WorkflowImportError(`Unsupported version: ${workflow.version}`);
|
|
44
|
+
}
|
|
45
|
+
if (!workflow.editorInfo || !workflow.editorInfo.nodes || !workflow.editorInfo.edges) {
|
|
46
|
+
throw new WorkflowImportError('Missing editorInfo structure');
|
|
47
|
+
}
|
|
48
|
+
if (!Array.isArray(workflow.editorInfo.nodes)) {
|
|
49
|
+
throw new WorkflowImportError('Invalid nodes array');
|
|
50
|
+
}
|
|
51
|
+
if (!Array.isArray(workflow.editorInfo.edges)) {
|
|
52
|
+
throw new WorkflowImportError('Invalid edges array');
|
|
53
|
+
}
|
|
54
|
+
if (!workflow.inputs || !Array.isArray(workflow.inputs)) {
|
|
55
|
+
throw new WorkflowImportError('Invalid inputs array');
|
|
56
|
+
}
|
|
57
|
+
for (const node of workflow.editorInfo.nodes) {
|
|
58
|
+
if (!VALID_EDITOR_NODE_TYPES.includes(node.type)) {
|
|
59
|
+
throw new WorkflowImportError(`Invalid node type: ${node.type}`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return workflow;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=workflow_import_validator.mj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AAK,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QAC7C,IAAI,CAAE,uBAA6C,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACxE,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,OAAO,QAA8B,CAAC;AACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scenario-labs/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The official TypeScript library for the Scenario API",
|
|
5
5
|
"author": "Scenario <support@scenario.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -91,6 +91,16 @@
|
|
|
91
91
|
"import": "./lib/*.mjs",
|
|
92
92
|
"require": "./lib/*.js"
|
|
93
93
|
},
|
|
94
|
+
"./pagination": {
|
|
95
|
+
"import": "./pagination.mjs",
|
|
96
|
+
"require": "./pagination.js"
|
|
97
|
+
},
|
|
98
|
+
"./pagination.js": {
|
|
99
|
+
"default": "./pagination.js"
|
|
100
|
+
},
|
|
101
|
+
"./pagination.mjs": {
|
|
102
|
+
"default": "./pagination.mjs"
|
|
103
|
+
},
|
|
94
104
|
"./resource": {
|
|
95
105
|
"import": "./resource.mjs",
|
|
96
106
|
"require": "./resource.js"
|
package/pagination.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.mts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|
package/pagination.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|
package/pagination.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/pagination instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/pagination.js"), exports);
|
|
6
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,+DAAkC"}
|
package/pagination.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|