@strapi/content-releases 5.0.0-beta.6 → 5.0.0-beta.8

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 (26) hide show
  1. package/dist/_chunks/{App-CbOy9Yd2.js → App-DUmziQ17.js} +170 -170
  2. package/dist/_chunks/App-DUmziQ17.js.map +1 -0
  3. package/dist/_chunks/{App-CVlffj0R.mjs → App-D_6Y9N2F.mjs} +165 -164
  4. package/dist/_chunks/App-D_6Y9N2F.mjs.map +1 -0
  5. package/dist/_chunks/{PurchaseContentReleases-DAHdUpAA.js → PurchaseContentReleases-Be3acS2L.js} +4 -3
  6. package/dist/_chunks/PurchaseContentReleases-Be3acS2L.js.map +1 -0
  7. package/dist/_chunks/{PurchaseContentReleases-Ex09YpKR.mjs → PurchaseContentReleases-_MxP6-Dt.mjs} +5 -4
  8. package/dist/_chunks/PurchaseContentReleases-_MxP6-Dt.mjs.map +1 -0
  9. package/dist/_chunks/{index-B7mc1tVq.mjs → index-BomF0-yY.mjs} +86 -307
  10. package/dist/_chunks/index-BomF0-yY.mjs.map +1 -0
  11. package/dist/_chunks/{index-Bwn36oqx.js → index-C5Hc767q.js} +83 -306
  12. package/dist/_chunks/index-C5Hc767q.js.map +1 -0
  13. package/dist/admin/index.js +1 -1
  14. package/dist/admin/index.mjs +2 -2
  15. package/dist/admin/src/components/ReleaseActionMenu.d.ts +1 -1
  16. package/dist/admin/src/components/ReleaseModal.d.ts +1 -1
  17. package/dist/admin/src/services/release.d.ts +36 -360
  18. package/dist/admin/src/utils/api.d.ts +6 -0
  19. package/package.json +15 -17
  20. package/dist/_chunks/App-CVlffj0R.mjs.map +0 -1
  21. package/dist/_chunks/App-CbOy9Yd2.js.map +0 -1
  22. package/dist/_chunks/PurchaseContentReleases-DAHdUpAA.js.map +0 -1
  23. package/dist/_chunks/PurchaseContentReleases-Ex09YpKR.mjs.map +0 -1
  24. package/dist/_chunks/index-B7mc1tVq.mjs.map +0 -1
  25. package/dist/_chunks/index-Bwn36oqx.js.map +0 -1
  26. package/dist/admin/src/services/axios.d.ts +0 -29
@@ -20,410 +20,86 @@ type GetReleasesTabResponse = GetReleases.Response & {
20
20
  activeTab: 'pending' | 'done';
21
21
  };
22
22
  };
23
- declare const releaseApi: import("@reduxjs/toolkit/query/react").Api<(<TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
24
- data: TData;
25
- error?: undefined;
26
- } | {
27
- error: {
28
- status: number | undefined;
29
- code: string | undefined;
30
- response: {
31
- data: unknown;
32
- };
33
- };
34
- data?: undefined;
35
- }>), {
36
- getReleasesForEntry: import("@reduxjs/toolkit/query/react").QueryDefinition<Partial<{
23
+ declare const releaseApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, import("@reduxjs/toolkit/dist/query/endpointDefinitions").UpdateDefinitions<{}, "Release" | "ReleaseAction" | "EntriesInRelease", never> & {
24
+ getReleasesForEntry: import("@reduxjs/toolkit/query").QueryDefinition<Partial<{
37
25
  contentTypeUid: import("@strapi/types/dist/uid").ContentType;
38
26
  entryId: number;
39
27
  hasEntryAttached?: boolean | undefined;
40
- }>, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
41
- data: TData;
42
- error?: undefined;
43
- } | {
44
- error: {
45
- status: number | undefined;
46
- code: string | undefined;
47
- response: {
48
- data: unknown;
49
- };
50
- };
51
- data?: undefined;
52
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", GetContentTypeEntryReleases.Response, "content-releases">;
53
- getReleases: import("@reduxjs/toolkit/query/react").QueryDefinition<void | GetReleasesQueryParams, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
54
- data: TData;
55
- error?: undefined;
56
- } | {
57
- error: {
58
- status: number | undefined;
59
- code: string | undefined;
60
- response: {
61
- data: unknown;
62
- };
63
- };
64
- data?: undefined;
65
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", GetReleasesTabResponse, "content-releases">;
66
- getRelease: import("@reduxjs/toolkit/query/react").QueryDefinition<{
28
+ }>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", GetContentTypeEntryReleases.Response, "adminApi">;
29
+ getReleases: import("@reduxjs/toolkit/query").QueryDefinition<void | GetReleasesQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", GetReleasesTabResponse, "adminApi">;
30
+ getRelease: import("@reduxjs/toolkit/query").QueryDefinition<{
67
31
  id: import("@strapi/types/dist/data").ID;
68
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
69
- data: TData;
70
- error?: undefined;
71
- } | {
72
- error: {
73
- status: number | undefined;
74
- code: string | undefined;
75
- response: {
76
- data: unknown;
77
- };
78
- };
79
- data?: undefined;
80
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", GetRelease.Response, "content-releases">;
81
- getReleaseActions: import("@reduxjs/toolkit/query/react").QueryDefinition<{
32
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", GetRelease.Response, "adminApi">;
33
+ getReleaseActions: import("@reduxjs/toolkit/query").QueryDefinition<{
82
34
  releaseId: import("@strapi/types/dist/data").ID;
83
35
  } & Partial<Pick<import("../../../shared/contracts/releases").Pagination, "page" | "pageSize">> & {
84
36
  groupBy?: ReleaseActionGroupBy | undefined;
85
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
86
- data: TData;
87
- error?: undefined;
88
- } | {
89
- error: {
90
- status: number | undefined;
91
- code: string | undefined;
92
- response: {
93
- data: unknown;
94
- };
95
- };
96
- data?: undefined;
97
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", GetReleaseActions.Response, "content-releases">;
98
- createRelease: import("@reduxjs/toolkit/query/react").MutationDefinition<{
37
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", GetReleaseActions.Response, "adminApi">;
38
+ createRelease: import("@reduxjs/toolkit/query").MutationDefinition<{
99
39
  name: string;
100
40
  scheduledAt: Date | null;
101
41
  timezone: string | null;
102
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
103
- data: TData;
104
- error?: undefined;
105
- } | {
106
- error: {
107
- status: number | undefined;
108
- code: string | undefined;
109
- response: {
110
- data: unknown;
111
- };
112
- };
113
- data?: undefined;
114
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateRelease.Response, "content-releases">;
115
- updateRelease: import("@reduxjs/toolkit/query/react").MutationDefinition<{
42
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateRelease.Response, "adminApi">;
43
+ updateRelease: import("@reduxjs/toolkit/query").MutationDefinition<{
116
44
  id: import("@strapi/types/dist/data").ID;
117
45
  } & {
118
46
  name: string;
119
47
  scheduledAt?: Date | null | undefined;
120
48
  timezone?: string | null | undefined;
121
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
122
- data: TData;
123
- error?: undefined;
124
- } | {
125
- error: {
126
- status: number | undefined;
127
- code: string | undefined;
128
- response: {
129
- data: unknown;
130
- };
131
- };
132
- data?: undefined;
133
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", void, "content-releases">;
134
- createReleaseAction: import("@reduxjs/toolkit/query/react").MutationDefinition<CreateReleaseAction.Request, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
135
- data: TData;
136
- error?: undefined;
137
- } | {
138
- error: {
139
- status: number | undefined;
140
- code: string | undefined;
141
- response: {
142
- data: unknown;
143
- };
144
- };
145
- data?: undefined;
146
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateReleaseAction.Response, "content-releases">;
147
- createManyReleaseActions: import("@reduxjs/toolkit/query/react").MutationDefinition<CreateManyReleaseActions.Request, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
148
- data: TData;
149
- error?: undefined;
150
- } | {
151
- error: {
152
- status: number | undefined;
153
- code: string | undefined;
154
- response: {
155
- data: unknown;
156
- };
157
- };
158
- data?: undefined;
159
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateManyReleaseActions.Response, "content-releases">;
160
- updateReleaseAction: import("@reduxjs/toolkit/query/react").MutationDefinition<UpdateReleaseAction.Request & {
49
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", void, "adminApi">;
50
+ createReleaseAction: import("@reduxjs/toolkit/query").MutationDefinition<CreateReleaseAction.Request, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateReleaseAction.Response, "adminApi">;
51
+ createManyReleaseActions: import("@reduxjs/toolkit/query").MutationDefinition<CreateManyReleaseActions.Request, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateManyReleaseActions.Response, "adminApi">;
52
+ updateReleaseAction: import("@reduxjs/toolkit/query").MutationDefinition<UpdateReleaseAction.Request & {
161
53
  query: GetReleaseActions.Request['query'];
162
54
  } & {
163
55
  actionPath: [string, number];
164
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
165
- data: TData;
166
- error?: undefined;
167
- } | {
168
- error: {
169
- status: number | undefined;
170
- code: string | undefined;
171
- response: {
172
- data: unknown;
173
- };
174
- };
175
- data?: undefined;
176
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", UpdateReleaseAction.Response, "content-releases">;
177
- deleteReleaseAction: import("@reduxjs/toolkit/query/react").MutationDefinition<DeleteReleaseAction.Request, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
178
- data: TData;
179
- error?: undefined;
180
- } | {
181
- error: {
182
- status: number | undefined;
183
- code: string | undefined;
184
- response: {
185
- data: unknown;
186
- };
187
- };
188
- data?: undefined;
189
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", DeleteReleaseAction.Response, "content-releases">;
190
- publishRelease: import("@reduxjs/toolkit/query/react").MutationDefinition<{
56
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", UpdateReleaseAction.Response, "adminApi">;
57
+ deleteReleaseAction: import("@reduxjs/toolkit/query").MutationDefinition<DeleteReleaseAction.Request, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", DeleteReleaseAction.Response, "adminApi">;
58
+ publishRelease: import("@reduxjs/toolkit/query").MutationDefinition<{
191
59
  id: import("@strapi/types/dist/data").ID;
192
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
193
- data: TData;
194
- error?: undefined;
195
- } | {
196
- error: {
197
- status: number | undefined;
198
- code: string | undefined;
199
- response: {
200
- data: unknown;
201
- };
202
- };
203
- data?: undefined;
204
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", PublishRelease.Response, "content-releases">;
205
- deleteRelease: import("@reduxjs/toolkit/query/react").MutationDefinition<{
60
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", PublishRelease.Response, "adminApi">;
61
+ deleteRelease: import("@reduxjs/toolkit/query").MutationDefinition<{
206
62
  id: import("@strapi/types/dist/data").ID;
207
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
208
- data: TData;
209
- error?: undefined;
210
- } | {
211
- error: {
212
- status: number | undefined;
213
- code: string | undefined;
214
- response: {
215
- data: unknown;
216
- };
217
- };
218
- data?: undefined;
219
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", DeleteRelease.Response, "content-releases">;
220
- getMappedEntriesInReleases: import("@reduxjs/toolkit/query/react").QueryDefinition<{
63
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", DeleteRelease.Response, "adminApi">;
64
+ getMappedEntriesInReleases: import("@reduxjs/toolkit/query").QueryDefinition<{
221
65
  contentTypeUid: import("@strapi/types/dist/uid").ContentType;
222
66
  entriesIds: number[];
223
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
224
- data: TData;
225
- error?: undefined;
226
- } | {
227
- error: {
228
- status: number | undefined;
229
- code: string | undefined;
230
- response: {
231
- data: unknown;
232
- };
233
- };
234
- data?: undefined;
235
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", {
67
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", {
236
68
  [entryId: number]: Pick<import("../../../shared/contracts/releases").Release, "id" | "name">[];
237
- }, "content-releases">;
238
- }, "content-releases", "Release" | "ReleaseAction" | "EntriesInRelease", typeof import("@reduxjs/toolkit/query/react").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
239
- declare const useGetReleasesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<void | GetReleasesQueryParams, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
240
- data: TData;
241
- error?: undefined;
242
- } | {
243
- error: {
244
- status: number | undefined;
245
- code: string | undefined;
246
- response: {
247
- data: unknown;
248
- };
249
- };
250
- data?: undefined;
251
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", GetReleasesTabResponse, "content-releases">>, useGetReleasesForEntryQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<Partial<{
69
+ }, "adminApi">;
70
+ }, "adminApi", "Release" | "ReleaseAction" | "EntriesInRelease", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
71
+ declare const useGetReleasesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void | GetReleasesQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", GetReleasesTabResponse, "adminApi">>, useGetReleasesForEntryQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<Partial<{
252
72
  contentTypeUid: import("@strapi/types/dist/uid").ContentType;
253
73
  entryId: number;
254
74
  hasEntryAttached?: boolean | undefined;
255
- }>, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
256
- data: TData;
257
- error?: undefined;
258
- } | {
259
- error: {
260
- status: number | undefined;
261
- code: string | undefined;
262
- response: {
263
- data: unknown;
264
- };
265
- };
266
- data?: undefined;
267
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", GetContentTypeEntryReleases.Response, "content-releases">>, useGetReleaseQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<{
75
+ }>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", GetContentTypeEntryReleases.Response, "adminApi">>, useGetReleaseQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<{
268
76
  id: import("@strapi/types/dist/data").ID;
269
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
270
- data: TData;
271
- error?: undefined;
272
- } | {
273
- error: {
274
- status: number | undefined;
275
- code: string | undefined;
276
- response: {
277
- data: unknown;
278
- };
279
- };
280
- data?: undefined;
281
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", GetRelease.Response, "content-releases">>, useGetReleaseActionsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<{
77
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", GetRelease.Response, "adminApi">>, useGetReleaseActionsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<{
282
78
  releaseId: import("@strapi/types/dist/data").ID;
283
79
  } & Partial<Pick<import("../../../shared/contracts/releases").Pagination, "page" | "pageSize">> & {
284
80
  groupBy?: ReleaseActionGroupBy | undefined;
285
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
286
- data: TData;
287
- error?: undefined;
288
- } | {
289
- error: {
290
- status: number | undefined;
291
- code: string | undefined;
292
- response: {
293
- data: unknown;
294
- };
295
- };
296
- data?: undefined;
297
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", GetReleaseActions.Response, "content-releases">>, useCreateReleaseMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<{
81
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", GetReleaseActions.Response, "adminApi">>, useCreateReleaseMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
298
82
  name: string;
299
83
  scheduledAt: Date | null;
300
84
  timezone: string | null;
301
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
302
- data: TData;
303
- error?: undefined;
304
- } | {
305
- error: {
306
- status: number | undefined;
307
- code: string | undefined;
308
- response: {
309
- data: unknown;
310
- };
311
- };
312
- data?: undefined;
313
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateRelease.Response, "content-releases">>, useCreateReleaseActionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<CreateReleaseAction.Request, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
314
- data: TData;
315
- error?: undefined;
316
- } | {
317
- error: {
318
- status: number | undefined;
319
- code: string | undefined;
320
- response: {
321
- data: unknown;
322
- };
323
- };
324
- data?: undefined;
325
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateReleaseAction.Response, "content-releases">>, useCreateManyReleaseActionsMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<CreateManyReleaseActions.Request, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
326
- data: TData;
327
- error?: undefined;
328
- } | {
329
- error: {
330
- status: number | undefined;
331
- code: string | undefined;
332
- response: {
333
- data: unknown;
334
- };
335
- };
336
- data?: undefined;
337
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateManyReleaseActions.Response, "content-releases">>, useUpdateReleaseMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<{
85
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateRelease.Response, "adminApi">>, useCreateReleaseActionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<CreateReleaseAction.Request, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateReleaseAction.Response, "adminApi">>, useCreateManyReleaseActionsMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<CreateManyReleaseActions.Request, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", CreateManyReleaseActions.Response, "adminApi">>, useUpdateReleaseMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
338
86
  id: import("@strapi/types/dist/data").ID;
339
87
  } & {
340
88
  name: string;
341
89
  scheduledAt?: Date | null | undefined;
342
90
  timezone?: string | null | undefined;
343
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
344
- data: TData;
345
- error?: undefined;
346
- } | {
347
- error: {
348
- status: number | undefined;
349
- code: string | undefined;
350
- response: {
351
- data: unknown;
352
- };
353
- };
354
- data?: undefined;
355
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", void, "content-releases">>, useUpdateReleaseActionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<UpdateReleaseAction.Request & {
91
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", void, "adminApi">>, useUpdateReleaseActionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<UpdateReleaseAction.Request & {
356
92
  query: GetReleaseActions.Request['query'];
357
93
  } & {
358
94
  actionPath: [string, number];
359
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
360
- data: TData;
361
- error?: undefined;
362
- } | {
363
- error: {
364
- status: number | undefined;
365
- code: string | undefined;
366
- response: {
367
- data: unknown;
368
- };
369
- };
370
- data?: undefined;
371
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", UpdateReleaseAction.Response, "content-releases">>, usePublishReleaseMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<{
95
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", UpdateReleaseAction.Response, "adminApi">>, usePublishReleaseMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
372
96
  id: import("@strapi/types/dist/data").ID;
373
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
374
- data: TData;
375
- error?: undefined;
376
- } | {
377
- error: {
378
- status: number | undefined;
379
- code: string | undefined;
380
- response: {
381
- data: unknown;
382
- };
383
- };
384
- data?: undefined;
385
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", PublishRelease.Response, "content-releases">>, useDeleteReleaseActionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<DeleteReleaseAction.Request, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
386
- data: TData;
387
- error?: undefined;
388
- } | {
389
- error: {
390
- status: number | undefined;
391
- code: string | undefined;
392
- response: {
393
- data: unknown;
394
- };
395
- };
396
- data?: undefined;
397
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", DeleteReleaseAction.Response, "content-releases">>, useDeleteReleaseMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<{
97
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", PublishRelease.Response, "adminApi">>, useDeleteReleaseActionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<DeleteReleaseAction.Request, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", DeleteReleaseAction.Response, "adminApi">>, useDeleteReleaseMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
398
98
  id: import("@strapi/types/dist/data").ID;
399
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
400
- data: TData;
401
- error?: undefined;
402
- } | {
403
- error: {
404
- status: number | undefined;
405
- code: string | undefined;
406
- response: {
407
- data: unknown;
408
- };
409
- };
410
- data?: undefined;
411
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", DeleteRelease.Response, "content-releases">>, useGetMappedEntriesInReleasesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<{
99
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", DeleteRelease.Response, "adminApi">>, useGetMappedEntriesInReleasesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<{
412
100
  contentTypeUid: import("@strapi/types/dist/uid").ContentType;
413
101
  entriesIds: number[];
414
- }, <TData = any, TSend = any>({ url, method, data, config, }: import("./axios").QueryArguments<TSend>) => Promise<{
415
- data: TData;
416
- error?: undefined;
417
- } | {
418
- error: {
419
- status: number | undefined;
420
- code: string | undefined;
421
- response: {
422
- data: unknown;
423
- };
424
- };
425
- data?: undefined;
426
- }>, "Release" | "ReleaseAction" | "EntriesInRelease", {
102
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Release" | "ReleaseAction" | "EntriesInRelease", {
427
103
  [entryId: number]: Pick<import("../../../shared/contracts/releases").Release, "id" | "name">[];
428
- }, "content-releases">>;
104
+ }, "adminApi">>;
429
105
  export { useGetReleasesQuery, useGetReleasesForEntryQuery, useGetReleaseQuery, useGetReleaseActionsQuery, useCreateReleaseMutation, useCreateReleaseActionMutation, useCreateManyReleaseActionsMutation, useUpdateReleaseMutation, useUpdateReleaseActionMutation, usePublishReleaseMutation, useDeleteReleaseActionMutation, useDeleteReleaseMutation, useGetMappedEntriesInReleasesQuery, releaseApi, };
@@ -0,0 +1,6 @@
1
+ import { SerializedError } from '@reduxjs/toolkit';
2
+ import { ApiError } from '@strapi/admin/strapi-admin';
3
+ type BaseQueryError = ApiError | SerializedError;
4
+ declare const isBaseQueryError: (error?: BaseQueryError) => error is BaseQueryError;
5
+ export { isBaseQueryError };
6
+ export type { BaseQueryError };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/content-releases",
3
- "version": "5.0.0-beta.6",
3
+ "version": "5.0.0-beta.8",
4
4
  "description": "Strapi plugin for organizing and releasing content",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,11 +55,10 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@reduxjs/toolkit": "1.9.7",
58
- "@strapi/design-system": "2.0.0-beta.2",
59
- "@strapi/icons": "2.0.0-beta.2",
60
- "@strapi/types": "5.0.0-beta.6",
61
- "@strapi/utils": "5.0.0-beta.6",
62
- "axios": "1.6.8",
58
+ "@strapi/design-system": "2.0.0-beta.4",
59
+ "@strapi/icons": "2.0.0-beta.4",
60
+ "@strapi/types": "5.0.0-beta.8",
61
+ "@strapi/utils": "5.0.0-beta.8",
63
62
  "date-fns": "2.30.0",
64
63
  "date-fns-tz": "2.0.1",
65
64
  "formik": "2.4.5",
@@ -70,21 +69,20 @@
70
69
  "yup": "0.32.9"
71
70
  },
72
71
  "devDependencies": {
73
- "@strapi/admin": "5.0.0-beta.6",
74
- "@strapi/admin-test-utils": "5.0.0-beta.6",
75
- "@strapi/content-manager": "5.0.0-beta.6",
72
+ "@strapi/admin": "5.0.0-beta.8",
73
+ "@strapi/admin-test-utils": "5.0.0-beta.8",
74
+ "@strapi/content-manager": "5.0.0-beta.8",
76
75
  "@strapi/pack-up": "5.0.0",
77
- "@testing-library/react": "14.0.0",
78
- "@testing-library/user-event": "14.4.3",
76
+ "@testing-library/react": "15.0.7",
77
+ "@testing-library/user-event": "14.5.2",
79
78
  "@types/koa": "2.13.4",
80
- "@types/styled-components": "5.1.34",
81
79
  "koa": "2.15.2",
82
80
  "msw": "1.3.0",
83
- "react": "^18.2.0",
84
- "react-dom": "^18.2.0",
81
+ "react": "18.3.1",
82
+ "react-dom": "18.3.1",
85
83
  "react-query": "3.39.3",
86
84
  "react-router-dom": "6.22.3",
87
- "styled-components": "5.3.11",
85
+ "styled-components": "6.1.8",
88
86
  "typescript": "5.2.2"
89
87
  },
90
88
  "peerDependencies": {
@@ -93,7 +91,7 @@
93
91
  "react": "^17.0.0 || ^18.0.0",
94
92
  "react-dom": "^17.0.0 || ^18.0.0",
95
93
  "react-router-dom": "^6.0.0",
96
- "styled-components": "5.3.3"
94
+ "styled-components": "^6.0.0"
97
95
  },
98
96
  "engines": {
99
97
  "node": ">=16.0.0 <=20.x.x",
@@ -106,5 +104,5 @@
106
104
  "displayName": "Releases",
107
105
  "required": true
108
106
  },
109
- "gitHead": "6c76c1b8c2c6f54ae7cb159d801b966dbfb08d4d"
107
+ "gitHead": "710e683d6bc017dbc2804708580146daa4b2fc4c"
110
108
  }