@moonbase.sh/storefront-api 3.3.0 → 3.3.1

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.d.cts CHANGED
@@ -2733,17 +2733,17 @@ declare const milestoneProgressSchema: z.ZodObject<{
2733
2733
  fromNormalizedCycleNumber: z.ZodNumber;
2734
2734
  toCycleNumber: z.ZodNumber;
2735
2735
  toNormalizedCycleNumber: z.ZodNumber;
2736
- events: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
2736
+ events: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2737
2737
  milestoneId: z.ZodString;
2738
2738
  fulfilled: z.ZodBoolean;
2739
2739
  afterCycleNumber: z.ZodNumber;
2740
2740
  afterNormalizedCycleNumber: z.ZodNumber;
2741
2741
  message: z.ZodOptional<z.ZodString>;
2742
- }, {
2742
+ } & {
2743
2743
  type: z.ZodLiteral<"CouponCodeMilestone">;
2744
2744
  code: z.ZodOptional<z.ZodString>;
2745
2745
  redeemed: z.ZodOptional<z.ZodBoolean>;
2746
- }>, "strip", z.ZodTypeAny, {
2746
+ }, "strip", z.ZodTypeAny, {
2747
2747
  type: "CouponCodeMilestone";
2748
2748
  milestoneId: string;
2749
2749
  fulfilled: boolean;
@@ -2761,15 +2761,15 @@ declare const milestoneProgressSchema: z.ZodObject<{
2761
2761
  code?: string | undefined;
2762
2762
  message?: string | undefined;
2763
2763
  redeemed?: boolean | undefined;
2764
- }>, z.ZodObject<z.objectUtil.extendShape<{
2764
+ }>, z.ZodObject<{
2765
2765
  milestoneId: z.ZodString;
2766
2766
  fulfilled: z.ZodBoolean;
2767
2767
  afterCycleNumber: z.ZodNumber;
2768
2768
  afterNormalizedCycleNumber: z.ZodNumber;
2769
2769
  message: z.ZodOptional<z.ZodString>;
2770
- }, {
2770
+ } & {
2771
2771
  type: z.ZodLiteral<"PerpetualLicenseConversionMilestone">;
2772
- }>, "strip", z.ZodTypeAny, {
2772
+ }, "strip", z.ZodTypeAny, {
2773
2773
  type: "PerpetualLicenseConversionMilestone";
2774
2774
  milestoneId: string;
2775
2775
  fulfilled: boolean;
@@ -2972,17 +2972,17 @@ declare const subscriptionSchema: z.ZodObject<{
2972
2972
  fromNormalizedCycleNumber: z.ZodNumber;
2973
2973
  toCycleNumber: z.ZodNumber;
2974
2974
  toNormalizedCycleNumber: z.ZodNumber;
2975
- events: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
2975
+ events: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2976
2976
  milestoneId: z.ZodString;
2977
2977
  fulfilled: z.ZodBoolean;
2978
2978
  afterCycleNumber: z.ZodNumber;
2979
2979
  afterNormalizedCycleNumber: z.ZodNumber;
2980
2980
  message: z.ZodOptional<z.ZodString>;
2981
- }, {
2981
+ } & {
2982
2982
  type: z.ZodLiteral<"CouponCodeMilestone">;
2983
2983
  code: z.ZodOptional<z.ZodString>;
2984
2984
  redeemed: z.ZodOptional<z.ZodBoolean>;
2985
- }>, "strip", z.ZodTypeAny, {
2985
+ }, "strip", z.ZodTypeAny, {
2986
2986
  type: "CouponCodeMilestone";
2987
2987
  milestoneId: string;
2988
2988
  fulfilled: boolean;
@@ -3000,15 +3000,15 @@ declare const subscriptionSchema: z.ZodObject<{
3000
3000
  code?: string | undefined;
3001
3001
  message?: string | undefined;
3002
3002
  redeemed?: boolean | undefined;
3003
- }>, z.ZodObject<z.objectUtil.extendShape<{
3003
+ }>, z.ZodObject<{
3004
3004
  milestoneId: z.ZodString;
3005
3005
  fulfilled: z.ZodBoolean;
3006
3006
  afterCycleNumber: z.ZodNumber;
3007
3007
  afterNormalizedCycleNumber: z.ZodNumber;
3008
3008
  message: z.ZodOptional<z.ZodString>;
3009
- }, {
3009
+ } & {
3010
3010
  type: z.ZodLiteral<"PerpetualLicenseConversionMilestone">;
3011
- }>, "strip", z.ZodTypeAny, {
3011
+ }, "strip", z.ZodTypeAny, {
3012
3012
  type: "PerpetualLicenseConversionMilestone";
3013
3013
  milestoneId: string;
3014
3014
  fulfilled: boolean;
@@ -13068,7 +13068,7 @@ declare const completedOrderSchema: z.ZodObject<{
13068
13068
  validUntil?: string | undefined;
13069
13069
  } | undefined;
13070
13070
  }>;
13071
- declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<{
13071
+ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
13072
13072
  id: z.ZodString;
13073
13073
  currency: z.ZodString;
13074
13074
  total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -14449,9 +14449,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14449
14449
  checkoutUrl: z.ZodOptional<z.ZodString>;
14450
14450
  hostedCheckoutUrl: z.ZodOptional<z.ZodString>;
14451
14451
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
14452
- }, {
14452
+ } & {
14453
14453
  status: z.ZodLiteral<OrderStatus.Open>;
14454
- }>, "strip", z.ZodTypeAny, {
14454
+ }, "strip", z.ZodTypeAny, {
14455
14455
  id: string;
14456
14456
  status: OrderStatus.Open;
14457
14457
  currency: string;
@@ -14995,7 +14995,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14995
14995
  checkoutUrl?: string | undefined;
14996
14996
  hostedCheckoutUrl?: string | undefined;
14997
14997
  embeddedCheckoutUrl?: string | undefined;
14998
- }>, z.ZodObject<z.objectUtil.extendShape<{
14998
+ }>, z.ZodObject<{
14999
14999
  id: z.ZodString;
15000
15000
  currency: z.ZodString;
15001
15001
  total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -16376,9 +16376,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
16376
16376
  checkoutUrl: z.ZodOptional<z.ZodString>;
16377
16377
  hostedCheckoutUrl: z.ZodOptional<z.ZodString>;
16378
16378
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
16379
- }, {
16379
+ } & {
16380
16380
  status: z.ZodLiteral<OrderStatus.PaymentProcessing>;
16381
- }>, "strip", z.ZodTypeAny, {
16381
+ }, "strip", z.ZodTypeAny, {
16382
16382
  id: string;
16383
16383
  status: OrderStatus.PaymentProcessing;
16384
16384
  currency: string;
@@ -16922,7 +16922,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
16922
16922
  checkoutUrl?: string | undefined;
16923
16923
  hostedCheckoutUrl?: string | undefined;
16924
16924
  embeddedCheckoutUrl?: string | undefined;
16925
- }>, z.ZodObject<z.objectUtil.extendShape<{
16925
+ }>, z.ZodObject<{
16926
16926
  id: z.ZodString;
16927
16927
  currency: z.ZodString;
16928
16928
  total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -18303,9 +18303,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
18303
18303
  checkoutUrl: z.ZodOptional<z.ZodString>;
18304
18304
  hostedCheckoutUrl: z.ZodOptional<z.ZodString>;
18305
18305
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
18306
- }, {
18306
+ } & {
18307
18307
  status: z.ZodLiteral<OrderStatus.Paid>;
18308
- }>, "strip", z.ZodTypeAny, {
18308
+ }, "strip", z.ZodTypeAny, {
18309
18309
  id: string;
18310
18310
  status: OrderStatus.Paid;
18311
18311
  currency: string;
@@ -18849,7 +18849,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
18849
18849
  checkoutUrl?: string | undefined;
18850
18850
  hostedCheckoutUrl?: string | undefined;
18851
18851
  embeddedCheckoutUrl?: string | undefined;
18852
- }>, z.ZodObject<z.objectUtil.extendShape<{
18852
+ }>, z.ZodObject<{
18853
18853
  id: z.ZodString;
18854
18854
  currency: z.ZodString;
18855
18855
  total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -20230,9 +20230,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
20230
20230
  checkoutUrl: z.ZodOptional<z.ZodString>;
20231
20231
  hostedCheckoutUrl: z.ZodOptional<z.ZodString>;
20232
20232
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
20233
- }, {
20233
+ } & {
20234
20234
  status: z.ZodLiteral<OrderStatus.Failed>;
20235
- }>, "strip", z.ZodTypeAny, {
20235
+ }, "strip", z.ZodTypeAny, {
20236
20236
  id: string;
20237
20237
  status: OrderStatus.Failed;
20238
20238
  currency: string;
package/dist/index.d.ts CHANGED
@@ -2733,17 +2733,17 @@ declare const milestoneProgressSchema: z.ZodObject<{
2733
2733
  fromNormalizedCycleNumber: z.ZodNumber;
2734
2734
  toCycleNumber: z.ZodNumber;
2735
2735
  toNormalizedCycleNumber: z.ZodNumber;
2736
- events: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
2736
+ events: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2737
2737
  milestoneId: z.ZodString;
2738
2738
  fulfilled: z.ZodBoolean;
2739
2739
  afterCycleNumber: z.ZodNumber;
2740
2740
  afterNormalizedCycleNumber: z.ZodNumber;
2741
2741
  message: z.ZodOptional<z.ZodString>;
2742
- }, {
2742
+ } & {
2743
2743
  type: z.ZodLiteral<"CouponCodeMilestone">;
2744
2744
  code: z.ZodOptional<z.ZodString>;
2745
2745
  redeemed: z.ZodOptional<z.ZodBoolean>;
2746
- }>, "strip", z.ZodTypeAny, {
2746
+ }, "strip", z.ZodTypeAny, {
2747
2747
  type: "CouponCodeMilestone";
2748
2748
  milestoneId: string;
2749
2749
  fulfilled: boolean;
@@ -2761,15 +2761,15 @@ declare const milestoneProgressSchema: z.ZodObject<{
2761
2761
  code?: string | undefined;
2762
2762
  message?: string | undefined;
2763
2763
  redeemed?: boolean | undefined;
2764
- }>, z.ZodObject<z.objectUtil.extendShape<{
2764
+ }>, z.ZodObject<{
2765
2765
  milestoneId: z.ZodString;
2766
2766
  fulfilled: z.ZodBoolean;
2767
2767
  afterCycleNumber: z.ZodNumber;
2768
2768
  afterNormalizedCycleNumber: z.ZodNumber;
2769
2769
  message: z.ZodOptional<z.ZodString>;
2770
- }, {
2770
+ } & {
2771
2771
  type: z.ZodLiteral<"PerpetualLicenseConversionMilestone">;
2772
- }>, "strip", z.ZodTypeAny, {
2772
+ }, "strip", z.ZodTypeAny, {
2773
2773
  type: "PerpetualLicenseConversionMilestone";
2774
2774
  milestoneId: string;
2775
2775
  fulfilled: boolean;
@@ -2972,17 +2972,17 @@ declare const subscriptionSchema: z.ZodObject<{
2972
2972
  fromNormalizedCycleNumber: z.ZodNumber;
2973
2973
  toCycleNumber: z.ZodNumber;
2974
2974
  toNormalizedCycleNumber: z.ZodNumber;
2975
- events: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
2975
+ events: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2976
2976
  milestoneId: z.ZodString;
2977
2977
  fulfilled: z.ZodBoolean;
2978
2978
  afterCycleNumber: z.ZodNumber;
2979
2979
  afterNormalizedCycleNumber: z.ZodNumber;
2980
2980
  message: z.ZodOptional<z.ZodString>;
2981
- }, {
2981
+ } & {
2982
2982
  type: z.ZodLiteral<"CouponCodeMilestone">;
2983
2983
  code: z.ZodOptional<z.ZodString>;
2984
2984
  redeemed: z.ZodOptional<z.ZodBoolean>;
2985
- }>, "strip", z.ZodTypeAny, {
2985
+ }, "strip", z.ZodTypeAny, {
2986
2986
  type: "CouponCodeMilestone";
2987
2987
  milestoneId: string;
2988
2988
  fulfilled: boolean;
@@ -3000,15 +3000,15 @@ declare const subscriptionSchema: z.ZodObject<{
3000
3000
  code?: string | undefined;
3001
3001
  message?: string | undefined;
3002
3002
  redeemed?: boolean | undefined;
3003
- }>, z.ZodObject<z.objectUtil.extendShape<{
3003
+ }>, z.ZodObject<{
3004
3004
  milestoneId: z.ZodString;
3005
3005
  fulfilled: z.ZodBoolean;
3006
3006
  afterCycleNumber: z.ZodNumber;
3007
3007
  afterNormalizedCycleNumber: z.ZodNumber;
3008
3008
  message: z.ZodOptional<z.ZodString>;
3009
- }, {
3009
+ } & {
3010
3010
  type: z.ZodLiteral<"PerpetualLicenseConversionMilestone">;
3011
- }>, "strip", z.ZodTypeAny, {
3011
+ }, "strip", z.ZodTypeAny, {
3012
3012
  type: "PerpetualLicenseConversionMilestone";
3013
3013
  milestoneId: string;
3014
3014
  fulfilled: boolean;
@@ -13068,7 +13068,7 @@ declare const completedOrderSchema: z.ZodObject<{
13068
13068
  validUntil?: string | undefined;
13069
13069
  } | undefined;
13070
13070
  }>;
13071
- declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<{
13071
+ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
13072
13072
  id: z.ZodString;
13073
13073
  currency: z.ZodString;
13074
13074
  total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -14449,9 +14449,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14449
14449
  checkoutUrl: z.ZodOptional<z.ZodString>;
14450
14450
  hostedCheckoutUrl: z.ZodOptional<z.ZodString>;
14451
14451
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
14452
- }, {
14452
+ } & {
14453
14453
  status: z.ZodLiteral<OrderStatus.Open>;
14454
- }>, "strip", z.ZodTypeAny, {
14454
+ }, "strip", z.ZodTypeAny, {
14455
14455
  id: string;
14456
14456
  status: OrderStatus.Open;
14457
14457
  currency: string;
@@ -14995,7 +14995,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14995
14995
  checkoutUrl?: string | undefined;
14996
14996
  hostedCheckoutUrl?: string | undefined;
14997
14997
  embeddedCheckoutUrl?: string | undefined;
14998
- }>, z.ZodObject<z.objectUtil.extendShape<{
14998
+ }>, z.ZodObject<{
14999
14999
  id: z.ZodString;
15000
15000
  currency: z.ZodString;
15001
15001
  total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -16376,9 +16376,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
16376
16376
  checkoutUrl: z.ZodOptional<z.ZodString>;
16377
16377
  hostedCheckoutUrl: z.ZodOptional<z.ZodString>;
16378
16378
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
16379
- }, {
16379
+ } & {
16380
16380
  status: z.ZodLiteral<OrderStatus.PaymentProcessing>;
16381
- }>, "strip", z.ZodTypeAny, {
16381
+ }, "strip", z.ZodTypeAny, {
16382
16382
  id: string;
16383
16383
  status: OrderStatus.PaymentProcessing;
16384
16384
  currency: string;
@@ -16922,7 +16922,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
16922
16922
  checkoutUrl?: string | undefined;
16923
16923
  hostedCheckoutUrl?: string | undefined;
16924
16924
  embeddedCheckoutUrl?: string | undefined;
16925
- }>, z.ZodObject<z.objectUtil.extendShape<{
16925
+ }>, z.ZodObject<{
16926
16926
  id: z.ZodString;
16927
16927
  currency: z.ZodString;
16928
16928
  total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -18303,9 +18303,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
18303
18303
  checkoutUrl: z.ZodOptional<z.ZodString>;
18304
18304
  hostedCheckoutUrl: z.ZodOptional<z.ZodString>;
18305
18305
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
18306
- }, {
18306
+ } & {
18307
18307
  status: z.ZodLiteral<OrderStatus.Paid>;
18308
- }>, "strip", z.ZodTypeAny, {
18308
+ }, "strip", z.ZodTypeAny, {
18309
18309
  id: string;
18310
18310
  status: OrderStatus.Paid;
18311
18311
  currency: string;
@@ -18849,7 +18849,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
18849
18849
  checkoutUrl?: string | undefined;
18850
18850
  hostedCheckoutUrl?: string | undefined;
18851
18851
  embeddedCheckoutUrl?: string | undefined;
18852
- }>, z.ZodObject<z.objectUtil.extendShape<{
18852
+ }>, z.ZodObject<{
18853
18853
  id: z.ZodString;
18854
18854
  currency: z.ZodString;
18855
18855
  total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -20230,9 +20230,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
20230
20230
  checkoutUrl: z.ZodOptional<z.ZodString>;
20231
20231
  hostedCheckoutUrl: z.ZodOptional<z.ZodString>;
20232
20232
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
20233
- }, {
20233
+ } & {
20234
20234
  status: z.ZodLiteral<OrderStatus.Failed>;
20235
- }>, "strip", z.ZodTypeAny, {
20235
+ }, "strip", z.ZodTypeAny, {
20236
20236
  id: string;
20237
20237
  status: OrderStatus.Failed;
20238
20238
  currency: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/storefront-api",
3
3
  "type": "module",
4
- "version": "3.3.0",
4
+ "version": "3.3.1",
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",