@moonbase.sh/storefront-api 0.1.107 → 0.1.109
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/index.cjs +2 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -293,7 +293,8 @@ var userSchema = import_zod7.z.object({
|
|
|
293
293
|
name: import_zod7.z.string(),
|
|
294
294
|
tenantId: import_zod7.z.string(),
|
|
295
295
|
address: addressSchema.optional(),
|
|
296
|
-
communicationPreferences: communicationPreferencesSchema
|
|
296
|
+
communicationPreferences: communicationPreferencesSchema,
|
|
297
|
+
ownedProducts: import_zod7.z.string().array().optional()
|
|
297
298
|
});
|
|
298
299
|
var identityUserSchema = userSchema.and(import_zod7.z.object({
|
|
299
300
|
accessToken: import_zod7.z.string(),
|
package/dist/index.d.cts
CHANGED
|
@@ -63,6 +63,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
63
63
|
}, {
|
|
64
64
|
newsletterOptIn: boolean;
|
|
65
65
|
}>;
|
|
66
|
+
ownedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
66
67
|
}, "strip", z.ZodTypeAny, {
|
|
67
68
|
id: string;
|
|
68
69
|
email: string;
|
|
@@ -79,6 +80,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
79
80
|
region: string | null;
|
|
80
81
|
postCode: string;
|
|
81
82
|
} | undefined;
|
|
83
|
+
ownedProducts?: string[] | undefined;
|
|
82
84
|
}, {
|
|
83
85
|
id: string;
|
|
84
86
|
email: string;
|
|
@@ -95,6 +97,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
95
97
|
region: string | null;
|
|
96
98
|
postCode: string;
|
|
97
99
|
} | undefined;
|
|
100
|
+
ownedProducts?: string[] | undefined;
|
|
98
101
|
}>;
|
|
99
102
|
declare const identityUserSchema: z.ZodIntersection<z.ZodObject<{
|
|
100
103
|
id: z.ZodString;
|
|
@@ -130,6 +133,7 @@ declare const identityUserSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
130
133
|
}, {
|
|
131
134
|
newsletterOptIn: boolean;
|
|
132
135
|
}>;
|
|
136
|
+
ownedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
133
137
|
}, "strip", z.ZodTypeAny, {
|
|
134
138
|
id: string;
|
|
135
139
|
email: string;
|
|
@@ -146,6 +150,7 @@ declare const identityUserSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
146
150
|
region: string | null;
|
|
147
151
|
postCode: string;
|
|
148
152
|
} | undefined;
|
|
153
|
+
ownedProducts?: string[] | undefined;
|
|
149
154
|
}, {
|
|
150
155
|
id: string;
|
|
151
156
|
email: string;
|
|
@@ -162,6 +167,7 @@ declare const identityUserSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
162
167
|
region: string | null;
|
|
163
168
|
postCode: string;
|
|
164
169
|
} | undefined;
|
|
170
|
+
ownedProducts?: string[] | undefined;
|
|
165
171
|
}>, z.ZodObject<{
|
|
166
172
|
accessToken: z.ZodString;
|
|
167
173
|
refreshToken: z.ZodString;
|
package/dist/index.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
63
63
|
}, {
|
|
64
64
|
newsletterOptIn: boolean;
|
|
65
65
|
}>;
|
|
66
|
+
ownedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
66
67
|
}, "strip", z.ZodTypeAny, {
|
|
67
68
|
id: string;
|
|
68
69
|
email: string;
|
|
@@ -79,6 +80,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
79
80
|
region: string | null;
|
|
80
81
|
postCode: string;
|
|
81
82
|
} | undefined;
|
|
83
|
+
ownedProducts?: string[] | undefined;
|
|
82
84
|
}, {
|
|
83
85
|
id: string;
|
|
84
86
|
email: string;
|
|
@@ -95,6 +97,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
95
97
|
region: string | null;
|
|
96
98
|
postCode: string;
|
|
97
99
|
} | undefined;
|
|
100
|
+
ownedProducts?: string[] | undefined;
|
|
98
101
|
}>;
|
|
99
102
|
declare const identityUserSchema: z.ZodIntersection<z.ZodObject<{
|
|
100
103
|
id: z.ZodString;
|
|
@@ -130,6 +133,7 @@ declare const identityUserSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
130
133
|
}, {
|
|
131
134
|
newsletterOptIn: boolean;
|
|
132
135
|
}>;
|
|
136
|
+
ownedProducts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
133
137
|
}, "strip", z.ZodTypeAny, {
|
|
134
138
|
id: string;
|
|
135
139
|
email: string;
|
|
@@ -146,6 +150,7 @@ declare const identityUserSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
146
150
|
region: string | null;
|
|
147
151
|
postCode: string;
|
|
148
152
|
} | undefined;
|
|
153
|
+
ownedProducts?: string[] | undefined;
|
|
149
154
|
}, {
|
|
150
155
|
id: string;
|
|
151
156
|
email: string;
|
|
@@ -162,6 +167,7 @@ declare const identityUserSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
162
167
|
region: string | null;
|
|
163
168
|
postCode: string;
|
|
164
169
|
} | undefined;
|
|
170
|
+
ownedProducts?: string[] | undefined;
|
|
165
171
|
}>, z.ZodObject<{
|
|
166
172
|
accessToken: z.ZodString;
|
|
167
173
|
refreshToken: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -246,7 +246,8 @@ var userSchema = z7.object({
|
|
|
246
246
|
name: z7.string(),
|
|
247
247
|
tenantId: z7.string(),
|
|
248
248
|
address: addressSchema.optional(),
|
|
249
|
-
communicationPreferences: communicationPreferencesSchema
|
|
249
|
+
communicationPreferences: communicationPreferencesSchema,
|
|
250
|
+
ownedProducts: z7.string().array().optional()
|
|
250
251
|
});
|
|
251
252
|
var identityUserSchema = userSchema.and(z7.object({
|
|
252
253
|
accessToken: z7.string(),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.109",
|
|
5
5
|
"description": "Package to let you build storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|