@gxpl/sdk 0.0.9 → 0.0.10

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.
@@ -20,7 +20,7 @@ export declare const ArticleSchema: z.ZodObject<{
20
20
  }>;
21
21
  hidden: z.ZodBoolean;
22
22
  color: z.ZodNullable<z.ZodString>;
23
- media: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
23
+ media: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
24
24
  url: z.ZodString;
25
25
  size: z.ZodString;
26
26
  type: z.ZodLiteral<"video">;
@@ -62,7 +62,7 @@ export declare const ArticleSchema: z.ZodObject<{
62
62
  type: "image";
63
63
  size: string;
64
64
  offsetX: number | null;
65
- }>]>;
65
+ }>]>>;
66
66
  }, "strip", z.ZodTypeAny, {
67
67
  color: string | null;
68
68
  hidden: boolean;
@@ -73,7 +73,8 @@ export declare const ArticleSchema: z.ZodObject<{
73
73
  vhUnits?: number | undefined;
74
74
  };
75
75
  items: import("../../..").ItemAny[];
76
- media: {
76
+ name?: string | undefined;
77
+ media?: {
77
78
  url: string;
78
79
  coverUrl: string | null;
79
80
  play: "on-click" | "auto";
@@ -87,8 +88,7 @@ export declare const ArticleSchema: z.ZodObject<{
87
88
  type: "image";
88
89
  size: string;
89
90
  offsetX: number | null;
90
- };
91
- name?: string | undefined;
91
+ } | undefined;
92
92
  }, {
93
93
  color: string | null;
94
94
  hidden: boolean;
@@ -99,7 +99,8 @@ export declare const ArticleSchema: z.ZodObject<{
99
99
  vhUnits?: number | undefined;
100
100
  };
101
101
  items: import("../../..").ItemAny[];
102
- media: {
102
+ name?: string | undefined;
103
+ media?: {
103
104
  url: string;
104
105
  coverUrl: string | null;
105
106
  play: "on-click" | "auto";
@@ -113,8 +114,7 @@ export declare const ArticleSchema: z.ZodObject<{
113
114
  type: "image";
114
115
  size: string;
115
116
  offsetX: number | null;
116
- };
117
- name?: string | undefined;
117
+ } | undefined;
118
118
  }>, "many">;
119
119
  interactions: z.ZodArray<z.ZodObject<{
120
120
  id: z.ZodString;
@@ -230,7 +230,8 @@ export declare const ArticleSchema: z.ZodObject<{
230
230
  vhUnits?: number | undefined;
231
231
  };
232
232
  items: import("../../..").ItemAny[];
233
- media: {
233
+ name?: string | undefined;
234
+ media?: {
234
235
  url: string;
235
236
  coverUrl: string | null;
236
237
  play: "on-click" | "auto";
@@ -244,8 +245,7 @@ export declare const ArticleSchema: z.ZodObject<{
244
245
  type: "image";
245
246
  size: string;
246
247
  offsetX: number | null;
247
- };
248
- name?: string | undefined;
248
+ } | undefined;
249
249
  }[];
250
250
  interactions: {
251
251
  id: string;
@@ -281,7 +281,8 @@ export declare const ArticleSchema: z.ZodObject<{
281
281
  vhUnits?: number | undefined;
282
282
  };
283
283
  items: import("../../..").ItemAny[];
284
- media: {
284
+ name?: string | undefined;
285
+ media?: {
285
286
  url: string;
286
287
  coverUrl: string | null;
287
288
  play: "on-click" | "auto";
@@ -295,8 +296,7 @@ export declare const ArticleSchema: z.ZodObject<{
295
296
  type: "image";
296
297
  size: string;
297
298
  offsetX: number | null;
298
- };
299
- name?: string | undefined;
299
+ } | undefined;
300
300
  }[];
301
301
  interactions: {
302
302
  id: string;
@@ -75,7 +75,7 @@ export declare const SectionSchema: z.ZodObject<{
75
75
  }>;
76
76
  hidden: z.ZodBoolean;
77
77
  color: z.ZodNullable<z.ZodString>;
78
- media: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
78
+ media: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
79
79
  url: z.ZodString;
80
80
  size: z.ZodString;
81
81
  type: z.ZodLiteral<"video">;
@@ -117,7 +117,7 @@ export declare const SectionSchema: z.ZodObject<{
117
117
  type: "image";
118
118
  size: string;
119
119
  offsetX: number | null;
120
- }>]>;
120
+ }>]>>;
121
121
  }, "strip", z.ZodTypeAny, {
122
122
  color: string | null;
123
123
  hidden: boolean;
@@ -128,7 +128,8 @@ export declare const SectionSchema: z.ZodObject<{
128
128
  vhUnits?: number | undefined;
129
129
  };
130
130
  items: import("../../..").ItemAny[];
131
- media: {
131
+ name?: string | undefined;
132
+ media?: {
132
133
  url: string;
133
134
  coverUrl: string | null;
134
135
  play: "on-click" | "auto";
@@ -142,8 +143,7 @@ export declare const SectionSchema: z.ZodObject<{
142
143
  type: "image";
143
144
  size: string;
144
145
  offsetX: number | null;
145
- };
146
- name?: string | undefined;
146
+ } | undefined;
147
147
  }, {
148
148
  color: string | null;
149
149
  hidden: boolean;
@@ -154,7 +154,8 @@ export declare const SectionSchema: z.ZodObject<{
154
154
  vhUnits?: number | undefined;
155
155
  };
156
156
  items: import("../../..").ItemAny[];
157
- media: {
157
+ name?: string | undefined;
158
+ media?: {
158
159
  url: string;
159
160
  coverUrl: string | null;
160
161
  play: "on-click" | "auto";
@@ -168,6 +169,5 @@ export declare const SectionSchema: z.ZodObject<{
168
169
  type: "image";
169
170
  size: string;
170
171
  offsetX: number | null;
171
- };
172
- name?: string | undefined;
172
+ } | undefined;
173
173
  }>;
@@ -33,5 +33,5 @@ exports.SectionSchema = zod_1.z.object({
33
33
  height: exports.SectionHeightSchema,
34
34
  hidden: zod_1.z.boolean(),
35
35
  color: zod_1.z.string().nullable(),
36
- media: exports.SectionMediaSchema
36
+ media: exports.SectionMediaSchema.optional()
37
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gxpl/sdk",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",