@01.software/sdk 0.22.0 → 0.24.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/README.md +101 -71
- package/dist/analytics.cjs.map +1 -1
- package/dist/analytics.js.map +1 -1
- package/dist/const-CMdmNgEs.d.ts +34 -0
- package/dist/const-Cgd4op4V.d.cts +34 -0
- package/dist/index.cjs +50 -8
- 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 +50 -8
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DeLBmtzd.d.cts → payload-types-D8-G1PiT.d.cts} +129 -8
- package/dist/{payload-types-DeLBmtzd.d.ts → payload-types-D8-G1PiT.d.ts} +129 -8
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/realtime.js.map +1 -1
- package/dist/{server-BARh_6zH.d.ts → server-D7FcHj7J.d.ts} +35 -12
- package/dist/{server-BcQr-nGn.d.cts → server-DJcDyOmM.d.cts} +35 -12
- package/dist/server.cjs +9 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +9 -1
- package/dist/server.js.map +1 -1
- package/dist/{types-D7iFEsPc.d.cts → types-BQqfXbB2.d.ts} +18 -2
- package/dist/{types-KkuKwsli.d.ts → types-C_kwEIvY.d.cts} +18 -2
- package/dist/ui/code-block.cjs.map +1 -1
- package/dist/ui/code-block.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/rich-text.cjs +170 -10
- package/dist/ui/rich-text.cjs.map +1 -1
- package/dist/ui/rich-text.d.cts +22 -3
- package/dist/ui/rich-text.d.ts +22 -3
- package/dist/ui/rich-text.js +165 -5
- package/dist/ui/rich-text.js.map +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +5 -4
- package/dist/const-CfcjPbOu.d.ts +0 -24
- package/dist/const-DraU44bA.d.cts +0 -24
package/dist/server.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ab as ClientServerConfig,
|
|
2
|
-
import './payload-types-
|
|
1
|
+
export { ab as ClientServerConfig, aL as CollectionClient, n as CommunityClient, aS as ModerationApi, a9 as ServerClient, aM as ServerCollectionClient, aO as ServerCommerceClient, a8 as createServerClient } from './server-DJcDyOmM.cjs';
|
|
2
|
+
import './payload-types-D8-G1PiT.cjs';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'payload';
|
|
5
5
|
import 'next';
|
|
6
|
-
import './types-
|
|
7
|
-
import './const-
|
|
6
|
+
import './types-C_kwEIvY.cjs';
|
|
7
|
+
import './const-Cgd4op4V.cjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ab as ClientServerConfig,
|
|
2
|
-
import './payload-types-
|
|
1
|
+
export { ab as ClientServerConfig, aL as CollectionClient, n as CommunityClient, aS as ModerationApi, a9 as ServerClient, aM as ServerCollectionClient, aO as ServerCommerceClient, a8 as createServerClient } from './server-D7FcHj7J.js';
|
|
2
|
+
import './payload-types-D8-G1PiT.js';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'payload';
|
|
5
5
|
import 'next';
|
|
6
|
-
import './types-
|
|
7
|
-
import './const-
|
|
6
|
+
import './types-BQqfXbB2.js';
|
|
7
|
+
import './const-CMdmNgEs.js';
|
package/dist/server.js
CHANGED
|
@@ -194,6 +194,8 @@ var CollectionQueryBuilder = class {
|
|
|
194
194
|
);
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
+
var ServerCollectionQueryBuilder = class extends CollectionQueryBuilder {
|
|
198
|
+
};
|
|
197
199
|
|
|
198
200
|
// src/core/collection/http-client.ts
|
|
199
201
|
import { stringify } from "qs-esm";
|
|
@@ -970,6 +972,11 @@ var CollectionClient = class extends HttpClient {
|
|
|
970
972
|
return this.parseMutationResponse(response);
|
|
971
973
|
}
|
|
972
974
|
};
|
|
975
|
+
var ServerCollectionClient = class extends CollectionClient {
|
|
976
|
+
from(collection) {
|
|
977
|
+
return new ServerCollectionQueryBuilder(this, collection);
|
|
978
|
+
}
|
|
979
|
+
};
|
|
973
980
|
|
|
974
981
|
// src/core/api/parse-response.ts
|
|
975
982
|
async function parseApiResponse(response, endpoint) {
|
|
@@ -2012,7 +2019,7 @@ var ServerClient = class {
|
|
|
2012
2019
|
unbanCustomer: moderationApi.unbanCustomer.bind(moderationApi)
|
|
2013
2020
|
}
|
|
2014
2021
|
});
|
|
2015
|
-
this.collections = new
|
|
2022
|
+
this.collections = new ServerCollectionClient(
|
|
2016
2023
|
this.config.publishableKey,
|
|
2017
2024
|
this.config.secretKey,
|
|
2018
2025
|
void 0,
|
|
@@ -2038,6 +2045,7 @@ export {
|
|
|
2038
2045
|
CommunityClient,
|
|
2039
2046
|
ModerationApi,
|
|
2040
2047
|
ServerClient,
|
|
2048
|
+
ServerCollectionClient,
|
|
2041
2049
|
ServerCommerceClient,
|
|
2042
2050
|
createServerClient
|
|
2043
2051
|
};
|