@moonbase.sh/api 0.4.15 → 0.4.16
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 +18 -8
- package/dist/index.d.cts +46 -2
- package/dist/index.d.ts +46 -2
- package/dist/index.js +18 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -148,14 +148,24 @@ var importLicenseRequestSchema = import_zod2.z.object({
|
|
|
148
148
|
lastValidation: import_zod2.z.date().optional()
|
|
149
149
|
}).array().optional()
|
|
150
150
|
});
|
|
151
|
-
var
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
151
|
+
var provisionLicensesRequestRequestSchema = import_zod2.z.object({
|
|
152
|
+
productId: import_zod2.z.string(),
|
|
153
|
+
quantity: import_zod2.z.number().optional(),
|
|
154
|
+
limitPerCustomer: import_zod2.z.number().optional()
|
|
155
|
+
}).array();
|
|
156
|
+
var provisionLicensesRequestSchema = import_zod2.z.union([
|
|
157
|
+
import_zod2.z.object({
|
|
158
|
+
ownerId: import_zod2.z.string(),
|
|
159
|
+
requests: provisionLicensesRequestRequestSchema
|
|
160
|
+
}),
|
|
161
|
+
import_zod2.z.object({
|
|
162
|
+
customer: import_zod2.z.object({
|
|
163
|
+
name: import_zod2.z.string(),
|
|
164
|
+
email: import_zod2.z.string()
|
|
165
|
+
}),
|
|
166
|
+
requests: provisionLicensesRequestRequestSchema
|
|
167
|
+
})
|
|
168
|
+
]);
|
|
159
169
|
|
|
160
170
|
// src/products/schemas.ts
|
|
161
171
|
var import_zod3 = require("zod");
|
package/dist/index.d.cts
CHANGED
|
@@ -1139,7 +1139,7 @@ declare const importLicenseRequestSchema: z.ZodObject<{
|
|
|
1139
1139
|
lastValidation?: Date | undefined;
|
|
1140
1140
|
}[] | undefined;
|
|
1141
1141
|
}>;
|
|
1142
|
-
declare const provisionLicensesRequestSchema: z.ZodObject<{
|
|
1142
|
+
declare const provisionLicensesRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
1143
1143
|
ownerId: z.ZodString;
|
|
1144
1144
|
requests: z.ZodArray<z.ZodObject<{
|
|
1145
1145
|
productId: z.ZodString;
|
|
@@ -1168,7 +1168,51 @@ declare const provisionLicensesRequestSchema: z.ZodObject<{
|
|
|
1168
1168
|
quantity?: number | undefined;
|
|
1169
1169
|
limitPerCustomer?: number | undefined;
|
|
1170
1170
|
}[];
|
|
1171
|
-
}
|
|
1171
|
+
}>, z.ZodObject<{
|
|
1172
|
+
customer: z.ZodObject<{
|
|
1173
|
+
name: z.ZodString;
|
|
1174
|
+
email: z.ZodString;
|
|
1175
|
+
}, "strip", z.ZodTypeAny, {
|
|
1176
|
+
name: string;
|
|
1177
|
+
email: string;
|
|
1178
|
+
}, {
|
|
1179
|
+
name: string;
|
|
1180
|
+
email: string;
|
|
1181
|
+
}>;
|
|
1182
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
1183
|
+
productId: z.ZodString;
|
|
1184
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
1185
|
+
limitPerCustomer: z.ZodOptional<z.ZodNumber>;
|
|
1186
|
+
}, "strip", z.ZodTypeAny, {
|
|
1187
|
+
productId: string;
|
|
1188
|
+
quantity?: number | undefined;
|
|
1189
|
+
limitPerCustomer?: number | undefined;
|
|
1190
|
+
}, {
|
|
1191
|
+
productId: string;
|
|
1192
|
+
quantity?: number | undefined;
|
|
1193
|
+
limitPerCustomer?: number | undefined;
|
|
1194
|
+
}>, "many">;
|
|
1195
|
+
}, "strip", z.ZodTypeAny, {
|
|
1196
|
+
customer: {
|
|
1197
|
+
name: string;
|
|
1198
|
+
email: string;
|
|
1199
|
+
};
|
|
1200
|
+
requests: {
|
|
1201
|
+
productId: string;
|
|
1202
|
+
quantity?: number | undefined;
|
|
1203
|
+
limitPerCustomer?: number | undefined;
|
|
1204
|
+
}[];
|
|
1205
|
+
}, {
|
|
1206
|
+
customer: {
|
|
1207
|
+
name: string;
|
|
1208
|
+
email: string;
|
|
1209
|
+
};
|
|
1210
|
+
requests: {
|
|
1211
|
+
productId: string;
|
|
1212
|
+
quantity?: number | undefined;
|
|
1213
|
+
limitPerCustomer?: number | undefined;
|
|
1214
|
+
}[];
|
|
1215
|
+
}>]>;
|
|
1172
1216
|
|
|
1173
1217
|
declare enum LicenseStatus {
|
|
1174
1218
|
Active = "Active",
|
package/dist/index.d.ts
CHANGED
|
@@ -1139,7 +1139,7 @@ declare const importLicenseRequestSchema: z.ZodObject<{
|
|
|
1139
1139
|
lastValidation?: Date | undefined;
|
|
1140
1140
|
}[] | undefined;
|
|
1141
1141
|
}>;
|
|
1142
|
-
declare const provisionLicensesRequestSchema: z.ZodObject<{
|
|
1142
|
+
declare const provisionLicensesRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
1143
1143
|
ownerId: z.ZodString;
|
|
1144
1144
|
requests: z.ZodArray<z.ZodObject<{
|
|
1145
1145
|
productId: z.ZodString;
|
|
@@ -1168,7 +1168,51 @@ declare const provisionLicensesRequestSchema: z.ZodObject<{
|
|
|
1168
1168
|
quantity?: number | undefined;
|
|
1169
1169
|
limitPerCustomer?: number | undefined;
|
|
1170
1170
|
}[];
|
|
1171
|
-
}
|
|
1171
|
+
}>, z.ZodObject<{
|
|
1172
|
+
customer: z.ZodObject<{
|
|
1173
|
+
name: z.ZodString;
|
|
1174
|
+
email: z.ZodString;
|
|
1175
|
+
}, "strip", z.ZodTypeAny, {
|
|
1176
|
+
name: string;
|
|
1177
|
+
email: string;
|
|
1178
|
+
}, {
|
|
1179
|
+
name: string;
|
|
1180
|
+
email: string;
|
|
1181
|
+
}>;
|
|
1182
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
1183
|
+
productId: z.ZodString;
|
|
1184
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
1185
|
+
limitPerCustomer: z.ZodOptional<z.ZodNumber>;
|
|
1186
|
+
}, "strip", z.ZodTypeAny, {
|
|
1187
|
+
productId: string;
|
|
1188
|
+
quantity?: number | undefined;
|
|
1189
|
+
limitPerCustomer?: number | undefined;
|
|
1190
|
+
}, {
|
|
1191
|
+
productId: string;
|
|
1192
|
+
quantity?: number | undefined;
|
|
1193
|
+
limitPerCustomer?: number | undefined;
|
|
1194
|
+
}>, "many">;
|
|
1195
|
+
}, "strip", z.ZodTypeAny, {
|
|
1196
|
+
customer: {
|
|
1197
|
+
name: string;
|
|
1198
|
+
email: string;
|
|
1199
|
+
};
|
|
1200
|
+
requests: {
|
|
1201
|
+
productId: string;
|
|
1202
|
+
quantity?: number | undefined;
|
|
1203
|
+
limitPerCustomer?: number | undefined;
|
|
1204
|
+
}[];
|
|
1205
|
+
}, {
|
|
1206
|
+
customer: {
|
|
1207
|
+
name: string;
|
|
1208
|
+
email: string;
|
|
1209
|
+
};
|
|
1210
|
+
requests: {
|
|
1211
|
+
productId: string;
|
|
1212
|
+
quantity?: number | undefined;
|
|
1213
|
+
limitPerCustomer?: number | undefined;
|
|
1214
|
+
}[];
|
|
1215
|
+
}>]>;
|
|
1172
1216
|
|
|
1173
1217
|
declare enum LicenseStatus {
|
|
1174
1218
|
Active = "Active",
|
package/dist/index.js
CHANGED
|
@@ -97,14 +97,24 @@ var importLicenseRequestSchema = z2.object({
|
|
|
97
97
|
lastValidation: z2.date().optional()
|
|
98
98
|
}).array().optional()
|
|
99
99
|
});
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
var provisionLicensesRequestRequestSchema = z2.object({
|
|
101
|
+
productId: z2.string(),
|
|
102
|
+
quantity: z2.number().optional(),
|
|
103
|
+
limitPerCustomer: z2.number().optional()
|
|
104
|
+
}).array();
|
|
105
|
+
var provisionLicensesRequestSchema = z2.union([
|
|
106
|
+
z2.object({
|
|
107
|
+
ownerId: z2.string(),
|
|
108
|
+
requests: provisionLicensesRequestRequestSchema
|
|
109
|
+
}),
|
|
110
|
+
z2.object({
|
|
111
|
+
customer: z2.object({
|
|
112
|
+
name: z2.string(),
|
|
113
|
+
email: z2.string()
|
|
114
|
+
}),
|
|
115
|
+
requests: provisionLicensesRequestRequestSchema
|
|
116
|
+
})
|
|
117
|
+
]);
|
|
108
118
|
|
|
109
119
|
// src/products/schemas.ts
|
|
110
120
|
import { z as z3 } from "zod";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.16",
|
|
5
5
|
"description": "Package to let you integrate backends with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|