@moonbase.sh/storefront-api 0.2.30 → 0.2.31
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 -0
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +22 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -41,6 +41,7 @@ __export(src_exports, {
|
|
|
41
41
|
NotFoundError: () => NotFoundError,
|
|
42
42
|
OrderStatus: () => OrderStatus,
|
|
43
43
|
Platform: () => Platform,
|
|
44
|
+
schemas: () => schemas_exports2,
|
|
44
45
|
utmToObject: () => utmToObject
|
|
45
46
|
});
|
|
46
47
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -423,6 +424,15 @@ var IdentityEndpoints = class {
|
|
|
423
424
|
};
|
|
424
425
|
|
|
425
426
|
// src/orders/schemas.ts
|
|
427
|
+
var schemas_exports = {};
|
|
428
|
+
__export(schemas_exports, {
|
|
429
|
+
completedOrderSchema: () => completedOrderSchema,
|
|
430
|
+
openBundleLineItem: () => openBundleLineItem,
|
|
431
|
+
openOrderLineItem: () => openOrderLineItem,
|
|
432
|
+
openOrderSchema: () => openOrderSchema,
|
|
433
|
+
openProductLineItem: () => openProductLineItem,
|
|
434
|
+
orderSchema: () => orderSchema
|
|
435
|
+
});
|
|
426
436
|
var import_zod8 = require("zod");
|
|
427
437
|
|
|
428
438
|
// src/orders/models.ts
|
|
@@ -870,6 +880,12 @@ var InventoryEndpoints = class {
|
|
|
870
880
|
}
|
|
871
881
|
};
|
|
872
882
|
|
|
883
|
+
// src/schemas.ts
|
|
884
|
+
var schemas_exports2 = {};
|
|
885
|
+
__export(schemas_exports2, {
|
|
886
|
+
orders: () => schemas_exports
|
|
887
|
+
});
|
|
888
|
+
|
|
873
889
|
// src/index.ts
|
|
874
890
|
var MoonbaseClient = class {
|
|
875
891
|
constructor(configuration) {
|
|
@@ -898,5 +914,6 @@ var MoonbaseClient = class {
|
|
|
898
914
|
NotFoundError,
|
|
899
915
|
OrderStatus,
|
|
900
916
|
Platform,
|
|
917
|
+
schemas,
|
|
901
918
|
utmToObject
|
|
902
919
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -5521,6 +5521,16 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
5521
5521
|
};
|
|
5522
5522
|
}>]>;
|
|
5523
5523
|
|
|
5524
|
+
declare const schemas$1_completedOrderSchema: typeof completedOrderSchema;
|
|
5525
|
+
declare const schemas$1_openBundleLineItem: typeof openBundleLineItem;
|
|
5526
|
+
declare const schemas$1_openOrderLineItem: typeof openOrderLineItem;
|
|
5527
|
+
declare const schemas$1_openOrderSchema: typeof openOrderSchema;
|
|
5528
|
+
declare const schemas$1_openProductLineItem: typeof openProductLineItem;
|
|
5529
|
+
declare const schemas$1_orderSchema: typeof orderSchema;
|
|
5530
|
+
declare namespace schemas$1 {
|
|
5531
|
+
export { schemas$1_completedOrderSchema as completedOrderSchema, schemas$1_openBundleLineItem as openBundleLineItem, schemas$1_openOrderLineItem as openOrderLineItem, schemas$1_openOrderSchema as openOrderSchema, schemas$1_openProductLineItem as openProductLineItem, schemas$1_orderSchema as orderSchema };
|
|
5532
|
+
}
|
|
5533
|
+
|
|
5524
5534
|
declare enum OrderStatus {
|
|
5525
5535
|
Open = "Open",
|
|
5526
5536
|
PaymentProcessing = "PaymentProcessing",
|
|
@@ -10720,6 +10730,10 @@ declare class MoonbaseError extends Error {
|
|
|
10720
10730
|
constructor(title: string, detail: string | undefined, status: number, errors?: Record<string, string> | undefined);
|
|
10721
10731
|
}
|
|
10722
10732
|
|
|
10733
|
+
declare namespace schemas {
|
|
10734
|
+
export { schemas$1 as orders };
|
|
10735
|
+
}
|
|
10736
|
+
|
|
10723
10737
|
interface MoonbaseConfiguration {
|
|
10724
10738
|
endpoint: string;
|
|
10725
10739
|
}
|
|
@@ -10735,4 +10749,4 @@ declare class MoonbaseClient {
|
|
|
10735
10749
|
orders: OrderEndpoints;
|
|
10736
10750
|
}
|
|
10737
10751
|
|
|
10738
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, type Discount, type Download, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Voucher, utmToObject };
|
|
10752
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, type Discount, type Download, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Voucher, schemas, utmToObject };
|
package/dist/index.d.ts
CHANGED
|
@@ -5521,6 +5521,16 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
5521
5521
|
};
|
|
5522
5522
|
}>]>;
|
|
5523
5523
|
|
|
5524
|
+
declare const schemas$1_completedOrderSchema: typeof completedOrderSchema;
|
|
5525
|
+
declare const schemas$1_openBundleLineItem: typeof openBundleLineItem;
|
|
5526
|
+
declare const schemas$1_openOrderLineItem: typeof openOrderLineItem;
|
|
5527
|
+
declare const schemas$1_openOrderSchema: typeof openOrderSchema;
|
|
5528
|
+
declare const schemas$1_openProductLineItem: typeof openProductLineItem;
|
|
5529
|
+
declare const schemas$1_orderSchema: typeof orderSchema;
|
|
5530
|
+
declare namespace schemas$1 {
|
|
5531
|
+
export { schemas$1_completedOrderSchema as completedOrderSchema, schemas$1_openBundleLineItem as openBundleLineItem, schemas$1_openOrderLineItem as openOrderLineItem, schemas$1_openOrderSchema as openOrderSchema, schemas$1_openProductLineItem as openProductLineItem, schemas$1_orderSchema as orderSchema };
|
|
5532
|
+
}
|
|
5533
|
+
|
|
5524
5534
|
declare enum OrderStatus {
|
|
5525
5535
|
Open = "Open",
|
|
5526
5536
|
PaymentProcessing = "PaymentProcessing",
|
|
@@ -10720,6 +10730,10 @@ declare class MoonbaseError extends Error {
|
|
|
10720
10730
|
constructor(title: string, detail: string | undefined, status: number, errors?: Record<string, string> | undefined);
|
|
10721
10731
|
}
|
|
10722
10732
|
|
|
10733
|
+
declare namespace schemas {
|
|
10734
|
+
export { schemas$1 as orders };
|
|
10735
|
+
}
|
|
10736
|
+
|
|
10723
10737
|
interface MoonbaseConfiguration {
|
|
10724
10738
|
endpoint: string;
|
|
10725
10739
|
}
|
|
@@ -10735,4 +10749,4 @@ declare class MoonbaseClient {
|
|
|
10735
10749
|
orders: OrderEndpoints;
|
|
10736
10750
|
}
|
|
10737
10751
|
|
|
10738
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, type Discount, type Download, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Voucher, utmToObject };
|
|
10752
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, type Discount, type Download, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Voucher, schemas, utmToObject };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
1
7
|
// src/activationRequests/endpoints.ts
|
|
2
8
|
import { z as z5 } from "zod";
|
|
3
9
|
|
|
@@ -376,6 +382,15 @@ var IdentityEndpoints = class {
|
|
|
376
382
|
};
|
|
377
383
|
|
|
378
384
|
// src/orders/schemas.ts
|
|
385
|
+
var schemas_exports = {};
|
|
386
|
+
__export(schemas_exports, {
|
|
387
|
+
completedOrderSchema: () => completedOrderSchema,
|
|
388
|
+
openBundleLineItem: () => openBundleLineItem,
|
|
389
|
+
openOrderLineItem: () => openOrderLineItem,
|
|
390
|
+
openOrderSchema: () => openOrderSchema,
|
|
391
|
+
openProductLineItem: () => openProductLineItem,
|
|
392
|
+
orderSchema: () => orderSchema
|
|
393
|
+
});
|
|
379
394
|
import { z as z8 } from "zod";
|
|
380
395
|
|
|
381
396
|
// src/orders/models.ts
|
|
@@ -823,6 +838,12 @@ var InventoryEndpoints = class {
|
|
|
823
838
|
}
|
|
824
839
|
};
|
|
825
840
|
|
|
841
|
+
// src/schemas.ts
|
|
842
|
+
var schemas_exports2 = {};
|
|
843
|
+
__export(schemas_exports2, {
|
|
844
|
+
orders: () => schemas_exports
|
|
845
|
+
});
|
|
846
|
+
|
|
826
847
|
// src/index.ts
|
|
827
848
|
var MoonbaseClient = class {
|
|
828
849
|
constructor(configuration) {
|
|
@@ -850,5 +871,6 @@ export {
|
|
|
850
871
|
NotFoundError,
|
|
851
872
|
OrderStatus,
|
|
852
873
|
Platform,
|
|
874
|
+
schemas_exports2 as schemas,
|
|
853
875
|
utmToObject
|
|
854
876
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.31",
|
|
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",
|