@meeovi/layer-shared 1.0.0 → 1.0.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/nuxt.config.ts +12 -2
- package/package.json +2 -1
- package/src/mappers/createMapper.ts +11 -0
- package/src/mappers/errors.ts +13 -0
- package/src/mappers/index.ts +7 -0
- package/src/mappers/registry.ts +28 -0
- package/src/mappers/testHarness.ts +142 -0
- package/src/mappers/types.ts +6 -0
- package/src/mappers/zodMapper.ts +37 -0
- package/src/runtime/plugin.ts +5 -0
- package/src/runtime/server/tsconfig.json +3 -0
- package/src/schema/commerce/attributes.ts +10 -0
- package/src/schema/commerce/blocks.ts +7 -0
- package/src/schema/commerce/bundleProduts.ts +12 -0
- package/src/schema/commerce/cart.ts +35 -0
- package/src/schema/commerce/category.ts +15 -0
- package/src/schema/commerce/checkout.ts +11 -0
- package/src/schema/commerce/company.ts +8 -0
- package/src/schema/commerce/configurableProducts.ts +11 -0
- package/src/schema/commerce/coupons.ts +10 -0
- package/src/schema/commerce/credit-memos.ts +50 -0
- package/src/schema/commerce/digitalProducts.ts +13 -0
- package/src/schema/commerce/directory.ts +8 -0
- package/src/schema/commerce/events.ts +30 -0
- package/src/schema/commerce/gift-registry.ts +9 -0
- package/src/schema/commerce/guest-cart.ts +6 -0
- package/src/schema/commerce/inventory.ts +9 -0
- package/src/schema/commerce/invoices.ts +49 -0
- package/src/schema/commerce/orders.ts +39 -0
- package/src/schema/commerce/payments.ts +11 -0
- package/src/schema/commerce/price.ts +12 -0
- package/src/schema/commerce/product-types.ts +9 -0
- package/src/schema/commerce/product.ts +23 -0
- package/src/schema/commerce/quotes.ts +10 -0
- package/src/schema/commerce/requisition-lists.ts +7 -0
- package/src/schema/commerce/returns.ts +11 -0
- package/src/schema/commerce/reward.ts +8 -0
- package/src/schema/commerce/rules.ts +8 -0
- package/src/schema/commerce/shipment.ts +21 -0
- package/src/schema/commerce/shops.ts +10 -0
- package/src/schema/commerce/stockItems.ts +8 -0
- package/src/schema/commerce/store.ts +8 -0
- package/src/schema/commerce/subscriptons.ts +11 -0
- package/src/schema/commerce/taxRates.ts +9 -0
- package/src/schema/commerce/taxRules.ts +8 -0
- package/src/schema/commerce/teams.ts +7 -0
- package/src/schema/commerce/transactions.ts +13 -0
- package/src/schema/identity/customerGroup.ts +8 -0
- package/src/schema/identity/user.ts +47 -0
- package/src/schema/media/asset.ts +31 -0
- package/src/schema/social/post.ts +28 -0
- package/src/schema/social/profile.ts +25 -0
- package/src/schema/social/space.ts +19 -0
- package/src/utils/assert.ts +8 -0
- package/src/utils/deepMerge.ts +21 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/isObject.ts +7 -0
- package/src/utils/module.ts +19 -0
- package/src/utils/safeGet.ts +8 -0
- package/app/types/api/global-search.ts +0 -8
- package/app/types/blocks/block-button-group.ts +0 -7
- package/app/types/blocks/block-button.ts +0 -14
- package/app/types/blocks/block-column.ts +0 -20
- package/app/types/blocks/block-cta.ts +0 -10
- package/app/types/blocks/block-divider.ts +0 -4
- package/app/types/blocks/block-faq.ts +0 -12
- package/app/types/blocks/block-form.ts +0 -8
- package/app/types/blocks/block-gallery.ts +0 -14
- package/app/types/blocks/block-hero.ts +0 -12
- package/app/types/blocks/block-html.ts +0 -4
- package/app/types/blocks/block-logocloud.ts +0 -14
- package/app/types/blocks/block-quote.ts +0 -11
- package/app/types/blocks/block-richtext.ts +0 -7
- package/app/types/blocks/block-steps.ts +0 -22
- package/app/types/blocks/block-team.ts +0 -6
- package/app/types/blocks/block-testimonial.ts +0 -14
- package/app/types/blocks/block-video.ts +0 -10
- package/app/types/blocks/block.ts +0 -49
- package/app/types/blocks/index.ts +0 -18
- package/app/types/componentMap.ts +0 -15
- package/app/types/content/category.ts +0 -11
- package/app/types/content/form.ts +0 -20
- package/app/types/content/index.ts +0 -6
- package/app/types/content/page.ts +0 -76
- package/app/types/content/post.ts +0 -39
- package/app/types/content/team.ts +0 -16
- package/app/types/content/testimonial.ts +0 -19
- package/app/types/directus.d.ts +0 -47
- package/app/types/env.d.ts +0 -8
- package/app/types/help/index.ts +0 -53
- package/app/types/index.d.ts +0 -9
- package/app/types/index.ts +0 -7
- package/app/types/meta/analytics.ts +0 -18
- package/app/types/meta/config.ts +0 -21
- package/app/types/meta/globals.ts +0 -30
- package/app/types/meta/index.ts +0 -6
- package/app/types/meta/navigation.ts +0 -32
- package/app/types/meta/redirect.ts +0 -13
- package/app/types/meta/seo.ts +0 -19
- package/app/types/os/contact.ts +0 -23
- package/app/types/os/conversation.ts +0 -25
- package/app/types/os/index.ts +0 -16
- package/app/types/os/organization.ts +0 -54
- package/app/types/os/os-activity.ts +0 -28
- package/app/types/os/os-deal.ts +0 -45
- package/app/types/os/os-expense.ts +0 -22
- package/app/types/os/os-invoice.ts +0 -48
- package/app/types/os/os-item.ts +0 -18
- package/app/types/os/os-payment.ts +0 -29
- package/app/types/os/os-project.ts +0 -47
- package/app/types/os/os-proposal.ts +0 -84
- package/app/types/os/os-settings.ts +0 -19
- package/app/types/os/os-subscription.ts +0 -12
- package/app/types/os/os-task.ts +0 -34
- package/app/types/os/os-tax-rate.ts +0 -13
- package/app/types/pageComponentMap.ts +0 -8
- package/app/types/schema.d.ts +0 -39
- package/app/types/schema.ts +0 -151
- package/app/types/system/file.ts +0 -46
- package/app/types/system/folder.ts +0 -8
- package/app/types/system/index.ts +0 -4
- package/app/types/system/role.ts +0 -21
- package/app/types/system/user.ts +0 -56
package/app/types/system/file.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { Folder } from './folder.js';
|
|
2
|
-
import type { User } from './user.js';
|
|
3
|
-
|
|
4
|
-
export interface File {
|
|
5
|
-
/** Unique identifier for the file. */
|
|
6
|
-
id: string;
|
|
7
|
-
/** Where the file is stored. Either `local` for the local filesystem or the name of the storage adapter (for example `s3`). */
|
|
8
|
-
storage: string;
|
|
9
|
-
/** Name of the file on disk. By default, Directus uses a random hash for the filename. */
|
|
10
|
-
filename_disk: string;
|
|
11
|
-
/** How you want to the file to be named when it's being downloaded. */
|
|
12
|
-
filename_download: string;
|
|
13
|
-
/** Title for the file. Is extracted from the filename on upload, but can be edited by the user. */
|
|
14
|
-
title: string;
|
|
15
|
-
/** MIME type of the file. */
|
|
16
|
-
type: string;
|
|
17
|
-
/** Virtual folder where this file resides in. */
|
|
18
|
-
folder: string | Folder | null;
|
|
19
|
-
/** Who uploaded the file. */
|
|
20
|
-
uploaded_by: string | User;
|
|
21
|
-
/** When the file was uploaded. */
|
|
22
|
-
uploaded_on: string;
|
|
23
|
-
modified_by: string | User | null;
|
|
24
|
-
modified_on: string;
|
|
25
|
-
/** Character set of the file. */
|
|
26
|
-
charset: string | null;
|
|
27
|
-
/** Size of the file in bytes. */
|
|
28
|
-
filesize: number;
|
|
29
|
-
/** Width of the file in pixels. Only applies to images. */
|
|
30
|
-
width: number | null;
|
|
31
|
-
/** Height of the file in pixels. Only applies to images. */
|
|
32
|
-
height: number | null;
|
|
33
|
-
/** Duration of the file in seconds. Only applies to audio and video. */
|
|
34
|
-
duration: number | null;
|
|
35
|
-
/** Where the file was embedded from. */
|
|
36
|
-
embed: string | null;
|
|
37
|
-
/** Description for the file. */
|
|
38
|
-
description: string | null;
|
|
39
|
-
/** Where the file was created. Is automatically populated based on EXIF data for images. */
|
|
40
|
-
location: string | null;
|
|
41
|
-
/** Tags for the file. Is automatically populated based on EXIF data for images. */
|
|
42
|
-
tags: string[] | null;
|
|
43
|
-
/** IPTC, EXIF, and ICC metadata extracted from file */
|
|
44
|
-
metadata: { [key: string]: any } | null;
|
|
45
|
-
storage_divider: string;
|
|
46
|
-
}
|
package/app/types/system/role.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { User } from './user.js';
|
|
2
|
-
|
|
3
|
-
export interface Role {
|
|
4
|
-
/** Unique identifier for the role. */
|
|
5
|
-
id: string;
|
|
6
|
-
/** Name of the role. */
|
|
7
|
-
name: string;
|
|
8
|
-
/** The role's icon. */
|
|
9
|
-
icon: string;
|
|
10
|
-
/** Description of the role. */
|
|
11
|
-
description: string | null;
|
|
12
|
-
/** Array of IP addresses that are allowed to connect to the API as a user of this role. */
|
|
13
|
-
ip_access: string[];
|
|
14
|
-
/** Whether or not this role enforces the use of 2FA. */
|
|
15
|
-
enforce_tfa: boolean;
|
|
16
|
-
/** Admin role. If true, skips all permission checks. */
|
|
17
|
-
admin_access: boolean;
|
|
18
|
-
/** The users in the role are allowed to use the app. */
|
|
19
|
-
app_access: boolean;
|
|
20
|
-
users: string | User[];
|
|
21
|
-
}
|
package/app/types/system/user.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { Role } from './role.js';
|
|
2
|
-
|
|
3
|
-
export interface User {
|
|
4
|
-
/** Unique identifier for the user. */
|
|
5
|
-
id: string;
|
|
6
|
-
/** First name of the user. */
|
|
7
|
-
first_name: string;
|
|
8
|
-
/** Last name of the user. */
|
|
9
|
-
last_name: string;
|
|
10
|
-
/** Unique email address for the user. */
|
|
11
|
-
email: string;
|
|
12
|
-
/** Password of the user. */
|
|
13
|
-
password: string;
|
|
14
|
-
/** The user's location. */
|
|
15
|
-
location: string | null;
|
|
16
|
-
/** The user's title. */
|
|
17
|
-
title: string | null;
|
|
18
|
-
/** The user's description. */
|
|
19
|
-
description: string | null;
|
|
20
|
-
/** The user's tags. */
|
|
21
|
-
tags: string[] | null;
|
|
22
|
-
/** The user's avatar. */
|
|
23
|
-
avatar: string | File | null;
|
|
24
|
-
/** The user's language used in Directus. */
|
|
25
|
-
language: string;
|
|
26
|
-
/** What theme the user is using. */
|
|
27
|
-
theme: 'light' | 'dark' | 'auto';
|
|
28
|
-
/** The 2FA secret string that's used to generate one time passwords. */
|
|
29
|
-
tfa_secret: string | null;
|
|
30
|
-
/** Status of the user. */
|
|
31
|
-
status: 'active' | 'invited' | 'draft' | 'suspended' | 'deleted';
|
|
32
|
-
/** Unique identifier of the role of this user. */
|
|
33
|
-
role: string | Role;
|
|
34
|
-
/** Static token for the user. */
|
|
35
|
-
token: string | null;
|
|
36
|
-
last_access: string | null;
|
|
37
|
-
/** Last page that the user was on. */
|
|
38
|
-
last_page: string | null;
|
|
39
|
-
provider: string;
|
|
40
|
-
external_identifier: string | null;
|
|
41
|
-
auth_data: { [key: string]: any } | null;
|
|
42
|
-
github: string | null;
|
|
43
|
-
linkedin: string | null;
|
|
44
|
-
start_date: string | null;
|
|
45
|
-
pronouns: string | null;
|
|
46
|
-
nickname: string | null;
|
|
47
|
-
birthday: string | null;
|
|
48
|
-
personal_email: string | null;
|
|
49
|
-
classification: string | null;
|
|
50
|
-
timezone: string | null;
|
|
51
|
-
phone: string | null;
|
|
52
|
-
email_notifications: boolean | null;
|
|
53
|
-
company_info: string;
|
|
54
|
-
preferences_divider: string;
|
|
55
|
-
admin_divider: string;
|
|
56
|
-
}
|