@webiny/api-headless-cms-scheduler 0.0.0-unstable.06b2ede40f → 0.0.0-unstable.15c0a8dfc8
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/graphql/schema.d.ts +6 -6
- package/index.d.ts +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/package.json +16 -16
package/graphql/schema.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare const listScheduleSchema: zod.ZodObject<{
|
|
|
49
49
|
}, "strip", zod.ZodTypeAny, {
|
|
50
50
|
modelId: string;
|
|
51
51
|
sort?: (`${string}_ASC` | `${string}_DESC`)[] | undefined;
|
|
52
|
+
limit?: number | undefined;
|
|
52
53
|
after?: string | undefined;
|
|
53
54
|
where?: {
|
|
54
55
|
type?: ScheduleType | undefined;
|
|
@@ -61,10 +62,10 @@ export declare const listScheduleSchema: zod.ZodObject<{
|
|
|
61
62
|
title_contains?: string | undefined;
|
|
62
63
|
title_not_contains?: string | undefined;
|
|
63
64
|
} | undefined;
|
|
64
|
-
limit?: number | undefined;
|
|
65
65
|
}, {
|
|
66
66
|
modelId: string;
|
|
67
67
|
sort?: string[] | undefined;
|
|
68
|
+
limit?: number | undefined;
|
|
68
69
|
after?: string | undefined;
|
|
69
70
|
where?: {
|
|
70
71
|
type?: ScheduleType | undefined;
|
|
@@ -77,7 +78,6 @@ export declare const listScheduleSchema: zod.ZodObject<{
|
|
|
77
78
|
title_contains?: string | undefined;
|
|
78
79
|
title_not_contains?: string | undefined;
|
|
79
80
|
} | undefined;
|
|
80
|
-
limit?: number | undefined;
|
|
81
81
|
}>;
|
|
82
82
|
export declare const createScheduleSchema: zod.ZodObject<{
|
|
83
83
|
modelId: zod.ZodString;
|
|
@@ -114,6 +114,7 @@ export declare const createScheduleSchema: zod.ZodObject<{
|
|
|
114
114
|
dateOn?: Date | undefined;
|
|
115
115
|
}>]>;
|
|
116
116
|
}, "strip", zod.ZodTypeAny, {
|
|
117
|
+
id: string;
|
|
117
118
|
input: {
|
|
118
119
|
type: ScheduleType;
|
|
119
120
|
immediately: true;
|
|
@@ -125,9 +126,9 @@ export declare const createScheduleSchema: zod.ZodObject<{
|
|
|
125
126
|
immediately?: false | undefined;
|
|
126
127
|
dateOn?: Date | undefined;
|
|
127
128
|
};
|
|
128
|
-
id: string;
|
|
129
129
|
modelId: string;
|
|
130
130
|
}, {
|
|
131
|
+
id: string;
|
|
131
132
|
input: {
|
|
132
133
|
type: ScheduleType;
|
|
133
134
|
immediately: true;
|
|
@@ -139,7 +140,6 @@ export declare const createScheduleSchema: zod.ZodObject<{
|
|
|
139
140
|
immediately?: false | undefined;
|
|
140
141
|
dateOn?: Date | undefined;
|
|
141
142
|
};
|
|
142
|
-
id: string;
|
|
143
143
|
modelId: string;
|
|
144
144
|
}>;
|
|
145
145
|
export declare const updateScheduleSchema: zod.ZodObject<{
|
|
@@ -177,6 +177,7 @@ export declare const updateScheduleSchema: zod.ZodObject<{
|
|
|
177
177
|
dateOn?: Date | undefined;
|
|
178
178
|
}>]>;
|
|
179
179
|
}, "strip", zod.ZodTypeAny, {
|
|
180
|
+
id: string;
|
|
180
181
|
input: {
|
|
181
182
|
type: ScheduleType;
|
|
182
183
|
immediately: true;
|
|
@@ -188,9 +189,9 @@ export declare const updateScheduleSchema: zod.ZodObject<{
|
|
|
188
189
|
immediately?: false | undefined;
|
|
189
190
|
dateOn?: Date | undefined;
|
|
190
191
|
};
|
|
191
|
-
id: string;
|
|
192
192
|
modelId: string;
|
|
193
193
|
}, {
|
|
194
|
+
id: string;
|
|
194
195
|
input: {
|
|
195
196
|
type: ScheduleType;
|
|
196
197
|
immediately: true;
|
|
@@ -202,7 +203,6 @@ export declare const updateScheduleSchema: zod.ZodObject<{
|
|
|
202
203
|
immediately?: false | undefined;
|
|
203
204
|
dateOn?: Date | undefined;
|
|
204
205
|
};
|
|
205
|
-
id: string;
|
|
206
206
|
modelId: string;
|
|
207
207
|
}>;
|
|
208
208
|
export declare const cancelScheduleSchema: zod.ZodObject<{
|
package/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export interface ICreateHeadlessCmsScheduleParams extends ICreateHeadlessCmsSche
|
|
|
7
7
|
* * Handler plugin will handle the scheduled CMS action event - a lambda call from the EventBridge Scheduler.
|
|
8
8
|
* * API plugin will provide the GraphQL API and code for managing the scheduled CMS actions.
|
|
9
9
|
*/
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const createHeadlessCmsScheduler: (params: ICreateHeadlessCmsScheduleParams) => Plugin[];
|
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.createHeadlessCmsScheduler = void 0;
|
|
7
7
|
var _context = require("./context.js");
|
|
8
8
|
var _model = require("./scheduler/model.js");
|
|
9
9
|
var _index = require("./graphql/index.js");
|
|
@@ -13,7 +13,7 @@ var _index2 = require("./handler/index.js");
|
|
|
13
13
|
* * Handler plugin will handle the scheduled CMS action event - a lambda call from the EventBridge Scheduler.
|
|
14
14
|
* * API plugin will provide the GraphQL API and code for managing the scheduled CMS actions.
|
|
15
15
|
*/
|
|
16
|
-
const
|
|
16
|
+
const createHeadlessCmsScheduler = params => {
|
|
17
17
|
return [
|
|
18
18
|
/**
|
|
19
19
|
* Handler for the Scheduled CMS Action Event.
|
|
@@ -24,6 +24,6 @@ const createHeadlessCmsSchedule = params => {
|
|
|
24
24
|
*/
|
|
25
25
|
(0, _model.createSchedulerModel)(), (0, _context.createHeadlessCmsScheduleContext)(params), (0, _index.createSchedulerGraphQL)()];
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
27
|
+
exports.createHeadlessCmsScheduler = createHeadlessCmsScheduler;
|
|
28
28
|
|
|
29
29
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_context","require","_model","_index","_index2","
|
|
1
|
+
{"version":3,"names":["_context","require","_model","_index","_index2","createHeadlessCmsScheduler","params","createScheduledCmsActionEventHandler","createSchedulerModel","createHeadlessCmsScheduleContext","createSchedulerGraphQL","exports"],"sources":["index.ts"],"sourcesContent":["import type { Plugin } from \"@webiny/plugins/types.js\";\nimport type { ICreateHeadlessCmsSchedulerContextParams } from \"~/context.js\";\nimport { createHeadlessCmsScheduleContext } from \"~/context.js\";\nimport { createSchedulerModel } from \"~/scheduler/model.js\";\nimport { createSchedulerGraphQL } from \"~/graphql/index.js\";\nimport { createScheduledCmsActionEventHandler } from \"~/handler/index.js\";\n\nexport interface ICreateHeadlessCmsScheduleParams extends ICreateHeadlessCmsSchedulerContextParams {\n //\n}\n\n/**\n * This will register both API and Handler plugins for the Headless CMS Scheduler.\n * * Handler plugin will handle the scheduled CMS action event - a lambda call from the EventBridge Scheduler.\n * * API plugin will provide the GraphQL API and code for managing the scheduled CMS actions.\n */\nexport const createHeadlessCmsScheduler = (params: ICreateHeadlessCmsScheduleParams): Plugin[] => {\n return [\n /**\n * Handler for the Scheduled CMS Action Event.\n */\n createScheduledCmsActionEventHandler(),\n /**\n * API side of the scheduler.\n */\n createSchedulerModel(),\n createHeadlessCmsScheduleContext(params),\n createSchedulerGraphQL()\n ];\n};\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAMA;AACA;AACA;AACA;AACA;AACO,MAAMI,0BAA0B,GAAIC,MAAwC,IAAe;EAC9F,OAAO;EACH;AACR;AACA;EACQ,IAAAC,4CAAoC,EAAC,CAAC;EACtC;AACR;AACA;EACQ,IAAAC,2BAAoB,EAAC,CAAC,EACtB,IAAAC,yCAAgC,EAACH,MAAM,CAAC,EACxC,IAAAI,6BAAsB,EAAC,CAAC,CAC3B;AACL,CAAC;AAACC,OAAA,CAAAN,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms-scheduler",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.15c0a8dfc8",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Schedule for Webiny Headless CMS",
|
|
6
6
|
"keywords": [
|
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@webiny/api": "0.0.0-unstable.
|
|
17
|
-
"@webiny/api-headless-cms": "0.0.0-unstable.
|
|
18
|
-
"@webiny/aws-sdk": "0.0.0-unstable.
|
|
19
|
-
"@webiny/error": "0.0.0-unstable.
|
|
20
|
-
"@webiny/handler-graphql": "0.0.0-unstable.
|
|
21
|
-
"@webiny/utils": "0.0.0-unstable.
|
|
16
|
+
"@webiny/api": "0.0.0-unstable.15c0a8dfc8",
|
|
17
|
+
"@webiny/api-headless-cms": "0.0.0-unstable.15c0a8dfc8",
|
|
18
|
+
"@webiny/aws-sdk": "0.0.0-unstable.15c0a8dfc8",
|
|
19
|
+
"@webiny/error": "0.0.0-unstable.15c0a8dfc8",
|
|
20
|
+
"@webiny/handler-graphql": "0.0.0-unstable.15c0a8dfc8",
|
|
21
|
+
"@webiny/utils": "0.0.0-unstable.15c0a8dfc8",
|
|
22
22
|
"zod": "3.23.8"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@webiny/api-i18n": "0.0.0-unstable.
|
|
26
|
-
"@webiny/api-security": "0.0.0-unstable.
|
|
27
|
-
"@webiny/api-tenancy": "0.0.0-unstable.
|
|
28
|
-
"@webiny/api-wcp": "0.0.0-unstable.
|
|
29
|
-
"@webiny/handler": "0.0.0-unstable.
|
|
30
|
-
"@webiny/handler-aws": "0.0.0-unstable.
|
|
31
|
-
"@webiny/plugins": "0.0.0-unstable.
|
|
32
|
-
"@webiny/project-utils": "0.0.0-unstable.
|
|
25
|
+
"@webiny/api-i18n": "0.0.0-unstable.15c0a8dfc8",
|
|
26
|
+
"@webiny/api-security": "0.0.0-unstable.15c0a8dfc8",
|
|
27
|
+
"@webiny/api-tenancy": "0.0.0-unstable.15c0a8dfc8",
|
|
28
|
+
"@webiny/api-wcp": "0.0.0-unstable.15c0a8dfc8",
|
|
29
|
+
"@webiny/handler": "0.0.0-unstable.15c0a8dfc8",
|
|
30
|
+
"@webiny/handler-aws": "0.0.0-unstable.15c0a8dfc8",
|
|
31
|
+
"@webiny/plugins": "0.0.0-unstable.15c0a8dfc8",
|
|
32
|
+
"@webiny/project-utils": "0.0.0-unstable.15c0a8dfc8",
|
|
33
33
|
"aws-sdk-client-mock": "4.1.0",
|
|
34
34
|
"typescript": "5.3.3"
|
|
35
35
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"access": "public",
|
|
42
42
|
"directory": "dist"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "15c0a8dfc8a6714acdedfbfdc83bbe4967d80177"
|
|
45
45
|
}
|