@webiny/api-scheduler 0.0.0-unstable.61c048f412 → 0.0.0-unstable.6f45466a1d
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.
|
@@ -2,10 +2,7 @@ import { ModelFactory } from "@webiny/api-headless-cms/features/modelBuilder/ind
|
|
|
2
2
|
import { SCHEDULE_MODEL_ID } from "../constants.js";
|
|
3
3
|
class SchedulePrivateModelImpl {
|
|
4
4
|
async execute(builder) {
|
|
5
|
-
return [builder.private({
|
|
6
|
-
modelId: SCHEDULE_MODEL_ID,
|
|
7
|
-
name: "Webiny CMS Schedule"
|
|
8
|
-
}).fields(fields => ({
|
|
5
|
+
return [builder.private().modelId(SCHEDULE_MODEL_ID).name("Webiny CMS Schedule").fields(fields => ({
|
|
9
6
|
namespace: fields.text().label("Namespace"),
|
|
10
7
|
actionType: fields.text().label("Action Type"),
|
|
11
8
|
targetId: fields.text().label("Target ID"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ModelFactory","SCHEDULE_MODEL_ID","SchedulePrivateModelImpl","execute","builder","private","modelId","name","fields","namespace","text","label","actionType","targetId","scheduledBy","object","id","displayName","type","scheduledFor","datetime","title","error","payload","json","SchedulePrivateModel","createImplementation","implementation","dependencies"],"sources":["SchedulePrivateModel.ts"],"sourcesContent":["import { ModelFactory } from \"@webiny/api-headless-cms/features/modelBuilder/index.js\";\nimport { SCHEDULE_MODEL_ID } from \"~/constants.js\";\n\nclass SchedulePrivateModelImpl implements ModelFactory.Interface {\n public async execute(builder: ModelFactory.Builder) {\n return [\n builder\n .private(
|
|
1
|
+
{"version":3,"names":["ModelFactory","SCHEDULE_MODEL_ID","SchedulePrivateModelImpl","execute","builder","private","modelId","name","fields","namespace","text","label","actionType","targetId","scheduledBy","object","id","displayName","type","scheduledFor","datetime","title","error","payload","json","SchedulePrivateModel","createImplementation","implementation","dependencies"],"sources":["SchedulePrivateModel.ts"],"sourcesContent":["import { ModelFactory } from \"@webiny/api-headless-cms/features/modelBuilder/index.js\";\nimport { SCHEDULE_MODEL_ID } from \"~/constants.js\";\n\nclass SchedulePrivateModelImpl implements ModelFactory.Interface {\n public async execute(builder: ModelFactory.Builder) {\n return [\n builder\n .private()\n .modelId(SCHEDULE_MODEL_ID)\n .name(\"Webiny CMS Schedule\")\n .fields(fields => ({\n namespace: fields.text().label(\"Namespace\"),\n actionType: fields.text().label(\"Action Type\"),\n targetId: fields.text().label(\"Target ID\"),\n scheduledBy: fields\n .object()\n .label(\"Scheduled By\")\n .fields(fields => ({\n id: fields.text().label(\"Identity ID\"),\n displayName: fields.text().label(\"Display Name\"),\n type: fields.text().label(\"Type\")\n })),\n scheduledFor: fields.datetime().label(\"Scheduled For\"),\n title: fields.text().label(\"Title\"),\n error: fields.text().label(\"Error\"),\n payload: fields.json().label(\"Payload\")\n }))\n ];\n }\n}\n\nexport const SchedulePrivateModel = ModelFactory.createImplementation({\n implementation: SchedulePrivateModelImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,yDAAyD;AACtF,SAASC,iBAAiB;AAE1B,MAAMC,wBAAwB,CAAmC;EAC7D,MAAaC,OAAOA,CAACC,OAA6B,EAAE;IAChD,OAAO,CACHA,OAAO,CACFC,OAAO,CAAC,CAAC,CACTC,OAAO,CAACL,iBAAiB,CAAC,CAC1BM,IAAI,CAAC,qBAAqB,CAAC,CAC3BC,MAAM,CAACA,MAAM,KAAK;MACfC,SAAS,EAAED,MAAM,CAACE,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,WAAW,CAAC;MAC3CC,UAAU,EAAEJ,MAAM,CAACE,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,aAAa,CAAC;MAC9CE,QAAQ,EAAEL,MAAM,CAACE,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,WAAW,CAAC;MAC1CG,WAAW,EAAEN,MAAM,CACdO,MAAM,CAAC,CAAC,CACRJ,KAAK,CAAC,cAAc,CAAC,CACrBH,MAAM,CAACA,MAAM,KAAK;QACfQ,EAAE,EAAER,MAAM,CAACE,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,aAAa,CAAC;QACtCM,WAAW,EAAET,MAAM,CAACE,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,cAAc,CAAC;QAChDO,IAAI,EAAEV,MAAM,CAACE,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,MAAM;MACpC,CAAC,CAAC,CAAC;MACPQ,YAAY,EAAEX,MAAM,CAACY,QAAQ,CAAC,CAAC,CAACT,KAAK,CAAC,eAAe,CAAC;MACtDU,KAAK,EAAEb,MAAM,CAACE,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,OAAO,CAAC;MACnCW,KAAK,EAAEd,MAAM,CAACE,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,OAAO,CAAC;MACnCY,OAAO,EAAEf,MAAM,CAACgB,IAAI,CAAC,CAAC,CAACb,KAAK,CAAC,SAAS;IAC1C,CAAC,CAAC,CAAC,CACV;EACL;AACJ;AAEA,OAAO,MAAMc,oBAAoB,GAAGzB,YAAY,CAAC0B,oBAAoB,CAAC;EAClEC,cAAc,EAAEzB,wBAAwB;EACxC0B,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-scheduler",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.6f45466a1d",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -23,24 +23,24 @@
|
|
|
23
23
|
".": "./index.js"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@webiny/api": "0.0.0-unstable.
|
|
27
|
-
"@webiny/api-core": "0.0.0-unstable.
|
|
28
|
-
"@webiny/api-headless-cms": "0.0.0-unstable.
|
|
29
|
-
"@webiny/aws-sdk": "0.0.0-unstable.
|
|
30
|
-
"@webiny/error": "0.0.0-unstable.
|
|
31
|
-
"@webiny/feature": "0.0.0-unstable.
|
|
32
|
-
"@webiny/handler-graphql": "0.0.0-unstable.
|
|
33
|
-
"@webiny/plugins": "0.0.0-unstable.
|
|
34
|
-
"@webiny/utils": "0.0.0-unstable.
|
|
26
|
+
"@webiny/api": "0.0.0-unstable.6f45466a1d",
|
|
27
|
+
"@webiny/api-core": "0.0.0-unstable.6f45466a1d",
|
|
28
|
+
"@webiny/api-headless-cms": "0.0.0-unstable.6f45466a1d",
|
|
29
|
+
"@webiny/aws-sdk": "0.0.0-unstable.6f45466a1d",
|
|
30
|
+
"@webiny/error": "0.0.0-unstable.6f45466a1d",
|
|
31
|
+
"@webiny/feature": "0.0.0-unstable.6f45466a1d",
|
|
32
|
+
"@webiny/handler-graphql": "0.0.0-unstable.6f45466a1d",
|
|
33
|
+
"@webiny/plugins": "0.0.0-unstable.6f45466a1d",
|
|
34
|
+
"@webiny/utils": "0.0.0-unstable.6f45466a1d",
|
|
35
35
|
"zod": "3.25.76"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@webiny/build-tools": "0.0.0-unstable.
|
|
39
|
-
"@webiny/db-dynamodb": "0.0.0-unstable.
|
|
40
|
-
"@webiny/handler": "0.0.0-unstable.
|
|
41
|
-
"@webiny/handler-aws": "0.0.0-unstable.
|
|
42
|
-
"@webiny/project-utils": "0.0.0-unstable.
|
|
43
|
-
"@webiny/wcp": "0.0.0-unstable.
|
|
38
|
+
"@webiny/build-tools": "0.0.0-unstable.6f45466a1d",
|
|
39
|
+
"@webiny/db-dynamodb": "0.0.0-unstable.6f45466a1d",
|
|
40
|
+
"@webiny/handler": "0.0.0-unstable.6f45466a1d",
|
|
41
|
+
"@webiny/handler-aws": "0.0.0-unstable.6f45466a1d",
|
|
42
|
+
"@webiny/project-utils": "0.0.0-unstable.6f45466a1d",
|
|
43
|
+
"@webiny/wcp": "0.0.0-unstable.6f45466a1d",
|
|
44
44
|
"aws-sdk-client-mock": "4.1.0",
|
|
45
45
|
"jest-dynalite": "3.6.1",
|
|
46
46
|
"rimraf": "6.1.2",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"access": "public",
|
|
52
52
|
"directory": "dist"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "6f45466a1d9fb94f6156923501eb90ac303b81a5"
|
|
55
55
|
}
|