@01.software/sdk 0.51.0 → 0.56.1
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 +127 -0
- package/README.md +54 -11
- package/dist/client.cjs +420 -53
- 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 +420 -53
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-hYvVfHIm.d.ts → collection-client-Bmr53saa.d.ts} +4 -4
- package/dist/{collection-client-CWAeuzV4.d.cts → collection-client-DxuBDso_.d.cts} +4 -4
- package/dist/{const-D8LixhAJ.d.cts → const-BKUqg96Q.d.ts} +2 -2
- package/dist/{const-JD8obaKg.d.ts → const-Cv1DCsp6.d.cts} +2 -2
- package/dist/{index-Bu0kCc6o.d.cts → index-CGsT4AQ8.d.cts} +24 -7
- package/dist/{index-B0Hjh3Ey.d.ts → index-DFHLLqYu.d.ts} +24 -7
- package/dist/index.cjs +434 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.js +434 -55
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BOsckg8B.d.cts → payload-types-Bk-duc5k.d.cts} +295 -100
- package/dist/{payload-types-BOsckg8B.d.ts → payload-types-Bk-duc5k.d.ts} +295 -100
- package/dist/query.cjs +14 -1
- 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 +14 -1
- 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 +98 -13
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.js +98 -13
- package/dist/server.js.map +1 -1
- package/dist/{types-Bj8j7VHU.d.ts → types-CEK8uTvU.d.ts} +212 -11
- package/dist/{types-B14sEt1z.d.cts → types-CNdpj2fI.d.cts} +2 -2
- package/dist/{types-5ZlcAFuU.d.ts → types-D4mjGFj4.d.ts} +2 -2
- package/dist/{types-CM5qiR2k.d.cts → types-Dhk5NX7Z.d.cts} +212 -11
- 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.cjs +13 -2
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/dist/webhook.js +13 -2
- package/dist/webhook.js.map +1 -1
- package/package.json +6 -5
package/dist/query.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { QueryClient, UseQueryResult, UseSuspenseQueryResult, InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import { i as ApiQueryOptions, P as PayloadFindResponse,
|
|
4
|
-
import './payload-types-
|
|
5
|
-
import { S as ServerCollection, P as PublicCollection } from './const-
|
|
6
|
-
import { C as CollectionClient } from './collection-client-
|
|
7
|
-
import { C as CollectionType } from './types-
|
|
3
|
+
import { i as ApiQueryOptions, P as PayloadFindResponse, cg as PublicReadQueryOptions, L as PayloadMutationResponse, ch as CustomerAuth, ci as CustomerProfile, cj as CustomerAuthResponse, ck as CustomerLoginData, cl as CustomerRegisterResponse, cm as CustomerRegisterData, cn as CustomerRefreshResponse, co as UpdateProfileData, cp as ProductListingPageParams, cq as ProductListingPageBaseParams, cr as ProductDetailParams, cs as ProductDetailCatalogResult, ct as ProductListingPageCatalogParams, cu as ProductListingPageResult, cv as ProductListingGroupsCatalogItem, cw as ProductListingPageFullParams, cx as ProductListingGroupsItem, al as RootClient, bX as RootServerClient } from './types-Dhk5NX7Z.cjs';
|
|
4
|
+
import './payload-types-Bk-duc5k.cjs';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-Cv1DCsp6.cjs';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-DxuBDso_.cjs';
|
|
7
|
+
import { C as CollectionType } from './types-CNdpj2fI.cjs';
|
|
8
8
|
import { SDKError } from './errors.cjs';
|
|
9
9
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
10
10
|
import './metadata.cjs';
|
package/dist/query.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { QueryClient, UseQueryResult, UseSuspenseQueryResult, InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import { i as ApiQueryOptions, P as PayloadFindResponse,
|
|
4
|
-
import './payload-types-
|
|
5
|
-
import { S as ServerCollection, P as PublicCollection } from './const-
|
|
6
|
-
import { C as CollectionClient } from './collection-client-
|
|
7
|
-
import { C as CollectionType } from './types-
|
|
3
|
+
import { i as ApiQueryOptions, P as PayloadFindResponse, cg as PublicReadQueryOptions, L as PayloadMutationResponse, ch as CustomerAuth, ci as CustomerProfile, cj as CustomerAuthResponse, ck as CustomerLoginData, cl as CustomerRegisterResponse, cm as CustomerRegisterData, cn as CustomerRefreshResponse, co as UpdateProfileData, cp as ProductListingPageParams, cq as ProductListingPageBaseParams, cr as ProductDetailParams, cs as ProductDetailCatalogResult, ct as ProductListingPageCatalogParams, cu as ProductListingPageResult, cv as ProductListingGroupsCatalogItem, cw as ProductListingPageFullParams, cx as ProductListingGroupsItem, al as RootClient, bX as RootServerClient } from './types-CEK8uTvU.js';
|
|
4
|
+
import './payload-types-Bk-duc5k.js';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-BKUqg96Q.js';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-Bmr53saa.js';
|
|
7
|
+
import { C as CollectionType } from './types-D4mjGFj4.js';
|
|
8
8
|
import { SDKError } from './errors.js';
|
|
9
9
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
10
10
|
import './metadata.js';
|
package/dist/query.js
CHANGED
|
@@ -861,6 +861,11 @@ var COMMERCE_ENDPOINT_OPERATIONS = {
|
|
|
861
861
|
detail: strictCommerceOperation("checkouts", "post", "/detail"),
|
|
862
862
|
query: strictCommerceOperation("checkouts", "post", "/query")
|
|
863
863
|
},
|
|
864
|
+
draftOrders: {
|
|
865
|
+
calculate: operation("draft-orders", "post", "/:id/calculate"),
|
|
866
|
+
complete: operation("draft-orders", "post", "/:id/complete"),
|
|
867
|
+
finalize: operation("draft-orders", "post", "/:id/finalize")
|
|
868
|
+
},
|
|
864
869
|
transactions: {
|
|
865
870
|
update: operation("transactions", "post", "/update")
|
|
866
871
|
},
|
|
@@ -961,7 +966,15 @@ var portOneStandardActionCapabilityOperations = /* @__PURE__ */ new Set([
|
|
|
961
966
|
var MEMBERSHIP_ENDPOINT_OPERATIONS = {
|
|
962
967
|
subscribe: operation(null, "post", "/memberships/subscribe"),
|
|
963
968
|
cancel: operation(null, "post", "/memberships/:id/cancel"),
|
|
964
|
-
me: operation(null, "get", "/memberships/me")
|
|
969
|
+
me: operation(null, "get", "/memberships/me"),
|
|
970
|
+
chargeResult: operation(null, "post", "/memberships/:id/charge-result"),
|
|
971
|
+
refundResult: operation(null, "post", "/memberships/:id/refund-result"),
|
|
972
|
+
revoke: operation(null, "post", "/memberships/:id/revoke")
|
|
973
|
+
};
|
|
974
|
+
var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
|
|
975
|
+
members: operation("customer-groups", "get", "/:id/members"),
|
|
976
|
+
grant: operation("customer-groups", "post", "/:id/members/grant"),
|
|
977
|
+
revoke: operation("customer-groups", "post", "/:id/members/revoke")
|
|
965
978
|
};
|
|
966
979
|
var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
|
|
967
980
|
show: operation("tenants", "get", "/embedded-admin-app"),
|