@moonbase.sh/storefront-api 0.2.84 → 0.2.86
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 +9 -3
- package/dist/index.d.cts +62 -2
- package/dist/index.d.ts +62 -2
- package/dist/index.js +9 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -151,6 +151,7 @@ var storefrontProductSchema = import_zod3.z.object({
|
|
|
151
151
|
id: import_zod3.z.string(),
|
|
152
152
|
name: import_zod3.z.string(),
|
|
153
153
|
tagline: import_zod3.z.string(),
|
|
154
|
+
description: import_zod3.z.string(),
|
|
154
155
|
iconUrl: import_zod3.z.string().nullable(),
|
|
155
156
|
website: import_zod3.z.string().nullish(),
|
|
156
157
|
owned: import_zod3.z.boolean(),
|
|
@@ -164,6 +165,7 @@ var storefrontBundleSchema = import_zod3.z.object({
|
|
|
164
165
|
id: import_zod3.z.string(),
|
|
165
166
|
name: import_zod3.z.string(),
|
|
166
167
|
tagline: import_zod3.z.string(),
|
|
168
|
+
description: import_zod3.z.string(),
|
|
167
169
|
iconUrl: import_zod3.z.string().nullable(),
|
|
168
170
|
owned: import_zod3.z.boolean(),
|
|
169
171
|
partial: import_zod3.z.boolean(),
|
|
@@ -618,11 +620,15 @@ function utmToObject(utm) {
|
|
|
618
620
|
|
|
619
621
|
// src/storefront/endpoints.ts
|
|
620
622
|
var StorefrontEndpoints = class {
|
|
621
|
-
constructor(api) {
|
|
623
|
+
constructor(api, configuration) {
|
|
622
624
|
this.api = api;
|
|
625
|
+
this.configuration = configuration;
|
|
623
626
|
}
|
|
624
627
|
async get(utm) {
|
|
625
|
-
const query = new URLSearchParams(
|
|
628
|
+
const query = new URLSearchParams(this.configuration.includeManifests ? {
|
|
629
|
+
includeManifests: "true",
|
|
630
|
+
...utmToObject(utm)
|
|
631
|
+
} : utmToObject(utm));
|
|
626
632
|
const response = await this.api.fetch(`/api/customer/storefront?${query.toString()}`, storefrontSchema);
|
|
627
633
|
return response.data;
|
|
628
634
|
}
|
|
@@ -972,7 +978,7 @@ var MoonbaseClient = class {
|
|
|
972
978
|
this.configuration.endpoint = this.configuration.endpoint.replace(/\/$/, "");
|
|
973
979
|
this.tokenStore = new TokenStore(configuration);
|
|
974
980
|
const api = new MoonbaseApi(this.configuration.endpoint, this.tokenStore);
|
|
975
|
-
this.storefront = new StorefrontEndpoints(api);
|
|
981
|
+
this.storefront = new StorefrontEndpoints(api, this.configuration);
|
|
976
982
|
this.identity = new IdentityEndpoints(api, this.tokenStore);
|
|
977
983
|
this.vouchers = new VoucherEndpoints(api);
|
|
978
984
|
this.orders = new OrderEndpoints(api);
|
package/dist/index.d.cts
CHANGED
|
@@ -241,6 +241,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
241
241
|
id: z.ZodString;
|
|
242
242
|
name: z.ZodString;
|
|
243
243
|
tagline: z.ZodString;
|
|
244
|
+
description: z.ZodString;
|
|
244
245
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
245
246
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
247
|
owned: z.ZodBoolean;
|
|
@@ -477,6 +478,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
477
478
|
type: "product";
|
|
478
479
|
id: string;
|
|
479
480
|
name: string;
|
|
481
|
+
description: string;
|
|
480
482
|
tagline: string;
|
|
481
483
|
iconUrl: string | null;
|
|
482
484
|
owned: boolean;
|
|
@@ -540,6 +542,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
540
542
|
}, {
|
|
541
543
|
id: string;
|
|
542
544
|
name: string;
|
|
545
|
+
description: string;
|
|
543
546
|
tagline: string;
|
|
544
547
|
iconUrl: string | null;
|
|
545
548
|
owned: boolean;
|
|
@@ -635,6 +638,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
635
638
|
type: "product";
|
|
636
639
|
id: string;
|
|
637
640
|
name: string;
|
|
641
|
+
description: string;
|
|
638
642
|
tagline: string;
|
|
639
643
|
iconUrl: string | null;
|
|
640
644
|
owned: boolean;
|
|
@@ -712,6 +716,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
712
716
|
product: {
|
|
713
717
|
id: string;
|
|
714
718
|
name: string;
|
|
719
|
+
description: string;
|
|
715
720
|
tagline: string;
|
|
716
721
|
iconUrl: string | null;
|
|
717
722
|
owned: boolean;
|
|
@@ -6023,13 +6028,15 @@ interface UrchinTrackingModule {
|
|
|
6023
6028
|
declare function utmToObject(utm?: UrchinTrackingModule): Record<string, string>;
|
|
6024
6029
|
|
|
6025
6030
|
declare class StorefrontEndpoints {
|
|
6026
|
-
private api;
|
|
6027
|
-
|
|
6031
|
+
private readonly api;
|
|
6032
|
+
private readonly configuration;
|
|
6033
|
+
constructor(api: MoonbaseApi, configuration: MoonbaseConfiguration);
|
|
6028
6034
|
get(utm?: UrchinTrackingModule): Promise<{
|
|
6029
6035
|
products: {
|
|
6030
6036
|
type: "product";
|
|
6031
6037
|
id: string;
|
|
6032
6038
|
name: string;
|
|
6039
|
+
description: string;
|
|
6033
6040
|
tagline: string;
|
|
6034
6041
|
iconUrl: string | null;
|
|
6035
6042
|
owned: boolean;
|
|
@@ -6096,6 +6103,7 @@ declare class StorefrontEndpoints {
|
|
|
6096
6103
|
type: "bundle";
|
|
6097
6104
|
id: string;
|
|
6098
6105
|
name: string;
|
|
6106
|
+
description: string;
|
|
6099
6107
|
tagline: string;
|
|
6100
6108
|
iconUrl: string | null;
|
|
6101
6109
|
owned: boolean;
|
|
@@ -6104,6 +6112,7 @@ declare class StorefrontEndpoints {
|
|
|
6104
6112
|
type: "product";
|
|
6105
6113
|
id: string;
|
|
6106
6114
|
name: string;
|
|
6115
|
+
description: string;
|
|
6107
6116
|
tagline: string;
|
|
6108
6117
|
iconUrl: string | null;
|
|
6109
6118
|
owned: boolean;
|
|
@@ -6224,6 +6233,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6224
6233
|
id: z.ZodString;
|
|
6225
6234
|
name: z.ZodString;
|
|
6226
6235
|
tagline: z.ZodString;
|
|
6236
|
+
description: z.ZodString;
|
|
6227
6237
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
6228
6238
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6229
6239
|
owned: z.ZodBoolean;
|
|
@@ -6460,6 +6470,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6460
6470
|
type: "product";
|
|
6461
6471
|
id: string;
|
|
6462
6472
|
name: string;
|
|
6473
|
+
description: string;
|
|
6463
6474
|
tagline: string;
|
|
6464
6475
|
iconUrl: string | null;
|
|
6465
6476
|
owned: boolean;
|
|
@@ -6523,6 +6534,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6523
6534
|
}, {
|
|
6524
6535
|
id: string;
|
|
6525
6536
|
name: string;
|
|
6537
|
+
description: string;
|
|
6526
6538
|
tagline: string;
|
|
6527
6539
|
iconUrl: string | null;
|
|
6528
6540
|
owned: boolean;
|
|
@@ -6591,6 +6603,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6591
6603
|
type: "product";
|
|
6592
6604
|
id: string;
|
|
6593
6605
|
name: string;
|
|
6606
|
+
description: string;
|
|
6594
6607
|
tagline: string;
|
|
6595
6608
|
iconUrl: string | null;
|
|
6596
6609
|
owned: boolean;
|
|
@@ -6657,6 +6670,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6657
6670
|
value: {
|
|
6658
6671
|
id: string;
|
|
6659
6672
|
name: string;
|
|
6673
|
+
description: string;
|
|
6660
6674
|
tagline: string;
|
|
6661
6675
|
iconUrl: string | null;
|
|
6662
6676
|
owned: boolean;
|
|
@@ -6726,6 +6740,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6726
6740
|
id: z.ZodString;
|
|
6727
6741
|
name: z.ZodString;
|
|
6728
6742
|
tagline: z.ZodString;
|
|
6743
|
+
description: z.ZodString;
|
|
6729
6744
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
6730
6745
|
owned: z.ZodBoolean;
|
|
6731
6746
|
partial: z.ZodBoolean;
|
|
@@ -6733,6 +6748,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6733
6748
|
id: z.ZodString;
|
|
6734
6749
|
name: z.ZodString;
|
|
6735
6750
|
tagline: z.ZodString;
|
|
6751
|
+
description: z.ZodString;
|
|
6736
6752
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
6737
6753
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6738
6754
|
owned: z.ZodBoolean;
|
|
@@ -6969,6 +6985,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6969
6985
|
type: "product";
|
|
6970
6986
|
id: string;
|
|
6971
6987
|
name: string;
|
|
6988
|
+
description: string;
|
|
6972
6989
|
tagline: string;
|
|
6973
6990
|
iconUrl: string | null;
|
|
6974
6991
|
owned: boolean;
|
|
@@ -7032,6 +7049,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7032
7049
|
}, {
|
|
7033
7050
|
id: string;
|
|
7034
7051
|
name: string;
|
|
7052
|
+
description: string;
|
|
7035
7053
|
tagline: string;
|
|
7036
7054
|
iconUrl: string | null;
|
|
7037
7055
|
owned: boolean;
|
|
@@ -7279,6 +7297,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7279
7297
|
type: "bundle";
|
|
7280
7298
|
id: string;
|
|
7281
7299
|
name: string;
|
|
7300
|
+
description: string;
|
|
7282
7301
|
tagline: string;
|
|
7283
7302
|
iconUrl: string | null;
|
|
7284
7303
|
owned: boolean;
|
|
@@ -7287,6 +7306,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7287
7306
|
type: "product";
|
|
7288
7307
|
id: string;
|
|
7289
7308
|
name: string;
|
|
7309
|
+
description: string;
|
|
7290
7310
|
tagline: string;
|
|
7291
7311
|
iconUrl: string | null;
|
|
7292
7312
|
owned: boolean;
|
|
@@ -7395,6 +7415,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7395
7415
|
}, {
|
|
7396
7416
|
id: string;
|
|
7397
7417
|
name: string;
|
|
7418
|
+
description: string;
|
|
7398
7419
|
tagline: string;
|
|
7399
7420
|
iconUrl: string | null;
|
|
7400
7421
|
owned: boolean;
|
|
@@ -7402,6 +7423,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7402
7423
|
products: ({
|
|
7403
7424
|
id: string;
|
|
7404
7425
|
name: string;
|
|
7426
|
+
description: string;
|
|
7405
7427
|
tagline: string;
|
|
7406
7428
|
iconUrl: string | null;
|
|
7407
7429
|
owned: boolean;
|
|
@@ -7516,6 +7538,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7516
7538
|
type: "bundle";
|
|
7517
7539
|
id: string;
|
|
7518
7540
|
name: string;
|
|
7541
|
+
description: string;
|
|
7519
7542
|
tagline: string;
|
|
7520
7543
|
iconUrl: string | null;
|
|
7521
7544
|
owned: boolean;
|
|
@@ -7524,6 +7547,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7524
7547
|
type: "product";
|
|
7525
7548
|
id: string;
|
|
7526
7549
|
name: string;
|
|
7550
|
+
description: string;
|
|
7527
7551
|
tagline: string;
|
|
7528
7552
|
iconUrl: string | null;
|
|
7529
7553
|
owned: boolean;
|
|
@@ -7635,6 +7659,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7635
7659
|
value: {
|
|
7636
7660
|
id: string;
|
|
7637
7661
|
name: string;
|
|
7662
|
+
description: string;
|
|
7638
7663
|
tagline: string;
|
|
7639
7664
|
iconUrl: string | null;
|
|
7640
7665
|
owned: boolean;
|
|
@@ -7642,6 +7667,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7642
7667
|
products: ({
|
|
7643
7668
|
id: string;
|
|
7644
7669
|
name: string;
|
|
7670
|
+
description: string;
|
|
7645
7671
|
tagline: string;
|
|
7646
7672
|
iconUrl: string | null;
|
|
7647
7673
|
owned: boolean;
|
|
@@ -7763,6 +7789,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7763
7789
|
type: "product";
|
|
7764
7790
|
id: string;
|
|
7765
7791
|
name: string;
|
|
7792
|
+
description: string;
|
|
7766
7793
|
tagline: string;
|
|
7767
7794
|
iconUrl: string | null;
|
|
7768
7795
|
owned: boolean;
|
|
@@ -7831,6 +7858,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7831
7858
|
type: "bundle";
|
|
7832
7859
|
id: string;
|
|
7833
7860
|
name: string;
|
|
7861
|
+
description: string;
|
|
7834
7862
|
tagline: string;
|
|
7835
7863
|
iconUrl: string | null;
|
|
7836
7864
|
owned: boolean;
|
|
@@ -7839,6 +7867,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7839
7867
|
type: "product";
|
|
7840
7868
|
id: string;
|
|
7841
7869
|
name: string;
|
|
7870
|
+
description: string;
|
|
7842
7871
|
tagline: string;
|
|
7843
7872
|
iconUrl: string | null;
|
|
7844
7873
|
owned: boolean;
|
|
@@ -7957,6 +7986,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7957
7986
|
value: {
|
|
7958
7987
|
id: string;
|
|
7959
7988
|
name: string;
|
|
7989
|
+
description: string;
|
|
7960
7990
|
tagline: string;
|
|
7961
7991
|
iconUrl: string | null;
|
|
7962
7992
|
owned: boolean;
|
|
@@ -8025,6 +8055,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
8025
8055
|
value: {
|
|
8026
8056
|
id: string;
|
|
8027
8057
|
name: string;
|
|
8058
|
+
description: string;
|
|
8028
8059
|
tagline: string;
|
|
8029
8060
|
iconUrl: string | null;
|
|
8030
8061
|
owned: boolean;
|
|
@@ -8032,6 +8063,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
8032
8063
|
products: ({
|
|
8033
8064
|
id: string;
|
|
8034
8065
|
name: string;
|
|
8066
|
+
description: string;
|
|
8035
8067
|
tagline: string;
|
|
8036
8068
|
iconUrl: string | null;
|
|
8037
8069
|
owned: boolean;
|
|
@@ -8683,6 +8715,7 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
8683
8715
|
id: z.ZodString;
|
|
8684
8716
|
name: z.ZodString;
|
|
8685
8717
|
tagline: z.ZodString;
|
|
8718
|
+
description: z.ZodString;
|
|
8686
8719
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
8687
8720
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8688
8721
|
owned: z.ZodBoolean;
|
|
@@ -8919,6 +8952,7 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
8919
8952
|
type: "product";
|
|
8920
8953
|
id: string;
|
|
8921
8954
|
name: string;
|
|
8955
|
+
description: string;
|
|
8922
8956
|
tagline: string;
|
|
8923
8957
|
iconUrl: string | null;
|
|
8924
8958
|
owned: boolean;
|
|
@@ -8982,6 +9016,7 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
8982
9016
|
}, {
|
|
8983
9017
|
id: string;
|
|
8984
9018
|
name: string;
|
|
9019
|
+
description: string;
|
|
8985
9020
|
tagline: string;
|
|
8986
9021
|
iconUrl: string | null;
|
|
8987
9022
|
owned: boolean;
|
|
@@ -9048,6 +9083,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9048
9083
|
id: z.ZodString;
|
|
9049
9084
|
name: z.ZodString;
|
|
9050
9085
|
tagline: z.ZodString;
|
|
9086
|
+
description: z.ZodString;
|
|
9051
9087
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
9052
9088
|
owned: z.ZodBoolean;
|
|
9053
9089
|
partial: z.ZodBoolean;
|
|
@@ -9055,6 +9091,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9055
9091
|
id: z.ZodString;
|
|
9056
9092
|
name: z.ZodString;
|
|
9057
9093
|
tagline: z.ZodString;
|
|
9094
|
+
description: z.ZodString;
|
|
9058
9095
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
9059
9096
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9060
9097
|
owned: z.ZodBoolean;
|
|
@@ -9291,6 +9328,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9291
9328
|
type: "product";
|
|
9292
9329
|
id: string;
|
|
9293
9330
|
name: string;
|
|
9331
|
+
description: string;
|
|
9294
9332
|
tagline: string;
|
|
9295
9333
|
iconUrl: string | null;
|
|
9296
9334
|
owned: boolean;
|
|
@@ -9354,6 +9392,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9354
9392
|
}, {
|
|
9355
9393
|
id: string;
|
|
9356
9394
|
name: string;
|
|
9395
|
+
description: string;
|
|
9357
9396
|
tagline: string;
|
|
9358
9397
|
iconUrl: string | null;
|
|
9359
9398
|
owned: boolean;
|
|
@@ -9601,6 +9640,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9601
9640
|
type: "bundle";
|
|
9602
9641
|
id: string;
|
|
9603
9642
|
name: string;
|
|
9643
|
+
description: string;
|
|
9604
9644
|
tagline: string;
|
|
9605
9645
|
iconUrl: string | null;
|
|
9606
9646
|
owned: boolean;
|
|
@@ -9609,6 +9649,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9609
9649
|
type: "product";
|
|
9610
9650
|
id: string;
|
|
9611
9651
|
name: string;
|
|
9652
|
+
description: string;
|
|
9612
9653
|
tagline: string;
|
|
9613
9654
|
iconUrl: string | null;
|
|
9614
9655
|
owned: boolean;
|
|
@@ -9717,6 +9758,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9717
9758
|
}, {
|
|
9718
9759
|
id: string;
|
|
9719
9760
|
name: string;
|
|
9761
|
+
description: string;
|
|
9720
9762
|
tagline: string;
|
|
9721
9763
|
iconUrl: string | null;
|
|
9722
9764
|
owned: boolean;
|
|
@@ -9724,6 +9766,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9724
9766
|
products: ({
|
|
9725
9767
|
id: string;
|
|
9726
9768
|
name: string;
|
|
9769
|
+
description: string;
|
|
9727
9770
|
tagline: string;
|
|
9728
9771
|
iconUrl: string | null;
|
|
9729
9772
|
owned: boolean;
|
|
@@ -9838,6 +9881,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
9838
9881
|
id: z.ZodString;
|
|
9839
9882
|
name: z.ZodString;
|
|
9840
9883
|
tagline: z.ZodString;
|
|
9884
|
+
description: z.ZodString;
|
|
9841
9885
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
9842
9886
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9843
9887
|
owned: z.ZodBoolean;
|
|
@@ -10074,6 +10118,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10074
10118
|
type: "product";
|
|
10075
10119
|
id: string;
|
|
10076
10120
|
name: string;
|
|
10121
|
+
description: string;
|
|
10077
10122
|
tagline: string;
|
|
10078
10123
|
iconUrl: string | null;
|
|
10079
10124
|
owned: boolean;
|
|
@@ -10137,6 +10182,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10137
10182
|
}, {
|
|
10138
10183
|
id: string;
|
|
10139
10184
|
name: string;
|
|
10185
|
+
description: string;
|
|
10140
10186
|
tagline: string;
|
|
10141
10187
|
iconUrl: string | null;
|
|
10142
10188
|
owned: boolean;
|
|
@@ -10203,6 +10249,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10203
10249
|
id: z.ZodString;
|
|
10204
10250
|
name: z.ZodString;
|
|
10205
10251
|
tagline: z.ZodString;
|
|
10252
|
+
description: z.ZodString;
|
|
10206
10253
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
10207
10254
|
owned: z.ZodBoolean;
|
|
10208
10255
|
partial: z.ZodBoolean;
|
|
@@ -10210,6 +10257,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10210
10257
|
id: z.ZodString;
|
|
10211
10258
|
name: z.ZodString;
|
|
10212
10259
|
tagline: z.ZodString;
|
|
10260
|
+
description: z.ZodString;
|
|
10213
10261
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
10214
10262
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10215
10263
|
owned: z.ZodBoolean;
|
|
@@ -10446,6 +10494,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10446
10494
|
type: "product";
|
|
10447
10495
|
id: string;
|
|
10448
10496
|
name: string;
|
|
10497
|
+
description: string;
|
|
10449
10498
|
tagline: string;
|
|
10450
10499
|
iconUrl: string | null;
|
|
10451
10500
|
owned: boolean;
|
|
@@ -10509,6 +10558,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10509
10558
|
}, {
|
|
10510
10559
|
id: string;
|
|
10511
10560
|
name: string;
|
|
10561
|
+
description: string;
|
|
10512
10562
|
tagline: string;
|
|
10513
10563
|
iconUrl: string | null;
|
|
10514
10564
|
owned: boolean;
|
|
@@ -10756,6 +10806,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10756
10806
|
type: "bundle";
|
|
10757
10807
|
id: string;
|
|
10758
10808
|
name: string;
|
|
10809
|
+
description: string;
|
|
10759
10810
|
tagline: string;
|
|
10760
10811
|
iconUrl: string | null;
|
|
10761
10812
|
owned: boolean;
|
|
@@ -10764,6 +10815,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10764
10815
|
type: "product";
|
|
10765
10816
|
id: string;
|
|
10766
10817
|
name: string;
|
|
10818
|
+
description: string;
|
|
10767
10819
|
tagline: string;
|
|
10768
10820
|
iconUrl: string | null;
|
|
10769
10821
|
owned: boolean;
|
|
@@ -10872,6 +10924,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10872
10924
|
}, {
|
|
10873
10925
|
id: string;
|
|
10874
10926
|
name: string;
|
|
10927
|
+
description: string;
|
|
10875
10928
|
tagline: string;
|
|
10876
10929
|
iconUrl: string | null;
|
|
10877
10930
|
owned: boolean;
|
|
@@ -10879,6 +10932,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10879
10932
|
products: ({
|
|
10880
10933
|
id: string;
|
|
10881
10934
|
name: string;
|
|
10935
|
+
description: string;
|
|
10882
10936
|
tagline: string;
|
|
10883
10937
|
iconUrl: string | null;
|
|
10884
10938
|
owned: boolean;
|
|
@@ -10992,6 +11046,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10992
11046
|
type: "product";
|
|
10993
11047
|
id: string;
|
|
10994
11048
|
name: string;
|
|
11049
|
+
description: string;
|
|
10995
11050
|
tagline: string;
|
|
10996
11051
|
iconUrl: string | null;
|
|
10997
11052
|
owned: boolean;
|
|
@@ -11058,6 +11113,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11058
11113
|
type: "bundle";
|
|
11059
11114
|
id: string;
|
|
11060
11115
|
name: string;
|
|
11116
|
+
description: string;
|
|
11061
11117
|
tagline: string;
|
|
11062
11118
|
iconUrl: string | null;
|
|
11063
11119
|
owned: boolean;
|
|
@@ -11066,6 +11122,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11066
11122
|
type: "product";
|
|
11067
11123
|
id: string;
|
|
11068
11124
|
name: string;
|
|
11125
|
+
description: string;
|
|
11069
11126
|
tagline: string;
|
|
11070
11127
|
iconUrl: string | null;
|
|
11071
11128
|
owned: boolean;
|
|
@@ -11176,6 +11233,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11176
11233
|
products: {
|
|
11177
11234
|
id: string;
|
|
11178
11235
|
name: string;
|
|
11236
|
+
description: string;
|
|
11179
11237
|
tagline: string;
|
|
11180
11238
|
iconUrl: string | null;
|
|
11181
11239
|
owned: boolean;
|
|
@@ -11242,6 +11300,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11242
11300
|
bundles: {
|
|
11243
11301
|
id: string;
|
|
11244
11302
|
name: string;
|
|
11303
|
+
description: string;
|
|
11245
11304
|
tagline: string;
|
|
11246
11305
|
iconUrl: string | null;
|
|
11247
11306
|
owned: boolean;
|
|
@@ -11249,6 +11308,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11249
11308
|
products: ({
|
|
11250
11309
|
id: string;
|
|
11251
11310
|
name: string;
|
|
11311
|
+
description: string;
|
|
11252
11312
|
tagline: string;
|
|
11253
11313
|
iconUrl: string | null;
|
|
11254
11314
|
owned: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -241,6 +241,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
241
241
|
id: z.ZodString;
|
|
242
242
|
name: z.ZodString;
|
|
243
243
|
tagline: z.ZodString;
|
|
244
|
+
description: z.ZodString;
|
|
244
245
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
245
246
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
247
|
owned: z.ZodBoolean;
|
|
@@ -477,6 +478,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
477
478
|
type: "product";
|
|
478
479
|
id: string;
|
|
479
480
|
name: string;
|
|
481
|
+
description: string;
|
|
480
482
|
tagline: string;
|
|
481
483
|
iconUrl: string | null;
|
|
482
484
|
owned: boolean;
|
|
@@ -540,6 +542,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
540
542
|
}, {
|
|
541
543
|
id: string;
|
|
542
544
|
name: string;
|
|
545
|
+
description: string;
|
|
543
546
|
tagline: string;
|
|
544
547
|
iconUrl: string | null;
|
|
545
548
|
owned: boolean;
|
|
@@ -635,6 +638,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
635
638
|
type: "product";
|
|
636
639
|
id: string;
|
|
637
640
|
name: string;
|
|
641
|
+
description: string;
|
|
638
642
|
tagline: string;
|
|
639
643
|
iconUrl: string | null;
|
|
640
644
|
owned: boolean;
|
|
@@ -712,6 +716,7 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
712
716
|
product: {
|
|
713
717
|
id: string;
|
|
714
718
|
name: string;
|
|
719
|
+
description: string;
|
|
715
720
|
tagline: string;
|
|
716
721
|
iconUrl: string | null;
|
|
717
722
|
owned: boolean;
|
|
@@ -6023,13 +6028,15 @@ interface UrchinTrackingModule {
|
|
|
6023
6028
|
declare function utmToObject(utm?: UrchinTrackingModule): Record<string, string>;
|
|
6024
6029
|
|
|
6025
6030
|
declare class StorefrontEndpoints {
|
|
6026
|
-
private api;
|
|
6027
|
-
|
|
6031
|
+
private readonly api;
|
|
6032
|
+
private readonly configuration;
|
|
6033
|
+
constructor(api: MoonbaseApi, configuration: MoonbaseConfiguration);
|
|
6028
6034
|
get(utm?: UrchinTrackingModule): Promise<{
|
|
6029
6035
|
products: {
|
|
6030
6036
|
type: "product";
|
|
6031
6037
|
id: string;
|
|
6032
6038
|
name: string;
|
|
6039
|
+
description: string;
|
|
6033
6040
|
tagline: string;
|
|
6034
6041
|
iconUrl: string | null;
|
|
6035
6042
|
owned: boolean;
|
|
@@ -6096,6 +6103,7 @@ declare class StorefrontEndpoints {
|
|
|
6096
6103
|
type: "bundle";
|
|
6097
6104
|
id: string;
|
|
6098
6105
|
name: string;
|
|
6106
|
+
description: string;
|
|
6099
6107
|
tagline: string;
|
|
6100
6108
|
iconUrl: string | null;
|
|
6101
6109
|
owned: boolean;
|
|
@@ -6104,6 +6112,7 @@ declare class StorefrontEndpoints {
|
|
|
6104
6112
|
type: "product";
|
|
6105
6113
|
id: string;
|
|
6106
6114
|
name: string;
|
|
6115
|
+
description: string;
|
|
6107
6116
|
tagline: string;
|
|
6108
6117
|
iconUrl: string | null;
|
|
6109
6118
|
owned: boolean;
|
|
@@ -6224,6 +6233,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6224
6233
|
id: z.ZodString;
|
|
6225
6234
|
name: z.ZodString;
|
|
6226
6235
|
tagline: z.ZodString;
|
|
6236
|
+
description: z.ZodString;
|
|
6227
6237
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
6228
6238
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6229
6239
|
owned: z.ZodBoolean;
|
|
@@ -6460,6 +6470,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6460
6470
|
type: "product";
|
|
6461
6471
|
id: string;
|
|
6462
6472
|
name: string;
|
|
6473
|
+
description: string;
|
|
6463
6474
|
tagline: string;
|
|
6464
6475
|
iconUrl: string | null;
|
|
6465
6476
|
owned: boolean;
|
|
@@ -6523,6 +6534,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6523
6534
|
}, {
|
|
6524
6535
|
id: string;
|
|
6525
6536
|
name: string;
|
|
6537
|
+
description: string;
|
|
6526
6538
|
tagline: string;
|
|
6527
6539
|
iconUrl: string | null;
|
|
6528
6540
|
owned: boolean;
|
|
@@ -6591,6 +6603,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6591
6603
|
type: "product";
|
|
6592
6604
|
id: string;
|
|
6593
6605
|
name: string;
|
|
6606
|
+
description: string;
|
|
6594
6607
|
tagline: string;
|
|
6595
6608
|
iconUrl: string | null;
|
|
6596
6609
|
owned: boolean;
|
|
@@ -6657,6 +6670,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6657
6670
|
value: {
|
|
6658
6671
|
id: string;
|
|
6659
6672
|
name: string;
|
|
6673
|
+
description: string;
|
|
6660
6674
|
tagline: string;
|
|
6661
6675
|
iconUrl: string | null;
|
|
6662
6676
|
owned: boolean;
|
|
@@ -6726,6 +6740,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6726
6740
|
id: z.ZodString;
|
|
6727
6741
|
name: z.ZodString;
|
|
6728
6742
|
tagline: z.ZodString;
|
|
6743
|
+
description: z.ZodString;
|
|
6729
6744
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
6730
6745
|
owned: z.ZodBoolean;
|
|
6731
6746
|
partial: z.ZodBoolean;
|
|
@@ -6733,6 +6748,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6733
6748
|
id: z.ZodString;
|
|
6734
6749
|
name: z.ZodString;
|
|
6735
6750
|
tagline: z.ZodString;
|
|
6751
|
+
description: z.ZodString;
|
|
6736
6752
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
6737
6753
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6738
6754
|
owned: z.ZodBoolean;
|
|
@@ -6969,6 +6985,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
6969
6985
|
type: "product";
|
|
6970
6986
|
id: string;
|
|
6971
6987
|
name: string;
|
|
6988
|
+
description: string;
|
|
6972
6989
|
tagline: string;
|
|
6973
6990
|
iconUrl: string | null;
|
|
6974
6991
|
owned: boolean;
|
|
@@ -7032,6 +7049,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7032
7049
|
}, {
|
|
7033
7050
|
id: string;
|
|
7034
7051
|
name: string;
|
|
7052
|
+
description: string;
|
|
7035
7053
|
tagline: string;
|
|
7036
7054
|
iconUrl: string | null;
|
|
7037
7055
|
owned: boolean;
|
|
@@ -7279,6 +7297,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7279
7297
|
type: "bundle";
|
|
7280
7298
|
id: string;
|
|
7281
7299
|
name: string;
|
|
7300
|
+
description: string;
|
|
7282
7301
|
tagline: string;
|
|
7283
7302
|
iconUrl: string | null;
|
|
7284
7303
|
owned: boolean;
|
|
@@ -7287,6 +7306,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7287
7306
|
type: "product";
|
|
7288
7307
|
id: string;
|
|
7289
7308
|
name: string;
|
|
7309
|
+
description: string;
|
|
7290
7310
|
tagline: string;
|
|
7291
7311
|
iconUrl: string | null;
|
|
7292
7312
|
owned: boolean;
|
|
@@ -7395,6 +7415,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7395
7415
|
}, {
|
|
7396
7416
|
id: string;
|
|
7397
7417
|
name: string;
|
|
7418
|
+
description: string;
|
|
7398
7419
|
tagline: string;
|
|
7399
7420
|
iconUrl: string | null;
|
|
7400
7421
|
owned: boolean;
|
|
@@ -7402,6 +7423,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7402
7423
|
products: ({
|
|
7403
7424
|
id: string;
|
|
7404
7425
|
name: string;
|
|
7426
|
+
description: string;
|
|
7405
7427
|
tagline: string;
|
|
7406
7428
|
iconUrl: string | null;
|
|
7407
7429
|
owned: boolean;
|
|
@@ -7516,6 +7538,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7516
7538
|
type: "bundle";
|
|
7517
7539
|
id: string;
|
|
7518
7540
|
name: string;
|
|
7541
|
+
description: string;
|
|
7519
7542
|
tagline: string;
|
|
7520
7543
|
iconUrl: string | null;
|
|
7521
7544
|
owned: boolean;
|
|
@@ -7524,6 +7547,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7524
7547
|
type: "product";
|
|
7525
7548
|
id: string;
|
|
7526
7549
|
name: string;
|
|
7550
|
+
description: string;
|
|
7527
7551
|
tagline: string;
|
|
7528
7552
|
iconUrl: string | null;
|
|
7529
7553
|
owned: boolean;
|
|
@@ -7635,6 +7659,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7635
7659
|
value: {
|
|
7636
7660
|
id: string;
|
|
7637
7661
|
name: string;
|
|
7662
|
+
description: string;
|
|
7638
7663
|
tagline: string;
|
|
7639
7664
|
iconUrl: string | null;
|
|
7640
7665
|
owned: boolean;
|
|
@@ -7642,6 +7667,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7642
7667
|
products: ({
|
|
7643
7668
|
id: string;
|
|
7644
7669
|
name: string;
|
|
7670
|
+
description: string;
|
|
7645
7671
|
tagline: string;
|
|
7646
7672
|
iconUrl: string | null;
|
|
7647
7673
|
owned: boolean;
|
|
@@ -7763,6 +7789,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7763
7789
|
type: "product";
|
|
7764
7790
|
id: string;
|
|
7765
7791
|
name: string;
|
|
7792
|
+
description: string;
|
|
7766
7793
|
tagline: string;
|
|
7767
7794
|
iconUrl: string | null;
|
|
7768
7795
|
owned: boolean;
|
|
@@ -7831,6 +7858,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7831
7858
|
type: "bundle";
|
|
7832
7859
|
id: string;
|
|
7833
7860
|
name: string;
|
|
7861
|
+
description: string;
|
|
7834
7862
|
tagline: string;
|
|
7835
7863
|
iconUrl: string | null;
|
|
7836
7864
|
owned: boolean;
|
|
@@ -7839,6 +7867,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7839
7867
|
type: "product";
|
|
7840
7868
|
id: string;
|
|
7841
7869
|
name: string;
|
|
7870
|
+
description: string;
|
|
7842
7871
|
tagline: string;
|
|
7843
7872
|
iconUrl: string | null;
|
|
7844
7873
|
owned: boolean;
|
|
@@ -7957,6 +7986,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
7957
7986
|
value: {
|
|
7958
7987
|
id: string;
|
|
7959
7988
|
name: string;
|
|
7989
|
+
description: string;
|
|
7960
7990
|
tagline: string;
|
|
7961
7991
|
iconUrl: string | null;
|
|
7962
7992
|
owned: boolean;
|
|
@@ -8025,6 +8055,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
8025
8055
|
value: {
|
|
8026
8056
|
id: string;
|
|
8027
8057
|
name: string;
|
|
8058
|
+
description: string;
|
|
8028
8059
|
tagline: string;
|
|
8029
8060
|
iconUrl: string | null;
|
|
8030
8061
|
owned: boolean;
|
|
@@ -8032,6 +8063,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
8032
8063
|
products: ({
|
|
8033
8064
|
id: string;
|
|
8034
8065
|
name: string;
|
|
8066
|
+
description: string;
|
|
8035
8067
|
tagline: string;
|
|
8036
8068
|
iconUrl: string | null;
|
|
8037
8069
|
owned: boolean;
|
|
@@ -8683,6 +8715,7 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
8683
8715
|
id: z.ZodString;
|
|
8684
8716
|
name: z.ZodString;
|
|
8685
8717
|
tagline: z.ZodString;
|
|
8718
|
+
description: z.ZodString;
|
|
8686
8719
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
8687
8720
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8688
8721
|
owned: z.ZodBoolean;
|
|
@@ -8919,6 +8952,7 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
8919
8952
|
type: "product";
|
|
8920
8953
|
id: string;
|
|
8921
8954
|
name: string;
|
|
8955
|
+
description: string;
|
|
8922
8956
|
tagline: string;
|
|
8923
8957
|
iconUrl: string | null;
|
|
8924
8958
|
owned: boolean;
|
|
@@ -8982,6 +9016,7 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
8982
9016
|
}, {
|
|
8983
9017
|
id: string;
|
|
8984
9018
|
name: string;
|
|
9019
|
+
description: string;
|
|
8985
9020
|
tagline: string;
|
|
8986
9021
|
iconUrl: string | null;
|
|
8987
9022
|
owned: boolean;
|
|
@@ -9048,6 +9083,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9048
9083
|
id: z.ZodString;
|
|
9049
9084
|
name: z.ZodString;
|
|
9050
9085
|
tagline: z.ZodString;
|
|
9086
|
+
description: z.ZodString;
|
|
9051
9087
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
9052
9088
|
owned: z.ZodBoolean;
|
|
9053
9089
|
partial: z.ZodBoolean;
|
|
@@ -9055,6 +9091,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9055
9091
|
id: z.ZodString;
|
|
9056
9092
|
name: z.ZodString;
|
|
9057
9093
|
tagline: z.ZodString;
|
|
9094
|
+
description: z.ZodString;
|
|
9058
9095
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
9059
9096
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9060
9097
|
owned: z.ZodBoolean;
|
|
@@ -9291,6 +9328,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9291
9328
|
type: "product";
|
|
9292
9329
|
id: string;
|
|
9293
9330
|
name: string;
|
|
9331
|
+
description: string;
|
|
9294
9332
|
tagline: string;
|
|
9295
9333
|
iconUrl: string | null;
|
|
9296
9334
|
owned: boolean;
|
|
@@ -9354,6 +9392,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9354
9392
|
}, {
|
|
9355
9393
|
id: string;
|
|
9356
9394
|
name: string;
|
|
9395
|
+
description: string;
|
|
9357
9396
|
tagline: string;
|
|
9358
9397
|
iconUrl: string | null;
|
|
9359
9398
|
owned: boolean;
|
|
@@ -9601,6 +9640,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9601
9640
|
type: "bundle";
|
|
9602
9641
|
id: string;
|
|
9603
9642
|
name: string;
|
|
9643
|
+
description: string;
|
|
9604
9644
|
tagline: string;
|
|
9605
9645
|
iconUrl: string | null;
|
|
9606
9646
|
owned: boolean;
|
|
@@ -9609,6 +9649,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9609
9649
|
type: "product";
|
|
9610
9650
|
id: string;
|
|
9611
9651
|
name: string;
|
|
9652
|
+
description: string;
|
|
9612
9653
|
tagline: string;
|
|
9613
9654
|
iconUrl: string | null;
|
|
9614
9655
|
owned: boolean;
|
|
@@ -9717,6 +9758,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9717
9758
|
}, {
|
|
9718
9759
|
id: string;
|
|
9719
9760
|
name: string;
|
|
9761
|
+
description: string;
|
|
9720
9762
|
tagline: string;
|
|
9721
9763
|
iconUrl: string | null;
|
|
9722
9764
|
owned: boolean;
|
|
@@ -9724,6 +9766,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
9724
9766
|
products: ({
|
|
9725
9767
|
id: string;
|
|
9726
9768
|
name: string;
|
|
9769
|
+
description: string;
|
|
9727
9770
|
tagline: string;
|
|
9728
9771
|
iconUrl: string | null;
|
|
9729
9772
|
owned: boolean;
|
|
@@ -9838,6 +9881,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
9838
9881
|
id: z.ZodString;
|
|
9839
9882
|
name: z.ZodString;
|
|
9840
9883
|
tagline: z.ZodString;
|
|
9884
|
+
description: z.ZodString;
|
|
9841
9885
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
9842
9886
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9843
9887
|
owned: z.ZodBoolean;
|
|
@@ -10074,6 +10118,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10074
10118
|
type: "product";
|
|
10075
10119
|
id: string;
|
|
10076
10120
|
name: string;
|
|
10121
|
+
description: string;
|
|
10077
10122
|
tagline: string;
|
|
10078
10123
|
iconUrl: string | null;
|
|
10079
10124
|
owned: boolean;
|
|
@@ -10137,6 +10182,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10137
10182
|
}, {
|
|
10138
10183
|
id: string;
|
|
10139
10184
|
name: string;
|
|
10185
|
+
description: string;
|
|
10140
10186
|
tagline: string;
|
|
10141
10187
|
iconUrl: string | null;
|
|
10142
10188
|
owned: boolean;
|
|
@@ -10203,6 +10249,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10203
10249
|
id: z.ZodString;
|
|
10204
10250
|
name: z.ZodString;
|
|
10205
10251
|
tagline: z.ZodString;
|
|
10252
|
+
description: z.ZodString;
|
|
10206
10253
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
10207
10254
|
owned: z.ZodBoolean;
|
|
10208
10255
|
partial: z.ZodBoolean;
|
|
@@ -10210,6 +10257,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10210
10257
|
id: z.ZodString;
|
|
10211
10258
|
name: z.ZodString;
|
|
10212
10259
|
tagline: z.ZodString;
|
|
10260
|
+
description: z.ZodString;
|
|
10213
10261
|
iconUrl: z.ZodNullable<z.ZodString>;
|
|
10214
10262
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10215
10263
|
owned: z.ZodBoolean;
|
|
@@ -10446,6 +10494,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10446
10494
|
type: "product";
|
|
10447
10495
|
id: string;
|
|
10448
10496
|
name: string;
|
|
10497
|
+
description: string;
|
|
10449
10498
|
tagline: string;
|
|
10450
10499
|
iconUrl: string | null;
|
|
10451
10500
|
owned: boolean;
|
|
@@ -10509,6 +10558,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10509
10558
|
}, {
|
|
10510
10559
|
id: string;
|
|
10511
10560
|
name: string;
|
|
10561
|
+
description: string;
|
|
10512
10562
|
tagline: string;
|
|
10513
10563
|
iconUrl: string | null;
|
|
10514
10564
|
owned: boolean;
|
|
@@ -10756,6 +10806,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10756
10806
|
type: "bundle";
|
|
10757
10807
|
id: string;
|
|
10758
10808
|
name: string;
|
|
10809
|
+
description: string;
|
|
10759
10810
|
tagline: string;
|
|
10760
10811
|
iconUrl: string | null;
|
|
10761
10812
|
owned: boolean;
|
|
@@ -10764,6 +10815,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10764
10815
|
type: "product";
|
|
10765
10816
|
id: string;
|
|
10766
10817
|
name: string;
|
|
10818
|
+
description: string;
|
|
10767
10819
|
tagline: string;
|
|
10768
10820
|
iconUrl: string | null;
|
|
10769
10821
|
owned: boolean;
|
|
@@ -10872,6 +10924,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10872
10924
|
}, {
|
|
10873
10925
|
id: string;
|
|
10874
10926
|
name: string;
|
|
10927
|
+
description: string;
|
|
10875
10928
|
tagline: string;
|
|
10876
10929
|
iconUrl: string | null;
|
|
10877
10930
|
owned: boolean;
|
|
@@ -10879,6 +10932,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10879
10932
|
products: ({
|
|
10880
10933
|
id: string;
|
|
10881
10934
|
name: string;
|
|
10935
|
+
description: string;
|
|
10882
10936
|
tagline: string;
|
|
10883
10937
|
iconUrl: string | null;
|
|
10884
10938
|
owned: boolean;
|
|
@@ -10992,6 +11046,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
10992
11046
|
type: "product";
|
|
10993
11047
|
id: string;
|
|
10994
11048
|
name: string;
|
|
11049
|
+
description: string;
|
|
10995
11050
|
tagline: string;
|
|
10996
11051
|
iconUrl: string | null;
|
|
10997
11052
|
owned: boolean;
|
|
@@ -11058,6 +11113,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11058
11113
|
type: "bundle";
|
|
11059
11114
|
id: string;
|
|
11060
11115
|
name: string;
|
|
11116
|
+
description: string;
|
|
11061
11117
|
tagline: string;
|
|
11062
11118
|
iconUrl: string | null;
|
|
11063
11119
|
owned: boolean;
|
|
@@ -11066,6 +11122,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11066
11122
|
type: "product";
|
|
11067
11123
|
id: string;
|
|
11068
11124
|
name: string;
|
|
11125
|
+
description: string;
|
|
11069
11126
|
tagline: string;
|
|
11070
11127
|
iconUrl: string | null;
|
|
11071
11128
|
owned: boolean;
|
|
@@ -11176,6 +11233,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11176
11233
|
products: {
|
|
11177
11234
|
id: string;
|
|
11178
11235
|
name: string;
|
|
11236
|
+
description: string;
|
|
11179
11237
|
tagline: string;
|
|
11180
11238
|
iconUrl: string | null;
|
|
11181
11239
|
owned: boolean;
|
|
@@ -11242,6 +11300,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11242
11300
|
bundles: {
|
|
11243
11301
|
id: string;
|
|
11244
11302
|
name: string;
|
|
11303
|
+
description: string;
|
|
11245
11304
|
tagline: string;
|
|
11246
11305
|
iconUrl: string | null;
|
|
11247
11306
|
owned: boolean;
|
|
@@ -11249,6 +11308,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
11249
11308
|
products: ({
|
|
11250
11309
|
id: string;
|
|
11251
11310
|
name: string;
|
|
11311
|
+
description: string;
|
|
11252
11312
|
tagline: string;
|
|
11253
11313
|
iconUrl: string | null;
|
|
11254
11314
|
owned: boolean;
|
package/dist/index.js
CHANGED
|
@@ -109,6 +109,7 @@ var storefrontProductSchema = z3.object({
|
|
|
109
109
|
id: z3.string(),
|
|
110
110
|
name: z3.string(),
|
|
111
111
|
tagline: z3.string(),
|
|
112
|
+
description: z3.string(),
|
|
112
113
|
iconUrl: z3.string().nullable(),
|
|
113
114
|
website: z3.string().nullish(),
|
|
114
115
|
owned: z3.boolean(),
|
|
@@ -122,6 +123,7 @@ var storefrontBundleSchema = z3.object({
|
|
|
122
123
|
id: z3.string(),
|
|
123
124
|
name: z3.string(),
|
|
124
125
|
tagline: z3.string(),
|
|
126
|
+
description: z3.string(),
|
|
125
127
|
iconUrl: z3.string().nullable(),
|
|
126
128
|
owned: z3.boolean(),
|
|
127
129
|
partial: z3.boolean(),
|
|
@@ -576,11 +578,15 @@ function utmToObject(utm) {
|
|
|
576
578
|
|
|
577
579
|
// src/storefront/endpoints.ts
|
|
578
580
|
var StorefrontEndpoints = class {
|
|
579
|
-
constructor(api) {
|
|
581
|
+
constructor(api, configuration) {
|
|
580
582
|
this.api = api;
|
|
583
|
+
this.configuration = configuration;
|
|
581
584
|
}
|
|
582
585
|
async get(utm) {
|
|
583
|
-
const query = new URLSearchParams(
|
|
586
|
+
const query = new URLSearchParams(this.configuration.includeManifests ? {
|
|
587
|
+
includeManifests: "true",
|
|
588
|
+
...utmToObject(utm)
|
|
589
|
+
} : utmToObject(utm));
|
|
584
590
|
const response = await this.api.fetch(`/api/customer/storefront?${query.toString()}`, storefrontSchema);
|
|
585
591
|
return response.data;
|
|
586
592
|
}
|
|
@@ -930,7 +936,7 @@ var MoonbaseClient = class {
|
|
|
930
936
|
this.configuration.endpoint = this.configuration.endpoint.replace(/\/$/, "");
|
|
931
937
|
this.tokenStore = new TokenStore(configuration);
|
|
932
938
|
const api = new MoonbaseApi(this.configuration.endpoint, this.tokenStore);
|
|
933
|
-
this.storefront = new StorefrontEndpoints(api);
|
|
939
|
+
this.storefront = new StorefrontEndpoints(api, this.configuration);
|
|
934
940
|
this.identity = new IdentityEndpoints(api, this.tokenStore);
|
|
935
941
|
this.vouchers = new VoucherEndpoints(api);
|
|
936
942
|
this.orders = new OrderEndpoints(api);
|
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.86",
|
|
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",
|