@webiny/api-headless-cms-es-tasks 6.3.0 → 6.4.0-beta.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/index.js +7 -9
- package/index.js.map +1 -1
- package/package.json +18 -18
- package/tasks/MockDataCreator/MockDataCreator.js +62 -88
- package/tasks/MockDataCreator/MockDataCreator.js.map +1 -1
- package/tasks/MockDataCreator/mockData.js +1332 -1186
- package/tasks/MockDataCreator/mockData.js.map +1 -1
- package/tasks/MockDataCreator/types.js +0 -3
- package/tasks/MockDataCreatorTask.js +22 -21
- package/tasks/MockDataCreatorTask.js.map +1 -1
- package/tasks/MockDataManager/MockDataManager.js +72 -90
- package/tasks/MockDataManager/MockDataManager.js.map +1 -1
- package/tasks/MockDataManager/calculateAmounts.js +26 -51
- package/tasks/MockDataManager/calculateAmounts.js.map +1 -1
- package/tasks/MockDataManager/calculateSeconds.js +8 -11
- package/tasks/MockDataManager/calculateSeconds.js.map +1 -1
- package/tasks/MockDataManager/constants.js +2 -1
- package/tasks/MockDataManager/constants.js.map +1 -1
- package/tasks/MockDataManager/createModelAndGroup.js +23 -33
- package/tasks/MockDataManager/createModelAndGroup.js.map +1 -1
- package/tasks/MockDataManager/group.js +11 -12
- package/tasks/MockDataManager/group.js.map +1 -1
- package/tasks/MockDataManager/model.js +6290 -4693
- package/tasks/MockDataManager/model.js.map +1 -1
- package/tasks/MockDataManager/types.js +0 -3
- package/tasks/MockDataManagerTask.js +45 -44
- package/tasks/MockDataManagerTask.js.map +1 -1
- package/types.js +0 -3
- package/utils/createIndex.js +21 -33
- package/utils/createIndex.js.map +1 -1
- package/utils/disableIndexing.js +19 -23
- package/utils/disableIndexing.js.map +1 -1
- package/utils/enableIndexing.js +19 -23
- package/utils/enableIndexing.js.map +1 -1
- package/utils/index.js +0 -2
- package/tasks/MockDataCreator/types.js.map +0 -1
- package/tasks/MockDataManager/types.js.map +0 -1
- package/types.js.map +0 -1
- package/utils/index.js.map +0 -1
|
@@ -2,54 +2,55 @@ import { CARS_MODEL_ID } from "./MockDataManager/constants.js";
|
|
|
2
2
|
import { enableIndexing } from "../utils/index.js";
|
|
3
3
|
import { TaskDefinition } from "@webiny/api-core/features/task/TaskDefinition/index.js";
|
|
4
4
|
import { CmsContext } from "@webiny/api-headless-cms/features/shared/abstractions.js";
|
|
5
|
-
|
|
5
|
+
const MOCK_DATA_MANAGER_TASK_ID = "mockDataManager";
|
|
6
6
|
class MockDataManagerTask {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
constructor(context){
|
|
8
|
+
this.id = MOCK_DATA_MANAGER_TASK_ID;
|
|
9
|
+
this.title = "Mock Data Manager";
|
|
10
|
+
this.maxIterations = 500;
|
|
11
|
+
this.selfCleanup = "always";
|
|
12
|
+
this.context = context;
|
|
13
|
+
}
|
|
14
|
+
async run(params) {
|
|
15
|
+
const { MockDataManager } = await import("./MockDataManager/MockDataManager.js");
|
|
16
|
+
const carsMock = new MockDataManager(this.context);
|
|
17
|
+
try {
|
|
18
|
+
return await carsMock.execute({
|
|
19
|
+
...params,
|
|
20
|
+
input: {
|
|
21
|
+
...params.input,
|
|
22
|
+
modelId: CARS_MODEL_ID
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
} catch (ex) {
|
|
26
|
+
return params.controller.response.error(ex);
|
|
25
27
|
}
|
|
26
|
-
});
|
|
27
|
-
} catch (ex) {
|
|
28
|
-
return params.controller.response.error(ex);
|
|
29
28
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
}
|
|
29
|
+
async onError() {
|
|
30
|
+
await enableIndexing({
|
|
31
|
+
client: this.context.opensearch,
|
|
32
|
+
model: {
|
|
33
|
+
modelId: CARS_MODEL_ID,
|
|
34
|
+
tenant: "root"
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async onAbort() {
|
|
39
|
+
await enableIndexing({
|
|
40
|
+
client: this.context.opensearch,
|
|
41
|
+
model: {
|
|
42
|
+
modelId: CARS_MODEL_ID,
|
|
43
|
+
tenant: "root"
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
49
47
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
const MockDataManagerTaskDefinition = TaskDefinition.createImplementation({
|
|
49
|
+
implementation: MockDataManagerTask,
|
|
50
|
+
dependencies: [
|
|
51
|
+
CmsContext
|
|
52
|
+
]
|
|
53
53
|
});
|
|
54
|
+
export { MOCK_DATA_MANAGER_TASK_ID, MockDataManagerTaskDefinition };
|
|
54
55
|
|
|
55
56
|
//# sourceMappingURL=MockDataManagerTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"tasks/MockDataManagerTask.js","sources":["../../src/tasks/MockDataManagerTask.ts"],"sourcesContent":["import type { Context } from \"~/types.js\";\nimport type {\n IMockDataManagerInput,\n IMockDataManagerOutput\n} from \"~/tasks/MockDataManager/types.js\";\nimport { CARS_MODEL_ID } from \"~/tasks/MockDataManager/constants.js\";\nimport { enableIndexing } from \"~/utils/index.js\";\nimport { TaskDefinition } from \"@webiny/api-core/features/task/TaskDefinition/index.js\";\nimport { CmsContext } from \"@webiny/api-headless-cms/features/shared/abstractions.js\";\n\nexport const MOCK_DATA_MANAGER_TASK_ID = \"mockDataManager\";\n\nclass MockDataManagerTask implements TaskDefinition.Interface<\n IMockDataManagerInput,\n IMockDataManagerOutput\n> {\n id = MOCK_DATA_MANAGER_TASK_ID;\n title = \"Mock Data Manager\";\n maxIterations = 500;\n\n selfCleanup = \"always\" as const;\n\n private readonly context: Context;\n\n constructor(context: CmsContext.Interface) {\n this.context = context as Context;\n }\n\n async run(params: TaskDefinition.RunParams<IMockDataManagerInput, IMockDataManagerOutput>) {\n const { MockDataManager } = await import(\n /* webpackChunkName: \"MockDataManager\" */ \"./MockDataManager/MockDataManager.js\"\n );\n\n const carsMock = new MockDataManager<IMockDataManagerInput, IMockDataManagerOutput>(\n this.context as Context\n );\n\n try {\n return await carsMock.execute({\n ...params,\n input: {\n ...params.input,\n modelId: CARS_MODEL_ID\n }\n });\n } catch (ex) {\n return params.controller.response.error(ex);\n }\n }\n async onError() {\n await enableIndexing({\n client: this.context.opensearch,\n model: {\n modelId: CARS_MODEL_ID,\n tenant: \"root\"\n }\n });\n }\n\n async onAbort() {\n await enableIndexing({\n client: this.context.opensearch,\n model: {\n modelId: CARS_MODEL_ID,\n tenant: \"root\"\n }\n });\n }\n}\n\nexport const MockDataManagerTaskDefinition = TaskDefinition.createImplementation({\n implementation: MockDataManagerTask,\n dependencies: [CmsContext]\n});\n"],"names":["MOCK_DATA_MANAGER_TASK_ID","MockDataManagerTask","context","params","MockDataManager","carsMock","CARS_MODEL_ID","ex","enableIndexing","MockDataManagerTaskDefinition","TaskDefinition","CmsContext"],"mappings":";;;;AAUO,MAAMA,4BAA4B;AAEzC,MAAMC;IAYF,YAAYC,OAA6B,CAAE;aAR3C,EAAE,GAAGF;aACL,KAAK,GAAG;aACR,aAAa,GAAG;aAEhB,WAAW,GAAG;QAKV,IAAI,CAAC,OAAO,GAAGE;IACnB;IAEA,MAAM,IAAIC,MAA+E,EAAE;QACvF,MAAM,EAAEC,eAAe,EAAE,GAAG,MAAM,MAAM,CAAN;QAIlC,MAAMC,WAAW,IAAID,gBACjB,IAAI,CAAC,OAAO;QAGhB,IAAI;YACA,OAAO,MAAMC,SAAS,OAAO,CAAC;gBAC1B,GAAGF,MAAM;gBACT,OAAO;oBACH,GAAGA,OAAO,KAAK;oBACf,SAASG;gBACb;YACJ;QACJ,EAAE,OAAOC,IAAI;YACT,OAAOJ,OAAO,UAAU,CAAC,QAAQ,CAAC,KAAK,CAACI;QAC5C;IACJ;IACA,MAAM,UAAU;QACZ,MAAMC,eAAe;YACjB,QAAQ,IAAI,CAAC,OAAO,CAAC,UAAU;YAC/B,OAAO;gBACH,SAASF;gBACT,QAAQ;YACZ;QACJ;IACJ;IAEA,MAAM,UAAU;QACZ,MAAME,eAAe;YACjB,QAAQ,IAAI,CAAC,OAAO,CAAC,UAAU;YAC/B,OAAO;gBACH,SAASF;gBACT,QAAQ;YACZ;QACJ;IACJ;AACJ;AAEO,MAAMG,gCAAgCC,eAAe,oBAAoB,CAAC;IAC7E,gBAAgBT;IAChB,cAAc;QAACU;KAAW;AAC9B"}
|
package/types.js
CHANGED
package/utils/createIndex.js
CHANGED
|
@@ -1,38 +1,26 @@
|
|
|
1
1
|
import { WebinyError } from "@webiny/error";
|
|
2
2
|
import { configurations } from "@webiny/api-headless-cms-ddb-es/configurations.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (usable.length === 0) {
|
|
24
|
-
/**
|
|
25
|
-
* Should not happen in production as we have a default index configuration, but it can happen in tests if the test setup is not correct.
|
|
26
|
-
*/
|
|
27
|
-
throw new WebinyError("Could not find a single usable CmsEntryOpenSearchIndex.", "OPENSEARCH_INDEX_TEMPLATE_ERROR");
|
|
28
|
-
}
|
|
29
|
-
const config = usable[usable.length - 1];
|
|
30
|
-
await client.indices.create({
|
|
31
|
-
index,
|
|
32
|
-
body: {
|
|
33
|
-
...config.body
|
|
34
|
-
}
|
|
35
|
-
});
|
|
3
|
+
const createIndex = async (params)=>{
|
|
4
|
+
const { client, model, indexConfigs } = params;
|
|
5
|
+
const { index } = configurations.es({
|
|
6
|
+
model
|
|
7
|
+
});
|
|
8
|
+
const result = await client.indices.exists({
|
|
9
|
+
index
|
|
10
|
+
});
|
|
11
|
+
if (result.body) return;
|
|
12
|
+
const usable = indexConfigs.filter((c)=>c.canUse({
|
|
13
|
+
model
|
|
14
|
+
}));
|
|
15
|
+
if (0 === usable.length) throw new WebinyError("Could not find a single usable CmsEntryOpenSearchIndex.", "OPENSEARCH_INDEX_TEMPLATE_ERROR");
|
|
16
|
+
const config = usable[usable.length - 1];
|
|
17
|
+
await client.indices.create({
|
|
18
|
+
index,
|
|
19
|
+
body: {
|
|
20
|
+
...config.body
|
|
21
|
+
}
|
|
22
|
+
});
|
|
36
23
|
};
|
|
24
|
+
export { createIndex };
|
|
37
25
|
|
|
38
26
|
//# sourceMappingURL=createIndex.js.map
|
package/utils/createIndex.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"utils/createIndex.js","sources":["../../src/utils/createIndex.ts"],"sourcesContent":["import type { Client } from \"@webiny/api-opensearch\";\nimport { WebinyError } from \"@webiny/error\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport { configurations } from \"@webiny/api-headless-cms-ddb-es/configurations.js\";\nimport type { CmsEntryOpenSearchIndex } from \"@webiny/api-headless-cms-ddb-es/exports/api/cms/opensearch.js\";\n\nexport interface ICreateIndexParams {\n client: Client;\n model: Pick<CmsModel, \"modelId\" | \"tenant\" | \"group\">;\n indexConfigs: CmsEntryOpenSearchIndex.Interface[];\n}\n\nexport const createIndex = async (params: ICreateIndexParams): Promise<void> => {\n const { client, model, indexConfigs } = params;\n\n const { index } = configurations.es({\n model\n });\n\n const result = await client.indices.exists({\n index\n });\n if (result.body) {\n return;\n }\n\n const usable = indexConfigs.filter(c => c.canUse({ model }));\n if (usable.length === 0) {\n /**\n * Should not happen in production as we have a default index configuration, but it can happen in tests if the test setup is not correct.\n */\n throw new WebinyError(\n \"Could not find a single usable CmsEntryOpenSearchIndex.\",\n \"OPENSEARCH_INDEX_TEMPLATE_ERROR\"\n );\n }\n const config = usable[usable.length - 1];\n\n await client.indices.create({\n index,\n body: {\n ...config.body\n }\n });\n};\n"],"names":["createIndex","params","client","model","indexConfigs","index","configurations","result","usable","c","WebinyError","config"],"mappings":";;AAYO,MAAMA,cAAc,OAAOC;IAC9B,MAAM,EAAEC,MAAM,EAAEC,KAAK,EAAEC,YAAY,EAAE,GAAGH;IAExC,MAAM,EAAEI,KAAK,EAAE,GAAGC,eAAe,EAAE,CAAC;QAChCH;IACJ;IAEA,MAAMI,SAAS,MAAML,OAAO,OAAO,CAAC,MAAM,CAAC;QACvCG;IACJ;IACA,IAAIE,OAAO,IAAI,EACX;IAGJ,MAAMC,SAASJ,aAAa,MAAM,CAACK,CAAAA,IAAKA,EAAE,MAAM,CAAC;YAAEN;QAAM;IACzD,IAAIK,AAAkB,MAAlBA,OAAO,MAAM,EAIb,MAAM,IAAIE,YACN,2DACA;IAGR,MAAMC,SAASH,MAAM,CAACA,OAAO,MAAM,GAAG,EAAE;IAExC,MAAMN,OAAO,OAAO,CAAC,MAAM,CAAC;QACxBG;QACA,MAAM;YACF,GAAGM,OAAO,IAAI;QAClB;IACJ;AACJ"}
|
package/utils/disableIndexing.js
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import { configurations } from "@webiny/api-headless-cms-ddb-es/configurations.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} = params;
|
|
7
|
-
const {
|
|
8
|
-
index
|
|
9
|
-
} = configurations.es({
|
|
10
|
-
model
|
|
11
|
-
});
|
|
12
|
-
try {
|
|
13
|
-
await client.indices.putSettings({
|
|
14
|
-
index,
|
|
15
|
-
body: {
|
|
16
|
-
index: {
|
|
17
|
-
number_of_replicas: 0,
|
|
18
|
-
refresh_interval: "-1"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
2
|
+
const disableIndexing = async (params)=>{
|
|
3
|
+
const { client, model } = params;
|
|
4
|
+
const { index } = configurations.es({
|
|
5
|
+
model
|
|
21
6
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
7
|
+
try {
|
|
8
|
+
await client.indices.putSettings({
|
|
9
|
+
index,
|
|
10
|
+
body: {
|
|
11
|
+
index: {
|
|
12
|
+
number_of_replicas: 0,
|
|
13
|
+
refresh_interval: "-1"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
} catch (ex) {
|
|
18
|
+
console.error(ex);
|
|
19
|
+
throw ex;
|
|
20
|
+
}
|
|
26
21
|
};
|
|
22
|
+
export { disableIndexing };
|
|
27
23
|
|
|
28
24
|
//# sourceMappingURL=disableIndexing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"utils/disableIndexing.js","sources":["../../src/utils/disableIndexing.ts"],"sourcesContent":["import type { Client } from \"@webiny/api-opensearch\";\nimport { configurations } from \"@webiny/api-headless-cms-ddb-es/configurations.js\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\nexport interface IDisableIndexingParams {\n client: Client;\n model: Pick<CmsModel, \"modelId\" | \"tenant\">;\n}\n\nexport const disableIndexing = async (params: IDisableIndexingParams) => {\n const { client, model } = params;\n\n const { index } = configurations.es({\n model\n });\n\n try {\n await client.indices.putSettings({\n index,\n body: {\n index: {\n number_of_replicas: 0,\n refresh_interval: \"-1\"\n }\n }\n });\n } catch (ex) {\n console.error(ex);\n throw ex;\n }\n};\n"],"names":["disableIndexing","params","client","model","index","configurations","ex","console"],"mappings":";AASO,MAAMA,kBAAkB,OAAOC;IAClC,MAAM,EAAEC,MAAM,EAAEC,KAAK,EAAE,GAAGF;IAE1B,MAAM,EAAEG,KAAK,EAAE,GAAGC,eAAe,EAAE,CAAC;QAChCF;IACJ;IAEA,IAAI;QACA,MAAMD,OAAO,OAAO,CAAC,WAAW,CAAC;YAC7BE;YACA,MAAM;gBACF,OAAO;oBACH,oBAAoB;oBACpB,kBAAkB;gBACtB;YACJ;QACJ;IACJ,EAAE,OAAOE,IAAI;QACTC,QAAQ,KAAK,CAACD;QACd,MAAMA;IACV;AACJ"}
|
package/utils/enableIndexing.js
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import { configurations } from "@webiny/api-headless-cms-ddb-es/configurations.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} = params;
|
|
7
|
-
const {
|
|
8
|
-
index
|
|
9
|
-
} = configurations.es({
|
|
10
|
-
model
|
|
11
|
-
});
|
|
12
|
-
try {
|
|
13
|
-
await client.indices.putSettings({
|
|
14
|
-
index,
|
|
15
|
-
body: {
|
|
16
|
-
index: {
|
|
17
|
-
number_of_replicas: 1,
|
|
18
|
-
refresh_interval: "1s"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
2
|
+
const enableIndexing = async (params)=>{
|
|
3
|
+
const { client, model } = params;
|
|
4
|
+
const { index } = configurations.es({
|
|
5
|
+
model
|
|
21
6
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
7
|
+
try {
|
|
8
|
+
await client.indices.putSettings({
|
|
9
|
+
index,
|
|
10
|
+
body: {
|
|
11
|
+
index: {
|
|
12
|
+
number_of_replicas: 1,
|
|
13
|
+
refresh_interval: "1s"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
} catch (ex) {
|
|
18
|
+
console.error(ex);
|
|
19
|
+
throw ex;
|
|
20
|
+
}
|
|
26
21
|
};
|
|
22
|
+
export { enableIndexing };
|
|
27
23
|
|
|
28
24
|
//# sourceMappingURL=enableIndexing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"utils/enableIndexing.js","sources":["../../src/utils/enableIndexing.ts"],"sourcesContent":["import type { Client } from \"@webiny/api-opensearch\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport { configurations } from \"@webiny/api-headless-cms-ddb-es/configurations.js\";\n\ninterface IEnableIndexingParams {\n client: Client;\n model: Pick<CmsModel, \"modelId\" | \"tenant\">;\n}\n\nexport const enableIndexing = async (params: IEnableIndexingParams) => {\n const { client, model } = params;\n const { index } = configurations.es({\n model\n });\n try {\n await client.indices.putSettings({\n index,\n body: {\n index: {\n number_of_replicas: 1,\n refresh_interval: \"1s\"\n }\n }\n });\n } catch (ex) {\n console.error(ex);\n throw ex;\n }\n};\n"],"names":["enableIndexing","params","client","model","index","configurations","ex","console"],"mappings":";AASO,MAAMA,iBAAiB,OAAOC;IACjC,MAAM,EAAEC,MAAM,EAAEC,KAAK,EAAE,GAAGF;IAC1B,MAAM,EAAEG,KAAK,EAAE,GAAGC,eAAe,EAAE,CAAC;QAChCF;IACJ;IACA,IAAI;QACA,MAAMD,OAAO,OAAO,CAAC,WAAW,CAAC;YAC7BE;YACA,MAAM;gBACF,OAAO;oBACH,oBAAoB;oBACpB,kBAAkB;gBACtB;YACJ;QACJ;IACJ,EAAE,OAAOE,IAAI;QACTC,QAAQ,KAAK,CAACD;QACd,MAAMA;IACV;AACJ"}
|
package/utils/index.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { TaskDefinition } from \"@webiny/api-core/features/task/TaskDefinition/index.js\";\n\nexport interface IMockDataCreatorInput extends TaskDefinition.TaskInput {\n totalAmount: number;\n createdAmount: number;\n}\n\nexport type IMockDataCreatorOutput = TaskDefinition.TaskOutput;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { TaskDefinition } from \"@webiny/api-core/features/task/TaskDefinition/index.js\";\n\nexport interface IMockDataManagerInput extends TaskDefinition.TaskInput {\n modelId: string;\n amount: number;\n seconds?: number;\n amountOfTasks?: number;\n amountOfRecords?: number;\n overwrite?: boolean;\n}\n\nexport type IMockDataManagerOutput = TaskDefinition.TaskOutput;\n"],"mappings":"","ignoreList":[]}
|
package/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { OpenSearchContext } from \"@webiny/api-opensearch/types.js\";\nimport type { CmsContext } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { Context as TasksContext } from \"@webiny/tasks/types.js\";\n\nexport type * from \"./tasks/MockDataManager/types.js\";\n\nexport interface Context extends CmsContext, OpenSearchContext, TasksContext {}\n"],"mappings":"","ignoreList":[]}
|
package/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./createIndex.js\";\nexport * from \"./disableIndexing.js\";\nexport * from \"./enableIndexing.js\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
|