sitero-domain 0.1.1 → 0.2.0
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/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/resources/admin/base.d.ts +8 -3
- package/dist/types/src/resources/admin/base.d.ts.map +1 -1
- package/dist/types/src/resources/admin/index.d.ts +2 -2
- package/dist/types/src/resources/admin/index.d.ts.map +1 -1
- package/dist/types/src/resources/admin/translation.d.ts +8 -5
- package/dist/types/src/resources/admin/translation.d.ts.map +1 -1
- package/dist/types/src/resources/admin-refresh-token/base.d.ts +6 -3
- package/dist/types/src/resources/admin-refresh-token/base.d.ts.map +1 -1
- package/dist/types/src/resources/admin-refresh-token/index.d.ts +1 -1
- package/dist/types/src/resources/admin-refresh-token/index.d.ts.map +1 -1
- package/dist/types/src/resources/config/base.d.ts +9 -6
- package/dist/types/src/resources/config/base.d.ts.map +1 -1
- package/dist/types/src/resources/config/index.d.ts +2 -2
- package/dist/types/src/resources/config/index.d.ts.map +1 -1
- package/dist/types/src/resources/config/translation.d.ts +9 -6
- package/dist/types/src/resources/config/translation.d.ts.map +1 -1
- package/dist/types/src/resources/file/base.d.ts +0 -2
- package/dist/types/src/resources/file/base.d.ts.map +1 -1
- package/dist/types/src/resources/file/index.d.ts +1 -1
- package/dist/types/src/resources/file/index.d.ts.map +1 -1
- package/dist/types/src/resources/file/translation.d.ts +7 -4
- package/dist/types/src/resources/file/translation.d.ts.map +1 -1
- package/dist/types/src/resources/index.d.ts +7 -8
- package/dist/types/src/resources/index.d.ts.map +1 -1
- package/dist/types/src/resources/inquiry/base.d.ts +5 -2
- package/dist/types/src/resources/inquiry/base.d.ts.map +1 -1
- package/dist/types/src/resources/inquiry/index.d.ts +1 -1
- package/dist/types/src/resources/inquiry/index.d.ts.map +1 -1
- package/dist/types/src/resources/post/base.d.ts +8 -5
- package/dist/types/src/resources/post/base.d.ts.map +1 -1
- package/dist/types/src/resources/post/index.d.ts +2 -2
- package/dist/types/src/resources/post/index.d.ts.map +1 -1
- package/dist/types/src/resources/post/translation.d.ts +10 -7
- package/dist/types/src/resources/post/translation.d.ts.map +1 -1
- package/dist/types/src/resources/seo-metadata/base.d.ts +5 -2
- package/dist/types/src/resources/seo-metadata/base.d.ts.map +1 -1
- package/dist/types/src/resources/seo-metadata/index.d.ts +1 -1
- package/dist/types/src/resources/seo-metadata/index.d.ts.map +1 -1
- package/package.json +5 -6
- package/dist/types/src/resources/folder/base.d.ts +0 -10
- package/dist/types/src/resources/folder/base.d.ts.map +0 -1
- package/dist/types/src/resources/folder/index.d.ts +0 -2
- package/dist/types/src/resources/folder/index.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { MultiItems, SingleItem } from "./shared";
|
|
2
2
|
export type { BaseTranslation, Translation } from "./shared";
|
|
3
|
-
export { type Admin, type AdminSafe, type AdminTranslation, ADMIN_ROLES, ADMIN_ROLE_ARRAY, type AdminRole, type AdminRefreshToken, type File, type FileTranslation, FILE_TYPES, type FileType, type
|
|
3
|
+
export { type Admin, type AdminData, type AdminSafe, type AdminTranslation, type AdminTranslationData, ADMIN_ROLES, ADMIN_ROLE_ARRAY, type AdminRole, type AdminRefreshToken, type AdminRefreshTokenData, type File, type FileTranslation, type FileTranslationData, FILE_TYPES, type FileType, type Post, type PostData, type PostTranslation, type PostTranslationData, POST_TYPES, type PostType, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type SeoMetadataData, type Alternate, type Config, type ConfigData, type ConfigTranslation, type ConfigTranslationData, type Inquiry, type InquiryData, USER_STATUS, type UserStatus, type User, type UserSafe, type UserRefreshToken, type Product, type ProductVariant, type ProductVariantTranslation, SHIPPING_METHOD, type ShippingMethod, CVS_BRAND, type CvsBrand, isCvsBrand, type Recipient, ORDER_STATUS, type OrderStatus, ORDER_PAYMENT_METHODS, type OrderPaymentMethod, ORDER_PAYMENT_STATUS, type OrderPaymentStatus, ORDER_SHIPPING_STATUS, type OrderShippingStatus, type Order, type OrderItem, type OrderPromotion, type OrderItemPromotion, PROMOTION_ELIGIBILITY_SCOPE, type PromotionEligibilityScope, PROMOTION_CUSTOMER_ELIGIBILITY, type PromotionCustomerEligibility, PROMOTION_CONDITION_TYPE, type PromotionConditionType, PROMOTION_DISCOUNT_TARGET, type PromotionDiscountTarget, PROMOTION_DISCOUNT_METHOD, type PromotionDiscountMethod, PROMOTION_APPLICATION_METHOD, type PromotionApplicationMethod, PROMOTION_USAGE_LIMIT_PERIOD, type PromotionUsageLimitPeriod, PROMOTION_USAGE_STATUS, type PromotionUsageStatus, type Promotion, type PromotionCode, type PromotionEligibilityProduct, type PromotionEligibilityProductVariant, type PromotionTranslation, type DeviceInfo, } from "./resources";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK7D,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,WAAW,EACX,gBAAgB,EAChB,KAAK,SAAS,EAGd,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK7D,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,WAAW,EACX,gBAAgB,EAChB,KAAK,SAAS,EAGd,KAAK,iBAAiB,EAC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,EACvC,KAAK,oBAAoB,EAGzB,KAAK,UAAU,GAChB,MAAM,aAAa,CAAC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import type { AdminRole } from "./props";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** Persistable Admin values. */
|
|
3
|
+
export interface AdminData {
|
|
4
4
|
email: string;
|
|
5
5
|
role: AdminRole;
|
|
6
6
|
passwordHash: string;
|
|
7
|
+
preferredLocale: string;
|
|
8
|
+
receivesInquiryNotifications: boolean;
|
|
7
9
|
socialLinks: string[];
|
|
8
10
|
avatarImageId: string | null;
|
|
11
|
+
emailVerifiedAt: Date | null;
|
|
12
|
+
}
|
|
13
|
+
export interface Admin extends AdminData {
|
|
14
|
+
id: string;
|
|
9
15
|
createdAt: Date;
|
|
10
16
|
updatedAt: Date;
|
|
11
|
-
emailVerifiedAt: Date | null;
|
|
12
17
|
}
|
|
13
18
|
export type AdminSafe = Omit<Admin, "passwordHash">;
|
|
14
19
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,gCAAgC;AAChC,MAAM,WAAW,SAAS;IAExB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B,EAAE,OAAO,CAAC;IAGtC,WAAW,EAAE,MAAM,EAAE,CAAC;IAKtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAK7B,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;CAC9B;AAGD,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,EAAE,EAAE,MAAM,CAAC;IAKX,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAGD,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ADMIN_ROLES, ADMIN_ROLE_ARRAY, type AdminRole } from "./props";
|
|
2
|
-
export type { Admin, AdminSafe } from "./base";
|
|
3
|
-
export type { AdminTranslation } from "./translation";
|
|
2
|
+
export type { Admin, AdminData, AdminSafe } from "./base";
|
|
3
|
+
export type { AdminTranslation, AdminTranslationData } from "./translation";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AACxE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AACxE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
locale: Locale;
|
|
5
|
-
adminId: string;
|
|
1
|
+
import type { Translation } from "../../shared";
|
|
2
|
+
/** Persistable localized Admin profile values. */
|
|
3
|
+
export interface AdminTranslationData {
|
|
6
4
|
name: string | null;
|
|
7
5
|
authorName: string | null;
|
|
8
6
|
description: string | null;
|
|
@@ -12,6 +10,11 @@ export interface AdminTranslation<Locale extends string = string> extends BaseTr
|
|
|
12
10
|
knowsAbout: string[];
|
|
13
11
|
homeLocation: string | null;
|
|
14
12
|
nationality: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface AdminTranslation<Locale extends string = string> extends Translation<Locale>, AdminTranslationData {
|
|
15
|
+
id: string;
|
|
16
|
+
locale: Locale;
|
|
17
|
+
adminId: string;
|
|
15
18
|
createdAt: Date;
|
|
16
19
|
updatedAt: Date;
|
|
17
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin/translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin/translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,kDAAkD;AAClD,MAAM,WAAW,oBAAoB;IAEnC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,CAC9D,SAAQ,WAAW,CAAC,MAAM,CAAC,EAAE,oBAAoB;IACjD,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAKf,OAAO,EAAE,MAAM,CAAC;IAKhB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { DeviceInfo } from "../device-info";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** Persistable Admin refresh-token values. */
|
|
3
|
+
export interface AdminRefreshTokenData {
|
|
4
4
|
tokenHash: string;
|
|
5
5
|
email: string;
|
|
6
6
|
ip: string;
|
|
7
7
|
deviceInfo: DeviceInfo | null;
|
|
8
8
|
adminId: string;
|
|
9
|
-
createdAt: Date;
|
|
10
9
|
expiresAt: Date;
|
|
11
10
|
}
|
|
11
|
+
export interface AdminRefreshToken extends AdminRefreshTokenData {
|
|
12
|
+
id: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
}
|
|
12
15
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin-refresh-token/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin-refresh-token/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IAEpC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IAGd,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAK9B,OAAO,EAAE,MAAM,CAAC;IAKhB,SAAS,EAAE,IAAI,CAAC;CACjB;AAGD,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D,EAAE,EAAE,MAAM,CAAC;IAKX,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { AdminRefreshToken } from "./base";
|
|
1
|
+
export type { AdminRefreshToken, AdminRefreshTokenData } from "./base";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin-refresh-token/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/admin-refresh-token/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
slug: string;
|
|
4
|
-
index: number;
|
|
5
|
-
createdAt: Date;
|
|
6
|
-
updatedAt: Date;
|
|
1
|
+
/** Fixed, site-specific scalar slots carried by a Config. */
|
|
2
|
+
export interface ConfigData {
|
|
7
3
|
text1: string | null;
|
|
8
4
|
text2: string | null;
|
|
9
5
|
text3: string | null;
|
|
@@ -45,4 +41,11 @@ export interface Config {
|
|
|
45
41
|
int9: number | null;
|
|
46
42
|
int10: number | null;
|
|
47
43
|
}
|
|
44
|
+
export interface Config extends ConfigData {
|
|
45
|
+
id: string;
|
|
46
|
+
slug: string;
|
|
47
|
+
index: number;
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
updatedAt: Date;
|
|
50
|
+
}
|
|
48
51
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/config/base.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file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M,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAKd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { Config } from "./base";
|
|
2
|
-
export type { ConfigTranslation } from "./translation";
|
|
1
|
+
export type { Config, ConfigData } from "./base";
|
|
2
|
+
export type { ConfigTranslation, ConfigTranslationData } from "./translation";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACjD,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
locale: Locale;
|
|
5
|
-
createdAt: Date;
|
|
6
|
-
updatedAt: Date;
|
|
1
|
+
import type { Translation } from "../../shared";
|
|
2
|
+
/** Fixed, site-specific localized scalar slots carried by a Config. */
|
|
3
|
+
export interface ConfigTranslationData {
|
|
7
4
|
i18nText1: string | null;
|
|
8
5
|
i18nText2: string | null;
|
|
9
6
|
i18nText3: string | null;
|
|
@@ -25,4 +22,10 @@ export interface ConfigTranslation<Locale extends string = string> extends BaseT
|
|
|
25
22
|
i18nData9: any[];
|
|
26
23
|
i18nData10: any[];
|
|
27
24
|
}
|
|
25
|
+
export interface ConfigTranslation<Locale extends string = string> extends Translation<Locale>, ConfigTranslationData {
|
|
26
|
+
id: string;
|
|
27
|
+
locale: Locale;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
}
|
|
28
31
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../src/resources/config/translation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../src/resources/config/translation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,uEAAuE;AACvE,MAAM,WAAW,qBAAqB;IAEpC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,UAAU,EAAE,GAAG,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,CAC/D,SAAQ,WAAW,CAAC,MAAM,CAAC,EAAE,qBAAqB;IAClD,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAKf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -2,7 +2,6 @@ import type { FileType } from "./props";
|
|
|
2
2
|
export interface File {
|
|
3
3
|
id: string;
|
|
4
4
|
key: string;
|
|
5
|
-
checksum: string;
|
|
6
5
|
width: number | null;
|
|
7
6
|
height: number | null;
|
|
8
7
|
duration: number | null;
|
|
@@ -12,7 +11,6 @@ export interface File {
|
|
|
12
11
|
mimeType: string;
|
|
13
12
|
type: FileType;
|
|
14
13
|
isLocked: boolean;
|
|
15
|
-
folderId: string | null;
|
|
16
14
|
createdAt: Date;
|
|
17
15
|
updatedAt: Date;
|
|
18
16
|
deletedAt: Date | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/file/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IAGX,GAAG,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/file/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IAGX,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IAGf,QAAQ,EAAE,OAAO,CAAC;IAKlB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/file/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AACpD,YAAY,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/file/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AACpD,YAAY,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
locale: Locale;
|
|
1
|
+
import type { Translation } from "../../shared";
|
|
2
|
+
/** Editable, locale-specific File presentation values. */
|
|
3
|
+
export interface FileTranslationData {
|
|
5
4
|
name: string | null;
|
|
6
5
|
alt: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface FileTranslation<Locale extends string = string> extends Translation<Locale>, FileTranslationData {
|
|
8
|
+
id: string;
|
|
9
|
+
locale: Locale;
|
|
7
10
|
fileId: string;
|
|
8
11
|
createdAt: Date;
|
|
9
12
|
updatedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../src/resources/file/translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../src/resources/file/translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAGD,MAAM,WAAW,eAAe,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,CAC7D,SAAQ,WAAW,CAAC,MAAM,CAAC,EAAE,mBAAmB;IAChD,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAKf,MAAM,EAAE,MAAM,CAAC;IAKf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { type Admin, type AdminSafe, type AdminTranslation, ADMIN_ROLES, ADMIN_ROLE_ARRAY, type AdminRole, } from "./admin";
|
|
2
|
-
export type { AdminRefreshToken } from "./admin-refresh-token";
|
|
3
|
-
export { type File, type FileTranslation, FILE_TYPES, type FileType, } from "./file";
|
|
4
|
-
export type
|
|
5
|
-
export
|
|
6
|
-
export type {
|
|
7
|
-
export type {
|
|
8
|
-
export type { Inquiry } from "./inquiry";
|
|
1
|
+
export { type Admin, type AdminData, type AdminSafe, type AdminTranslation, type AdminTranslationData, ADMIN_ROLES, ADMIN_ROLE_ARRAY, type AdminRole, } from "./admin";
|
|
2
|
+
export type { AdminRefreshToken, AdminRefreshTokenData, } from "./admin-refresh-token";
|
|
3
|
+
export { type File, type FileTranslation, type FileTranslationData, FILE_TYPES, type FileType, } from "./file";
|
|
4
|
+
export { type Post, type PostData, type PostTranslation, type PostTranslationData, POST_TYPES, type PostType, type ExternalLink, type Faq, type TocItem, } from "./post";
|
|
5
|
+
export type { SeoMetadata, SeoMetadataData, Alternate, } from "./seo-metadata";
|
|
6
|
+
export type { Config, ConfigData, ConfigTranslation, ConfigTranslationData, } from "./config";
|
|
7
|
+
export type { Inquiry, InquiryData } from "./inquiry";
|
|
9
8
|
export { type User, type UserSafe, USER_STATUS, type UserStatus, } from "./user";
|
|
10
9
|
export type { UserRefreshToken } from "./user-refresh-token";
|
|
11
10
|
export type { Product, ProductVariant, ProductVariantTranslation, } from "./product";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,gB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EACvB,qBAAqB,EACrB,KAAK,mBAAmB,GACzB,MAAM,SAAS,CAAC;AAKjB,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,oBAAoB,EAEzB,2BAA2B,EAC3B,KAAK,yBAAyB,EAC9B,8BAA8B,EAC9B,KAAK,4BAA4B,EACjC,wBAAwB,EACxB,KAAK,sBAAsB,EAC3B,yBAAyB,EACzB,KAAK,uBAAuB,EAC5B,yBAAyB,EACzB,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,KAAK,0BAA0B,EAC/B,4BAA4B,EAC5B,KAAK,yBAAyB,EAC9B,sBAAsB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,aAAa,CAAC;AAGrB,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** Persistable, site-defined Inquiry fields. */
|
|
2
|
+
export interface InquiryData {
|
|
3
3
|
text1: string | null;
|
|
4
4
|
text2: string | null;
|
|
5
5
|
text3: string | null;
|
|
@@ -10,6 +10,9 @@ export interface Inquiry {
|
|
|
10
10
|
text8: string | null;
|
|
11
11
|
text9: string | null;
|
|
12
12
|
text10: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface Inquiry extends InquiryData {
|
|
15
|
+
id: string;
|
|
13
16
|
createdAt: Date;
|
|
14
17
|
updatedAt: Date;
|
|
15
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/inquiry/base.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/inquiry/base.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,OAAQ,SAAQ,WAAW;IAC1C,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { Inquiry } from "./base";
|
|
1
|
+
export type { Inquiry, InquiryData } from "./base";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/inquiry/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/inquiry/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PostType } from "./props";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** Persistable Post values excluding identity and timestamps. */
|
|
3
|
+
export interface PostData {
|
|
4
4
|
type: PostType;
|
|
5
5
|
isLocked: boolean;
|
|
6
6
|
isActive: boolean;
|
|
@@ -13,9 +13,6 @@ export interface Post {
|
|
|
13
13
|
authorId: string | null;
|
|
14
14
|
topicId: string | null;
|
|
15
15
|
coverImageId: string | null;
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
updatedAt: Date;
|
|
18
|
-
deletedAt: Date | null;
|
|
19
16
|
state1: boolean;
|
|
20
17
|
state2: boolean;
|
|
21
18
|
state3: boolean;
|
|
@@ -53,4 +50,10 @@ export interface Post {
|
|
|
53
50
|
int3: number | null;
|
|
54
51
|
int4: number | null;
|
|
55
52
|
}
|
|
53
|
+
export interface Post extends PostData {
|
|
54
|
+
id: string;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
updatedAt: Date;
|
|
57
|
+
deletedAt: Date | null;
|
|
58
|
+
}
|
|
56
59
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/post/base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/post/base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,iEAAiE;AACjE,MAAM,WAAW,QAAQ;IAEvB,IAAI,EAAE,QAAQ,CAAC;IAKf,QAAQ,EAAE,OAAO,CAAC;IAElB,QAAQ,EAAE,OAAO,CAAC;IAElB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IAKvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAKvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAM5B,MAAM,EAAE,OAAO,CA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EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,IAAK,SAAQ,QAAQ;IACpC,EAAE,EAAE,MAAM,CAAC;IAKX,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { POST_TYPES, type PostType, type ExternalLink, type Faq, type TocItem, } from "./props";
|
|
2
|
-
export type { Post } from "./base";
|
|
3
|
-
export type { PostTranslation } from "./translation";
|
|
2
|
+
export type { Post, PostData } from "./base";
|
|
3
|
+
export type { PostTranslation, PostTranslationData } from "./translation";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/post/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/post/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { ExternalLink, Faq, TocItem } from "./props";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
locale: Locale;
|
|
2
|
+
import type { Translation } from "../../shared";
|
|
3
|
+
/** Persistable, locale-specific Post values excluding identity and timestamps. */
|
|
4
|
+
export interface PostTranslationData {
|
|
6
5
|
title: string | null;
|
|
7
6
|
subtitle: string | null;
|
|
8
7
|
summary: string | null;
|
|
@@ -13,9 +12,6 @@ export interface PostTranslation<Locale extends string = string> extends BaseTra
|
|
|
13
12
|
toc: TocItem[];
|
|
14
13
|
readTime: number | null;
|
|
15
14
|
wordCount: number;
|
|
16
|
-
postId: string;
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
15
|
text1: string | null;
|
|
20
16
|
text2: string | null;
|
|
21
17
|
text3: string | null;
|
|
@@ -31,4 +27,11 @@ export interface PostTranslation<Locale extends string = string> extends BaseTra
|
|
|
31
27
|
data3: any[];
|
|
32
28
|
data4: any[];
|
|
33
29
|
}
|
|
30
|
+
export interface PostTranslation<Locale extends string = string> extends Translation<Locale>, PostTranslationData {
|
|
31
|
+
id: string;
|
|
32
|
+
locale: Locale;
|
|
33
|
+
postId: string;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
}
|
|
34
37
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../src/resources/post/translation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../src/resources/post/translation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,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,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Alternate } from "./props";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** Persistable SEO metadata values excluding identity, ownership, and timestamps. */
|
|
3
|
+
export interface SeoMetadataData {
|
|
4
4
|
locale: string;
|
|
5
5
|
title: string | null;
|
|
6
6
|
description: string | null;
|
|
@@ -29,6 +29,9 @@ export interface SeoMetadata {
|
|
|
29
29
|
twitterSite: string | null;
|
|
30
30
|
twitterCreator: string | null;
|
|
31
31
|
jsonLd: object[];
|
|
32
|
+
}
|
|
33
|
+
export interface SeoMetadata extends SeoMetadataData {
|
|
34
|
+
id: string;
|
|
32
35
|
postId: string;
|
|
33
36
|
createdAt: Date;
|
|
34
37
|
updatedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/seo-metadata/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/seo-metadata/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,qFAAqF;AACrF,MAAM,WAAW,eAAe;IAE9B,MAAM,EAAE,MAAM,CAAC;IAKf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,SAAS,EAAE,CAAC;IAGvB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAKtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAG5B,sBAAsB,EAAE,IAAI,GAAG,IAAI,CAAC;IACpC,qBAAqB,EAAE,IAAI,GAAG,IAAI,CAAC;IACnC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IAKvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAK9B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAGD,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,EAAE,EAAE,MAAM,CAAC;IAKX,MAAM,EAAE,MAAM,CAAC;IAKf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/seo-metadata/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/seo-metadata/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitero-domain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"author": "Yiming Liao",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,12 +14,11 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
|
+
"dependencies": {},
|
|
17
18
|
"scripts": {
|
|
18
19
|
"type": "tsc --noEmit",
|
|
19
20
|
"clean": "rm -rf dist",
|
|
20
21
|
"build": "rollup -c rollup/config.js",
|
|
21
|
-
"build:types": "tsc -p tsconfig.build.json && tsc-alias tsconfig.build.json --outDir dist/types"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"dependencies": {}
|
|
25
|
-
}
|
|
22
|
+
"build:types": "tsc -p tsconfig.build.json && tsc-alias tsconfig.build.json --outDir dist/types"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/resources/folder/base.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,OAAO,CAAC;IAKlB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAK9B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/folder/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC"}
|