@01.software/sdk 0.1.6 → 0.1.7
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/README.md +3 -0
- package/dist/{auth-BIQrgvB-.d.cts → auth-Cl6xQinU.d.cts} +1 -1
- package/dist/{auth-CRlgtFpv.d.ts → auth-u5YEtV1J.d.ts} +1 -1
- package/dist/auth.d.cts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/metadata.cjs +70 -0
- package/dist/metadata.cjs.map +1 -0
- package/dist/metadata.d.cts +18 -0
- package/dist/metadata.d.ts +18 -0
- package/dist/metadata.js +50 -0
- package/dist/metadata.js.map +1 -0
- package/dist/{payload-types-XZDjUjRT.d.cts → payload-types-9ZTBbiqb.d.cts} +250 -1
- package/dist/{payload-types-XZDjUjRT.d.ts → payload-types-9ZTBbiqb.d.ts} +250 -1
- package/dist/{webhook-CFVJAqOx.d.ts → webhook-Cdv7bup2.d.cts} +2 -2
- package/dist/{webhook-BkbRPVAd.d.cts → webhook-c_A4J8UH.d.ts} +2 -2
- package/dist/webhook.d.cts +2 -2
- package/dist/webhook.d.ts +2 -2
- package/package.json +11 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// src/metadata.ts
|
|
35
|
+
var metadata_exports = {};
|
|
36
|
+
__export(metadata_exports, {
|
|
37
|
+
generateMetadata: () => generateMetadata
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(metadata_exports);
|
|
40
|
+
|
|
41
|
+
// src/utils/types.ts
|
|
42
|
+
var resolveRelation = (ref) => {
|
|
43
|
+
if (typeof ref === "number" || ref === null || ref === void 0) return null;
|
|
44
|
+
return ref;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// src/core/metadata/index.ts
|
|
48
|
+
function generateMetadata(doc, options) {
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
|
+
const meta = doc == null ? void 0 : doc.meta;
|
|
51
|
+
const title = (_b = (_a = meta == null ? void 0 : meta.title) != null ? _a : options == null ? void 0 : options.title) != null ? _b : void 0;
|
|
52
|
+
const description = (_d = (_c = meta == null ? void 0 : meta.description) != null ? _c : options == null ? void 0 : options.description) != null ? _d : void 0;
|
|
53
|
+
const image = resolveMetaImage(meta == null ? void 0 : meta.image);
|
|
54
|
+
return {
|
|
55
|
+
title,
|
|
56
|
+
description,
|
|
57
|
+
openGraph: __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, title && { title }), description && { description }), (options == null ? void 0 : options.siteName) && { siteName: options.siteName }), image && { images: [image] }),
|
|
58
|
+
twitter: __spreadValues(__spreadValues(__spreadValues({
|
|
59
|
+
card: image ? "summary_large_image" : "summary"
|
|
60
|
+
}, title && { title }), description && { description }), image && { images: [image.url] })
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function resolveMetaImage(ref) {
|
|
64
|
+
const media = resolveRelation(ref);
|
|
65
|
+
if (!(media == null ? void 0 : media.url)) return null;
|
|
66
|
+
return __spreadValues(__spreadValues(__spreadValues({
|
|
67
|
+
url: media.url
|
|
68
|
+
}, media.width && { width: media.width }), media.height && { height: media.height }), media.alt && { alt: media.alt });
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=metadata.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/metadata.ts","../src/utils/types.ts","../src/core/metadata/index.ts"],"sourcesContent":["export { generateMetadata } from './core/metadata'\nexport type { GenerateMetadataOptions } from './core/metadata'\n","/**\n * Resolves a Payload CMS relation field value.\n * When depth is 0, relation fields return just the ID (number).\n * When depth > 0, they return the full document object (T).\n * This utility normalizes both cases to T | null.\n *\n * @param ref - The relation field value (T, number, null, or undefined)\n * @returns The resolved document object, or null if not populated\n */\nexport const resolveRelation = <T>(ref: T | number | null | undefined): T | null => {\n if (typeof ref === 'number' || ref === null || ref === undefined) return null\n return ref\n}\n\n/** @deprecated Use `resolveRelation` instead */\nexport const objectFor = resolveRelation\n","import type { Metadata } from 'next'\nimport type { Media } from '../../payload-types'\nimport { resolveRelation } from '../../utils/types'\n\ninterface MetaField {\n title?: string | null\n description?: string | null\n image?: (number | null) | Media\n}\n\nexport interface GenerateMetadataOptions {\n title?: string\n description?: string\n siteName?: string\n}\n\nexport function generateMetadata(\n doc: { meta?: MetaField | null },\n options?: GenerateMetadataOptions,\n): Metadata {\n const meta = doc?.meta\n const title = meta?.title ?? options?.title ?? undefined\n const description = meta?.description ?? options?.description ?? undefined\n const image = resolveMetaImage(meta?.image)\n\n return {\n title,\n description,\n openGraph: {\n ...(title && { title }),\n ...(description && { description }),\n ...(options?.siteName && { siteName: options.siteName }),\n ...(image && { images: [image] }),\n },\n twitter: {\n card: image ? 'summary_large_image' : 'summary',\n ...(title && { title }),\n ...(description && { description }),\n ...(image && { images: [image.url] }),\n },\n }\n}\n\nfunction resolveMetaImage(\n ref: (number | null) | Media | undefined,\n): { url: string; width?: number; height?: number; alt?: string } | null {\n const media = resolveRelation<Media>(ref)\n if (!media?.url) return null\n return {\n url: media.url,\n ...(media.width && { width: media.width }),\n ...(media.height && { height: media.height }),\n ...(media.alt && { alt: media.alt }),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,IAAM,kBAAkB,CAAI,QAAiD;AAClF,MAAI,OAAO,QAAQ,YAAY,QAAQ,QAAQ,QAAQ,OAAW,QAAO;AACzE,SAAO;AACT;;;ACIO,SAAS,iBACd,KACA,SACU;AAnBZ;AAoBE,QAAM,OAAO,2BAAK;AAClB,QAAM,SAAQ,wCAAM,UAAN,YAAe,mCAAS,UAAxB,YAAiC;AAC/C,QAAM,eAAc,wCAAM,gBAAN,YAAqB,mCAAS,gBAA9B,YAA6C;AACjE,QAAM,QAAQ,iBAAiB,6BAAM,KAAK;AAE1C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,WAAW,gEACL,SAAS,EAAE,MAAM,IACjB,eAAe,EAAE,YAAY,KAC7B,mCAAS,aAAY,EAAE,UAAU,QAAQ,SAAS,IAClD,SAAS,EAAE,QAAQ,CAAC,KAAK,EAAE;AAAA,IAEjC,SAAS;AAAA,MACP,MAAM,QAAQ,wBAAwB;AAAA,OAClC,SAAS,EAAE,MAAM,IACjB,eAAe,EAAE,YAAY,IAC7B,SAAS,EAAE,QAAQ,CAAC,MAAM,GAAG,EAAE;AAAA,EAEvC;AACF;AAEA,SAAS,iBACP,KACuE;AACvE,QAAM,QAAQ,gBAAuB,GAAG;AACxC,MAAI,EAAC,+BAAO,KAAK,QAAO;AACxB,SAAO;AAAA,IACL,KAAK,MAAM;AAAA,KACP,MAAM,SAAS,EAAE,OAAO,MAAM,MAAM,IACpC,MAAM,UAAU,EAAE,QAAQ,MAAM,OAAO,IACvC,MAAM,OAAO,EAAE,KAAK,MAAM,IAAI;AAEtC;","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { M as Media } from './payload-types-9ZTBbiqb.cjs';
|
|
3
|
+
|
|
4
|
+
interface MetaField {
|
|
5
|
+
title?: string | null;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
image?: (number | null) | Media;
|
|
8
|
+
}
|
|
9
|
+
interface GenerateMetadataOptions {
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
siteName?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function generateMetadata(doc: {
|
|
15
|
+
meta?: MetaField | null;
|
|
16
|
+
}, options?: GenerateMetadataOptions): Metadata;
|
|
17
|
+
|
|
18
|
+
export { type GenerateMetadataOptions, generateMetadata };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { M as Media } from './payload-types-9ZTBbiqb.js';
|
|
3
|
+
|
|
4
|
+
interface MetaField {
|
|
5
|
+
title?: string | null;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
image?: (number | null) | Media;
|
|
8
|
+
}
|
|
9
|
+
interface GenerateMetadataOptions {
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
siteName?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function generateMetadata(doc: {
|
|
15
|
+
meta?: MetaField | null;
|
|
16
|
+
}, options?: GenerateMetadataOptions): Metadata;
|
|
17
|
+
|
|
18
|
+
export { type GenerateMetadataOptions, generateMetadata };
|
package/dist/metadata.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// src/utils/types.ts
|
|
19
|
+
var resolveRelation = (ref) => {
|
|
20
|
+
if (typeof ref === "number" || ref === null || ref === void 0) return null;
|
|
21
|
+
return ref;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// src/core/metadata/index.ts
|
|
25
|
+
function generateMetadata(doc, options) {
|
|
26
|
+
var _a, _b, _c, _d;
|
|
27
|
+
const meta = doc == null ? void 0 : doc.meta;
|
|
28
|
+
const title = (_b = (_a = meta == null ? void 0 : meta.title) != null ? _a : options == null ? void 0 : options.title) != null ? _b : void 0;
|
|
29
|
+
const description = (_d = (_c = meta == null ? void 0 : meta.description) != null ? _c : options == null ? void 0 : options.description) != null ? _d : void 0;
|
|
30
|
+
const image = resolveMetaImage(meta == null ? void 0 : meta.image);
|
|
31
|
+
return {
|
|
32
|
+
title,
|
|
33
|
+
description,
|
|
34
|
+
openGraph: __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, title && { title }), description && { description }), (options == null ? void 0 : options.siteName) && { siteName: options.siteName }), image && { images: [image] }),
|
|
35
|
+
twitter: __spreadValues(__spreadValues(__spreadValues({
|
|
36
|
+
card: image ? "summary_large_image" : "summary"
|
|
37
|
+
}, title && { title }), description && { description }), image && { images: [image.url] })
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function resolveMetaImage(ref) {
|
|
41
|
+
const media = resolveRelation(ref);
|
|
42
|
+
if (!(media == null ? void 0 : media.url)) return null;
|
|
43
|
+
return __spreadValues(__spreadValues(__spreadValues({
|
|
44
|
+
url: media.url
|
|
45
|
+
}, media.width && { width: media.width }), media.height && { height: media.height }), media.alt && { alt: media.alt });
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
generateMetadata
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/types.ts","../src/core/metadata/index.ts"],"sourcesContent":["/**\n * Resolves a Payload CMS relation field value.\n * When depth is 0, relation fields return just the ID (number).\n * When depth > 0, they return the full document object (T).\n * This utility normalizes both cases to T | null.\n *\n * @param ref - The relation field value (T, number, null, or undefined)\n * @returns The resolved document object, or null if not populated\n */\nexport const resolveRelation = <T>(ref: T | number | null | undefined): T | null => {\n if (typeof ref === 'number' || ref === null || ref === undefined) return null\n return ref\n}\n\n/** @deprecated Use `resolveRelation` instead */\nexport const objectFor = resolveRelation\n","import type { Metadata } from 'next'\nimport type { Media } from '../../payload-types'\nimport { resolveRelation } from '../../utils/types'\n\ninterface MetaField {\n title?: string | null\n description?: string | null\n image?: (number | null) | Media\n}\n\nexport interface GenerateMetadataOptions {\n title?: string\n description?: string\n siteName?: string\n}\n\nexport function generateMetadata(\n doc: { meta?: MetaField | null },\n options?: GenerateMetadataOptions,\n): Metadata {\n const meta = doc?.meta\n const title = meta?.title ?? options?.title ?? undefined\n const description = meta?.description ?? options?.description ?? undefined\n const image = resolveMetaImage(meta?.image)\n\n return {\n title,\n description,\n openGraph: {\n ...(title && { title }),\n ...(description && { description }),\n ...(options?.siteName && { siteName: options.siteName }),\n ...(image && { images: [image] }),\n },\n twitter: {\n card: image ? 'summary_large_image' : 'summary',\n ...(title && { title }),\n ...(description && { description }),\n ...(image && { images: [image.url] }),\n },\n }\n}\n\nfunction resolveMetaImage(\n ref: (number | null) | Media | undefined,\n): { url: string; width?: number; height?: number; alt?: string } | null {\n const media = resolveRelation<Media>(ref)\n if (!media?.url) return null\n return {\n url: media.url,\n ...(media.width && { width: media.width }),\n ...(media.height && { height: media.height }),\n ...(media.alt && { alt: media.alt }),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AASO,IAAM,kBAAkB,CAAI,QAAiD;AAClF,MAAI,OAAO,QAAQ,YAAY,QAAQ,QAAQ,QAAQ,OAAW,QAAO;AACzE,SAAO;AACT;;;ACIO,SAAS,iBACd,KACA,SACU;AAnBZ;AAoBE,QAAM,OAAO,2BAAK;AAClB,QAAM,SAAQ,wCAAM,UAAN,YAAe,mCAAS,UAAxB,YAAiC;AAC/C,QAAM,eAAc,wCAAM,gBAAN,YAAqB,mCAAS,gBAA9B,YAA6C;AACjE,QAAM,QAAQ,iBAAiB,6BAAM,KAAK;AAE1C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,WAAW,gEACL,SAAS,EAAE,MAAM,IACjB,eAAe,EAAE,YAAY,KAC7B,mCAAS,aAAY,EAAE,UAAU,QAAQ,SAAS,IAClD,SAAS,EAAE,QAAQ,CAAC,KAAK,EAAE;AAAA,IAEjC,SAAS;AAAA,MACP,MAAM,QAAQ,wBAAwB;AAAA,OAClC,SAAS,EAAE,MAAM,IACjB,eAAe,EAAE,YAAY,IAC7B,SAAS,EAAE,QAAQ,CAAC,MAAM,GAAG,EAAE;AAAA,EAEvC;AACF;AAEA,SAAS,iBACP,KACuE;AACvE,QAAM,QAAQ,gBAAuB,GAAG;AACxC,MAAI,EAAC,+BAAO,KAAK,QAAO;AACxB,SAAO;AAAA,IACL,KAAK,MAAM;AAAA,KACP,MAAM,SAAS,EAAE,OAAO,MAAM,MAAM,IACpC,MAAM,UAAU,EAAE,QAAQ,MAAM,OAAO,IACvC,MAAM,OAAO,EAAE,KAAK,MAAM,IAAI;AAEtC;","names":[]}
|
|
@@ -51,6 +51,8 @@ interface Config {
|
|
|
51
51
|
transactions: Transaction;
|
|
52
52
|
customers: Customer;
|
|
53
53
|
'customer-addresses': CustomerAddress;
|
|
54
|
+
'customer-groups': CustomerGroup;
|
|
55
|
+
'customer-group-images': CustomerGroupImage;
|
|
54
56
|
carts: Cart;
|
|
55
57
|
'cart-items': CartItem;
|
|
56
58
|
discounts: Discount;
|
|
@@ -103,6 +105,9 @@ interface Config {
|
|
|
103
105
|
orders: 'orders';
|
|
104
106
|
addresses: 'customer-addresses';
|
|
105
107
|
};
|
|
108
|
+
'customer-groups': {
|
|
109
|
+
customers: 'customers';
|
|
110
|
+
};
|
|
106
111
|
carts: {
|
|
107
112
|
items: 'cart-items';
|
|
108
113
|
};
|
|
@@ -144,6 +149,8 @@ interface Config {
|
|
|
144
149
|
transactions: TransactionsSelect<false> | TransactionsSelect<true>;
|
|
145
150
|
customers: CustomersSelect<false> | CustomersSelect<true>;
|
|
146
151
|
'customer-addresses': CustomerAddressesSelect<false> | CustomerAddressesSelect<true>;
|
|
152
|
+
'customer-groups': CustomerGroupsSelect<false> | CustomerGroupsSelect<true>;
|
|
153
|
+
'customer-group-images': CustomerGroupImagesSelect<false> | CustomerGroupImagesSelect<true>;
|
|
147
154
|
carts: CartsSelect<false> | CartsSelect<true>;
|
|
148
155
|
'cart-items': CartItemsSelect<false> | CartItemsSelect<true>;
|
|
149
156
|
discounts: DiscountsSelect<false> | DiscountsSelect<true>;
|
|
@@ -961,6 +968,20 @@ interface Product {
|
|
|
961
968
|
hasNextPage?: boolean;
|
|
962
969
|
totalDocs?: number;
|
|
963
970
|
};
|
|
971
|
+
meta?: {
|
|
972
|
+
/**
|
|
973
|
+
* 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
|
|
974
|
+
*/
|
|
975
|
+
title?: string | null;
|
|
976
|
+
/**
|
|
977
|
+
* 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
|
|
978
|
+
*/
|
|
979
|
+
description?: string | null;
|
|
980
|
+
/**
|
|
981
|
+
* SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
|
|
982
|
+
*/
|
|
983
|
+
image?: (number | null) | Media;
|
|
984
|
+
};
|
|
964
985
|
updatedAt: string;
|
|
965
986
|
createdAt: string;
|
|
966
987
|
}
|
|
@@ -1276,6 +1297,7 @@ interface Customer {
|
|
|
1276
1297
|
metadata?: {
|
|
1277
1298
|
[k: string]: unknown;
|
|
1278
1299
|
} | unknown[] | string | number | boolean | null;
|
|
1300
|
+
groups?: (number | CustomerGroup)[] | null;
|
|
1279
1301
|
orders?: {
|
|
1280
1302
|
docs?: (number | Order)[];
|
|
1281
1303
|
hasNextPage?: boolean;
|
|
@@ -1290,6 +1312,81 @@ interface Customer {
|
|
|
1290
1312
|
createdAt: string;
|
|
1291
1313
|
collection: 'customers';
|
|
1292
1314
|
}
|
|
1315
|
+
/**
|
|
1316
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
1317
|
+
* via the `definition` "customer-groups".
|
|
1318
|
+
*/
|
|
1319
|
+
interface CustomerGroup {
|
|
1320
|
+
id: number;
|
|
1321
|
+
tenant?: (number | null) | Tenant;
|
|
1322
|
+
title: string;
|
|
1323
|
+
/**
|
|
1324
|
+
* When enabled, the slug will auto-generate from the title field on save and autosave.
|
|
1325
|
+
*/
|
|
1326
|
+
generateSlug?: boolean | null;
|
|
1327
|
+
slug?: string | null;
|
|
1328
|
+
description?: string | null;
|
|
1329
|
+
color?: string | null;
|
|
1330
|
+
image?: (number | null) | CustomerGroupImage;
|
|
1331
|
+
metadata?: {
|
|
1332
|
+
[k: string]: unknown;
|
|
1333
|
+
} | unknown[] | string | number | boolean | null;
|
|
1334
|
+
customers?: {
|
|
1335
|
+
docs?: (number | Customer)[];
|
|
1336
|
+
hasNextPage?: boolean;
|
|
1337
|
+
totalDocs?: number;
|
|
1338
|
+
};
|
|
1339
|
+
updatedAt: string;
|
|
1340
|
+
createdAt: string;
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
1344
|
+
* via the `definition` "customer-group-images".
|
|
1345
|
+
*/
|
|
1346
|
+
interface CustomerGroupImage {
|
|
1347
|
+
id: number;
|
|
1348
|
+
tenant?: (number | null) | Tenant;
|
|
1349
|
+
alt?: string | null;
|
|
1350
|
+
lqip?: string | null;
|
|
1351
|
+
palette?: {
|
|
1352
|
+
vibrant?: string | null;
|
|
1353
|
+
muted?: string | null;
|
|
1354
|
+
darkVibrant?: string | null;
|
|
1355
|
+
darkMuted?: string | null;
|
|
1356
|
+
lightVibrant?: string | null;
|
|
1357
|
+
lightMuted?: string | null;
|
|
1358
|
+
};
|
|
1359
|
+
prefix?: string | null;
|
|
1360
|
+
updatedAt: string;
|
|
1361
|
+
createdAt: string;
|
|
1362
|
+
url?: string | null;
|
|
1363
|
+
thumbnailURL?: string | null;
|
|
1364
|
+
filename?: string | null;
|
|
1365
|
+
mimeType?: string | null;
|
|
1366
|
+
filesize?: number | null;
|
|
1367
|
+
width?: number | null;
|
|
1368
|
+
height?: number | null;
|
|
1369
|
+
focalX?: number | null;
|
|
1370
|
+
focalY?: number | null;
|
|
1371
|
+
sizes?: {
|
|
1372
|
+
'512'?: {
|
|
1373
|
+
url?: string | null;
|
|
1374
|
+
width?: number | null;
|
|
1375
|
+
height?: number | null;
|
|
1376
|
+
mimeType?: string | null;
|
|
1377
|
+
filesize?: number | null;
|
|
1378
|
+
filename?: string | null;
|
|
1379
|
+
};
|
|
1380
|
+
'1024'?: {
|
|
1381
|
+
url?: string | null;
|
|
1382
|
+
width?: number | null;
|
|
1383
|
+
height?: number | null;
|
|
1384
|
+
mimeType?: string | null;
|
|
1385
|
+
filesize?: number | null;
|
|
1386
|
+
filename?: string | null;
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
}
|
|
1293
1390
|
/**
|
|
1294
1391
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
1295
1392
|
* via the `definition` "customer-addresses".
|
|
@@ -1617,6 +1714,20 @@ interface Post {
|
|
|
1617
1714
|
};
|
|
1618
1715
|
[k: string]: unknown;
|
|
1619
1716
|
} | null;
|
|
1717
|
+
meta?: {
|
|
1718
|
+
/**
|
|
1719
|
+
* 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
|
|
1720
|
+
*/
|
|
1721
|
+
title?: string | null;
|
|
1722
|
+
/**
|
|
1723
|
+
* 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
|
|
1724
|
+
*/
|
|
1725
|
+
description?: string | null;
|
|
1726
|
+
/**
|
|
1727
|
+
* SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
|
|
1728
|
+
*/
|
|
1729
|
+
image?: (number | null) | Media;
|
|
1730
|
+
};
|
|
1620
1731
|
updatedAt: string;
|
|
1621
1732
|
createdAt: string;
|
|
1622
1733
|
_status?: ('draft' | 'published') | null;
|
|
@@ -1794,6 +1905,20 @@ interface Document {
|
|
|
1794
1905
|
* Changelog (differences from previous version)
|
|
1795
1906
|
*/
|
|
1796
1907
|
changeLog?: string | null;
|
|
1908
|
+
meta?: {
|
|
1909
|
+
/**
|
|
1910
|
+
* 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
|
|
1911
|
+
*/
|
|
1912
|
+
title?: string | null;
|
|
1913
|
+
/**
|
|
1914
|
+
* 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
|
|
1915
|
+
*/
|
|
1916
|
+
description?: string | null;
|
|
1917
|
+
/**
|
|
1918
|
+
* SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
|
|
1919
|
+
*/
|
|
1920
|
+
image?: (number | null) | Media;
|
|
1921
|
+
};
|
|
1797
1922
|
updatedAt: string;
|
|
1798
1923
|
createdAt: string;
|
|
1799
1924
|
_status?: ('draft' | 'published') | null;
|
|
@@ -1887,6 +2012,20 @@ interface Playlist {
|
|
|
1887
2012
|
hasNextPage?: boolean;
|
|
1888
2013
|
totalDocs?: number;
|
|
1889
2014
|
};
|
|
2015
|
+
meta?: {
|
|
2016
|
+
/**
|
|
2017
|
+
* 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
|
|
2018
|
+
*/
|
|
2019
|
+
title?: string | null;
|
|
2020
|
+
/**
|
|
2021
|
+
* 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
|
|
2022
|
+
*/
|
|
2023
|
+
description?: string | null;
|
|
2024
|
+
/**
|
|
2025
|
+
* SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
|
|
2026
|
+
*/
|
|
2027
|
+
image?: (number | null) | Media;
|
|
2028
|
+
};
|
|
1890
2029
|
updatedAt: string;
|
|
1891
2030
|
createdAt: string;
|
|
1892
2031
|
}
|
|
@@ -1981,6 +2120,20 @@ interface Gallery {
|
|
|
1981
2120
|
slug?: string | null;
|
|
1982
2121
|
description?: string | null;
|
|
1983
2122
|
images: (number | GalleryImage)[];
|
|
2123
|
+
meta?: {
|
|
2124
|
+
/**
|
|
2125
|
+
* 검색엔진에 표시되는 제목입니다. 한글 기준 30자, 영문 기준 60자 이내를 권장합니다.
|
|
2126
|
+
*/
|
|
2127
|
+
title?: string | null;
|
|
2128
|
+
/**
|
|
2129
|
+
* 검색엔진에 표시되는 설명입니다. 한글 기준 80자, 영문 기준 160자 이내를 권장합니다.
|
|
2130
|
+
*/
|
|
2131
|
+
description?: string | null;
|
|
2132
|
+
/**
|
|
2133
|
+
* SNS 공유 시 표시되는 이미지입니다. 1200x630px 권장.
|
|
2134
|
+
*/
|
|
2135
|
+
image?: (number | null) | Media;
|
|
2136
|
+
};
|
|
1984
2137
|
updatedAt: string;
|
|
1985
2138
|
createdAt: string;
|
|
1986
2139
|
}
|
|
@@ -2322,6 +2475,12 @@ interface PayloadLockedDocument {
|
|
|
2322
2475
|
} | null) | ({
|
|
2323
2476
|
relationTo: 'customer-addresses';
|
|
2324
2477
|
value: number | CustomerAddress;
|
|
2478
|
+
} | null) | ({
|
|
2479
|
+
relationTo: 'customer-groups';
|
|
2480
|
+
value: number | CustomerGroup;
|
|
2481
|
+
} | null) | ({
|
|
2482
|
+
relationTo: 'customer-group-images';
|
|
2483
|
+
value: number | CustomerGroupImage;
|
|
2325
2484
|
} | null) | ({
|
|
2326
2485
|
relationTo: 'carts';
|
|
2327
2486
|
value: number | Cart;
|
|
@@ -2818,6 +2977,11 @@ interface ProductsSelect<T extends boolean = true> {
|
|
|
2818
2977
|
metadata?: T;
|
|
2819
2978
|
variants?: T;
|
|
2820
2979
|
options?: T;
|
|
2980
|
+
meta?: T | {
|
|
2981
|
+
title?: T;
|
|
2982
|
+
description?: T;
|
|
2983
|
+
image?: T;
|
|
2984
|
+
};
|
|
2821
2985
|
updatedAt?: T;
|
|
2822
2986
|
createdAt?: T;
|
|
2823
2987
|
}
|
|
@@ -3228,6 +3392,7 @@ interface CustomersSelect<T extends boolean = true> {
|
|
|
3228
3392
|
lockedUntil?: T;
|
|
3229
3393
|
note?: T;
|
|
3230
3394
|
metadata?: T;
|
|
3395
|
+
groups?: T;
|
|
3231
3396
|
orders?: T;
|
|
3232
3397
|
addresses?: T;
|
|
3233
3398
|
updatedAt?: T;
|
|
@@ -3251,6 +3416,70 @@ interface CustomerAddressesSelect<T extends boolean = true> {
|
|
|
3251
3416
|
updatedAt?: T;
|
|
3252
3417
|
createdAt?: T;
|
|
3253
3418
|
}
|
|
3419
|
+
/**
|
|
3420
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3421
|
+
* via the `definition` "customer-groups_select".
|
|
3422
|
+
*/
|
|
3423
|
+
interface CustomerGroupsSelect<T extends boolean = true> {
|
|
3424
|
+
tenant?: T;
|
|
3425
|
+
title?: T;
|
|
3426
|
+
generateSlug?: T;
|
|
3427
|
+
slug?: T;
|
|
3428
|
+
description?: T;
|
|
3429
|
+
color?: T;
|
|
3430
|
+
image?: T;
|
|
3431
|
+
metadata?: T;
|
|
3432
|
+
customers?: T;
|
|
3433
|
+
updatedAt?: T;
|
|
3434
|
+
createdAt?: T;
|
|
3435
|
+
}
|
|
3436
|
+
/**
|
|
3437
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
3438
|
+
* via the `definition` "customer-group-images_select".
|
|
3439
|
+
*/
|
|
3440
|
+
interface CustomerGroupImagesSelect<T extends boolean = true> {
|
|
3441
|
+
tenant?: T;
|
|
3442
|
+
alt?: T;
|
|
3443
|
+
lqip?: T;
|
|
3444
|
+
palette?: T | {
|
|
3445
|
+
vibrant?: T;
|
|
3446
|
+
muted?: T;
|
|
3447
|
+
darkVibrant?: T;
|
|
3448
|
+
darkMuted?: T;
|
|
3449
|
+
lightVibrant?: T;
|
|
3450
|
+
lightMuted?: T;
|
|
3451
|
+
};
|
|
3452
|
+
prefix?: T;
|
|
3453
|
+
updatedAt?: T;
|
|
3454
|
+
createdAt?: T;
|
|
3455
|
+
url?: T;
|
|
3456
|
+
thumbnailURL?: T;
|
|
3457
|
+
filename?: T;
|
|
3458
|
+
mimeType?: T;
|
|
3459
|
+
filesize?: T;
|
|
3460
|
+
width?: T;
|
|
3461
|
+
height?: T;
|
|
3462
|
+
focalX?: T;
|
|
3463
|
+
focalY?: T;
|
|
3464
|
+
sizes?: T | {
|
|
3465
|
+
'512'?: T | {
|
|
3466
|
+
url?: T;
|
|
3467
|
+
width?: T;
|
|
3468
|
+
height?: T;
|
|
3469
|
+
mimeType?: T;
|
|
3470
|
+
filesize?: T;
|
|
3471
|
+
filename?: T;
|
|
3472
|
+
};
|
|
3473
|
+
'1024'?: T | {
|
|
3474
|
+
url?: T;
|
|
3475
|
+
width?: T;
|
|
3476
|
+
height?: T;
|
|
3477
|
+
mimeType?: T;
|
|
3478
|
+
filesize?: T;
|
|
3479
|
+
filename?: T;
|
|
3480
|
+
};
|
|
3481
|
+
};
|
|
3482
|
+
}
|
|
3254
3483
|
/**
|
|
3255
3484
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
3256
3485
|
* via the `definition` "carts_select".
|
|
@@ -3349,6 +3578,11 @@ interface PostsSelect<T extends boolean = true> {
|
|
|
3349
3578
|
categories?: T;
|
|
3350
3579
|
tags?: T;
|
|
3351
3580
|
content?: T;
|
|
3581
|
+
meta?: T | {
|
|
3582
|
+
title?: T;
|
|
3583
|
+
description?: T;
|
|
3584
|
+
image?: T;
|
|
3585
|
+
};
|
|
3352
3586
|
updatedAt?: T;
|
|
3353
3587
|
createdAt?: T;
|
|
3354
3588
|
_status?: T;
|
|
@@ -3473,6 +3707,11 @@ interface DocumentsSelect<T extends boolean = true> {
|
|
|
3473
3707
|
};
|
|
3474
3708
|
isRequired?: T;
|
|
3475
3709
|
changeLog?: T;
|
|
3710
|
+
meta?: T | {
|
|
3711
|
+
title?: T;
|
|
3712
|
+
description?: T;
|
|
3713
|
+
image?: T;
|
|
3714
|
+
};
|
|
3476
3715
|
updatedAt?: T;
|
|
3477
3716
|
createdAt?: T;
|
|
3478
3717
|
_status?: T;
|
|
@@ -3553,6 +3792,11 @@ interface PlaylistsSelect<T extends boolean = true> {
|
|
|
3553
3792
|
slug?: T;
|
|
3554
3793
|
description?: T;
|
|
3555
3794
|
musics?: T;
|
|
3795
|
+
meta?: T | {
|
|
3796
|
+
title?: T;
|
|
3797
|
+
description?: T;
|
|
3798
|
+
image?: T;
|
|
3799
|
+
};
|
|
3556
3800
|
updatedAt?: T;
|
|
3557
3801
|
createdAt?: T;
|
|
3558
3802
|
}
|
|
@@ -3632,6 +3876,11 @@ interface GalleriesSelect<T extends boolean = true> {
|
|
|
3632
3876
|
slug?: T;
|
|
3633
3877
|
description?: T;
|
|
3634
3878
|
images?: T;
|
|
3879
|
+
meta?: T | {
|
|
3880
|
+
title?: T;
|
|
3881
|
+
description?: T;
|
|
3882
|
+
image?: T;
|
|
3883
|
+
};
|
|
3635
3884
|
updatedAt?: T;
|
|
3636
3885
|
createdAt?: T;
|
|
3637
3886
|
}
|
|
@@ -3862,4 +4111,4 @@ declare module 'payload' {
|
|
|
3862
4111
|
}
|
|
3863
4112
|
}
|
|
3864
4113
|
|
|
3865
|
-
export type {
|
|
4114
|
+
export type { Music as $, Audience as A, BrandLogo as B, CartItem as C, ExchangeProduct as D, EmailLog as E, Fulfillment as F, FulfillmentItem as G, Cart as H, IframeBlock as I, Discount as J, Post as K, PostImage as L, Media as M, Author as N, Order as O, ProductOption as P, PostCategory as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PostTag as V, Document as W, DocumentCategory as X, DocumentImage as Y, Playlist as Z, PlaylistImage as _, OrderProduct as a, Auth as a$, Gallery as a0, GalleryImage as a1, Form as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect as a9, CustomersSelect as aA, CustomerAddressesSelect as aB, CustomerGroupsSelect as aC, CustomerGroupImagesSelect as aD, CartsSelect as aE, CartItemsSelect as aF, DiscountsSelect as aG, ShippingPoliciesSelect as aH, PostsSelect as aI, PostCategoriesSelect as aJ, PostTagsSelect as aK, PostImagesSelect as aL, AuthorsSelect as aM, DocumentsSelect as aN, DocumentCategoriesSelect as aO, DocumentImagesSelect as aP, PlaylistsSelect as aQ, PlaylistImagesSelect as aR, MusicsSelect as aS, GalleriesSelect as aT, GalleryImagesSelect as aU, FormsSelect as aV, FormSubmissionsSelect as aW, PayloadKvSelect as aX, PayloadLockedDocumentsSelect as aY, PayloadPreferencesSelect as aZ, PayloadMigrationsSelect as a_, AudiencesSelect as aa, EmailLogsSelect as ab, TenantsSelect as ac, TenantMetadataSelect as ad, TenantLogosSelect as ae, TenantOgImagesSelect as af, ApiUsageSelect as ag, SubscriptionsSelect as ah, BillingHistorySelect as ai, ProductsSelect as aj, ProductVariantsSelect as ak, ProductOptionsSelect as al, ProductCategoriesSelect as am, ProductTagsSelect as an, ProductImagesSelect as ao, BrandsSelect as ap, BrandLogosSelect as aq, OrdersSelect as ar, OrderProductsSelect as as, ReturnsSelect as at, ReturnProductsSelect as au, ExchangesSelect as av, ExchangeProductsSelect as aw, FulfillmentsSelect as ax, FulfillmentItemsSelect as ay, TransactionsSelect as az, Config as b, CustomerAuthOperations as c, PlayerBlock as d, CodeBlock as e, User as f, Tenant as g, TenantMetadatum as h, TenantOgImage as i, TenantLogo as j, ApiUsage as k, Subscription as l, BillingHistory as m, Product as n, ProductImage as o, ProductCategory as p, ProductTag as q, Brand as r, ShippingPolicy as s, ProductVariant as t, Customer as u, CustomerGroup as v, CustomerGroupImage as w, CustomerAddress as x, ReturnProduct as y, Exchange as z };
|