@01.software/sdk 0.22.0 → 0.23.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/dist/server.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { ab as ClientServerConfig, aK as CollectionClient, n as CommunityClient, aQ as ModerationApi, a9 as ServerClient, aM as ServerCommerceClient, a8 as createServerClient } from './server-BcQr-nGn.cjs';
2
- import './payload-types-DeLBmtzd.cjs';
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-D7iFEsPc.cjs';
7
- import './const-DraU44bA.cjs';
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, aK as CollectionClient, n as CommunityClient, aQ as ModerationApi, a9 as ServerClient, aM as ServerCommerceClient, a8 as createServerClient } from './server-BARh_6zH.js';
2
- import './payload-types-DeLBmtzd.js';
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-KkuKwsli.js';
7
- import './const-CfcjPbOu.js';
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 CollectionClient(
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
  };