@moonbase.sh/storefront-api 0.4.56 → 0.4.57
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 +11 -1
- package/dist/index.d.cts +40 -4
- package/dist/index.d.ts +40 -4
- package/dist/index.js +11 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -588,6 +588,7 @@ var import_zod9 = require("zod");
|
|
|
588
588
|
var schemas_exports5 = {};
|
|
589
589
|
__export(schemas_exports5, {
|
|
590
590
|
activationSchema: () => activationSchema,
|
|
591
|
+
externalLicenseContent: () => externalLicenseContent,
|
|
591
592
|
licenseSchema: () => licenseSchema
|
|
592
593
|
});
|
|
593
594
|
var import_zod8 = require("zod");
|
|
@@ -610,13 +611,22 @@ var ActivationMethod = /* @__PURE__ */ ((ActivationMethod2) => {
|
|
|
610
611
|
})(ActivationMethod || {});
|
|
611
612
|
|
|
612
613
|
// src/inventory/licenses/schemas.ts
|
|
614
|
+
var externalLicenseFileContent = import_zod8.z.object({
|
|
615
|
+
fileName: import_zod8.z.string(),
|
|
616
|
+
contentType: import_zod8.z.string(),
|
|
617
|
+
data: import_zod8.z.string()
|
|
618
|
+
});
|
|
619
|
+
var externalLicenseContent = import_zod8.z.union([
|
|
620
|
+
import_zod8.z.string(),
|
|
621
|
+
externalLicenseFileContent
|
|
622
|
+
]);
|
|
613
623
|
var licenseSchema = import_zod8.z.object({
|
|
614
624
|
id: import_zod8.z.string(),
|
|
615
625
|
status: import_zod8.z.nativeEnum(LicenseStatus),
|
|
616
626
|
product: productSummarySchema,
|
|
617
627
|
activeNumberOfActivations: import_zod8.z.number(),
|
|
618
628
|
maxNumberOfActivations: import_zod8.z.number(),
|
|
619
|
-
externalFulfillment:
|
|
629
|
+
externalFulfillment: externalLicenseContent.optional(),
|
|
620
630
|
expiresAt: import_zod8.z.coerce.date().optional(),
|
|
621
631
|
createdAt: import_zod8.z.coerce.date()
|
|
622
632
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1169,6 +1169,20 @@ declare class IdentityEndpoints {
|
|
|
1169
1169
|
confirmEmailChange(email: string, code: string): Promise<void>;
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
|
+
declare const externalLicenseContent: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1173
|
+
fileName: z.ZodString;
|
|
1174
|
+
contentType: z.ZodString;
|
|
1175
|
+
data: z.ZodString;
|
|
1176
|
+
}, "strip", z.ZodTypeAny, {
|
|
1177
|
+
data: string;
|
|
1178
|
+
fileName: string;
|
|
1179
|
+
contentType: string;
|
|
1180
|
+
}, {
|
|
1181
|
+
data: string;
|
|
1182
|
+
fileName: string;
|
|
1183
|
+
contentType: string;
|
|
1184
|
+
}>]>;
|
|
1185
|
+
type ExternalLicenseContent = z.infer<typeof externalLicenseContent>;
|
|
1172
1186
|
declare const licenseSchema: z.ZodObject<{
|
|
1173
1187
|
id: z.ZodString;
|
|
1174
1188
|
status: z.ZodNativeEnum<typeof LicenseStatus>;
|
|
@@ -1318,7 +1332,19 @@ declare const licenseSchema: z.ZodObject<{
|
|
|
1318
1332
|
}>;
|
|
1319
1333
|
activeNumberOfActivations: z.ZodNumber;
|
|
1320
1334
|
maxNumberOfActivations: z.ZodNumber;
|
|
1321
|
-
externalFulfillment: z.ZodOptional<z.ZodString
|
|
1335
|
+
externalFulfillment: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1336
|
+
fileName: z.ZodString;
|
|
1337
|
+
contentType: z.ZodString;
|
|
1338
|
+
data: z.ZodString;
|
|
1339
|
+
}, "strip", z.ZodTypeAny, {
|
|
1340
|
+
data: string;
|
|
1341
|
+
fileName: string;
|
|
1342
|
+
contentType: string;
|
|
1343
|
+
}, {
|
|
1344
|
+
data: string;
|
|
1345
|
+
fileName: string;
|
|
1346
|
+
contentType: string;
|
|
1347
|
+
}>]>>;
|
|
1322
1348
|
expiresAt: z.ZodOptional<z.ZodDate>;
|
|
1323
1349
|
createdAt: z.ZodDate;
|
|
1324
1350
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1362,7 +1388,11 @@ declare const licenseSchema: z.ZodObject<{
|
|
|
1362
1388
|
maxNumberOfActivations: number;
|
|
1363
1389
|
createdAt: Date;
|
|
1364
1390
|
expiresAt?: Date | undefined;
|
|
1365
|
-
externalFulfillment?: string |
|
|
1391
|
+
externalFulfillment?: string | {
|
|
1392
|
+
data: string;
|
|
1393
|
+
fileName: string;
|
|
1394
|
+
contentType: string;
|
|
1395
|
+
} | undefined;
|
|
1366
1396
|
}, {
|
|
1367
1397
|
id: string;
|
|
1368
1398
|
status: LicenseStatus;
|
|
@@ -1404,7 +1434,11 @@ declare const licenseSchema: z.ZodObject<{
|
|
|
1404
1434
|
maxNumberOfActivations: number;
|
|
1405
1435
|
createdAt: Date;
|
|
1406
1436
|
expiresAt?: Date | undefined;
|
|
1407
|
-
externalFulfillment?: string |
|
|
1437
|
+
externalFulfillment?: string | {
|
|
1438
|
+
data: string;
|
|
1439
|
+
fileName: string;
|
|
1440
|
+
contentType: string;
|
|
1441
|
+
} | undefined;
|
|
1408
1442
|
}>;
|
|
1409
1443
|
declare const activationSchema: z.ZodObject<{
|
|
1410
1444
|
id: z.ZodString;
|
|
@@ -1432,10 +1466,12 @@ declare const activationSchema: z.ZodObject<{
|
|
|
1432
1466
|
lastValidatedAt: Date | null;
|
|
1433
1467
|
}>;
|
|
1434
1468
|
|
|
1469
|
+
type schemas$8_ExternalLicenseContent = ExternalLicenseContent;
|
|
1435
1470
|
declare const schemas$8_activationSchema: typeof activationSchema;
|
|
1471
|
+
declare const schemas$8_externalLicenseContent: typeof externalLicenseContent;
|
|
1436
1472
|
declare const schemas$8_licenseSchema: typeof licenseSchema;
|
|
1437
1473
|
declare namespace schemas$8 {
|
|
1438
|
-
export { schemas$8_activationSchema as activationSchema, schemas$8_licenseSchema as licenseSchema };
|
|
1474
|
+
export { type schemas$8_ExternalLicenseContent as ExternalLicenseContent, schemas$8_activationSchema as activationSchema, schemas$8_externalLicenseContent as externalLicenseContent, schemas$8_licenseSchema as licenseSchema };
|
|
1439
1475
|
}
|
|
1440
1476
|
|
|
1441
1477
|
declare enum LicenseStatus {
|
package/dist/index.d.ts
CHANGED
|
@@ -1169,6 +1169,20 @@ declare class IdentityEndpoints {
|
|
|
1169
1169
|
confirmEmailChange(email: string, code: string): Promise<void>;
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
|
+
declare const externalLicenseContent: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1173
|
+
fileName: z.ZodString;
|
|
1174
|
+
contentType: z.ZodString;
|
|
1175
|
+
data: z.ZodString;
|
|
1176
|
+
}, "strip", z.ZodTypeAny, {
|
|
1177
|
+
data: string;
|
|
1178
|
+
fileName: string;
|
|
1179
|
+
contentType: string;
|
|
1180
|
+
}, {
|
|
1181
|
+
data: string;
|
|
1182
|
+
fileName: string;
|
|
1183
|
+
contentType: string;
|
|
1184
|
+
}>]>;
|
|
1185
|
+
type ExternalLicenseContent = z.infer<typeof externalLicenseContent>;
|
|
1172
1186
|
declare const licenseSchema: z.ZodObject<{
|
|
1173
1187
|
id: z.ZodString;
|
|
1174
1188
|
status: z.ZodNativeEnum<typeof LicenseStatus>;
|
|
@@ -1318,7 +1332,19 @@ declare const licenseSchema: z.ZodObject<{
|
|
|
1318
1332
|
}>;
|
|
1319
1333
|
activeNumberOfActivations: z.ZodNumber;
|
|
1320
1334
|
maxNumberOfActivations: z.ZodNumber;
|
|
1321
|
-
externalFulfillment: z.ZodOptional<z.ZodString
|
|
1335
|
+
externalFulfillment: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1336
|
+
fileName: z.ZodString;
|
|
1337
|
+
contentType: z.ZodString;
|
|
1338
|
+
data: z.ZodString;
|
|
1339
|
+
}, "strip", z.ZodTypeAny, {
|
|
1340
|
+
data: string;
|
|
1341
|
+
fileName: string;
|
|
1342
|
+
contentType: string;
|
|
1343
|
+
}, {
|
|
1344
|
+
data: string;
|
|
1345
|
+
fileName: string;
|
|
1346
|
+
contentType: string;
|
|
1347
|
+
}>]>>;
|
|
1322
1348
|
expiresAt: z.ZodOptional<z.ZodDate>;
|
|
1323
1349
|
createdAt: z.ZodDate;
|
|
1324
1350
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1362,7 +1388,11 @@ declare const licenseSchema: z.ZodObject<{
|
|
|
1362
1388
|
maxNumberOfActivations: number;
|
|
1363
1389
|
createdAt: Date;
|
|
1364
1390
|
expiresAt?: Date | undefined;
|
|
1365
|
-
externalFulfillment?: string |
|
|
1391
|
+
externalFulfillment?: string | {
|
|
1392
|
+
data: string;
|
|
1393
|
+
fileName: string;
|
|
1394
|
+
contentType: string;
|
|
1395
|
+
} | undefined;
|
|
1366
1396
|
}, {
|
|
1367
1397
|
id: string;
|
|
1368
1398
|
status: LicenseStatus;
|
|
@@ -1404,7 +1434,11 @@ declare const licenseSchema: z.ZodObject<{
|
|
|
1404
1434
|
maxNumberOfActivations: number;
|
|
1405
1435
|
createdAt: Date;
|
|
1406
1436
|
expiresAt?: Date | undefined;
|
|
1407
|
-
externalFulfillment?: string |
|
|
1437
|
+
externalFulfillment?: string | {
|
|
1438
|
+
data: string;
|
|
1439
|
+
fileName: string;
|
|
1440
|
+
contentType: string;
|
|
1441
|
+
} | undefined;
|
|
1408
1442
|
}>;
|
|
1409
1443
|
declare const activationSchema: z.ZodObject<{
|
|
1410
1444
|
id: z.ZodString;
|
|
@@ -1432,10 +1466,12 @@ declare const activationSchema: z.ZodObject<{
|
|
|
1432
1466
|
lastValidatedAt: Date | null;
|
|
1433
1467
|
}>;
|
|
1434
1468
|
|
|
1469
|
+
type schemas$8_ExternalLicenseContent = ExternalLicenseContent;
|
|
1435
1470
|
declare const schemas$8_activationSchema: typeof activationSchema;
|
|
1471
|
+
declare const schemas$8_externalLicenseContent: typeof externalLicenseContent;
|
|
1436
1472
|
declare const schemas$8_licenseSchema: typeof licenseSchema;
|
|
1437
1473
|
declare namespace schemas$8 {
|
|
1438
|
-
export { schemas$8_activationSchema as activationSchema, schemas$8_licenseSchema as licenseSchema };
|
|
1474
|
+
export { type schemas$8_ExternalLicenseContent as ExternalLicenseContent, schemas$8_activationSchema as activationSchema, schemas$8_externalLicenseContent as externalLicenseContent, schemas$8_licenseSchema as licenseSchema };
|
|
1439
1475
|
}
|
|
1440
1476
|
|
|
1441
1477
|
declare enum LicenseStatus {
|
package/dist/index.js
CHANGED
|
@@ -532,6 +532,7 @@ import { z as z9 } from "zod";
|
|
|
532
532
|
var schemas_exports5 = {};
|
|
533
533
|
__export(schemas_exports5, {
|
|
534
534
|
activationSchema: () => activationSchema,
|
|
535
|
+
externalLicenseContent: () => externalLicenseContent,
|
|
535
536
|
licenseSchema: () => licenseSchema
|
|
536
537
|
});
|
|
537
538
|
import { z as z8 } from "zod";
|
|
@@ -554,13 +555,22 @@ var ActivationMethod = /* @__PURE__ */ ((ActivationMethod2) => {
|
|
|
554
555
|
})(ActivationMethod || {});
|
|
555
556
|
|
|
556
557
|
// src/inventory/licenses/schemas.ts
|
|
558
|
+
var externalLicenseFileContent = z8.object({
|
|
559
|
+
fileName: z8.string(),
|
|
560
|
+
contentType: z8.string(),
|
|
561
|
+
data: z8.string()
|
|
562
|
+
});
|
|
563
|
+
var externalLicenseContent = z8.union([
|
|
564
|
+
z8.string(),
|
|
565
|
+
externalLicenseFileContent
|
|
566
|
+
]);
|
|
557
567
|
var licenseSchema = z8.object({
|
|
558
568
|
id: z8.string(),
|
|
559
569
|
status: z8.nativeEnum(LicenseStatus),
|
|
560
570
|
product: productSummarySchema,
|
|
561
571
|
activeNumberOfActivations: z8.number(),
|
|
562
572
|
maxNumberOfActivations: z8.number(),
|
|
563
|
-
externalFulfillment:
|
|
573
|
+
externalFulfillment: externalLicenseContent.optional(),
|
|
564
574
|
expiresAt: z8.coerce.date().optional(),
|
|
565
575
|
createdAt: z8.coerce.date()
|
|
566
576
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.57",
|
|
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",
|