@01.software/sdk 0.73.1 → 0.74.0
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/CHANGELOG.md +39 -0
- package/README.md +30 -3
- package/dist/client.cjs +12 -9
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +12 -9
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-BH4dIZ6c.d.cts → collection-client-Bb1Wa6T6.d.cts} +4 -4
- package/dist/{collection-client-lLAl3xCZ.d.ts → collection-client-DBrLM9RR.d.ts} +4 -4
- package/dist/{const-CCvoknRY.d.ts → const-CkY2zB6J.d.ts} +1 -1
- package/dist/{const-BS2EaIp4.d.cts → const-DWTSgCkn.d.cts} +1 -1
- package/dist/{index-DVqNpmsc.d.ts → index-Daoh-98A.d.ts} +3 -3
- package/dist/{index-CHdrzJ8-.d.cts → index-Di5AybQN.d.cts} +3 -3
- package/dist/index.cjs +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-PXkmefhZ.d.cts → payload-types-zukuL1s_.d.cts} +345 -1755
- package/dist/{payload-types-PXkmefhZ.d.ts → payload-types-zukuL1s_.d.ts} +345 -1755
- package/dist/query.cjs +4 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +4 -0
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +12 -9
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +12 -9
- package/dist/server.js.map +1 -1
- package/dist/{types-CyMz0Kzc.d.cts → types-BI7aowdu.d.cts} +4 -4
- package/dist/{types-lbzbJSZh.d.ts → types-BsJokT6P.d.ts} +59 -16
- package/dist/{types-CQRsG6sA.d.ts → types-SsS04wGw.d.ts} +4 -4
- package/dist/{types-Chwgg4CQ.d.cts → types-evAvqRBj.d.cts} +59 -16
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/package.json +1 -1
package/dist/realtime.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RealtimeEvent } from './realtime-D7HtUpqt.cjs';
|
|
2
2
|
export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
3
|
-
import { P as PublicCollection } from './const-
|
|
4
|
-
import './payload-types-
|
|
3
|
+
import { P as PublicCollection } from './const-DWTSgCkn.cjs';
|
|
4
|
+
import './payload-types-zukuL1s_.cjs';
|
|
5
5
|
|
|
6
6
|
interface UseRealtimeQueryOptions {
|
|
7
7
|
/** Filter events to specific collections. Empty/undefined = all collections. */
|
package/dist/realtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RealtimeEvent } from './realtime-D7HtUpqt.js';
|
|
2
2
|
export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
3
|
-
import { P as PublicCollection } from './const-
|
|
4
|
-
import './payload-types-
|
|
3
|
+
import { P as PublicCollection } from './const-CkY2zB6J.js';
|
|
4
|
+
import './payload-types-zukuL1s_.js';
|
|
5
5
|
|
|
6
6
|
interface UseRealtimeQueryOptions {
|
|
7
7
|
/** Filter events to specific collections. Empty/undefined = all collections. */
|
package/dist/server.cjs
CHANGED
|
@@ -1401,6 +1401,10 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
|
|
|
1401
1401
|
configure: operation("tenants", "patch", "/embedded-admin-app"),
|
|
1402
1402
|
disable: operation("tenants", "delete", "/embedded-admin-app")
|
|
1403
1403
|
};
|
|
1404
|
+
var FIELD_CONFIG_ENDPOINT_OPERATIONS = {
|
|
1405
|
+
list: operation("field-configs", "get", "/list"),
|
|
1406
|
+
save: operation("field-configs", "post", "/save")
|
|
1407
|
+
};
|
|
1404
1408
|
var EVENTS_ENDPOINT_OPERATIONS = {
|
|
1405
1409
|
registrations: {
|
|
1406
1410
|
register: operation("event-registrations", "post", "/register"),
|
|
@@ -5578,10 +5582,13 @@ function buildProductHref(product, group, options = {}) {
|
|
|
5578
5582
|
return params.size > 0 ? `${path}?${params.toString()}` : path;
|
|
5579
5583
|
}
|
|
5580
5584
|
function compareVariantOrder(a, b) {
|
|
5581
|
-
const aOrder =
|
|
5582
|
-
const bOrder =
|
|
5583
|
-
if (
|
|
5584
|
-
|
|
5585
|
+
const aOrder = a._order || null;
|
|
5586
|
+
const bOrder = b._order || null;
|
|
5587
|
+
if (aOrder !== bOrder) {
|
|
5588
|
+
if (aOrder === null) return 1;
|
|
5589
|
+
if (bOrder === null) return -1;
|
|
5590
|
+
const byOrder = compareOrdinal(aOrder, bOrder);
|
|
5591
|
+
if (byOrder !== 0) return byOrder;
|
|
5585
5592
|
}
|
|
5586
5593
|
const aId = String(getRelationID(a.id) ?? "");
|
|
5587
5594
|
const bId = String(getRelationID(b.id) ?? "");
|
|
@@ -5832,11 +5839,7 @@ function buildProductListingPageWhere(params) {
|
|
|
5832
5839
|
const search = params.search?.trim();
|
|
5833
5840
|
if (search) {
|
|
5834
5841
|
clauses.push({
|
|
5835
|
-
or: [
|
|
5836
|
-
{ title: { like: search } },
|
|
5837
|
-
{ slug: { like: search } },
|
|
5838
|
-
{ handle: { like: search } }
|
|
5839
|
-
]
|
|
5842
|
+
or: [{ title: { like: search } }, { slug: { like: search } }]
|
|
5840
5843
|
});
|
|
5841
5844
|
}
|
|
5842
5845
|
const filters = params.filters;
|