6 Commits

Author SHA1 Message Date
Max Starr
38292fedd3
fix: broken imports due to change in strapi (#99)
* refactor broken imports

* update package info

* update package name

* fix other broken import

* fix(pkg.json): revert changes

* fix(santizeOutput): update import

* fix: namespace error imports

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2023-07-07 16:46:37 -04:00
daedalus
78ca3f6d5d refactor(bootstrap): move build and lifecycle setup to separate files
refactor(settingsService): add clear distinction between model types
2022-10-24 21:10:35 -04:00
daedalus
6cd9b79e27
fix(registration): error with default settings and gql (#52)
* fix(registration): error on install with gql

Resolves #51

* chore: format
2022-04-07 21:10:15 -04:00
DomDew
c630ef7abd
fix(isValidFindSlugParams): incorrect draftAndPublished check (#36)
Validation error should only trigger for content types that do NOT have draftAndPublish enabled.
2022-03-09 22:37:10 -05:00
DomDew
b0aaa5d52b
feat(graphql): add publicationState filter support (#23)
* feat(slugController): add publicationState as a query parameter (#23)

* feat(graphql): add publicationState as an arg to graphql type (#24)

* chore(README): update readme (#25)

* feat(graphql): refactor publicationState query

* chore(README): update readme to include previewState example for GraphQL

* feat(graphql): update server/utils/isValidFindSlugParams.js

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* chore(readme): update readme with suggested changes

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* feat(graphql): apply suggestions from code review in types

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* feat(graphql): include lodash check based on requested changes

* fix(graphql): contentType not defined in lodash check

Co-authored-by: Dominik Dewitz <dewitz@machbar.eu>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2022-03-07 22:40:40 -05:00
daedalus
3fb1b0b9b5
fix(findSlug utility): respect foreign model permissions (#33)
* fix(slugController): respect foreign model access permissions (#32)

* feat(utils): add `sanitizeOutput`

* feat(utils): add `isValidFindSlugParams`

* feat(utils): add `hasRequiredModelsScope`

* refactor(slugController): utilise util functions

* fix(Query.findSlug): respect model access permissions

refactor(Query.findSlug): utilise utils functions

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2022-03-02 21:07:46 -05:00