diff --git a/app/src/types/schema.d.ts b/app/src/types/schema.d.ts index 59b85e8..f80b648 100644 --- a/app/src/types/schema.d.ts +++ b/app/src/types/schema.d.ts @@ -861,45 +861,6 @@ export interface paths { */ patch: operations["updateSingleItemsAssociation"]; }; - "/items/members": { - /** - * List Items - * @description List the members items. - */ - get: operations["readItemsMembers"]; - /** - * Create an Item - * @description Create a new members item. - */ - post: operations["createItemsMembers"]; - /** - * Delete Multiple Items - * @description Delete multiple existing members items. - */ - delete: operations["deleteItemsMembers"]; - /** - * Update Multiple Items - * @description Update multiple members items at the same time. - */ - patch: operations["updateItemsMembers"]; - }; - "/items/members/{id}": { - /** - * Retrieve an Item - * @description Retrieve a single members item by unique identifier. - */ - get: operations["readSingleItemsMembers"]; - /** - * Delete an Item - * @description Delete an existing members item. - */ - delete: operations["deleteSingleItemsMembers"]; - /** - * Update an Item - * @description Update an existing members item. - */ - patch: operations["updateSingleItemsMembers"]; - }; "/items/languages": { /** * List Items @@ -1836,6 +1797,45 @@ export interface paths { */ patch: operations["updateSingleItemsPartnerCategory"]; }; + "/items/members": { + /** + * List Items + * @description List the members items. + */ + get: operations["readItemsMembers"]; + /** + * Create an Item + * @description Create a new members item. + */ + post: operations["createItemsMembers"]; + /** + * Delete Multiple Items + * @description Delete multiple existing members items. + */ + delete: operations["deleteItemsMembers"]; + /** + * Update Multiple Items + * @description Update multiple members items at the same time. + */ + patch: operations["updateItemsMembers"]; + }; + "/items/members/{id}": { + /** + * Retrieve an Item + * @description Retrieve a single members item by unique identifier. + */ + get: operations["readSingleItemsMembers"]; + /** + * Delete an Item + * @description Delete an existing members item. + */ + delete: operations["deleteSingleItemsMembers"]; + /** + * Update an Item + * @description Update an existing members item. + */ + patch: operations["updateSingleItemsMembers"]; + }; } export type webhooks = Record<string, never>; @@ -2816,15 +2816,6 @@ export interface components { | (number | components["schemas"]["ItemsAssociationPartners"])[] | null; }; - ItemsMembers: { - id?: number; - name?: string | null; - surname?: string | null; - email?: string | null; - sciper?: string | null; - link?: string | null; - picture?: string | components["schemas"]["Files"] | null; - }; ItemsLanguages: { code?: string; name?: string | null; @@ -3055,6 +3046,16 @@ export interface components { | (number | components["schemas"]["ItemsPartnerCategoryTranslations"])[] | null; }; + ItemsMembers: { + id?: number; + name?: string | null; + surname?: string | null; + email?: string | null; + sciper?: string | null; + link?: string | null; + picture?: string | components["schemas"]["Files"] | null; + poll_count?: number; + }; }; responses: { /** @description Error: Not found. */ @@ -7811,193 +7812,6 @@ export interface operations { 404: components["responses"]["NotFoundError"]; }; }; - /** - * List Items - * @description List the members items. - */ - readItemsMembers: { - parameters: { - query?: { - fields?: components["parameters"]["Fields"]; - limit?: components["parameters"]["Limit"]; - meta?: components["parameters"]["Meta"]; - offset?: components["parameters"]["Offset"]; - sort?: components["parameters"]["Sort"]; - filter?: components["parameters"]["Filter"]; - search?: components["parameters"]["Search"]; - }; - }; - responses: { - /** @description Successful request */ - 200: { - content: { - "application/json": { - data?: components["schemas"]["ItemsMembers"][]; - meta?: components["schemas"]["x-metadata"]; - }; - }; - }; - 401: components["responses"]["UnauthorizedError"]; - }; - }; - /** - * Create an Item - * @description Create a new members item. - */ - createItemsMembers: { - parameters: { - query?: { - meta?: components["parameters"]["Meta"]; - }; - }; - requestBody?: { - content: { - "application/json": - | components["schemas"]["ItemsMembers"][] - | components["schemas"]["ItemsMembers"]; - }; - }; - responses: { - /** @description Successful request */ - 200: { - content: { - "application/json": { - data?: unknown; - }; - }; - }; - 401: components["responses"]["UnauthorizedError"]; - }; - }; - /** - * Delete Multiple Items - * @description Delete multiple existing members items. - */ - deleteItemsMembers: { - responses: { - /** @description Successful request */ - 200: { - content: never; - }; - 401: components["responses"]["UnauthorizedError"]; - }; - }; - /** - * Update Multiple Items - * @description Update multiple members items at the same time. - */ - updateItemsMembers: { - parameters: { - query?: { - fields?: components["parameters"]["Fields"]; - limit?: components["parameters"]["Limit"]; - meta?: components["parameters"]["Meta"]; - offset?: components["parameters"]["Offset"]; - sort?: components["parameters"]["Sort"]; - filter?: components["parameters"]["Filter"]; - search?: components["parameters"]["Search"]; - }; - }; - requestBody?: { - content: { - "application/json": - | components["schemas"]["ItemsMembers"][] - | components["schemas"]["ItemsMembers"]; - }; - }; - responses: { - /** @description Successful request */ - 200: { - content: { - "application/json": { - data?: unknown; - }; - }; - }; - }; - }; - /** - * Retrieve an Item - * @description Retrieve a single members item by unique identifier. - */ - readSingleItemsMembers: { - parameters: { - query?: { - fields?: components["parameters"]["Fields"]; - meta?: components["parameters"]["Meta"]; - version?: components["parameters"]["Version"]; - }; - path: { - /** @description Index of the item. */ - id: number | string; - }; - }; - responses: { - /** @description Successful request */ - 200: { - content: { - "application/json": { - data?: components["schemas"]["ItemsMembers"]; - }; - }; - }; - 401: components["responses"]["UnauthorizedError"]; - 404: components["responses"]["NotFoundError"]; - }; - }; - /** - * Delete an Item - * @description Delete an existing members item. - */ - deleteSingleItemsMembers: { - parameters: { - path: { - /** @description Index of the item. */ - id: number | string; - }; - }; - responses: { - /** @description Successful request */ - 200: { - content: never; - }; - 401: components["responses"]["UnauthorizedError"]; - 404: components["responses"]["NotFoundError"]; - }; - }; - /** - * Update an Item - * @description Update an existing members item. - */ - updateSingleItemsMembers: { - parameters: { - query?: { - fields?: components["parameters"]["Fields"]; - meta?: components["parameters"]["Meta"]; - }; - path: { - /** @description Index of the item. */ - id: number | string; - }; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ItemsMembers"]; - }; - }; - responses: { - /** @description Successful request */ - 200: { - content: { - "application/json": { - data?: components["schemas"]["ItemsMembers"]; - }; - }; - }; - 401: components["responses"]["UnauthorizedError"]; - 404: components["responses"]["NotFoundError"]; - }; - }; /** * List Items * @description List the languages items. @@ -12486,12 +12300,198 @@ export interface operations { 404: components["responses"]["NotFoundError"]; }; }; + /** + * List Items + * @description List the members items. + */ + readItemsMembers: { + parameters: { + query?: { + fields?: components["parameters"]["Fields"]; + limit?: components["parameters"]["Limit"]; + meta?: components["parameters"]["Meta"]; + offset?: components["parameters"]["Offset"]; + sort?: components["parameters"]["Sort"]; + filter?: components["parameters"]["Filter"]; + search?: components["parameters"]["Search"]; + }; + }; + responses: { + /** @description Successful request */ + 200: { + content: { + "application/json": { + data?: components["schemas"]["ItemsMembers"][]; + meta?: components["schemas"]["x-metadata"]; + }; + }; + }; + 401: components["responses"]["UnauthorizedError"]; + }; + }; + /** + * Create an Item + * @description Create a new members item. + */ + createItemsMembers: { + parameters: { + query?: { + meta?: components["parameters"]["Meta"]; + }; + }; + requestBody?: { + content: { + "application/json": + | components["schemas"]["ItemsMembers"][] + | components["schemas"]["ItemsMembers"]; + }; + }; + responses: { + /** @description Successful request */ + 200: { + content: { + "application/json": { + data?: unknown; + }; + }; + }; + 401: components["responses"]["UnauthorizedError"]; + }; + }; + /** + * Delete Multiple Items + * @description Delete multiple existing members items. + */ + deleteItemsMembers: { + responses: { + /** @description Successful request */ + 200: { + content: never; + }; + 401: components["responses"]["UnauthorizedError"]; + }; + }; + /** + * Update Multiple Items + * @description Update multiple members items at the same time. + */ + updateItemsMembers: { + parameters: { + query?: { + fields?: components["parameters"]["Fields"]; + limit?: components["parameters"]["Limit"]; + meta?: components["parameters"]["Meta"]; + offset?: components["parameters"]["Offset"]; + sort?: components["parameters"]["Sort"]; + filter?: components["parameters"]["Filter"]; + search?: components["parameters"]["Search"]; + }; + }; + requestBody?: { + content: { + "application/json": + | components["schemas"]["ItemsMembers"][] + | components["schemas"]["ItemsMembers"]; + }; + }; + responses: { + /** @description Successful request */ + 200: { + content: { + "application/json": { + data?: unknown; + }; + }; + }; + }; + }; + /** + * Retrieve an Item + * @description Retrieve a single members item by unique identifier. + */ + readSingleItemsMembers: { + parameters: { + query?: { + fields?: components["parameters"]["Fields"]; + meta?: components["parameters"]["Meta"]; + version?: components["parameters"]["Version"]; + }; + path: { + /** @description Index of the item. */ + id: number | string; + }; + }; + responses: { + /** @description Successful request */ + 200: { + content: { + "application/json": { + data?: components["schemas"]["ItemsMembers"]; + }; + }; + }; + 401: components["responses"]["UnauthorizedError"]; + 404: components["responses"]["NotFoundError"]; + }; + }; + /** + * Delete an Item + * @description Delete an existing members item. + */ + deleteSingleItemsMembers: { + parameters: { + path: { + /** @description Index of the item. */ + id: number | string; + }; + }; + responses: { + /** @description Successful request */ + 200: { + content: never; + }; + 401: components["responses"]["UnauthorizedError"]; + 404: components["responses"]["NotFoundError"]; + }; + }; + /** + * Update an Item + * @description Update an existing members item. + */ + updateSingleItemsMembers: { + parameters: { + query?: { + fields?: components["parameters"]["Fields"]; + meta?: components["parameters"]["Meta"]; + }; + path: { + /** @description Index of the item. */ + id: number | string; + }; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["ItemsMembers"]; + }; + }; + responses: { + /** @description Successful request */ + 200: { + content: { + "application/json": { + data?: components["schemas"]["ItemsMembers"]; + }; + }; + }; + 401: components["responses"]["UnauthorizedError"]; + 404: components["responses"]["NotFoundError"]; + }; + }; } export type Schema = { association_memberships: components["schemas"]["ItemsAssociationMemberships"][]; association: components["schemas"]["ItemsAssociation"]; - members: components["schemas"]["ItemsMembers"][]; languages: components["schemas"]["ItemsLanguages"][]; association_memberships_translations: components["schemas"]["ItemsAssociationMembershipsTranslations"][]; partners: components["schemas"]["ItemsPartners"][]; @@ -12516,4 +12516,5 @@ export type Schema = { news_translations: components["schemas"]["ItemsNewsTranslations"][]; partner_category_translations: components["schemas"]["ItemsPartnerCategoryTranslations"][]; partner_category: components["schemas"]["ItemsPartnerCategory"][]; + members: components["schemas"]["ItemsMembers"][]; }; diff --git a/directus/snapshot.yaml b/directus/snapshot.yaml index 737669a..8b72414 100644 --- a/directus/snapshot.yaml +++ b/directus/snapshot.yaml @@ -3881,6 +3881,44 @@ fields: has_auto_increment: false foreign_key_table: directus_files foreign_key_column: id + - collection: members + field: poll_count + type: integer + meta: + collection: members + conditions: null + display: null + display_options: null + field: poll_count + group: null + hidden: false + interface: null + note: null + options: null + readonly: true + required: true + sort: 8 + special: null + translations: null + validation: null + validation_message: null + width: full + schema: + name: poll_count + table: members + data_type: integer + default_value: 0 + max_length: null + numeric_precision: 32 + numeric_scale: 0 + is_nullable: false + is_unique: false + is_primary_key: false + is_generated: false + generation_expression: null + has_auto_increment: false + foreign_key_table: null + foreign_key_column: null - collection: news field: id type: integer