@moonbase.sh/api 0.3.8 → 0.3.10
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 +5 -1
- package/dist/index.d.cts +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -517,10 +517,14 @@ var subscriptionLineItemFulfillmentSchema = import_zod8.z.object({
|
|
|
517
517
|
bundleLineItemFulfillmentSchema
|
|
518
518
|
])
|
|
519
519
|
});
|
|
520
|
+
var noLineItemFulfillmentSchema = import_zod8.z.object({
|
|
521
|
+
type: import_zod8.z.literal("NoFulfillment")
|
|
522
|
+
});
|
|
520
523
|
var lineItemFulfillmentSchema = import_zod8.z.discriminatedUnion("type", [
|
|
521
524
|
licenseLineItemFulfillmentSchema,
|
|
522
525
|
bundleLineItemFulfillmentSchema,
|
|
523
|
-
subscriptionLineItemFulfillmentSchema
|
|
526
|
+
subscriptionLineItemFulfillmentSchema,
|
|
527
|
+
noLineItemFulfillmentSchema
|
|
524
528
|
]);
|
|
525
529
|
var lineItemTotalSchema = import_zod8.z.object({
|
|
526
530
|
original: moneySchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -1879,6 +1879,12 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1879
1879
|
licenseIds: string[];
|
|
1880
1880
|
}>;
|
|
1881
1881
|
};
|
|
1882
|
+
}>, z.ZodObject<{
|
|
1883
|
+
type: z.ZodLiteral<"NoFulfillment">;
|
|
1884
|
+
}, "strip", z.ZodTypeAny, {
|
|
1885
|
+
type: "NoFulfillment";
|
|
1886
|
+
}, {
|
|
1887
|
+
type: "NoFulfillment";
|
|
1882
1888
|
}>]>>;
|
|
1883
1889
|
}, "strip", z.ZodTypeAny, {
|
|
1884
1890
|
type: "Product";
|
|
@@ -1971,6 +1977,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1971
1977
|
licenseIds: string[];
|
|
1972
1978
|
}>;
|
|
1973
1979
|
};
|
|
1980
|
+
} | {
|
|
1981
|
+
type: "NoFulfillment";
|
|
1974
1982
|
} | undefined;
|
|
1975
1983
|
}, {
|
|
1976
1984
|
type: "Product";
|
|
@@ -2063,6 +2071,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2063
2071
|
licenseIds: string[];
|
|
2064
2072
|
}>;
|
|
2065
2073
|
};
|
|
2074
|
+
} | {
|
|
2075
|
+
type: "NoFulfillment";
|
|
2066
2076
|
} | undefined;
|
|
2067
2077
|
}>, z.ZodObject<{
|
|
2068
2078
|
type: z.ZodLiteral<"Bundle">;
|
|
@@ -2411,6 +2421,12 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2411
2421
|
licenseIds: string[];
|
|
2412
2422
|
}>;
|
|
2413
2423
|
};
|
|
2424
|
+
}>, z.ZodObject<{
|
|
2425
|
+
type: z.ZodLiteral<"NoFulfillment">;
|
|
2426
|
+
}, "strip", z.ZodTypeAny, {
|
|
2427
|
+
type: "NoFulfillment";
|
|
2428
|
+
}, {
|
|
2429
|
+
type: "NoFulfillment";
|
|
2414
2430
|
}>]>>;
|
|
2415
2431
|
}, "strip", z.ZodTypeAny, {
|
|
2416
2432
|
type: "Bundle";
|
|
@@ -2503,6 +2519,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2503
2519
|
licenseIds: string[];
|
|
2504
2520
|
}>;
|
|
2505
2521
|
};
|
|
2522
|
+
} | {
|
|
2523
|
+
type: "NoFulfillment";
|
|
2506
2524
|
} | undefined;
|
|
2507
2525
|
}, {
|
|
2508
2526
|
type: "Bundle";
|
|
@@ -2595,6 +2613,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2595
2613
|
licenseIds: string[];
|
|
2596
2614
|
}>;
|
|
2597
2615
|
};
|
|
2616
|
+
} | {
|
|
2617
|
+
type: "NoFulfillment";
|
|
2598
2618
|
} | undefined;
|
|
2599
2619
|
}>]>, "many">;
|
|
2600
2620
|
lastUpdated: z.ZodObject<{
|
|
@@ -2752,6 +2772,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2752
2772
|
licenseIds: string[];
|
|
2753
2773
|
}>;
|
|
2754
2774
|
};
|
|
2775
|
+
} | {
|
|
2776
|
+
type: "NoFulfillment";
|
|
2755
2777
|
} | undefined;
|
|
2756
2778
|
} | {
|
|
2757
2779
|
type: "Bundle";
|
|
@@ -2844,6 +2866,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2844
2866
|
licenseIds: string[];
|
|
2845
2867
|
}>;
|
|
2846
2868
|
};
|
|
2869
|
+
} | {
|
|
2870
|
+
type: "NoFulfillment";
|
|
2847
2871
|
} | undefined;
|
|
2848
2872
|
})[];
|
|
2849
2873
|
isRefunded: boolean;
|
|
@@ -3049,6 +3073,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
3049
3073
|
licenseIds: string[];
|
|
3050
3074
|
}>;
|
|
3051
3075
|
};
|
|
3076
|
+
} | {
|
|
3077
|
+
type: "NoFulfillment";
|
|
3052
3078
|
} | undefined;
|
|
3053
3079
|
} | {
|
|
3054
3080
|
type: "Bundle";
|
|
@@ -3141,6 +3167,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
3141
3167
|
licenseIds: string[];
|
|
3142
3168
|
}>;
|
|
3143
3169
|
};
|
|
3170
|
+
} | {
|
|
3171
|
+
type: "NoFulfillment";
|
|
3144
3172
|
} | undefined;
|
|
3145
3173
|
})[];
|
|
3146
3174
|
isRefunded: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1879,6 +1879,12 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1879
1879
|
licenseIds: string[];
|
|
1880
1880
|
}>;
|
|
1881
1881
|
};
|
|
1882
|
+
}>, z.ZodObject<{
|
|
1883
|
+
type: z.ZodLiteral<"NoFulfillment">;
|
|
1884
|
+
}, "strip", z.ZodTypeAny, {
|
|
1885
|
+
type: "NoFulfillment";
|
|
1886
|
+
}, {
|
|
1887
|
+
type: "NoFulfillment";
|
|
1882
1888
|
}>]>>;
|
|
1883
1889
|
}, "strip", z.ZodTypeAny, {
|
|
1884
1890
|
type: "Product";
|
|
@@ -1971,6 +1977,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1971
1977
|
licenseIds: string[];
|
|
1972
1978
|
}>;
|
|
1973
1979
|
};
|
|
1980
|
+
} | {
|
|
1981
|
+
type: "NoFulfillment";
|
|
1974
1982
|
} | undefined;
|
|
1975
1983
|
}, {
|
|
1976
1984
|
type: "Product";
|
|
@@ -2063,6 +2071,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2063
2071
|
licenseIds: string[];
|
|
2064
2072
|
}>;
|
|
2065
2073
|
};
|
|
2074
|
+
} | {
|
|
2075
|
+
type: "NoFulfillment";
|
|
2066
2076
|
} | undefined;
|
|
2067
2077
|
}>, z.ZodObject<{
|
|
2068
2078
|
type: z.ZodLiteral<"Bundle">;
|
|
@@ -2411,6 +2421,12 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2411
2421
|
licenseIds: string[];
|
|
2412
2422
|
}>;
|
|
2413
2423
|
};
|
|
2424
|
+
}>, z.ZodObject<{
|
|
2425
|
+
type: z.ZodLiteral<"NoFulfillment">;
|
|
2426
|
+
}, "strip", z.ZodTypeAny, {
|
|
2427
|
+
type: "NoFulfillment";
|
|
2428
|
+
}, {
|
|
2429
|
+
type: "NoFulfillment";
|
|
2414
2430
|
}>]>>;
|
|
2415
2431
|
}, "strip", z.ZodTypeAny, {
|
|
2416
2432
|
type: "Bundle";
|
|
@@ -2503,6 +2519,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2503
2519
|
licenseIds: string[];
|
|
2504
2520
|
}>;
|
|
2505
2521
|
};
|
|
2522
|
+
} | {
|
|
2523
|
+
type: "NoFulfillment";
|
|
2506
2524
|
} | undefined;
|
|
2507
2525
|
}, {
|
|
2508
2526
|
type: "Bundle";
|
|
@@ -2595,6 +2613,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2595
2613
|
licenseIds: string[];
|
|
2596
2614
|
}>;
|
|
2597
2615
|
};
|
|
2616
|
+
} | {
|
|
2617
|
+
type: "NoFulfillment";
|
|
2598
2618
|
} | undefined;
|
|
2599
2619
|
}>]>, "many">;
|
|
2600
2620
|
lastUpdated: z.ZodObject<{
|
|
@@ -2752,6 +2772,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2752
2772
|
licenseIds: string[];
|
|
2753
2773
|
}>;
|
|
2754
2774
|
};
|
|
2775
|
+
} | {
|
|
2776
|
+
type: "NoFulfillment";
|
|
2755
2777
|
} | undefined;
|
|
2756
2778
|
} | {
|
|
2757
2779
|
type: "Bundle";
|
|
@@ -2844,6 +2866,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
2844
2866
|
licenseIds: string[];
|
|
2845
2867
|
}>;
|
|
2846
2868
|
};
|
|
2869
|
+
} | {
|
|
2870
|
+
type: "NoFulfillment";
|
|
2847
2871
|
} | undefined;
|
|
2848
2872
|
})[];
|
|
2849
2873
|
isRefunded: boolean;
|
|
@@ -3049,6 +3073,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
3049
3073
|
licenseIds: string[];
|
|
3050
3074
|
}>;
|
|
3051
3075
|
};
|
|
3076
|
+
} | {
|
|
3077
|
+
type: "NoFulfillment";
|
|
3052
3078
|
} | undefined;
|
|
3053
3079
|
} | {
|
|
3054
3080
|
type: "Bundle";
|
|
@@ -3141,6 +3167,8 @@ declare const orderSchema: z.ZodObject<{
|
|
|
3141
3167
|
licenseIds: string[];
|
|
3142
3168
|
}>;
|
|
3143
3169
|
};
|
|
3170
|
+
} | {
|
|
3171
|
+
type: "NoFulfillment";
|
|
3144
3172
|
} | undefined;
|
|
3145
3173
|
})[];
|
|
3146
3174
|
isRefunded: boolean;
|
package/dist/index.js
CHANGED
|
@@ -469,10 +469,14 @@ var subscriptionLineItemFulfillmentSchema = z8.object({
|
|
|
469
469
|
bundleLineItemFulfillmentSchema
|
|
470
470
|
])
|
|
471
471
|
});
|
|
472
|
+
var noLineItemFulfillmentSchema = z8.object({
|
|
473
|
+
type: z8.literal("NoFulfillment")
|
|
474
|
+
});
|
|
472
475
|
var lineItemFulfillmentSchema = z8.discriminatedUnion("type", [
|
|
473
476
|
licenseLineItemFulfillmentSchema,
|
|
474
477
|
bundleLineItemFulfillmentSchema,
|
|
475
|
-
subscriptionLineItemFulfillmentSchema
|
|
478
|
+
subscriptionLineItemFulfillmentSchema,
|
|
479
|
+
noLineItemFulfillmentSchema
|
|
476
480
|
]);
|
|
477
481
|
var lineItemTotalSchema = z8.object({
|
|
478
482
|
original: moneySchema,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.10",
|
|
5
5
|
"description": "Package to let you integrate backends with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|