@01.software/sdk 0.56.1 → 0.65.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 +186 -0
- package/README.md +174 -91
- package/dist/client.cjs +136 -7
- 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 +136 -7
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-DxuBDso_.d.cts → collection-client-B7rsTtVj.d.cts} +6 -6
- package/dist/{collection-client-Bmr53saa.d.ts → collection-client-C2sMvfme.d.ts} +6 -6
- package/dist/{const-Cv1DCsp6.d.cts → const-CRxPTDGt.d.ts} +2 -2
- package/dist/{const-BKUqg96Q.d.ts → const-D6ZRQLxI.d.cts} +2 -2
- package/dist/{index-DFHLLqYu.d.ts → index-1auUEYrl.d.ts} +3 -3
- package/dist/{index-CGsT4AQ8.d.cts → index-Bbpf5t-l.d.cts} +3 -3
- package/dist/index.cjs +139 -205
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +139 -205
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-Bk-duc5k.d.cts → payload-types-BnIET0xU.d.cts} +262 -328
- package/dist/{payload-types-Bk-duc5k.d.ts → payload-types-BnIET0xU.d.ts} +262 -328
- package/dist/query.cjs +48 -2
- 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 +48 -2
- 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 +459 -7
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +13 -8
- package/dist/server.d.ts +13 -8
- package/dist/server.js +459 -7
- package/dist/server.js.map +1 -1
- package/dist/{types-D4mjGFj4.d.ts → types-D1y4TgQm.d.ts} +2 -2
- package/dist/{types-CEK8uTvU.d.ts → types-DnRC3nLG.d.ts} +256 -9
- package/dist/{types-CNdpj2fI.d.cts → types-Dp1oYpD3.d.cts} +2 -2
- package/dist/{types-Dhk5NX7Z.d.cts → types-Dzn0LD2N.d.cts} +256 -9
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.cjs +4 -2
- package/dist/ui/video.cjs.map +1 -1
- package/dist/ui/video.d.cts +4 -2
- package/dist/ui/video.d.ts +4 -2
- package/dist/ui/video.js +4 -2
- package/dist/ui/video.js.map +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/package.json +8 -28
- package/dist/analytics/react.cjs +0 -344
- package/dist/analytics/react.cjs.map +0 -1
- package/dist/analytics/react.d.cts +0 -24
- package/dist/analytics/react.d.ts +0 -24
- package/dist/analytics/react.js +0 -319
- package/dist/analytics/react.js.map +0 -1
- package/dist/analytics.cjs +0 -238
- package/dist/analytics.cjs.map +0 -1
- package/dist/analytics.d.cts +0 -39
- package/dist/analytics.d.ts +0 -39
- package/dist/analytics.js +0 -215
- package/dist/analytics.js.map +0 -1
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, cN as PublicReadQueryOptions, L as PayloadMutationResponse, cO as CustomerAuth, cP as CustomerProfile, cQ as CustomerAuthResponse, cR as CustomerLoginData, cS as CustomerRegisterResponse, cT as CustomerRegisterData, cU as CustomerRefreshResponse, cV as UpdateProfileData, cW as ProductListingPageParams, cX as ProductListingPageBaseParams, cY as ProductDetailParams, cZ as ProductDetailCatalogResult, c_ as ProductListingPageCatalogParams, c$ as ProductListingPageResult, d0 as ProductListingGroupsCatalogItem, d1 as ProductListingPageFullParams, d2 as ProductListingGroupsItem, al as RootClient, cp as RootServerClient } from './types-Dzn0LD2N.cjs';
|
|
4
|
+
import './payload-types-BnIET0xU.cjs';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-D6ZRQLxI.cjs';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-B7rsTtVj.cjs';
|
|
7
|
+
import { C as CollectionType } from './types-Dp1oYpD3.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, cN as PublicReadQueryOptions, L as PayloadMutationResponse, cO as CustomerAuth, cP as CustomerProfile, cQ as CustomerAuthResponse, cR as CustomerLoginData, cS as CustomerRegisterResponse, cT as CustomerRegisterData, cU as CustomerRefreshResponse, cV as UpdateProfileData, cW as ProductListingPageParams, cX as ProductListingPageBaseParams, cY as ProductDetailParams, cZ as ProductDetailCatalogResult, c_ as ProductListingPageCatalogParams, c$ as ProductListingPageResult, d0 as ProductListingGroupsCatalogItem, d1 as ProductListingPageFullParams, d2 as ProductListingGroupsItem, al as RootClient, cp as RootServerClient } from './types-DnRC3nLG.js';
|
|
4
|
+
import './payload-types-BnIET0xU.js';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-CRxPTDGt.js';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-C2sMvfme.js';
|
|
7
|
+
import { C as CollectionType } from './types-D1y4TgQm.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
|
@@ -703,10 +703,13 @@ var CustomerHooks = class {
|
|
|
703
703
|
useCustomerLogout(options) {
|
|
704
704
|
return useMutationOriginal2({
|
|
705
705
|
mutationFn: async () => {
|
|
706
|
-
|
|
706
|
+
try {
|
|
707
|
+
await this.ensureCustomerAuth().logoutAsync();
|
|
708
|
+
} finally {
|
|
709
|
+
this.queryClient.removeQueries({ queryKey: customerKeys.all });
|
|
710
|
+
}
|
|
707
711
|
},
|
|
708
712
|
onSuccess: () => {
|
|
709
|
-
this.queryClient.removeQueries({ queryKey: customerKeys.all });
|
|
710
713
|
options?.onSuccess?.();
|
|
711
714
|
},
|
|
712
715
|
onError: options?.onError,
|
|
@@ -965,17 +968,52 @@ var portOneStandardActionCapabilityOperations = /* @__PURE__ */ new Set([
|
|
|
965
968
|
]);
|
|
966
969
|
var MEMBERSHIP_ENDPOINT_OPERATIONS = {
|
|
967
970
|
subscribe: operation(null, "post", "/memberships/subscribe"),
|
|
971
|
+
billingCustody: operation(null, "post", "/memberships/billing-custody"),
|
|
968
972
|
cancel: operation(null, "post", "/memberships/:id/cancel"),
|
|
969
973
|
me: operation(null, "get", "/memberships/me"),
|
|
970
974
|
chargeResult: operation(null, "post", "/memberships/:id/charge-result"),
|
|
971
975
|
refundResult: operation(null, "post", "/memberships/:id/refund-result"),
|
|
972
976
|
revoke: operation(null, "post", "/memberships/:id/revoke")
|
|
973
977
|
};
|
|
978
|
+
var EXTERNAL_EFFECT_CLAIM_ENDPOINT_OPERATIONS = {
|
|
979
|
+
claim: operation(null, "post", "/external-effect-claims/claim"),
|
|
980
|
+
get: operation(null, "post", "/external-effect-claims/get"),
|
|
981
|
+
arm: operation(null, "post", "/external-effect-claims/arm"),
|
|
982
|
+
release: operation(null, "post", "/external-effect-claims/release"),
|
|
983
|
+
report: operation(null, "post", "/external-effect-claims/report"),
|
|
984
|
+
recovery: operation(null, "post", "/external-effect-claims/recovery")
|
|
985
|
+
};
|
|
986
|
+
var INSTALLATION_CREDENTIAL_ENDPOINT_OPERATIONS = {
|
|
987
|
+
create: operation(null, "post", "/installation-credentials/create"),
|
|
988
|
+
get: operation(null, "post", "/installation-credentials/get"),
|
|
989
|
+
replace: operation(null, "post", "/installation-credentials/replace"),
|
|
990
|
+
dispose: operation(null, "post", "/installation-credentials/dispose")
|
|
991
|
+
};
|
|
992
|
+
var EXTERNAL_CUSTOMER_LINK_ENDPOINT_OPERATIONS = {
|
|
993
|
+
connect: operation("customers", "post", "/external-links/connect"),
|
|
994
|
+
get: operation("customers", "post", "/external-links/get"),
|
|
995
|
+
list: operation("customers", "post", "/external-links/list"),
|
|
996
|
+
unlink: operation("customers", "post", "/external-links/unlink"),
|
|
997
|
+
capturePreviousState: operation(
|
|
998
|
+
"customers",
|
|
999
|
+
"post",
|
|
1000
|
+
"/external-links/capture-previous-state"
|
|
1001
|
+
),
|
|
1002
|
+
clearPreviousState: operation(
|
|
1003
|
+
"customers",
|
|
1004
|
+
"post",
|
|
1005
|
+
"/external-links/clear-previous-state"
|
|
1006
|
+
)
|
|
1007
|
+
};
|
|
974
1008
|
var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
|
|
975
1009
|
members: operation("customer-groups", "get", "/:id/members"),
|
|
976
1010
|
grant: operation("customer-groups", "post", "/:id/members/grant"),
|
|
977
1011
|
revoke: operation("customer-groups", "post", "/:id/members/revoke")
|
|
978
1012
|
};
|
|
1013
|
+
var CUSTOMER_AUTH_ENDPOINT_OPERATIONS = {
|
|
1014
|
+
revokeRefresh: operation("customers", "post", "/revoke-refresh"),
|
|
1015
|
+
withdraw: operation("customers", "post", "/withdraw")
|
|
1016
|
+
};
|
|
979
1017
|
var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
|
|
980
1018
|
show: operation("tenants", "get", "/embedded-admin-app"),
|
|
981
1019
|
configure: operation("tenants", "patch", "/embedded-admin-app"),
|
|
@@ -999,6 +1037,14 @@ var COMMUNITY_ENDPOINT_OPERATIONS = {
|
|
|
999
1037
|
detail: operation("posts", "get", "/detail")
|
|
1000
1038
|
}
|
|
1001
1039
|
};
|
|
1040
|
+
var GALLERY_ENDPOINT_OPERATIONS = {
|
|
1041
|
+
items: {
|
|
1042
|
+
storefront: operation("gallery-items", "get", "/storefront")
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
var VIDEO_ENDPOINT_OPERATIONS = {
|
|
1046
|
+
playback: operation("videos", "post", "/:id/playback")
|
|
1047
|
+
};
|
|
1002
1048
|
function resolveOperationTemplate(descriptor) {
|
|
1003
1049
|
return descriptor.collection ? `/api/${descriptor.collection}${descriptor.path}` : `/api${descriptor.path}`;
|
|
1004
1050
|
}
|