@moonbase.sh/storefront-api 0.4.16 → 0.4.17

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 CHANGED
@@ -396,7 +396,7 @@ var addressSchema = import_zod7.z.object({
396
396
  streetAddress2: import_zod7.z.string().nullable(),
397
397
  locality: import_zod7.z.string().nullable(),
398
398
  region: import_zod7.z.string().nullable(),
399
- postCode: import_zod7.z.string()
399
+ postCode: import_zod7.z.string().nullable()
400
400
  });
401
401
  var communicationPreferencesSchema = import_zod7.z.object({
402
402
  newsletterOptIn: import_zod7.z.boolean()
package/dist/index.d.cts CHANGED
@@ -871,21 +871,21 @@ declare const addressSchema: z.ZodObject<{
871
871
  streetAddress2: z.ZodNullable<z.ZodString>;
872
872
  locality: z.ZodNullable<z.ZodString>;
873
873
  region: z.ZodNullable<z.ZodString>;
874
- postCode: z.ZodString;
874
+ postCode: z.ZodNullable<z.ZodString>;
875
875
  }, "strip", z.ZodTypeAny, {
876
876
  countryCode: string;
877
877
  streetAddress1: string;
878
878
  streetAddress2: string | null;
879
879
  locality: string | null;
880
880
  region: string | null;
881
- postCode: string;
881
+ postCode: string | null;
882
882
  }, {
883
883
  countryCode: string;
884
884
  streetAddress1: string;
885
885
  streetAddress2: string | null;
886
886
  locality: string | null;
887
887
  region: string | null;
888
- postCode: string;
888
+ postCode: string | null;
889
889
  }>;
890
890
  declare const communicationPreferencesSchema: z.ZodObject<{
891
891
  newsletterOptIn: z.ZodBoolean;
@@ -905,21 +905,21 @@ declare const userSchema: z.ZodObject<{
905
905
  streetAddress2: z.ZodNullable<z.ZodString>;
906
906
  locality: z.ZodNullable<z.ZodString>;
907
907
  region: z.ZodNullable<z.ZodString>;
908
- postCode: z.ZodString;
908
+ postCode: z.ZodNullable<z.ZodString>;
909
909
  }, "strip", z.ZodTypeAny, {
910
910
  countryCode: string;
911
911
  streetAddress1: string;
912
912
  streetAddress2: string | null;
913
913
  locality: string | null;
914
914
  region: string | null;
915
- postCode: string;
915
+ postCode: string | null;
916
916
  }, {
917
917
  countryCode: string;
918
918
  streetAddress1: string;
919
919
  streetAddress2: string | null;
920
920
  locality: string | null;
921
921
  region: string | null;
922
- postCode: string;
922
+ postCode: string | null;
923
923
  }>>;
924
924
  communicationPreferences: z.ZodObject<{
925
925
  newsletterOptIn: z.ZodBoolean;
@@ -946,7 +946,7 @@ declare const userSchema: z.ZodObject<{
946
946
  streetAddress2: string | null;
947
947
  locality: string | null;
948
948
  region: string | null;
949
- postCode: string;
949
+ postCode: string | null;
950
950
  } | undefined;
951
951
  ownedProducts?: string[] | undefined;
952
952
  subscribedProducts?: string[] | undefined;
@@ -966,7 +966,7 @@ declare const userSchema: z.ZodObject<{
966
966
  streetAddress2: string | null;
967
967
  locality: string | null;
968
968
  region: string | null;
969
- postCode: string;
969
+ postCode: string | null;
970
970
  } | undefined;
971
971
  ownedProducts?: string[] | undefined;
972
972
  subscribedProducts?: string[] | undefined;
@@ -984,21 +984,21 @@ declare const identitySchema: z.ZodIntersection<z.ZodObject<{
984
984
  streetAddress2: z.ZodNullable<z.ZodString>;
985
985
  locality: z.ZodNullable<z.ZodString>;
986
986
  region: z.ZodNullable<z.ZodString>;
987
- postCode: z.ZodString;
987
+ postCode: z.ZodNullable<z.ZodString>;
988
988
  }, "strip", z.ZodTypeAny, {
989
989
  countryCode: string;
990
990
  streetAddress1: string;
991
991
  streetAddress2: string | null;
992
992
  locality: string | null;
993
993
  region: string | null;
994
- postCode: string;
994
+ postCode: string | null;
995
995
  }, {
996
996
  countryCode: string;
997
997
  streetAddress1: string;
998
998
  streetAddress2: string | null;
999
999
  locality: string | null;
1000
1000
  region: string | null;
1001
- postCode: string;
1001
+ postCode: string | null;
1002
1002
  }>>;
1003
1003
  communicationPreferences: z.ZodObject<{
1004
1004
  newsletterOptIn: z.ZodBoolean;
@@ -1025,7 +1025,7 @@ declare const identitySchema: z.ZodIntersection<z.ZodObject<{
1025
1025
  streetAddress2: string | null;
1026
1026
  locality: string | null;
1027
1027
  region: string | null;
1028
- postCode: string;
1028
+ postCode: string | null;
1029
1029
  } | undefined;
1030
1030
  ownedProducts?: string[] | undefined;
1031
1031
  subscribedProducts?: string[] | undefined;
@@ -1045,7 +1045,7 @@ declare const identitySchema: z.ZodIntersection<z.ZodObject<{
1045
1045
  streetAddress2: string | null;
1046
1046
  locality: string | null;
1047
1047
  region: string | null;
1048
- postCode: string;
1048
+ postCode: string | null;
1049
1049
  } | undefined;
1050
1050
  ownedProducts?: string[] | undefined;
1051
1051
  subscribedProducts?: string[] | undefined;
@@ -1117,7 +1117,7 @@ declare class IdentityEndpoints {
1117
1117
  streetAddress2: string | null;
1118
1118
  locality: string | null;
1119
1119
  region: string | null;
1120
- postCode: string;
1120
+ postCode: string | null;
1121
1121
  } | undefined;
1122
1122
  ownedProducts?: string[] | undefined;
1123
1123
  subscribedProducts?: string[] | undefined;
@@ -8573,21 +8573,21 @@ declare const completedOrderSchema: z.ZodObject<{
8573
8573
  streetAddress2: z.ZodNullable<z.ZodString>;
8574
8574
  locality: z.ZodNullable<z.ZodString>;
8575
8575
  region: z.ZodNullable<z.ZodString>;
8576
- postCode: z.ZodString;
8576
+ postCode: z.ZodNullable<z.ZodString>;
8577
8577
  }, "strip", z.ZodTypeAny, {
8578
8578
  countryCode: string;
8579
8579
  streetAddress1: string;
8580
8580
  streetAddress2: string | null;
8581
8581
  locality: string | null;
8582
8582
  region: string | null;
8583
- postCode: string;
8583
+ postCode: string | null;
8584
8584
  }, {
8585
8585
  countryCode: string;
8586
8586
  streetAddress1: string;
8587
8587
  streetAddress2: string | null;
8588
8588
  locality: string | null;
8589
8589
  region: string | null;
8590
- postCode: string;
8590
+ postCode: string | null;
8591
8591
  }>>;
8592
8592
  }, "strip", z.ZodTypeAny, {
8593
8593
  email: string | null;
@@ -8598,7 +8598,7 @@ declare const completedOrderSchema: z.ZodObject<{
8598
8598
  streetAddress2: string | null;
8599
8599
  locality: string | null;
8600
8600
  region: string | null;
8601
- postCode: string;
8601
+ postCode: string | null;
8602
8602
  } | null;
8603
8603
  businessName: string | null;
8604
8604
  taxId: string | null;
@@ -8611,7 +8611,7 @@ declare const completedOrderSchema: z.ZodObject<{
8611
8611
  streetAddress2: string | null;
8612
8612
  locality: string | null;
8613
8613
  region: string | null;
8614
- postCode: string;
8614
+ postCode: string | null;
8615
8615
  } | null;
8616
8616
  businessName: string | null;
8617
8617
  taxId: string | null;
@@ -9919,7 +9919,7 @@ declare const completedOrderSchema: z.ZodObject<{
9919
9919
  streetAddress2: string | null;
9920
9920
  locality: string | null;
9921
9921
  region: string | null;
9922
- postCode: string;
9922
+ postCode: string | null;
9923
9923
  } | null;
9924
9924
  businessName: string | null;
9925
9925
  taxId: string | null;
@@ -10140,7 +10140,7 @@ declare const completedOrderSchema: z.ZodObject<{
10140
10140
  streetAddress2: string | null;
10141
10141
  locality: string | null;
10142
10142
  region: string | null;
10143
- postCode: string;
10143
+ postCode: string | null;
10144
10144
  } | null;
10145
10145
  businessName: string | null;
10146
10146
  taxId: string | null;
@@ -16209,21 +16209,21 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
16209
16209
  streetAddress2: z.ZodNullable<z.ZodString>;
16210
16210
  locality: z.ZodNullable<z.ZodString>;
16211
16211
  region: z.ZodNullable<z.ZodString>;
16212
- postCode: z.ZodString;
16212
+ postCode: z.ZodNullable<z.ZodString>;
16213
16213
  }, "strip", z.ZodTypeAny, {
16214
16214
  countryCode: string;
16215
16215
  streetAddress1: string;
16216
16216
  streetAddress2: string | null;
16217
16217
  locality: string | null;
16218
16218
  region: string | null;
16219
- postCode: string;
16219
+ postCode: string | null;
16220
16220
  }, {
16221
16221
  countryCode: string;
16222
16222
  streetAddress1: string;
16223
16223
  streetAddress2: string | null;
16224
16224
  locality: string | null;
16225
16225
  region: string | null;
16226
- postCode: string;
16226
+ postCode: string | null;
16227
16227
  }>>;
16228
16228
  }, "strip", z.ZodTypeAny, {
16229
16229
  email: string | null;
@@ -16234,7 +16234,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
16234
16234
  streetAddress2: string | null;
16235
16235
  locality: string | null;
16236
16236
  region: string | null;
16237
- postCode: string;
16237
+ postCode: string | null;
16238
16238
  } | null;
16239
16239
  businessName: string | null;
16240
16240
  taxId: string | null;
@@ -16247,7 +16247,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
16247
16247
  streetAddress2: string | null;
16248
16248
  locality: string | null;
16249
16249
  region: string | null;
16250
- postCode: string;
16250
+ postCode: string | null;
16251
16251
  } | null;
16252
16252
  businessName: string | null;
16253
16253
  taxId: string | null;
@@ -17555,7 +17555,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
17555
17555
  streetAddress2: string | null;
17556
17556
  locality: string | null;
17557
17557
  region: string | null;
17558
- postCode: string;
17558
+ postCode: string | null;
17559
17559
  } | null;
17560
17560
  businessName: string | null;
17561
17561
  taxId: string | null;
@@ -17776,7 +17776,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
17776
17776
  streetAddress2: string | null;
17777
17777
  locality: string | null;
17778
17778
  region: string | null;
17779
- postCode: string;
17779
+ postCode: string | null;
17780
17780
  } | null;
17781
17781
  businessName: string | null;
17782
17782
  taxId: string | null;
@@ -18033,7 +18033,7 @@ declare class OrderEndpoints {
18033
18033
  streetAddress2: string | null;
18034
18034
  locality: string | null;
18035
18035
  region: string | null;
18036
- postCode: string;
18036
+ postCode: string | null;
18037
18037
  } | null;
18038
18038
  businessName: string | null;
18039
18039
  taxId: string | null;
package/dist/index.d.ts CHANGED
@@ -871,21 +871,21 @@ declare const addressSchema: z.ZodObject<{
871
871
  streetAddress2: z.ZodNullable<z.ZodString>;
872
872
  locality: z.ZodNullable<z.ZodString>;
873
873
  region: z.ZodNullable<z.ZodString>;
874
- postCode: z.ZodString;
874
+ postCode: z.ZodNullable<z.ZodString>;
875
875
  }, "strip", z.ZodTypeAny, {
876
876
  countryCode: string;
877
877
  streetAddress1: string;
878
878
  streetAddress2: string | null;
879
879
  locality: string | null;
880
880
  region: string | null;
881
- postCode: string;
881
+ postCode: string | null;
882
882
  }, {
883
883
  countryCode: string;
884
884
  streetAddress1: string;
885
885
  streetAddress2: string | null;
886
886
  locality: string | null;
887
887
  region: string | null;
888
- postCode: string;
888
+ postCode: string | null;
889
889
  }>;
890
890
  declare const communicationPreferencesSchema: z.ZodObject<{
891
891
  newsletterOptIn: z.ZodBoolean;
@@ -905,21 +905,21 @@ declare const userSchema: z.ZodObject<{
905
905
  streetAddress2: z.ZodNullable<z.ZodString>;
906
906
  locality: z.ZodNullable<z.ZodString>;
907
907
  region: z.ZodNullable<z.ZodString>;
908
- postCode: z.ZodString;
908
+ postCode: z.ZodNullable<z.ZodString>;
909
909
  }, "strip", z.ZodTypeAny, {
910
910
  countryCode: string;
911
911
  streetAddress1: string;
912
912
  streetAddress2: string | null;
913
913
  locality: string | null;
914
914
  region: string | null;
915
- postCode: string;
915
+ postCode: string | null;
916
916
  }, {
917
917
  countryCode: string;
918
918
  streetAddress1: string;
919
919
  streetAddress2: string | null;
920
920
  locality: string | null;
921
921
  region: string | null;
922
- postCode: string;
922
+ postCode: string | null;
923
923
  }>>;
924
924
  communicationPreferences: z.ZodObject<{
925
925
  newsletterOptIn: z.ZodBoolean;
@@ -946,7 +946,7 @@ declare const userSchema: z.ZodObject<{
946
946
  streetAddress2: string | null;
947
947
  locality: string | null;
948
948
  region: string | null;
949
- postCode: string;
949
+ postCode: string | null;
950
950
  } | undefined;
951
951
  ownedProducts?: string[] | undefined;
952
952
  subscribedProducts?: string[] | undefined;
@@ -966,7 +966,7 @@ declare const userSchema: z.ZodObject<{
966
966
  streetAddress2: string | null;
967
967
  locality: string | null;
968
968
  region: string | null;
969
- postCode: string;
969
+ postCode: string | null;
970
970
  } | undefined;
971
971
  ownedProducts?: string[] | undefined;
972
972
  subscribedProducts?: string[] | undefined;
@@ -984,21 +984,21 @@ declare const identitySchema: z.ZodIntersection<z.ZodObject<{
984
984
  streetAddress2: z.ZodNullable<z.ZodString>;
985
985
  locality: z.ZodNullable<z.ZodString>;
986
986
  region: z.ZodNullable<z.ZodString>;
987
- postCode: z.ZodString;
987
+ postCode: z.ZodNullable<z.ZodString>;
988
988
  }, "strip", z.ZodTypeAny, {
989
989
  countryCode: string;
990
990
  streetAddress1: string;
991
991
  streetAddress2: string | null;
992
992
  locality: string | null;
993
993
  region: string | null;
994
- postCode: string;
994
+ postCode: string | null;
995
995
  }, {
996
996
  countryCode: string;
997
997
  streetAddress1: string;
998
998
  streetAddress2: string | null;
999
999
  locality: string | null;
1000
1000
  region: string | null;
1001
- postCode: string;
1001
+ postCode: string | null;
1002
1002
  }>>;
1003
1003
  communicationPreferences: z.ZodObject<{
1004
1004
  newsletterOptIn: z.ZodBoolean;
@@ -1025,7 +1025,7 @@ declare const identitySchema: z.ZodIntersection<z.ZodObject<{
1025
1025
  streetAddress2: string | null;
1026
1026
  locality: string | null;
1027
1027
  region: string | null;
1028
- postCode: string;
1028
+ postCode: string | null;
1029
1029
  } | undefined;
1030
1030
  ownedProducts?: string[] | undefined;
1031
1031
  subscribedProducts?: string[] | undefined;
@@ -1045,7 +1045,7 @@ declare const identitySchema: z.ZodIntersection<z.ZodObject<{
1045
1045
  streetAddress2: string | null;
1046
1046
  locality: string | null;
1047
1047
  region: string | null;
1048
- postCode: string;
1048
+ postCode: string | null;
1049
1049
  } | undefined;
1050
1050
  ownedProducts?: string[] | undefined;
1051
1051
  subscribedProducts?: string[] | undefined;
@@ -1117,7 +1117,7 @@ declare class IdentityEndpoints {
1117
1117
  streetAddress2: string | null;
1118
1118
  locality: string | null;
1119
1119
  region: string | null;
1120
- postCode: string;
1120
+ postCode: string | null;
1121
1121
  } | undefined;
1122
1122
  ownedProducts?: string[] | undefined;
1123
1123
  subscribedProducts?: string[] | undefined;
@@ -8573,21 +8573,21 @@ declare const completedOrderSchema: z.ZodObject<{
8573
8573
  streetAddress2: z.ZodNullable<z.ZodString>;
8574
8574
  locality: z.ZodNullable<z.ZodString>;
8575
8575
  region: z.ZodNullable<z.ZodString>;
8576
- postCode: z.ZodString;
8576
+ postCode: z.ZodNullable<z.ZodString>;
8577
8577
  }, "strip", z.ZodTypeAny, {
8578
8578
  countryCode: string;
8579
8579
  streetAddress1: string;
8580
8580
  streetAddress2: string | null;
8581
8581
  locality: string | null;
8582
8582
  region: string | null;
8583
- postCode: string;
8583
+ postCode: string | null;
8584
8584
  }, {
8585
8585
  countryCode: string;
8586
8586
  streetAddress1: string;
8587
8587
  streetAddress2: string | null;
8588
8588
  locality: string | null;
8589
8589
  region: string | null;
8590
- postCode: string;
8590
+ postCode: string | null;
8591
8591
  }>>;
8592
8592
  }, "strip", z.ZodTypeAny, {
8593
8593
  email: string | null;
@@ -8598,7 +8598,7 @@ declare const completedOrderSchema: z.ZodObject<{
8598
8598
  streetAddress2: string | null;
8599
8599
  locality: string | null;
8600
8600
  region: string | null;
8601
- postCode: string;
8601
+ postCode: string | null;
8602
8602
  } | null;
8603
8603
  businessName: string | null;
8604
8604
  taxId: string | null;
@@ -8611,7 +8611,7 @@ declare const completedOrderSchema: z.ZodObject<{
8611
8611
  streetAddress2: string | null;
8612
8612
  locality: string | null;
8613
8613
  region: string | null;
8614
- postCode: string;
8614
+ postCode: string | null;
8615
8615
  } | null;
8616
8616
  businessName: string | null;
8617
8617
  taxId: string | null;
@@ -9919,7 +9919,7 @@ declare const completedOrderSchema: z.ZodObject<{
9919
9919
  streetAddress2: string | null;
9920
9920
  locality: string | null;
9921
9921
  region: string | null;
9922
- postCode: string;
9922
+ postCode: string | null;
9923
9923
  } | null;
9924
9924
  businessName: string | null;
9925
9925
  taxId: string | null;
@@ -10140,7 +10140,7 @@ declare const completedOrderSchema: z.ZodObject<{
10140
10140
  streetAddress2: string | null;
10141
10141
  locality: string | null;
10142
10142
  region: string | null;
10143
- postCode: string;
10143
+ postCode: string | null;
10144
10144
  } | null;
10145
10145
  businessName: string | null;
10146
10146
  taxId: string | null;
@@ -16209,21 +16209,21 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
16209
16209
  streetAddress2: z.ZodNullable<z.ZodString>;
16210
16210
  locality: z.ZodNullable<z.ZodString>;
16211
16211
  region: z.ZodNullable<z.ZodString>;
16212
- postCode: z.ZodString;
16212
+ postCode: z.ZodNullable<z.ZodString>;
16213
16213
  }, "strip", z.ZodTypeAny, {
16214
16214
  countryCode: string;
16215
16215
  streetAddress1: string;
16216
16216
  streetAddress2: string | null;
16217
16217
  locality: string | null;
16218
16218
  region: string | null;
16219
- postCode: string;
16219
+ postCode: string | null;
16220
16220
  }, {
16221
16221
  countryCode: string;
16222
16222
  streetAddress1: string;
16223
16223
  streetAddress2: string | null;
16224
16224
  locality: string | null;
16225
16225
  region: string | null;
16226
- postCode: string;
16226
+ postCode: string | null;
16227
16227
  }>>;
16228
16228
  }, "strip", z.ZodTypeAny, {
16229
16229
  email: string | null;
@@ -16234,7 +16234,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
16234
16234
  streetAddress2: string | null;
16235
16235
  locality: string | null;
16236
16236
  region: string | null;
16237
- postCode: string;
16237
+ postCode: string | null;
16238
16238
  } | null;
16239
16239
  businessName: string | null;
16240
16240
  taxId: string | null;
@@ -16247,7 +16247,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
16247
16247
  streetAddress2: string | null;
16248
16248
  locality: string | null;
16249
16249
  region: string | null;
16250
- postCode: string;
16250
+ postCode: string | null;
16251
16251
  } | null;
16252
16252
  businessName: string | null;
16253
16253
  taxId: string | null;
@@ -17555,7 +17555,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
17555
17555
  streetAddress2: string | null;
17556
17556
  locality: string | null;
17557
17557
  region: string | null;
17558
- postCode: string;
17558
+ postCode: string | null;
17559
17559
  } | null;
17560
17560
  businessName: string | null;
17561
17561
  taxId: string | null;
@@ -17776,7 +17776,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
17776
17776
  streetAddress2: string | null;
17777
17777
  locality: string | null;
17778
17778
  region: string | null;
17779
- postCode: string;
17779
+ postCode: string | null;
17780
17780
  } | null;
17781
17781
  businessName: string | null;
17782
17782
  taxId: string | null;
@@ -18033,7 +18033,7 @@ declare class OrderEndpoints {
18033
18033
  streetAddress2: string | null;
18034
18034
  locality: string | null;
18035
18035
  region: string | null;
18036
- postCode: string;
18036
+ postCode: string | null;
18037
18037
  } | null;
18038
18038
  businessName: string | null;
18039
18039
  taxId: string | null;
package/dist/index.js CHANGED
@@ -346,7 +346,7 @@ var addressSchema = z7.object({
346
346
  streetAddress2: z7.string().nullable(),
347
347
  locality: z7.string().nullable(),
348
348
  region: z7.string().nullable(),
349
- postCode: z7.string()
349
+ postCode: z7.string().nullable()
350
350
  });
351
351
  var communicationPreferencesSchema = z7.object({
352
352
  newsletterOptIn: z7.boolean()
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.16",
4
+ "version": "0.4.17",
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",