@strapi/content-releases 4.16.2 → 4.17.1
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-b83f4a97.mjs → App-a4843fda.mjs} +143 -63
- package/dist/_chunks/App-a4843fda.mjs.map +1 -0
- package/dist/_chunks/{App-b6df6b60.js → App-f2cafd81.js} +138 -58
- package/dist/_chunks/App-f2cafd81.js.map +1 -0
- package/dist/_chunks/{en-b5dfabe6.js → en-13576ce2.js} +8 -2
- package/dist/_chunks/en-13576ce2.js.map +1 -0
- package/dist/_chunks/{en-d837b82d.mjs → en-e98d8b57.mjs} +8 -2
- package/dist/_chunks/en-e98d8b57.mjs.map +1 -0
- package/dist/_chunks/{index-28e99164.js → index-66d129ac.js} +66 -12
- package/dist/_chunks/index-66d129ac.js.map +1 -0
- package/dist/_chunks/{index-c39292e3.mjs → index-937f8179.mjs} +68 -14
- package/dist/_chunks/index-937f8179.mjs.map +1 -0
- package/dist/admin/index.js +2 -2
- package/dist/admin/index.mjs +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs.map +1 -1
- package/package.json +10 -10
- package/dist/_chunks/App-b6df6b60.js.map +0 -1
- package/dist/_chunks/App-b83f4a97.mjs.map +0 -1
- package/dist/_chunks/en-b5dfabe6.js.map +0 -1
- package/dist/_chunks/en-d837b82d.mjs.map +0 -1
- package/dist/_chunks/index-28e99164.js.map +0 -1
- package/dist/_chunks/index-c39292e3.mjs.map +0 -1
- package/dist/admin/src/components/CMReleasesContainer.d.ts +0 -1
- package/dist/admin/src/components/ReleaseActionMenu.d.ts +0 -7
- package/dist/admin/src/components/ReleaseActionOptions.d.ts +0 -8
- package/dist/admin/src/components/ReleaseModal.d.ts +0 -11
- package/dist/admin/src/constants.d.ts +0 -13
- package/dist/admin/src/index.d.ts +0 -3
- package/dist/admin/src/pages/App.d.ts +0 -1
- package/dist/admin/src/pages/ReleaseDetailsPage.d.ts +0 -10
- package/dist/admin/src/pages/ReleasesPage.d.ts +0 -11
- package/dist/admin/src/pages/tests/mockReleaseDetailsPageData.d.ts +0 -104
- package/dist/admin/src/pages/tests/mockReleasesPageData.d.ts +0 -38
- package/dist/admin/src/pluginId.d.ts +0 -1
- package/dist/admin/src/services/axios.d.ts +0 -29
- package/dist/admin/src/services/release.d.ts +0 -348
- package/dist/server/src/constants.d.ts +0 -9
- package/dist/server/src/constants.d.ts.map +0 -1
- package/dist/server/src/content-types/index.d.ts +0 -82
- package/dist/server/src/content-types/index.d.ts.map +0 -1
- package/dist/server/src/content-types/release/index.d.ts +0 -37
- package/dist/server/src/content-types/release/index.d.ts.map +0 -1
- package/dist/server/src/content-types/release/schema.d.ts +0 -36
- package/dist/server/src/content-types/release/schema.d.ts.map +0 -1
- package/dist/server/src/content-types/release-action/index.d.ts +0 -44
- package/dist/server/src/content-types/release-action/index.d.ts.map +0 -1
- package/dist/server/src/content-types/release-action/schema.d.ts +0 -43
- package/dist/server/src/content-types/release-action/schema.d.ts.map +0 -1
- package/dist/server/src/controllers/index.d.ts +0 -18
- package/dist/server/src/controllers/index.d.ts.map +0 -1
- package/dist/server/src/controllers/release-action.d.ts +0 -9
- package/dist/server/src/controllers/release-action.d.ts.map +0 -1
- package/dist/server/src/controllers/release.d.ts +0 -11
- package/dist/server/src/controllers/release.d.ts.map +0 -1
- package/dist/server/src/controllers/validation/release-action.d.ts +0 -3
- package/dist/server/src/controllers/validation/release-action.d.ts.map +0 -1
- package/dist/server/src/controllers/validation/release.d.ts +0 -2
- package/dist/server/src/controllers/validation/release.d.ts.map +0 -1
- package/dist/server/src/index.d.ts +0 -301
- package/dist/server/src/index.d.ts.map +0 -1
- package/dist/server/src/register.d.ts +0 -5
- package/dist/server/src/register.d.ts.map +0 -1
- package/dist/server/src/routes/index.d.ts +0 -35
- package/dist/server/src/routes/index.d.ts.map +0 -1
- package/dist/server/src/routes/release-action.d.ts +0 -18
- package/dist/server/src/routes/release-action.d.ts.map +0 -1
- package/dist/server/src/routes/release.d.ts +0 -18
- package/dist/server/src/routes/release.d.ts.map +0 -1
- package/dist/server/src/services/index.d.ts +0 -77
- package/dist/server/src/services/index.d.ts.map +0 -1
- package/dist/server/src/services/release.d.ts +0 -55
- package/dist/server/src/services/release.d.ts.map +0 -1
- package/dist/server/src/services/validation.d.ts +0 -10
- package/dist/server/src/services/validation.d.ts.map +0 -1
- package/dist/server/src/utils/index.d.ts +0 -4
- package/dist/server/src/utils/index.d.ts.map +0 -1
- package/dist/shared/contracts/release-actions.d.ts +0 -95
- package/dist/shared/contracts/release-actions.d.ts.map +0 -1
- package/dist/shared/contracts/releases.d.ts +0 -153
- package/dist/shared/contracts/releases.d.ts.map +0 -1
- package/dist/shared/types.d.ts +0 -24
- package/dist/shared/types.d.ts.map +0 -1
- package/dist/shared/validation-schemas.d.ts +0 -2
- package/dist/shared/validation-schemas.d.ts.map +0 -1
|
@@ -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 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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 +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"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Attribute, Common } from '@strapi/types';
|
|
2
|
-
import type { Release, Pagination } from './releases';
|
|
3
|
-
import type { Entity } from '../types';
|
|
4
|
-
import type { errors } from '@strapi/utils';
|
|
5
|
-
type ReleaseActionEntry = Entity & {
|
|
6
|
-
[key: string]: Attribute.Any;
|
|
7
|
-
} & {
|
|
8
|
-
locale: string;
|
|
9
|
-
};
|
|
10
|
-
type ReleaseActionEntryData = {
|
|
11
|
-
id: ReleaseActionEntry['id'];
|
|
12
|
-
locale?: {
|
|
13
|
-
name: string;
|
|
14
|
-
code: string;
|
|
15
|
-
};
|
|
16
|
-
contentType: {
|
|
17
|
-
mainFieldValue?: string;
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export interface ReleaseAction extends Entity {
|
|
22
|
-
type: 'publish' | 'unpublish';
|
|
23
|
-
entry: ReleaseActionEntry;
|
|
24
|
-
contentType: Common.UID.ContentType;
|
|
25
|
-
release: Release;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* POST /content-releases/:releaseId/actions - Create a release action
|
|
29
|
-
*/
|
|
30
|
-
export declare namespace CreateReleaseAction {
|
|
31
|
-
interface Request {
|
|
32
|
-
params: {
|
|
33
|
-
releaseId: Release['id'];
|
|
34
|
-
};
|
|
35
|
-
body: {
|
|
36
|
-
type: ReleaseAction['type'];
|
|
37
|
-
entry: {
|
|
38
|
-
id: ReleaseActionEntry['id'];
|
|
39
|
-
contentType: Common.UID.ContentType;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
interface Response {
|
|
44
|
-
data: ReleaseAction;
|
|
45
|
-
error?: errors.ApplicationError | errors.ValidationError | errors.NotFoundError;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* GET /content-releases/:id/actions - Get all release actions
|
|
50
|
-
*/
|
|
51
|
-
export declare namespace GetReleaseActions {
|
|
52
|
-
interface Request {
|
|
53
|
-
params: {
|
|
54
|
-
releaseId: Release['id'];
|
|
55
|
-
};
|
|
56
|
-
query?: Partial<Pick<Pagination, 'page' | 'pageSize'>>;
|
|
57
|
-
}
|
|
58
|
-
interface Response {
|
|
59
|
-
data: Array<ReleaseAction & {
|
|
60
|
-
entry: ReleaseActionEntryData;
|
|
61
|
-
}>;
|
|
62
|
-
meta: {
|
|
63
|
-
pagination: Pagination;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export declare namespace DeleteReleaseAction {
|
|
68
|
-
interface Request {
|
|
69
|
-
params: {
|
|
70
|
-
actionId: ReleaseAction['id'];
|
|
71
|
-
releaseId: Release['id'];
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
interface Response {
|
|
75
|
-
data: ReleaseAction;
|
|
76
|
-
error?: errors.ApplicationError | errors.NotFoundError;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
export declare namespace UpdateReleaseAction {
|
|
80
|
-
interface Request {
|
|
81
|
-
params: {
|
|
82
|
-
actionId: ReleaseAction['id'];
|
|
83
|
-
releaseId: ReleaseAction['id'];
|
|
84
|
-
};
|
|
85
|
-
body: {
|
|
86
|
-
type: ReleaseAction['type'];
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
interface Response {
|
|
90
|
-
data: ReleaseAction;
|
|
91
|
-
error?: errors.ApplicationError | errors.ValidationError | errors.NotFoundError;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
export {};
|
|
95
|
-
//# sourceMappingURL=release-actions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-actions.d.ts","sourceRoot":"","sources":["../../../shared/contracts/release-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,kBAAkB,GAAG,MAAM,GAAG;IAEjC,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC;CAC9B,GAAG;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,EAAE,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,WAAW,EAAE;QACX,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,MAAM;IAC3C,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAC9B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,UAAiB,OAAO;QACtB,MAAM,EAAE;YACN,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;SAC1B,CAAC;QACF,IAAI,EAAE;Y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AAa,CAAC,IAAI,CAAC,CAAC;YAC9B,SAAS,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;SAChC,CAAC;QACF,IAAI,EAAE;YACJ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;SAC7B,CAAC;KACH;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,aAAa,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,aAAa,CAAC;KACjF;CACF"}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import type { Entity } from '../types';
|
|
2
|
-
import type { ReleaseAction } from './release-actions';
|
|
3
|
-
import type { UserInfo } from '../types';
|
|
4
|
-
import { errors } from '@strapi/utils';
|
|
5
|
-
import type { SanitizedAdminUser } from '@strapi/admin/strapi-admin';
|
|
6
|
-
export interface Release extends Entity {
|
|
7
|
-
name: string;
|
|
8
|
-
releasedAt: string;
|
|
9
|
-
actions: ReleaseAction[];
|
|
10
|
-
}
|
|
11
|
-
export type Pagination = {
|
|
12
|
-
page: number;
|
|
13
|
-
pageSize: number;
|
|
14
|
-
pageCount: number;
|
|
15
|
-
total: number;
|
|
16
|
-
};
|
|
17
|
-
export interface ReleaseDataResponse extends Omit<Release, 'actions'> {
|
|
18
|
-
actions: {
|
|
19
|
-
meta: {
|
|
20
|
-
count: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
createdBy: Pick<SanitizedAdminUser, 'id' | 'firstname' | 'lastname' | 'username'>;
|
|
24
|
-
}
|
|
25
|
-
export interface ReleaseForContentTypeEntryDataResponse extends Omit<Release, 'actions'> {
|
|
26
|
-
action: ReleaseAction;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* GET /content-releases/ - Get all releases
|
|
30
|
-
*/
|
|
31
|
-
export declare namespace GetReleases {
|
|
32
|
-
interface Request {
|
|
33
|
-
state: {
|
|
34
|
-
userAbility: {};
|
|
35
|
-
};
|
|
36
|
-
query?: Partial<Pick<Pagination, 'page' | 'pageSize'>>;
|
|
37
|
-
}
|
|
38
|
-
interface Response {
|
|
39
|
-
data: ReleaseDataResponse[];
|
|
40
|
-
meta: {
|
|
41
|
-
pagination?: Pagination;
|
|
42
|
-
};
|
|
43
|
-
error?: errors.ApplicationError;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* GET /content-releases/ - Get all releases for a given entry
|
|
48
|
-
*/
|
|
49
|
-
export declare namespace GetContentTypeEntryReleases {
|
|
50
|
-
interface Request {
|
|
51
|
-
state: {
|
|
52
|
-
userAbility: {};
|
|
53
|
-
};
|
|
54
|
-
query: {
|
|
55
|
-
contentTypeUid: ReleaseAction['contentType'];
|
|
56
|
-
entryId: ReleaseAction['entry']['id'];
|
|
57
|
-
hasEntryAttached?: boolean;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
interface Response {
|
|
61
|
-
data: ReleaseForContentTypeEntryDataResponse[];
|
|
62
|
-
error?: errors.ApplicationError;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* GET /content-releases/:id - Get a single release
|
|
67
|
-
*/
|
|
68
|
-
export declare namespace GetRelease {
|
|
69
|
-
interface Request {
|
|
70
|
-
state: {
|
|
71
|
-
userAbility: {};
|
|
72
|
-
};
|
|
73
|
-
params: {
|
|
74
|
-
id: Release['id'];
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
interface Response {
|
|
78
|
-
data: ReleaseDataResponse;
|
|
79
|
-
error?: errors.ApplicationError | errors.NotFoundError;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* POST /content-releases/ - Create a release
|
|
84
|
-
*/
|
|
85
|
-
export declare namespace CreateRelease {
|
|
86
|
-
interface Request {
|
|
87
|
-
state: {
|
|
88
|
-
user: UserInfo;
|
|
89
|
-
};
|
|
90
|
-
body: {
|
|
91
|
-
name: string;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
interface Response {
|
|
95
|
-
data: ReleaseDataResponse;
|
|
96
|
-
error?: errors.ApplicationError | errors.ValidationError;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* PUT /content-releases/:id - Update a release
|
|
101
|
-
*/
|
|
102
|
-
export declare namespace UpdateRelease {
|
|
103
|
-
interface Request {
|
|
104
|
-
state: {
|
|
105
|
-
user: UserInfo;
|
|
106
|
-
};
|
|
107
|
-
params: {
|
|
108
|
-
id: Release['id'];
|
|
109
|
-
};
|
|
110
|
-
body: {
|
|
111
|
-
name: string;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
interface Response {
|
|
115
|
-
data: ReleaseDataResponse;
|
|
116
|
-
error?: errors.ApplicationError | errors.ValidationError;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* DELETE /content-releases/:id - Delete a release
|
|
121
|
-
*/
|
|
122
|
-
export declare namespace DeleteRelease {
|
|
123
|
-
interface Request {
|
|
124
|
-
state: {
|
|
125
|
-
user: UserInfo;
|
|
126
|
-
};
|
|
127
|
-
params: {
|
|
128
|
-
id: Release['id'];
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
interface Response {
|
|
132
|
-
data: ReleaseDataResponse;
|
|
133
|
-
error?: errors.ApplicationError | errors.NotFoundError;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* POST /content-releases/:releaseId/publish - Publish a release
|
|
138
|
-
*/
|
|
139
|
-
export declare namespace PublishRelease {
|
|
140
|
-
interface Request {
|
|
141
|
-
state: {
|
|
142
|
-
user: UserInfo;
|
|
143
|
-
};
|
|
144
|
-
params: {
|
|
145
|
-
id: Release['id'];
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
interface Response {
|
|
149
|
-
data: ReleaseDataResponse;
|
|
150
|
-
error?: errors.ApplicationError | errors.ValidationError;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
//# sourceMappingURL=releases.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"releases.d.ts","sourceRoot":"","sources":["../../../shared/contracts/releases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,OAAQ,SAAQ,MAAM;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC;IACnE,OAAO,EAAE;QAAE,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IACrC,SAAS,EAAE,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;CACnF;AAED,MAAM,WAAW,sCAAuC,SAAQ,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC;IACtF,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,UAAiB,OAAO;QACtB,KAAK,EAAE;YACL,WAAW,EAAE,EA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1B,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,eAAe,CAAC;KAC1D;CACF"}
|
package/dist/shared/types.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Entity as StrapiEntity } from '@strapi/types';
|
|
2
|
-
interface RoleInfo extends Omit<Entity, 'createdAt' | 'updatedAt'> {
|
|
3
|
-
name: string;
|
|
4
|
-
code: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
usersCount?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface UserInfo extends Entity {
|
|
9
|
-
firstname: string;
|
|
10
|
-
lastname?: string;
|
|
11
|
-
username?: null | string;
|
|
12
|
-
email: string;
|
|
13
|
-
isActive: boolean;
|
|
14
|
-
blocked: boolean;
|
|
15
|
-
preferedLanguage: null | string;
|
|
16
|
-
roles: RoleInfo[];
|
|
17
|
-
}
|
|
18
|
-
export interface Entity {
|
|
19
|
-
id: StrapiEntity.ID;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
updatedAt: string;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../shared/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAG5D,UAAU,QAAS,SAAQ,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAAC;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,QAAS,SAAQ,MAAM;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,IAAI,GAAG,MAAM,CAAC;IAChC,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation-schemas.d.ts","sourceRoot":"","sources":["../../shared/validation-schemas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,KAMb,CAAC"}
|