@moonbase.sh/storefront-api 0.3.3 → 0.3.4
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 +17 -6
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +16 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,8 @@ __export(index_exports, {
|
|
|
43
43
|
NotFoundError: () => NotFoundError,
|
|
44
44
|
OrderStatus: () => OrderStatus,
|
|
45
45
|
Platform: () => Platform,
|
|
46
|
-
|
|
46
|
+
TokenStore: () => TokenStore,
|
|
47
|
+
schemas: () => schemas_exports3,
|
|
47
48
|
utmToObject: () => utmToObject
|
|
48
49
|
});
|
|
49
50
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -364,6 +365,14 @@ async function handleResponseProblem(response) {
|
|
|
364
365
|
}
|
|
365
366
|
|
|
366
367
|
// src/identity/schemas.ts
|
|
368
|
+
var schemas_exports = {};
|
|
369
|
+
__export(schemas_exports, {
|
|
370
|
+
addressSchema: () => addressSchema,
|
|
371
|
+
communicationPreferencesSchema: () => communicationPreferencesSchema,
|
|
372
|
+
identityUserSchema: () => identityUserSchema,
|
|
373
|
+
userAccountConfirmedSchema: () => userAccountConfirmedSchema,
|
|
374
|
+
userSchema: () => userSchema
|
|
375
|
+
});
|
|
367
376
|
var import_zod7 = require("zod");
|
|
368
377
|
var addressSchema = import_zod7.z.object({
|
|
369
378
|
countryCode: import_zod7.z.string(),
|
|
@@ -629,8 +638,8 @@ var InventoryEndpoints = class {
|
|
|
629
638
|
};
|
|
630
639
|
|
|
631
640
|
// src/orders/schemas.ts
|
|
632
|
-
var
|
|
633
|
-
__export(
|
|
641
|
+
var schemas_exports2 = {};
|
|
642
|
+
__export(schemas_exports2, {
|
|
634
643
|
completedOrderSchema: () => completedOrderSchema,
|
|
635
644
|
openBundleLineItem: () => openBundleLineItem,
|
|
636
645
|
openOrderLineItem: () => openOrderLineItem,
|
|
@@ -1016,9 +1025,10 @@ var VoucherEndpoints = class {
|
|
|
1016
1025
|
};
|
|
1017
1026
|
|
|
1018
1027
|
// src/schemas.ts
|
|
1019
|
-
var
|
|
1020
|
-
__export(
|
|
1021
|
-
|
|
1028
|
+
var schemas_exports3 = {};
|
|
1029
|
+
__export(schemas_exports3, {
|
|
1030
|
+
identity: () => schemas_exports,
|
|
1031
|
+
orders: () => schemas_exports2
|
|
1022
1032
|
});
|
|
1023
1033
|
|
|
1024
1034
|
// src/index.ts
|
|
@@ -1052,6 +1062,7 @@ var MoonbaseClient = class {
|
|
|
1052
1062
|
NotFoundError,
|
|
1053
1063
|
OrderStatus,
|
|
1054
1064
|
Platform,
|
|
1065
|
+
TokenStore,
|
|
1055
1066
|
schemas,
|
|
1056
1067
|
utmToObject
|
|
1057
1068
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -195,6 +195,15 @@ declare const userAccountConfirmedSchema: z.ZodObject<{
|
|
|
195
195
|
resetPasswordToken: string | null;
|
|
196
196
|
}>;
|
|
197
197
|
|
|
198
|
+
declare const schemas$2_addressSchema: typeof addressSchema;
|
|
199
|
+
declare const schemas$2_communicationPreferencesSchema: typeof communicationPreferencesSchema;
|
|
200
|
+
declare const schemas$2_identityUserSchema: typeof identityUserSchema;
|
|
201
|
+
declare const schemas$2_userAccountConfirmedSchema: typeof userAccountConfirmedSchema;
|
|
202
|
+
declare const schemas$2_userSchema: typeof userSchema;
|
|
203
|
+
declare namespace schemas$2 {
|
|
204
|
+
export { schemas$2_addressSchema as addressSchema, schemas$2_communicationPreferencesSchema as communicationPreferencesSchema, schemas$2_identityUserSchema as identityUserSchema, schemas$2_userAccountConfirmedSchema as userAccountConfirmedSchema, schemas$2_userSchema as userSchema };
|
|
205
|
+
}
|
|
206
|
+
|
|
198
207
|
type IdentityUser = z.infer<typeof identityUserSchema>;
|
|
199
208
|
type UserTokens = IdentityUser & {
|
|
200
209
|
expiresAt: Date;
|
|
@@ -14566,7 +14575,7 @@ declare class VoucherEndpoints {
|
|
|
14566
14575
|
}
|
|
14567
14576
|
|
|
14568
14577
|
declare namespace schemas {
|
|
14569
|
-
export { schemas$1 as orders };
|
|
14578
|
+
export { schemas$2 as identity, schemas$1 as orders };
|
|
14570
14579
|
}
|
|
14571
14580
|
|
|
14572
14581
|
declare const storefrontProductSchema: z.ZodObject<{
|
|
@@ -18448,4 +18457,4 @@ declare class MoonbaseClient {
|
|
|
18448
18457
|
orders: OrderEndpoints;
|
|
18449
18458
|
}
|
|
18450
18459
|
|
|
18451
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, CycleLength, type Discount, type Download, type DownloadManifest, type IRecurrence, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingTier, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Vendor, type Voucher, schemas, utmToObject };
|
|
18460
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, CycleLength, type Discount, type Download, type DownloadManifest, type IRecurrence, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingTier, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, TokenStore, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Vendor, type Voucher, schemas, utmToObject };
|
package/dist/index.d.ts
CHANGED
|
@@ -195,6 +195,15 @@ declare const userAccountConfirmedSchema: z.ZodObject<{
|
|
|
195
195
|
resetPasswordToken: string | null;
|
|
196
196
|
}>;
|
|
197
197
|
|
|
198
|
+
declare const schemas$2_addressSchema: typeof addressSchema;
|
|
199
|
+
declare const schemas$2_communicationPreferencesSchema: typeof communicationPreferencesSchema;
|
|
200
|
+
declare const schemas$2_identityUserSchema: typeof identityUserSchema;
|
|
201
|
+
declare const schemas$2_userAccountConfirmedSchema: typeof userAccountConfirmedSchema;
|
|
202
|
+
declare const schemas$2_userSchema: typeof userSchema;
|
|
203
|
+
declare namespace schemas$2 {
|
|
204
|
+
export { schemas$2_addressSchema as addressSchema, schemas$2_communicationPreferencesSchema as communicationPreferencesSchema, schemas$2_identityUserSchema as identityUserSchema, schemas$2_userAccountConfirmedSchema as userAccountConfirmedSchema, schemas$2_userSchema as userSchema };
|
|
205
|
+
}
|
|
206
|
+
|
|
198
207
|
type IdentityUser = z.infer<typeof identityUserSchema>;
|
|
199
208
|
type UserTokens = IdentityUser & {
|
|
200
209
|
expiresAt: Date;
|
|
@@ -14566,7 +14575,7 @@ declare class VoucherEndpoints {
|
|
|
14566
14575
|
}
|
|
14567
14576
|
|
|
14568
14577
|
declare namespace schemas {
|
|
14569
|
-
export { schemas$1 as orders };
|
|
14578
|
+
export { schemas$2 as identity, schemas$1 as orders };
|
|
14570
14579
|
}
|
|
14571
14580
|
|
|
14572
14581
|
declare const storefrontProductSchema: z.ZodObject<{
|
|
@@ -18448,4 +18457,4 @@ declare class MoonbaseClient {
|
|
|
18448
18457
|
orders: OrderEndpoints;
|
|
18449
18458
|
}
|
|
18450
18459
|
|
|
18451
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, CycleLength, type Discount, type Download, type DownloadManifest, type IRecurrence, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingTier, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Vendor, type Voucher, schemas, utmToObject };
|
|
18460
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, CycleLength, type Discount, type Download, type DownloadManifest, type IRecurrence, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingTier, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, TokenStore, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Vendor, type Voucher, schemas, utmToObject };
|
package/dist/index.js
CHANGED
|
@@ -320,6 +320,14 @@ async function handleResponseProblem(response) {
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
// src/identity/schemas.ts
|
|
323
|
+
var schemas_exports = {};
|
|
324
|
+
__export(schemas_exports, {
|
|
325
|
+
addressSchema: () => addressSchema,
|
|
326
|
+
communicationPreferencesSchema: () => communicationPreferencesSchema,
|
|
327
|
+
identityUserSchema: () => identityUserSchema,
|
|
328
|
+
userAccountConfirmedSchema: () => userAccountConfirmedSchema,
|
|
329
|
+
userSchema: () => userSchema
|
|
330
|
+
});
|
|
323
331
|
import { z as z7 } from "zod";
|
|
324
332
|
var addressSchema = z7.object({
|
|
325
333
|
countryCode: z7.string(),
|
|
@@ -585,8 +593,8 @@ var InventoryEndpoints = class {
|
|
|
585
593
|
};
|
|
586
594
|
|
|
587
595
|
// src/orders/schemas.ts
|
|
588
|
-
var
|
|
589
|
-
__export(
|
|
596
|
+
var schemas_exports2 = {};
|
|
597
|
+
__export(schemas_exports2, {
|
|
590
598
|
completedOrderSchema: () => completedOrderSchema,
|
|
591
599
|
openBundleLineItem: () => openBundleLineItem,
|
|
592
600
|
openOrderLineItem: () => openOrderLineItem,
|
|
@@ -972,9 +980,10 @@ var VoucherEndpoints = class {
|
|
|
972
980
|
};
|
|
973
981
|
|
|
974
982
|
// src/schemas.ts
|
|
975
|
-
var
|
|
976
|
-
__export(
|
|
977
|
-
|
|
983
|
+
var schemas_exports3 = {};
|
|
984
|
+
__export(schemas_exports3, {
|
|
985
|
+
identity: () => schemas_exports,
|
|
986
|
+
orders: () => schemas_exports2
|
|
978
987
|
});
|
|
979
988
|
|
|
980
989
|
// src/index.ts
|
|
@@ -1007,6 +1016,7 @@ export {
|
|
|
1007
1016
|
NotFoundError,
|
|
1008
1017
|
OrderStatus,
|
|
1009
1018
|
Platform,
|
|
1010
|
-
|
|
1019
|
+
TokenStore,
|
|
1020
|
+
schemas_exports3 as schemas,
|
|
1011
1021
|
utmToObject
|
|
1012
1022
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.4",
|
|
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",
|