@strapi/content-releases 0.0.0-experimental.check-license → 4.16.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/dist/_chunks/App-b6df6b60.js +797 -0
- package/dist/_chunks/App-b6df6b60.js.map +1 -0
- package/dist/_chunks/App-b83f4a97.mjs +775 -0
- package/dist/_chunks/App-b83f4a97.mjs.map +1 -0
- package/dist/_chunks/en-b5dfabe6.js +47 -0
- package/dist/_chunks/en-b5dfabe6.js.map +1 -0
- package/dist/_chunks/en-d837b82d.mjs +47 -0
- package/dist/_chunks/en-d837b82d.mjs.map +1 -0
- package/dist/_chunks/index-28e99164.js +784 -0
- package/dist/_chunks/index-28e99164.js.map +1 -0
- package/dist/_chunks/index-c39292e3.mjs +763 -0
- package/dist/_chunks/index-c39292e3.mjs.map +1 -0
- package/dist/admin/index.js +16 -35
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +16 -35
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/src/components/CMReleasesContainer.d.ts +1 -0
- package/dist/admin/src/components/ReleaseActionMenu.d.ts +7 -0
- package/dist/admin/src/components/ReleaseActionOptions.d.ts +8 -0
- package/dist/admin/src/components/ReleaseModal.d.ts +11 -0
- package/dist/admin/src/constants.d.ts +13 -0
- package/dist/admin/src/index.d.ts +3 -15
- package/dist/admin/src/pages/App.d.ts +1 -0
- package/dist/admin/src/pages/ReleaseDetailsPage.d.ts +10 -0
- package/dist/admin/src/pages/ReleasesPage.d.ts +11 -0
- package/dist/admin/src/pages/tests/mockReleaseDetailsPageData.d.ts +104 -0
- package/dist/admin/src/pages/tests/mockReleasesPageData.d.ts +38 -0
- package/dist/admin/src/pluginId.d.ts +1 -0
- package/dist/admin/src/services/axios.d.ts +29 -0
- package/dist/admin/src/services/release.d.ts +348 -0
- package/dist/server/index.js +861 -6
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +842 -6
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/constants.d.ts +9 -0
- package/dist/server/src/constants.d.ts.map +1 -0
- package/dist/server/src/content-types/index.d.ts +82 -0
- package/dist/server/src/content-types/index.d.ts.map +1 -0
- package/dist/server/src/content-types/release/index.d.ts +37 -0
- package/dist/server/src/content-types/release/index.d.ts.map +1 -0
- package/dist/server/src/content-types/release/schema.d.ts +36 -0
- package/dist/server/src/content-types/release/schema.d.ts.map +1 -0
- package/dist/server/src/content-types/release-action/index.d.ts +44 -0
- package/dist/server/src/content-types/release-action/index.d.ts.map +1 -0
- package/dist/server/src/content-types/release-action/schema.d.ts +43 -0
- package/dist/server/src/content-types/release-action/schema.d.ts.map +1 -0
- package/dist/server/src/controllers/index.d.ts +18 -0
- package/dist/server/src/controllers/index.d.ts.map +1 -0
- package/dist/server/src/controllers/release-action.d.ts +9 -0
- package/dist/server/src/controllers/release-action.d.ts.map +1 -0
- package/dist/server/src/controllers/release.d.ts +11 -0
- package/dist/server/src/controllers/release.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/release-action.d.ts +3 -0
- package/dist/server/src/controllers/validation/release-action.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/release.d.ts +2 -0
- package/dist/server/src/controllers/validation/release.d.ts.map +1 -0
- package/dist/server/src/index.d.ts +298 -1
- package/dist/server/src/index.d.ts.map +1 -0
- package/dist/server/src/register.d.ts +5 -1
- package/dist/server/src/register.d.ts.map +1 -0
- package/dist/server/src/routes/index.d.ts +35 -0
- package/dist/server/src/routes/index.d.ts.map +1 -0
- package/dist/server/src/routes/release-action.d.ts +18 -0
- package/dist/server/src/routes/release-action.d.ts.map +1 -0
- package/dist/server/src/routes/release.d.ts +18 -0
- package/dist/server/src/routes/release.d.ts.map +1 -0
- package/dist/server/src/services/index.d.ts +77 -0
- package/dist/server/src/services/index.d.ts.map +1 -0
- package/dist/server/src/services/release.d.ts +55 -0
- package/dist/server/src/services/release.d.ts.map +1 -0
- package/dist/server/src/services/validation.d.ts +10 -0
- package/dist/server/src/services/validation.d.ts.map +1 -0
- package/dist/server/src/utils/index.d.ts +4 -0
- package/dist/server/src/utils/index.d.ts.map +1 -0
- package/dist/shared/contracts/release-actions.d.ts +95 -0
- package/dist/shared/contracts/release-actions.d.ts.map +1 -0
- package/dist/shared/contracts/releases.d.ts +153 -0
- package/dist/shared/contracts/releases.d.ts.map +1 -0
- package/dist/shared/types.d.ts +24 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/validation-schemas.d.ts +2 -0
- package/dist/shared/validation-schemas.d.ts.map +1 -0
- package/package.json +29 -18
- package/dist/_chunks/en-21947221.js +0 -5
- package/dist/_chunks/en-21947221.js.map +0 -1
- package/dist/_chunks/en-92157b33.mjs +0 -5
- package/dist/_chunks/en-92157b33.mjs.map +0 -1
- package/dist/admin/src/tests/index.test.d.ts +0 -0
- package/dist/server/src/__tests__/index.test.d.ts +0 -2
|
@@ -1,4 +1,301 @@
|
|
|
1
|
+
/// <reference types="koa" />
|
|
1
2
|
declare const _default: {
|
|
2
|
-
register: (
|
|
3
|
+
register: ({ strapi }: {
|
|
4
|
+
strapi: Required<import("@strapi/types").Strapi>;
|
|
5
|
+
}) => Promise<void>;
|
|
6
|
+
contentTypes: {
|
|
7
|
+
release: {
|
|
8
|
+
schema: {
|
|
9
|
+
collectionName: string;
|
|
10
|
+
info: {
|
|
11
|
+
singularName: string;
|
|
12
|
+
pluralName: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
options: {
|
|
16
|
+
draftAndPublish: boolean;
|
|
17
|
+
};
|
|
18
|
+
pluginOptions: {
|
|
19
|
+
'content-manager': {
|
|
20
|
+
visible: boolean;
|
|
21
|
+
};
|
|
22
|
+
'content-type-builder': {
|
|
23
|
+
visible: boolean;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
attributes: {
|
|
27
|
+
name: {
|
|
28
|
+
type: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
};
|
|
31
|
+
releasedAt: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
actions: {
|
|
35
|
+
type: string;
|
|
36
|
+
relation: string;
|
|
37
|
+
target: string;
|
|
38
|
+
mappedBy: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
'release-action': {
|
|
44
|
+
schema: {
|
|
45
|
+
collectionName: string;
|
|
46
|
+
info: {
|
|
47
|
+
singularName: string;
|
|
48
|
+
pluralName: string;
|
|
49
|
+
displayName: string;
|
|
50
|
+
};
|
|
51
|
+
options: {
|
|
52
|
+
draftAndPublish: boolean;
|
|
53
|
+
};
|
|
54
|
+
pluginOptions: {
|
|
55
|
+
'content-manager': {
|
|
56
|
+
visible: boolean;
|
|
57
|
+
};
|
|
58
|
+
'content-type-builder': {
|
|
59
|
+
visible: boolean;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
attributes: {
|
|
63
|
+
type: {
|
|
64
|
+
type: string;
|
|
65
|
+
enum: string[];
|
|
66
|
+
required: boolean;
|
|
67
|
+
};
|
|
68
|
+
entry: {
|
|
69
|
+
type: string;
|
|
70
|
+
relation: string;
|
|
71
|
+
configurable: boolean;
|
|
72
|
+
};
|
|
73
|
+
contentType: {
|
|
74
|
+
type: string;
|
|
75
|
+
required: boolean;
|
|
76
|
+
};
|
|
77
|
+
release: {
|
|
78
|
+
type: string;
|
|
79
|
+
relation: string;
|
|
80
|
+
target: string;
|
|
81
|
+
inversedBy: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
services: {
|
|
88
|
+
release: ({ strapi }: {
|
|
89
|
+
strapi: Required<import("@strapi/types").Strapi>;
|
|
90
|
+
}) => {
|
|
91
|
+
create(releaseData: {
|
|
92
|
+
name: string;
|
|
93
|
+
}, { user }: {
|
|
94
|
+
user: import("../../shared/types").UserInfo;
|
|
95
|
+
}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string>>;
|
|
96
|
+
findOne(id: import("@strapi/types/dist/types/core/entity").ID, query?: {}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string> | null>;
|
|
97
|
+
findPage(query?: Partial<Pick<import("../../shared/contracts/releases").Pagination, "page" | "pageSize">> | undefined): Promise<import("@strapi/types/dist/modules/entity-service").PaginatedResult<"plugin::content-releases.release", {
|
|
98
|
+
sort?: import("@strapi/types/dist/modules/entity-service/params/sort").Any<"plugin::content-releases.release"> | undefined;
|
|
99
|
+
} & {
|
|
100
|
+
fields?: import("@strapi/types/dist/modules/entity-service/params/fields").Any<"plugin::content-releases.release"> | undefined;
|
|
101
|
+
} & {
|
|
102
|
+
filters?: import("@strapi/types/dist/modules/entity-service/params/filters").Any<"plugin::content-releases.release"> | undefined;
|
|
103
|
+
} & {
|
|
104
|
+
populate?: import("@strapi/types/dist/modules/entity-service/params/populate").Any<"plugin::content-releases.release"> | undefined;
|
|
105
|
+
} & ((import("@strapi/types/dist/types/utils").Without<import("@strapi/types/dist/modules/entity-service/params/pagination").PageNotation, import("@strapi/types/dist/modules/entity-service/params/pagination").OffsetNotation> & import("@strapi/types/dist/modules/entity-service/params/pagination").OffsetNotation) | (import("@strapi/types/dist/types/utils").Without<import("@strapi/types/dist/modules/entity-service/params/pagination").OffsetNotation, import("@strapi/types/dist/modules/entity-service/params/pagination").PageNotation> & import("@strapi/types/dist/modules/entity-service/params/pagination").PageNotation)) & {
|
|
106
|
+
publicationState?: import("@strapi/types/dist/modules/entity-service/params/publication-state").Kind | undefined;
|
|
107
|
+
} & {
|
|
108
|
+
_q?: string | undefined;
|
|
109
|
+
}>>;
|
|
110
|
+
findManyForContentTypeEntry(contentTypeUid: import("@strapi/types/dist/types/core/common/uid").ContentType, entryId: import("@strapi/types/dist/types/core/entity").ID, { hasEntryAttached, }?: {
|
|
111
|
+
hasEntryAttached?: boolean | undefined;
|
|
112
|
+
}): Promise<any[]>;
|
|
113
|
+
update(id: number, releaseData: {
|
|
114
|
+
name: string;
|
|
115
|
+
}, { user }: {
|
|
116
|
+
user: import("../../shared/types").UserInfo;
|
|
117
|
+
}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string>>;
|
|
118
|
+
createAction(releaseId: import("@strapi/types/dist/types/core/entity").ID, action: Pick<{
|
|
119
|
+
type: "publish" | "unpublish";
|
|
120
|
+
entry: {
|
|
121
|
+
id: import("@strapi/types/dist/types/core/entity").ID;
|
|
122
|
+
contentType: import("@strapi/types/dist/types/core/common/uid").ContentType;
|
|
123
|
+
};
|
|
124
|
+
}, "type" | "entry">): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release-action", string>>;
|
|
125
|
+
findActions(releaseId: import("@strapi/types/dist/types/core/entity").ID, query?: Partial<Pick<import("../../shared/contracts/releases").Pagination, "page" | "pageSize">> | undefined): Promise<import("@strapi/types/dist/modules/entity-service").PaginatedResult<"plugin::content-releases.release-action", {
|
|
126
|
+
populate: {
|
|
127
|
+
entry: true;
|
|
128
|
+
};
|
|
129
|
+
filters: {
|
|
130
|
+
release: import("@strapi/types/dist/types/core/entity").ID;
|
|
131
|
+
};
|
|
132
|
+
page?: number | undefined;
|
|
133
|
+
pageSize?: number | undefined;
|
|
134
|
+
}>>;
|
|
135
|
+
countActions(query: {
|
|
136
|
+
filters?: import("@strapi/types/dist/modules/entity-service/params/filters").Any<"plugin::content-releases.release-action"> | undefined;
|
|
137
|
+
}): Promise<number>;
|
|
138
|
+
getAllContentTypeUids(releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<(`admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`)[]>;
|
|
139
|
+
getContentTypesDataForActions(releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<Record<`admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, {
|
|
140
|
+
mainField: string;
|
|
141
|
+
displayName: string;
|
|
142
|
+
}>>;
|
|
143
|
+
delete(releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<import("../../shared/contracts/releases").Release>;
|
|
144
|
+
publish(releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string> | null>;
|
|
145
|
+
updateAction(actionId: import("@strapi/types/dist/types/core/entity").ID, releaseId: import("@strapi/types/dist/types/core/entity").ID, update: {
|
|
146
|
+
type: "publish" | "unpublish";
|
|
147
|
+
}): Promise<any>;
|
|
148
|
+
deleteAction(actionId: import("@strapi/types/dist/types/core/entity").ID, releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<any>;
|
|
149
|
+
};
|
|
150
|
+
'release-validation': ({ strapi }: {
|
|
151
|
+
strapi: Required<import("@strapi/types").Strapi>;
|
|
152
|
+
}) => {
|
|
153
|
+
validateUniqueEntry(releaseId: import("@strapi/types/dist/types/core/entity").ID, releaseActionArgs: {
|
|
154
|
+
type: "publish" | "unpublish";
|
|
155
|
+
entry: {
|
|
156
|
+
id: import("@strapi/types/dist/types/core/entity").ID;
|
|
157
|
+
contentType: import("@strapi/types/dist/types/core/common/uid").ContentType;
|
|
158
|
+
};
|
|
159
|
+
}): Promise<void>;
|
|
160
|
+
validateEntryContentType(contentTypeUid: import("@strapi/types/dist/types/core/common/uid").ContentType): void;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
controllers: {
|
|
164
|
+
release: {
|
|
165
|
+
findMany(ctx: import("koa").Context): Promise<void>;
|
|
166
|
+
findOne(ctx: import("koa").Context): Promise<void>;
|
|
167
|
+
create(ctx: import("koa").Context): Promise<void>;
|
|
168
|
+
update(ctx: import("koa").Context): Promise<void>;
|
|
169
|
+
delete(ctx: import("koa").Context): Promise<void>;
|
|
170
|
+
publish(ctx: import("koa").Context): Promise<void>;
|
|
171
|
+
};
|
|
172
|
+
'release-action': {
|
|
173
|
+
create(ctx: import("koa").Context): Promise<void>;
|
|
174
|
+
findMany(ctx: import("koa").Context): Promise<void>;
|
|
175
|
+
update(ctx: import("koa").Context): Promise<void>;
|
|
176
|
+
delete(ctx: import("koa").Context): Promise<void>;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
routes: {
|
|
180
|
+
release: {
|
|
181
|
+
type: string;
|
|
182
|
+
routes: {
|
|
183
|
+
method: string;
|
|
184
|
+
path: string;
|
|
185
|
+
handler: string;
|
|
186
|
+
config: {
|
|
187
|
+
policies: (string | {
|
|
188
|
+
name: string;
|
|
189
|
+
config: {
|
|
190
|
+
actions: string[];
|
|
191
|
+
};
|
|
192
|
+
})[];
|
|
193
|
+
};
|
|
194
|
+
}[];
|
|
195
|
+
};
|
|
196
|
+
'release-action': {
|
|
197
|
+
type: string;
|
|
198
|
+
routes: {
|
|
199
|
+
method: string;
|
|
200
|
+
path: string;
|
|
201
|
+
handler: string;
|
|
202
|
+
config: {
|
|
203
|
+
policies: (string | {
|
|
204
|
+
name: string;
|
|
205
|
+
config: {
|
|
206
|
+
actions: string[];
|
|
207
|
+
};
|
|
208
|
+
})[];
|
|
209
|
+
};
|
|
210
|
+
}[];
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
} | {
|
|
214
|
+
contentTypes: {
|
|
215
|
+
release: {
|
|
216
|
+
schema: {
|
|
217
|
+
collectionName: string;
|
|
218
|
+
info: {
|
|
219
|
+
singularName: string;
|
|
220
|
+
pluralName: string;
|
|
221
|
+
displayName: string;
|
|
222
|
+
};
|
|
223
|
+
options: {
|
|
224
|
+
draftAndPublish: boolean;
|
|
225
|
+
};
|
|
226
|
+
pluginOptions: {
|
|
227
|
+
'content-manager': {
|
|
228
|
+
visible: boolean;
|
|
229
|
+
};
|
|
230
|
+
'content-type-builder': {
|
|
231
|
+
visible: boolean;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
attributes: {
|
|
235
|
+
name: {
|
|
236
|
+
type: string;
|
|
237
|
+
required: boolean;
|
|
238
|
+
};
|
|
239
|
+
releasedAt: {
|
|
240
|
+
type: string;
|
|
241
|
+
};
|
|
242
|
+
actions: {
|
|
243
|
+
type: string;
|
|
244
|
+
relation: string;
|
|
245
|
+
target: string;
|
|
246
|
+
mappedBy: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
'release-action': {
|
|
252
|
+
schema: {
|
|
253
|
+
collectionName: string;
|
|
254
|
+
info: {
|
|
255
|
+
singularName: string;
|
|
256
|
+
pluralName: string;
|
|
257
|
+
displayName: string;
|
|
258
|
+
};
|
|
259
|
+
options: {
|
|
260
|
+
draftAndPublish: boolean;
|
|
261
|
+
};
|
|
262
|
+
pluginOptions: {
|
|
263
|
+
'content-manager': {
|
|
264
|
+
visible: boolean;
|
|
265
|
+
};
|
|
266
|
+
'content-type-builder': {
|
|
267
|
+
visible: boolean;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
attributes: {
|
|
271
|
+
type: {
|
|
272
|
+
type: string;
|
|
273
|
+
enum: string[];
|
|
274
|
+
required: boolean;
|
|
275
|
+
};
|
|
276
|
+
entry: {
|
|
277
|
+
type: string;
|
|
278
|
+
relation: string;
|
|
279
|
+
configurable: boolean;
|
|
280
|
+
};
|
|
281
|
+
contentType: {
|
|
282
|
+
type: string;
|
|
283
|
+
required: boolean;
|
|
284
|
+
};
|
|
285
|
+
release: {
|
|
286
|
+
type: string;
|
|
287
|
+
relation: string;
|
|
288
|
+
target: string;
|
|
289
|
+
inversedBy: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
register?: undefined;
|
|
296
|
+
services?: undefined;
|
|
297
|
+
controllers?: undefined;
|
|
298
|
+
routes?: undefined;
|
|
3
299
|
};
|
|
4
300
|
export default _default;
|
|
301
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,wBAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKlD,eAAO,MAAM,QAAQ;YAAgC,YAAY;mBAOhE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const routes: {
|
|
2
|
+
release: {
|
|
3
|
+
type: string;
|
|
4
|
+
routes: {
|
|
5
|
+
method: string;
|
|
6
|
+
path: string;
|
|
7
|
+
handler: string;
|
|
8
|
+
config: {
|
|
9
|
+
policies: (string | {
|
|
10
|
+
name: string;
|
|
11
|
+
config: {
|
|
12
|
+
actions: string[];
|
|
13
|
+
};
|
|
14
|
+
})[];
|
|
15
|
+
};
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
'release-action': {
|
|
19
|
+
type: string;
|
|
20
|
+
routes: {
|
|
21
|
+
method: string;
|
|
22
|
+
path: string;
|
|
23
|
+
handler: string;
|
|
24
|
+
config: {
|
|
25
|
+
policies: (string | {
|
|
26
|
+
name: string;
|
|
27
|
+
config: {
|
|
28
|
+
actions: string[];
|
|
29
|
+
};
|
|
30
|
+
})[];
|
|
31
|
+
};
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
type: string;
|
|
3
|
+
routes: {
|
|
4
|
+
method: string;
|
|
5
|
+
path: string;
|
|
6
|
+
handler: string;
|
|
7
|
+
config: {
|
|
8
|
+
policies: (string | {
|
|
9
|
+
name: string;
|
|
10
|
+
config: {
|
|
11
|
+
actions: string[];
|
|
12
|
+
};
|
|
13
|
+
})[];
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=release-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-action.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/release-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wBAoEE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
type: string;
|
|
3
|
+
routes: {
|
|
4
|
+
method: string;
|
|
5
|
+
path: string;
|
|
6
|
+
handler: string;
|
|
7
|
+
config: {
|
|
8
|
+
policies: (string | {
|
|
9
|
+
name: string;
|
|
10
|
+
config: {
|
|
11
|
+
actions: string[];
|
|
12
|
+
};
|
|
13
|
+
})[];
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/release.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wBAoGE"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const services: {
|
|
2
|
+
release: ({ strapi }: {
|
|
3
|
+
strapi: Required<import("@strapi/types").Strapi>;
|
|
4
|
+
}) => {
|
|
5
|
+
create(releaseData: {
|
|
6
|
+
name: string;
|
|
7
|
+
}, { user }: {
|
|
8
|
+
user: import("../../../shared/types").UserInfo;
|
|
9
|
+
}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string>>;
|
|
10
|
+
findOne(id: import("@strapi/types/dist/types/core/entity").ID, query?: {}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string> | null>;
|
|
11
|
+
findPage(query?: Partial<Pick<import("../../../shared/contracts/releases").Pagination, "page" | "pageSize">> | undefined): Promise<import("@strapi/types/dist/modules/entity-service").PaginatedResult<"plugin::content-releases.release", {
|
|
12
|
+
sort?: import("@strapi/types/dist/modules/entity-service/params/sort").Any<"plugin::content-releases.release"> | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
fields?: import("@strapi/types/dist/modules/entity-service/params/fields").Any<"plugin::content-releases.release"> | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
filters?: import("@strapi/types/dist/modules/entity-service/params/filters").Any<"plugin::content-releases.release"> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
populate?: import("@strapi/types/dist/modules/entity-service/params/populate").Any<"plugin::content-releases.release"> | undefined;
|
|
19
|
+
} & ((import("@strapi/types/dist/types/utils").Without<import("@strapi/types/dist/modules/entity-service/params/pagination").PageNotation, import("@strapi/types/dist/modules/entity-service/params/pagination").OffsetNotation> & import("@strapi/types/dist/modules/entity-service/params/pagination").OffsetNotation) | (import("@strapi/types/dist/types/utils").Without<import("@strapi/types/dist/modules/entity-service/params/pagination").OffsetNotation, import("@strapi/types/dist/modules/entity-service/params/pagination").PageNotation> & import("@strapi/types/dist/modules/entity-service/params/pagination").PageNotation)) & {
|
|
20
|
+
publicationState?: import("@strapi/types/dist/modules/entity-service/params/publication-state").Kind | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
_q?: string | undefined;
|
|
23
|
+
}>>;
|
|
24
|
+
findManyForContentTypeEntry(contentTypeUid: import("@strapi/types/dist/types/core/common/uid").ContentType, entryId: import("@strapi/types/dist/types/core/entity").ID, { hasEntryAttached, }?: {
|
|
25
|
+
hasEntryAttached?: boolean | undefined;
|
|
26
|
+
}): Promise<any[]>;
|
|
27
|
+
update(id: number, releaseData: {
|
|
28
|
+
name: string;
|
|
29
|
+
}, { user }: {
|
|
30
|
+
user: import("../../../shared/types").UserInfo;
|
|
31
|
+
}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string>>;
|
|
32
|
+
createAction(releaseId: import("@strapi/types/dist/types/core/entity").ID, action: Pick<{
|
|
33
|
+
type: "publish" | "unpublish";
|
|
34
|
+
entry: {
|
|
35
|
+
id: import("@strapi/types/dist/types/core/entity").ID;
|
|
36
|
+
contentType: import("@strapi/types/dist/types/core/common/uid").ContentType;
|
|
37
|
+
};
|
|
38
|
+
}, "type" | "entry">): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release-action", string>>;
|
|
39
|
+
findActions(releaseId: import("@strapi/types/dist/types/core/entity").ID, query?: Partial<Pick<import("../../../shared/contracts/releases").Pagination, "page" | "pageSize">> | undefined): Promise<import("@strapi/types/dist/modules/entity-service").PaginatedResult<"plugin::content-releases.release-action", {
|
|
40
|
+
populate: {
|
|
41
|
+
entry: true;
|
|
42
|
+
};
|
|
43
|
+
filters: {
|
|
44
|
+
release: import("@strapi/types/dist/types/core/entity").ID;
|
|
45
|
+
};
|
|
46
|
+
page?: number | undefined;
|
|
47
|
+
pageSize?: number | undefined;
|
|
48
|
+
}>>;
|
|
49
|
+
countActions(query: {
|
|
50
|
+
filters?: import("@strapi/types/dist/modules/entity-service/params/filters").Any<"plugin::content-releases.release-action"> | undefined;
|
|
51
|
+
}): Promise<number>;
|
|
52
|
+
getAllContentTypeUids(releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<(`admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`)[]>;
|
|
53
|
+
getContentTypesDataForActions(releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<Record<`admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, {
|
|
54
|
+
mainField: string;
|
|
55
|
+
displayName: string;
|
|
56
|
+
}>>;
|
|
57
|
+
delete(releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<import("../../../shared/contracts/releases").Release>;
|
|
58
|
+
publish(releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string> | null>;
|
|
59
|
+
updateAction(actionId: import("@strapi/types/dist/types/core/entity").ID, releaseId: import("@strapi/types/dist/types/core/entity").ID, update: {
|
|
60
|
+
type: "publish" | "unpublish";
|
|
61
|
+
}): Promise<any>;
|
|
62
|
+
deleteAction(actionId: import("@strapi/types/dist/types/core/entity").ID, releaseId: import("@strapi/types/dist/types/core/entity").ID): Promise<any>;
|
|
63
|
+
};
|
|
64
|
+
'release-validation': ({ strapi }: {
|
|
65
|
+
strapi: Required<import("@strapi/types").Strapi>;
|
|
66
|
+
}) => {
|
|
67
|
+
validateUniqueEntry(releaseId: import("@strapi/types/dist/types/core/entity").ID, releaseActionArgs: {
|
|
68
|
+
type: "publish" | "unpublish";
|
|
69
|
+
entry: {
|
|
70
|
+
id: import("@strapi/types/dist/types/core/entity").ID;
|
|
71
|
+
contentType: import("@strapi/types/dist/types/core/common/uid").ContentType;
|
|
72
|
+
};
|
|
73
|
+
}): Promise<void>;
|
|
74
|
+
validateEntryContentType(contentTypeUid: import("@strapi/types/dist/types/core/common/uid").ContentType): void;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuD,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { LoadedStrapi, EntityService } from '@strapi/types';
|
|
2
|
+
import { RELEASE_ACTION_MODEL_UID } from '../constants';
|
|
3
|
+
import type { GetReleases, CreateRelease, UpdateRelease, PublishRelease, GetRelease, Release, DeleteRelease, GetContentTypeEntryReleases } from '../../../shared/contracts/releases';
|
|
4
|
+
import type { CreateReleaseAction, GetReleaseActions, UpdateReleaseAction, DeleteReleaseAction } from '../../../shared/contracts/release-actions';
|
|
5
|
+
import type { UserInfo } from '../../../shared/types';
|
|
6
|
+
declare const createReleaseService: ({ strapi }: {
|
|
7
|
+
strapi: LoadedStrapi;
|
|
8
|
+
}) => {
|
|
9
|
+
create(releaseData: CreateRelease.Request['body'], { user }: {
|
|
10
|
+
user: UserInfo;
|
|
11
|
+
}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string>>;
|
|
12
|
+
findOne(id: GetRelease.Request['params']['id'], query?: {}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string> | null>;
|
|
13
|
+
findPage(query?: GetReleases.Request['query']): Promise<EntityService.PaginatedResult<"plugin::content-releases.release", {
|
|
14
|
+
sort?: EntityService.Params.Sort.Any<"plugin::content-releases.release"> | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
fields?: EntityService.Params.Fields.Any<"plugin::content-releases.release"> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
filters?: EntityService.Params.Filters.Any<"plugin::content-releases.release"> | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
populate?: EntityService.Params.Populate.Any<"plugin::content-releases.release"> | undefined;
|
|
21
|
+
} & ((import("@strapi/types/dist/types/utils").Without<EntityService.Params.Pagination.PageNotation, EntityService.Params.Pagination.OffsetNotation> & EntityService.Params.Pagination.OffsetNotation) | (import("@strapi/types/dist/types/utils").Without<EntityService.Params.Pagination.OffsetNotation, EntityService.Params.Pagination.PageNotation> & EntityService.Params.Pagination.PageNotation)) & {
|
|
22
|
+
publicationState?: EntityService.Params.PublicationState.Kind | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
_q?: string | undefined;
|
|
25
|
+
}>>;
|
|
26
|
+
findManyForContentTypeEntry(contentTypeUid: GetContentTypeEntryReleases.Request['query']['contentTypeUid'], entryId: GetContentTypeEntryReleases.Request['query']['entryId'], { hasEntryAttached, }?: {
|
|
27
|
+
hasEntryAttached?: GetContentTypeEntryReleases.Request['query']['hasEntryAttached'];
|
|
28
|
+
}): Promise<any[]>;
|
|
29
|
+
update(id: number, releaseData: UpdateRelease.Request['body'], { user }: {
|
|
30
|
+
user: UserInfo;
|
|
31
|
+
}): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string>>;
|
|
32
|
+
createAction(releaseId: CreateReleaseAction.Request['params']['releaseId'], action: Pick<CreateReleaseAction.Request['body'], 'type' | 'entry'>): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release-action", string>>;
|
|
33
|
+
findActions(releaseId: GetReleaseActions.Request['params']['releaseId'], query?: GetReleaseActions.Request['query']): Promise<EntityService.PaginatedResult<"plugin::content-releases.release-action", {
|
|
34
|
+
populate: {
|
|
35
|
+
entry: true;
|
|
36
|
+
};
|
|
37
|
+
filters: {
|
|
38
|
+
release: import("@strapi/types/dist/types/core/entity").ID;
|
|
39
|
+
};
|
|
40
|
+
page?: number | undefined;
|
|
41
|
+
pageSize?: number | undefined;
|
|
42
|
+
}>>;
|
|
43
|
+
countActions(query: EntityService.Params.Pick<typeof RELEASE_ACTION_MODEL_UID, 'filters'>): Promise<number>;
|
|
44
|
+
getAllContentTypeUids(releaseId: Release['id']): Promise<(`admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`)[]>;
|
|
45
|
+
getContentTypesDataForActions(releaseId: Release['id']): Promise<Record<`admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, {
|
|
46
|
+
mainField: string;
|
|
47
|
+
displayName: string;
|
|
48
|
+
}>>;
|
|
49
|
+
delete(releaseId: DeleteRelease.Request['params']['id']): Promise<Release>;
|
|
50
|
+
publish(releaseId: PublishRelease.Request['params']['id']): Promise<import("@strapi/types/dist/types/core/attributes").GetValues<"plugin::content-releases.release", string> | null>;
|
|
51
|
+
updateAction(actionId: UpdateReleaseAction.Request['params']['actionId'], releaseId: UpdateReleaseAction.Request['params']['releaseId'], update: UpdateReleaseAction.Request['body']): Promise<any>;
|
|
52
|
+
deleteAction(actionId: DeleteReleaseAction.Request['params']['actionId'], releaseId: DeleteReleaseAction.Request['params']['releaseId']): Promise<any>;
|
|
53
|
+
};
|
|
54
|
+
export default createReleaseService;
|
|
55
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../server/src/services/release.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAO,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAqB,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,EACd,UAAU,EACV,OAAO,EACP,aAAa,EACb,2BAA2B,EAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAEjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,QAAA,MAAM,oBAAoB;YAA0B,YAAY;;wBACpC,qBAAqB,CAAC,MAAM,CAAC;cAAoB,QAAQ;;gBAQjE,kBAAkB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;qBAQnC,mBAAmB,CAAC,OAAO,CAAC;;;;;;;;;;;;;gDAa3B,mCAAmC,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,WACrE,mCAAmC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;2BAGxC,mCAAmC,CAAC,OAAO,CAAC,CAAC,kBAAkB,CAAC;;eAsEpF,MAAM,eACG,qBAAqB,CAAC,MAAM,CAAC;cACxB,QAAQ;;4BAqBf,2BAA2B,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,UACrD,KAAK,2BAA2B,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;2BA6BxD,yBAAyB,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,UACnD,yBAAyB,CAAC,OAAO,CAAC;;;;;;;;;;wBAmBlB,cAAc,MAAM,KAAK,CAAC,+BAA+B,EAAE,SAAS,CAAC;qCAIxD,OAAO,CAAC,IAAI,CAAC;6CAiBL,OAAO,CAAC,IAAI,CAAC;mBAS3C,MAAM;qBAAe,MAAM;;sBAgBpB,qBAAqB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;uBAiCpC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;2BAsFnD,2BAA2B,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,aAChD,2BAA2B,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,UACrD,2BAA2B,CAAC,MAAM,CAAC;2BAoBjC,2BAA2B,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,aAChD,2BAA2B,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC;CAiB/D,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoadedStrapi } from '@strapi/types';
|
|
2
|
+
import type { CreateReleaseAction } from '../../../shared/contracts/release-actions';
|
|
3
|
+
declare const createReleaseValidationService: ({ strapi }: {
|
|
4
|
+
strapi: LoadedStrapi;
|
|
5
|
+
}) => {
|
|
6
|
+
validateUniqueEntry(releaseId: CreateReleaseAction.Request['params']['releaseId'], releaseActionArgs: CreateReleaseAction.Request['body']): Promise<void>;
|
|
7
|
+
validateEntryContentType(contentTypeUid: CreateReleaseAction.Request['body']['entry']['contentType']): void;
|
|
8
|
+
};
|
|
9
|
+
export default createReleaseValidationService;
|
|
10
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../server/src/services/validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGrF,QAAA,MAAM,8BAA8B;YAA0B,YAAY;;mCAE3D,2BAA2B,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,qBAC1C,2BAA2B,CAAC,MAAM,CAAC;6CA2BtC,2BAA2B,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC;CAe7E,CAAC;AAEH,eAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SACf,SAAS,GAAG,oBAAoB;;4DAIvC,CAAC"}
|