@strapi/content-releases 4.16.2 → 4.18.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.
Files changed (87) hide show
  1. package/dist/_chunks/{App-b83f4a97.mjs → App-g2P5kbSm.mjs} +341 -171
  2. package/dist/_chunks/App-g2P5kbSm.mjs.map +1 -0
  3. package/dist/_chunks/{App-b6df6b60.js → App-o5_WfqR-.js} +337 -167
  4. package/dist/_chunks/App-o5_WfqR-.js.map +1 -0
  5. package/dist/_chunks/{en-b5dfabe6.js → en-haKSQIo8.js} +19 -4
  6. package/dist/_chunks/en-haKSQIo8.js.map +1 -0
  7. package/dist/_chunks/{en-d837b82d.mjs → en-ngTk74JV.mjs} +19 -4
  8. package/dist/_chunks/en-ngTk74JV.mjs.map +1 -0
  9. package/dist/_chunks/{index-28e99164.js → index-EdBmRHRU.js} +96 -31
  10. package/dist/_chunks/index-EdBmRHRU.js.map +1 -0
  11. package/dist/_chunks/{index-c39292e3.mjs → index-XAQOX_IB.mjs} +101 -36
  12. package/dist/_chunks/index-XAQOX_IB.mjs.map +1 -0
  13. package/dist/admin/index.js +2 -2
  14. package/dist/admin/index.mjs +3 -3
  15. package/dist/server/index.js +60 -35
  16. package/dist/server/index.js.map +1 -1
  17. package/dist/server/index.mjs +58 -35
  18. package/dist/server/index.mjs.map +1 -1
  19. package/package.json +11 -10
  20. package/dist/_chunks/App-b6df6b60.js.map +0 -1
  21. package/dist/_chunks/App-b83f4a97.mjs.map +0 -1
  22. package/dist/_chunks/en-b5dfabe6.js.map +0 -1
  23. package/dist/_chunks/en-d837b82d.mjs.map +0 -1
  24. package/dist/_chunks/index-28e99164.js.map +0 -1
  25. package/dist/_chunks/index-c39292e3.mjs.map +0 -1
  26. package/dist/admin/src/components/CMReleasesContainer.d.ts +0 -1
  27. package/dist/admin/src/components/ReleaseActionMenu.d.ts +0 -7
  28. package/dist/admin/src/components/ReleaseActionOptions.d.ts +0 -8
  29. package/dist/admin/src/components/ReleaseModal.d.ts +0 -11
  30. package/dist/admin/src/constants.d.ts +0 -13
  31. package/dist/admin/src/index.d.ts +0 -3
  32. package/dist/admin/src/pages/App.d.ts +0 -1
  33. package/dist/admin/src/pages/ReleaseDetailsPage.d.ts +0 -10
  34. package/dist/admin/src/pages/ReleasesPage.d.ts +0 -11
  35. package/dist/admin/src/pages/tests/mockReleaseDetailsPageData.d.ts +0 -104
  36. package/dist/admin/src/pages/tests/mockReleasesPageData.d.ts +0 -38
  37. package/dist/admin/src/pluginId.d.ts +0 -1
  38. package/dist/admin/src/services/axios.d.ts +0 -29
  39. package/dist/admin/src/services/release.d.ts +0 -348
  40. package/dist/server/src/constants.d.ts +0 -9
  41. package/dist/server/src/constants.d.ts.map +0 -1
  42. package/dist/server/src/content-types/index.d.ts +0 -82
  43. package/dist/server/src/content-types/index.d.ts.map +0 -1
  44. package/dist/server/src/content-types/release/index.d.ts +0 -37
  45. package/dist/server/src/content-types/release/index.d.ts.map +0 -1
  46. package/dist/server/src/content-types/release/schema.d.ts +0 -36
  47. package/dist/server/src/content-types/release/schema.d.ts.map +0 -1
  48. package/dist/server/src/content-types/release-action/index.d.ts +0 -44
  49. package/dist/server/src/content-types/release-action/index.d.ts.map +0 -1
  50. package/dist/server/src/content-types/release-action/schema.d.ts +0 -43
  51. package/dist/server/src/content-types/release-action/schema.d.ts.map +0 -1
  52. package/dist/server/src/controllers/index.d.ts +0 -18
  53. package/dist/server/src/controllers/index.d.ts.map +0 -1
  54. package/dist/server/src/controllers/release-action.d.ts +0 -9
  55. package/dist/server/src/controllers/release-action.d.ts.map +0 -1
  56. package/dist/server/src/controllers/release.d.ts +0 -11
  57. package/dist/server/src/controllers/release.d.ts.map +0 -1
  58. package/dist/server/src/controllers/validation/release-action.d.ts +0 -3
  59. package/dist/server/src/controllers/validation/release-action.d.ts.map +0 -1
  60. package/dist/server/src/controllers/validation/release.d.ts +0 -2
  61. package/dist/server/src/controllers/validation/release.d.ts.map +0 -1
  62. package/dist/server/src/index.d.ts +0 -301
  63. package/dist/server/src/index.d.ts.map +0 -1
  64. package/dist/server/src/register.d.ts +0 -5
  65. package/dist/server/src/register.d.ts.map +0 -1
  66. package/dist/server/src/routes/index.d.ts +0 -35
  67. package/dist/server/src/routes/index.d.ts.map +0 -1
  68. package/dist/server/src/routes/release-action.d.ts +0 -18
  69. package/dist/server/src/routes/release-action.d.ts.map +0 -1
  70. package/dist/server/src/routes/release.d.ts +0 -18
  71. package/dist/server/src/routes/release.d.ts.map +0 -1
  72. package/dist/server/src/services/index.d.ts +0 -77
  73. package/dist/server/src/services/index.d.ts.map +0 -1
  74. package/dist/server/src/services/release.d.ts +0 -55
  75. package/dist/server/src/services/release.d.ts.map +0 -1
  76. package/dist/server/src/services/validation.d.ts +0 -10
  77. package/dist/server/src/services/validation.d.ts.map +0 -1
  78. package/dist/server/src/utils/index.d.ts +0 -4
  79. package/dist/server/src/utils/index.d.ts.map +0 -1
  80. package/dist/shared/contracts/release-actions.d.ts +0 -95
  81. package/dist/shared/contracts/release-actions.d.ts.map +0 -1
  82. package/dist/shared/contracts/releases.d.ts +0 -153
  83. package/dist/shared/contracts/releases.d.ts.map +0 -1
  84. package/dist/shared/types.d.ts +0 -24
  85. package/dist/shared/types.d.ts.map +0 -1
  86. package/dist/shared/validation-schemas.d.ts +0 -2
  87. package/dist/shared/validation-schemas.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/release.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAmB3B,QAAA,MAAM,iBAAiB;kBACD,IAAI,OAAO;iBAgDZ,IAAI,OAAO;gBAmCZ,IAAI,OAAO;gBAmBX,IAAI,OAAO;gBAoBX,IAAI,OAAO;iBAWV,IAAI,OAAO;CAW/B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const validateReleaseAction: (body: unknown, errorMessage?: string | undefined) => Promise<any>;
2
- export declare const validateReleaseActionUpdateSchema: (body: unknown, errorMessage?: string | undefined) => Promise<any>;
3
- //# sourceMappingURL=release-action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release-action.d.ts","sourceRoot":"","sources":["../../../../../server/src/controllers/validation/release-action.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,qBAAqB,oEAA2C,CAAC;AAC9E,eAAO,MAAM,iCAAiC,oEAAkD,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const validateRelease: (body: unknown, errorMessage?: string | undefined) => Promise<any>;
2
- //# sourceMappingURL=release.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../../server/src/controllers/validation/release.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,oEAAoC,CAAC"}
@@ -1,301 +0,0 @@
1
- /// <reference types="koa" />
2
- declare const _default: {
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;
299
- };
300
- export default _default;
301
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,wBAA2B"}
@@ -1,5 +0,0 @@
1
- import type { LoadedStrapi } from '@strapi/types';
2
- export declare const register: ({ strapi }: {
3
- strapi: LoadedStrapi;
4
- }) => Promise<void>;
5
- //# sourceMappingURL=register.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,35 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAC"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"release-action.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/release-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wBAoEE"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/release.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wBAoGE"}
@@ -1,77 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuD,CAAC"}
@@ -1,55 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- export declare const getService: (name: 'release' | 'release-validation', { strapi }?: {
2
- strapi: Required<import("@strapi/types").Strapi>;
3
- }) => import("@strapi/types/dist/types/core/common").Service;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}