@hygraph/cli 0.0.0 → 0.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/README.md +24 -0
- package/bin/hygraph.js +4 -0
- package/dist/cli.d.ts +14 -0
- package/dist/cli.js +3146 -0
- package/dist/define.d.ts +155 -0
- package/dist/define.js +285 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/rolldown-runtime.js +13 -0
- package/dist/version.js +4 -0
- package/package.json +54 -4
package/dist/define.d.ts
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
//#region src/define/fields/asset.d.ts
|
|
2
|
+
/** A reference to the Asset model. Its reverse is hidden and never exposed. */
|
|
3
|
+
declare function asset$1(_options: unknown): never;
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/define/fields/boolean.d.ts
|
|
6
|
+
/** True or false. Can drive a `visibilityCondition`. */
|
|
7
|
+
declare function boolean(_options: unknown): never;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/define/fields/color.d.ts
|
|
10
|
+
/** A colour value. */
|
|
11
|
+
declare function color(_options: unknown): never;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/define/fields/component.d.ts
|
|
14
|
+
/** An instance of one component. */
|
|
15
|
+
declare function component$1(_options: unknown): never;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/define/fields/componentUnion.d.ts
|
|
18
|
+
/** A choice of components. Members are replaced wholesale on update. */
|
|
19
|
+
declare function componentUnion(_options: unknown): never;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/define/fields/date.d.ts
|
|
22
|
+
/** A date. `initialValue` is an ISO string. */
|
|
23
|
+
declare function date(_options: unknown): never;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/define/fields/dateTime.d.ts
|
|
26
|
+
/** A date and time. `initialValue` is an ISO string. */
|
|
27
|
+
declare function dateTime(_options: unknown): never;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/define/fields/enumeration.d.ts
|
|
30
|
+
/** A value from an enumeration. Takes the enumeration itself, not a lambda. */
|
|
31
|
+
declare function enumeration$1(_options: unknown): never;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/define/fields/float.d.ts
|
|
34
|
+
/** Decimal number. `validations`: range, listItemCount. */
|
|
35
|
+
declare function float(_options: unknown): never;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/define/fields/int.d.ts
|
|
38
|
+
/** Whole number. `validations`: range, listItemCount. */
|
|
39
|
+
declare function int(_options: unknown): never;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/define/fields/json.d.ts
|
|
42
|
+
/** Arbitrary JSON. */
|
|
43
|
+
declare function json(_options: unknown): never;
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/define/fields/location.d.ts
|
|
46
|
+
/** A latitude and longitude. */
|
|
47
|
+
declare function location(_options: unknown): never;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/define/fields/markdown.d.ts
|
|
50
|
+
/** The Markdown editor. Same validations as `singleLine`. */
|
|
51
|
+
declare function markdown(_options: unknown): never;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/define/fields/multiLine.d.ts
|
|
54
|
+
/** The text area editor. Same validations as `singleLine`. */
|
|
55
|
+
declare function multiLine(_options: unknown): never;
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/define/fields/referenceOneWay.d.ts
|
|
58
|
+
/** Visible from this side only. Hygraph keeps a hidden reverse that is never diffed. Allowed on components. */
|
|
59
|
+
declare function referenceOneWay(_options: unknown): never;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/define/fields/referenceTwoWay.d.ts
|
|
62
|
+
/** Both sides declared. The partner on `to` must point back through `reverse`. Models only. */
|
|
63
|
+
declare function referenceTwoWay(_options: unknown): never;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/define/fields/referenceUnion.d.ts
|
|
66
|
+
/** A reference to several models. On models every member declares `unionMember`. */
|
|
67
|
+
declare function referenceUnion(_options: unknown): never;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/define/fields/remote.d.ts
|
|
70
|
+
/** A field resolved from a remote source. `visibility` defaults to READ_ONLY. */
|
|
71
|
+
declare function remote(_options: unknown): never;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/define/fields/richText.d.ts
|
|
74
|
+
/** Rich text. `embeds` enables embedding; `actions` picks the toolbar. */
|
|
75
|
+
declare function richText(_options: unknown): never;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/define/fields/singleLine.d.ts
|
|
78
|
+
/** One line of text. `validations`: characters, matches, notMatches, listItemCount. */
|
|
79
|
+
declare function singleLine(_options: unknown): never;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/define/fields/slug.d.ts
|
|
82
|
+
/** The slug editor. Adds `lowercase`, `autoGenerate` and `template`, e.g. `"{title}"`. */
|
|
83
|
+
declare function slug(_options: unknown): never;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/define/fields/string.d.ts
|
|
86
|
+
/** Text rendered by an installed app's element. `renderer` is required. */
|
|
87
|
+
declare function string(_options: unknown): never;
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/define/fields/taxonomy.d.ts
|
|
90
|
+
/** A node from a taxonomy. `localized` is not available in v1. */
|
|
91
|
+
declare function taxonomy$1(_options: unknown): never;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/define/fields/unionMember.d.ts
|
|
94
|
+
/** The slot a union's member model declares. All members share one `apiId`. Models only. */
|
|
95
|
+
declare function unionMember(_options: unknown): never;
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/define/fields/vector.d.ts
|
|
98
|
+
/** An embedding. `dimension` is required (1 to 3072); `index` is refused above 2000. */
|
|
99
|
+
declare function vector(_options: unknown): never;
|
|
100
|
+
declare namespace index_d_exports$2 {
|
|
101
|
+
export { asset$1 as asset, boolean, color, component$1 as component, componentUnion, date, dateTime, enumeration$1 as enumeration, float, int, json, location, markdown, multiLine, referenceOneWay, referenceTwoWay, referenceUnion, remote, richText, singleLine, slug, string, taxonomy$1 as taxonomy, unionMember, vector };
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/define/resources/component.d.ts
|
|
105
|
+
/** Same options as `model` minus `sidebar`; no two-way references or union members. */
|
|
106
|
+
declare function component(_options: unknown): never;
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/define/resources/enumeration.d.ts
|
|
109
|
+
declare function enumeration(_options: unknown): never;
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/define/resources/environment.d.ts
|
|
112
|
+
/** One environment: typed arrays per resource kind. The what. */
|
|
113
|
+
declare function environment(_options: unknown): never;
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/define/resources/graphqlRemoteSource.d.ts
|
|
116
|
+
declare function graphqlRemoteSource(_options: unknown): never;
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/define/resources/locale.d.ts
|
|
119
|
+
declare function locale(_options: unknown): never;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/define/resources/model.d.ts
|
|
122
|
+
declare function model(_options: unknown): never;
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/define/resources/restRemoteSource.d.ts
|
|
125
|
+
declare function restRemoteSource(_options: unknown): never;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/define/resources/stage.d.ts
|
|
128
|
+
declare function stage(_options: unknown): never;
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/define/resources/target.d.ts
|
|
131
|
+
/**
|
|
132
|
+
* One environment of one project, its token variable, and the environment
|
|
133
|
+
* definition to apply there. The where.
|
|
134
|
+
*/
|
|
135
|
+
declare function target(_options: unknown): never;
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/define/resources/taxonomy.d.ts
|
|
138
|
+
declare function taxonomy(_options: unknown): never;
|
|
139
|
+
declare namespace index_d_exports {
|
|
140
|
+
export { component, enumeration, environment, index_d_exports$2 as field, graphqlRemoteSource, locale, model, restRemoteSource, stage, target, taxonomy };
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/define/system/asset.d.ts
|
|
144
|
+
declare function asset(_options?: unknown): never;
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/define/system/query.d.ts
|
|
147
|
+
declare function query(_options?: unknown): never;
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/define/system/segment.d.ts
|
|
150
|
+
declare function segment(_options?: unknown): never;
|
|
151
|
+
declare namespace index_d_exports$1 {
|
|
152
|
+
export { asset, query, segment };
|
|
153
|
+
}
|
|
154
|
+
//#endregion
|
|
155
|
+
export { index_d_exports as define, index_d_exports$1 as system };
|
package/dist/define.js
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime.js";
|
|
2
|
+
//#region src/define/not-implemented.ts
|
|
3
|
+
/**
|
|
4
|
+
* Every builder is declared so the authoring surface is fixed, but none of
|
|
5
|
+
* them are implemented yet. They throw rather than returning a half-shaped
|
|
6
|
+
* object: a config that silently produced the wrong schema would be worse
|
|
7
|
+
* than one that refuses to load.
|
|
8
|
+
*/
|
|
9
|
+
function notImplemented(builder) {
|
|
10
|
+
throw new Error(`${builder} is not implemented yet`);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/define/fields/asset.ts
|
|
14
|
+
/** A reference to the Asset model. Its reverse is hidden and never exposed. */
|
|
15
|
+
function asset$1(_options) {
|
|
16
|
+
return notImplemented("define.field.asset");
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/define/fields/boolean.ts
|
|
20
|
+
/** True or false. Can drive a `visibilityCondition`. */
|
|
21
|
+
function boolean(_options) {
|
|
22
|
+
return notImplemented("define.field.boolean");
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/define/fields/color.ts
|
|
26
|
+
/** A colour value. */
|
|
27
|
+
function color(_options) {
|
|
28
|
+
return notImplemented("define.field.color");
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/define/fields/component.ts
|
|
32
|
+
/** An instance of one component. */
|
|
33
|
+
function component$1(_options) {
|
|
34
|
+
return notImplemented("define.field.component");
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/define/fields/componentUnion.ts
|
|
38
|
+
/** A choice of components. Members are replaced wholesale on update. */
|
|
39
|
+
function componentUnion(_options) {
|
|
40
|
+
return notImplemented("define.field.componentUnion");
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/define/fields/date.ts
|
|
44
|
+
/** A date. `initialValue` is an ISO string. */
|
|
45
|
+
function date(_options) {
|
|
46
|
+
return notImplemented("define.field.date");
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/define/fields/dateTime.ts
|
|
50
|
+
/** A date and time. `initialValue` is an ISO string. */
|
|
51
|
+
function dateTime(_options) {
|
|
52
|
+
return notImplemented("define.field.dateTime");
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/define/fields/enumeration.ts
|
|
56
|
+
/** A value from an enumeration. Takes the enumeration itself, not a lambda. */
|
|
57
|
+
function enumeration$1(_options) {
|
|
58
|
+
return notImplemented("define.field.enumeration");
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/define/fields/float.ts
|
|
62
|
+
/** Decimal number. `validations`: range, listItemCount. */
|
|
63
|
+
function float(_options) {
|
|
64
|
+
return notImplemented("define.field.float");
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/define/fields/int.ts
|
|
68
|
+
/** Whole number. `validations`: range, listItemCount. */
|
|
69
|
+
function int(_options) {
|
|
70
|
+
return notImplemented("define.field.int");
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/define/fields/json.ts
|
|
74
|
+
/** Arbitrary JSON. */
|
|
75
|
+
function json(_options) {
|
|
76
|
+
return notImplemented("define.field.json");
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/define/fields/location.ts
|
|
80
|
+
/** A latitude and longitude. */
|
|
81
|
+
function location(_options) {
|
|
82
|
+
return notImplemented("define.field.location");
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/define/fields/markdown.ts
|
|
86
|
+
/** The Markdown editor. Same validations as `singleLine`. */
|
|
87
|
+
function markdown(_options) {
|
|
88
|
+
return notImplemented("define.field.markdown");
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/define/fields/multiLine.ts
|
|
92
|
+
/** The text area editor. Same validations as `singleLine`. */
|
|
93
|
+
function multiLine(_options) {
|
|
94
|
+
return notImplemented("define.field.multiLine");
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/define/fields/referenceOneWay.ts
|
|
98
|
+
/** Visible from this side only. Hygraph keeps a hidden reverse that is never diffed. Allowed on components. */
|
|
99
|
+
function referenceOneWay(_options) {
|
|
100
|
+
return notImplemented("define.field.referenceOneWay");
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/define/fields/referenceTwoWay.ts
|
|
104
|
+
/** Both sides declared. The partner on `to` must point back through `reverse`. Models only. */
|
|
105
|
+
function referenceTwoWay(_options) {
|
|
106
|
+
return notImplemented("define.field.referenceTwoWay");
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/define/fields/referenceUnion.ts
|
|
110
|
+
/** A reference to several models. On models every member declares `unionMember`. */
|
|
111
|
+
function referenceUnion(_options) {
|
|
112
|
+
return notImplemented("define.field.referenceUnion");
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/define/fields/remote.ts
|
|
116
|
+
/** A field resolved from a remote source. `visibility` defaults to READ_ONLY. */
|
|
117
|
+
function remote(_options) {
|
|
118
|
+
return notImplemented("define.field.remote");
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/define/fields/richText.ts
|
|
122
|
+
/** Rich text. `embeds` enables embedding; `actions` picks the toolbar. */
|
|
123
|
+
function richText(_options) {
|
|
124
|
+
return notImplemented("define.field.richText");
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/define/fields/singleLine.ts
|
|
128
|
+
/** One line of text. `validations`: characters, matches, notMatches, listItemCount. */
|
|
129
|
+
function singleLine(_options) {
|
|
130
|
+
return notImplemented("define.field.singleLine");
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/define/fields/slug.ts
|
|
134
|
+
/** The slug editor. Adds `lowercase`, `autoGenerate` and `template`, e.g. `"{title}"`. */
|
|
135
|
+
function slug(_options) {
|
|
136
|
+
return notImplemented("define.field.slug");
|
|
137
|
+
}
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/define/fields/string.ts
|
|
140
|
+
/** Text rendered by an installed app's element. `renderer` is required. */
|
|
141
|
+
function string(_options) {
|
|
142
|
+
return notImplemented("define.field.string");
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/define/fields/taxonomy.ts
|
|
146
|
+
/** A node from a taxonomy. `localized` is not available in v1. */
|
|
147
|
+
function taxonomy$1(_options) {
|
|
148
|
+
return notImplemented("define.field.taxonomy");
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/define/fields/unionMember.ts
|
|
152
|
+
/** The slot a union's member model declares. All members share one `apiId`. Models only. */
|
|
153
|
+
function unionMember(_options) {
|
|
154
|
+
return notImplemented("define.field.unionMember");
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/define/fields/vector.ts
|
|
158
|
+
/** An embedding. `dimension` is required (1 to 3072); `index` is refused above 2000. */
|
|
159
|
+
function vector(_options) {
|
|
160
|
+
return notImplemented("define.field.vector");
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/define/fields/index.ts
|
|
164
|
+
var fields_exports = /* @__PURE__ */ __exportAll({
|
|
165
|
+
asset: () => asset$1,
|
|
166
|
+
boolean: () => boolean,
|
|
167
|
+
color: () => color,
|
|
168
|
+
component: () => component$1,
|
|
169
|
+
componentUnion: () => componentUnion,
|
|
170
|
+
date: () => date,
|
|
171
|
+
dateTime: () => dateTime,
|
|
172
|
+
enumeration: () => enumeration$1,
|
|
173
|
+
float: () => float,
|
|
174
|
+
int: () => int,
|
|
175
|
+
json: () => json,
|
|
176
|
+
location: () => location,
|
|
177
|
+
markdown: () => markdown,
|
|
178
|
+
multiLine: () => multiLine,
|
|
179
|
+
referenceOneWay: () => referenceOneWay,
|
|
180
|
+
referenceTwoWay: () => referenceTwoWay,
|
|
181
|
+
referenceUnion: () => referenceUnion,
|
|
182
|
+
remote: () => remote,
|
|
183
|
+
richText: () => richText,
|
|
184
|
+
singleLine: () => singleLine,
|
|
185
|
+
slug: () => slug,
|
|
186
|
+
string: () => string,
|
|
187
|
+
taxonomy: () => taxonomy$1,
|
|
188
|
+
unionMember: () => unionMember,
|
|
189
|
+
vector: () => vector
|
|
190
|
+
});
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/define/resources/component.ts
|
|
193
|
+
/** Same options as `model` minus `sidebar`; no two-way references or union members. */
|
|
194
|
+
function component(_options) {
|
|
195
|
+
return notImplemented("define.component");
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/define/resources/enumeration.ts
|
|
199
|
+
function enumeration(_options) {
|
|
200
|
+
return notImplemented("define.enumeration");
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/define/resources/environment.ts
|
|
204
|
+
/** One environment: typed arrays per resource kind. The what. */
|
|
205
|
+
function environment(_options) {
|
|
206
|
+
return notImplemented("define.environment");
|
|
207
|
+
}
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/define/resources/graphqlRemoteSource.ts
|
|
210
|
+
function graphqlRemoteSource(_options) {
|
|
211
|
+
return notImplemented("define.graphqlRemoteSource");
|
|
212
|
+
}
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/define/resources/locale.ts
|
|
215
|
+
function locale(_options) {
|
|
216
|
+
return notImplemented("define.locale");
|
|
217
|
+
}
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region src/define/resources/model.ts
|
|
220
|
+
function model(_options) {
|
|
221
|
+
return notImplemented("define.model");
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/define/resources/restRemoteSource.ts
|
|
225
|
+
function restRemoteSource(_options) {
|
|
226
|
+
return notImplemented("define.restRemoteSource");
|
|
227
|
+
}
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/define/resources/stage.ts
|
|
230
|
+
function stage(_options) {
|
|
231
|
+
return notImplemented("define.stage");
|
|
232
|
+
}
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region src/define/resources/target.ts
|
|
235
|
+
/**
|
|
236
|
+
* One environment of one project, its token variable, and the environment
|
|
237
|
+
* definition to apply there. The where.
|
|
238
|
+
*/
|
|
239
|
+
function target(_options) {
|
|
240
|
+
return notImplemented("define.target");
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/define/resources/taxonomy.ts
|
|
244
|
+
function taxonomy(_options) {
|
|
245
|
+
return notImplemented("define.taxonomy");
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/define/index.ts
|
|
249
|
+
var define_exports = /* @__PURE__ */ __exportAll({
|
|
250
|
+
component: () => component,
|
|
251
|
+
enumeration: () => enumeration,
|
|
252
|
+
environment: () => environment,
|
|
253
|
+
field: () => fields_exports,
|
|
254
|
+
graphqlRemoteSource: () => graphqlRemoteSource,
|
|
255
|
+
locale: () => locale,
|
|
256
|
+
model: () => model,
|
|
257
|
+
restRemoteSource: () => restRemoteSource,
|
|
258
|
+
stage: () => stage,
|
|
259
|
+
target: () => target,
|
|
260
|
+
taxonomy: () => taxonomy
|
|
261
|
+
});
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/define/system/asset.ts
|
|
264
|
+
function asset(_options) {
|
|
265
|
+
return notImplemented("system.asset");
|
|
266
|
+
}
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/define/system/query.ts
|
|
269
|
+
function query(_options) {
|
|
270
|
+
return notImplemented("system.query");
|
|
271
|
+
}
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region src/define/system/segment.ts
|
|
274
|
+
function segment(_options) {
|
|
275
|
+
return notImplemented("system.segment");
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/define/system/index.ts
|
|
279
|
+
var system_exports = /* @__PURE__ */ __exportAll({
|
|
280
|
+
asset: () => asset,
|
|
281
|
+
query: () => query,
|
|
282
|
+
segment: () => segment
|
|
283
|
+
});
|
|
284
|
+
//#endregion
|
|
285
|
+
export { define_exports as define, system_exports as system };
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
package/dist/version.js
ADDED
package/package.json
CHANGED
|
@@ -1,11 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hygraph/cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Hygraph
|
|
5
|
-
"author": "Hygraph",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Manage your Hygraph schema as code",
|
|
6
5
|
"license": "UNLICENSED",
|
|
6
|
+
"author": "Hygraph GmbH",
|
|
7
|
+
"bin": {
|
|
8
|
+
"hygraph": "./bin/hygraph.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./define": {
|
|
23
|
+
"types": "./dist/define.d.ts",
|
|
24
|
+
"import": "./dist/define.js"
|
|
25
|
+
},
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
7
28
|
"publishConfig": {
|
|
8
29
|
"access": "public"
|
|
9
30
|
},
|
|
10
|
-
"
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@changesets/cli": "^2.29.7",
|
|
33
|
+
"@types/node": "^22.18.0",
|
|
34
|
+
"commander": "^15.0.0",
|
|
35
|
+
"oxfmt": "^0.68.0",
|
|
36
|
+
"tsdown": "^0.23.0",
|
|
37
|
+
"typescript": "^5.9.3",
|
|
38
|
+
"unrun": "^0.3.1",
|
|
39
|
+
"vitest": "^3.2.4"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=22",
|
|
43
|
+
"pnpm": "^10.0.0"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsdown",
|
|
47
|
+
"cli": "node bin/hygraph.js",
|
|
48
|
+
"typecheck": "tsc",
|
|
49
|
+
"test": "vitest",
|
|
50
|
+
"test:ci": "vitest --run",
|
|
51
|
+
"format": "oxfmt",
|
|
52
|
+
"format:check": "oxfmt --check",
|
|
53
|
+
"format:check:ci": "oxfmt --list-different",
|
|
54
|
+
"clean": "rm -rf node_modules dist",
|
|
55
|
+
"changeset": "changeset",
|
|
56
|
+
"changeset:status": "changeset status --since=origin/development",
|
|
57
|
+
"publish-packages": "changeset publish --no-git-tag",
|
|
58
|
+
"publish-packages-dry-run": "changeset publish --no-git-tag --dry-run",
|
|
59
|
+
"version:ci": "changeset version"
|
|
60
|
+
}
|
|
11
61
|
}
|