@01.software/sdk 0.65.1 → 0.68.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 +81 -0
- package/README.md +201 -8
- package/dist/client.cjs +490 -338
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +11 -6
- package/dist/client.d.ts +11 -6
- package/dist/client.js +490 -338
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-C2sMvfme.d.ts → collection-client-IOaWsTMI.d.ts} +4 -4
- package/dist/{collection-client-B7rsTtVj.d.cts → collection-client-MbIJ5KzW.d.cts} +4 -4
- package/dist/{const-CRxPTDGt.d.ts → const-Do27Udj6.d.ts} +2 -2
- package/dist/{const-D6ZRQLxI.d.cts → const-Dw5ElJs_.d.cts} +2 -2
- package/dist/embedded-admin/server.cjs +16 -1
- package/dist/embedded-admin/server.cjs.map +1 -1
- package/dist/embedded-admin/server.d.cts +4 -2
- package/dist/embedded-admin/server.d.ts +4 -2
- package/dist/embedded-admin/server.js +16 -1
- package/dist/embedded-admin/server.js.map +1 -1
- package/dist/embedded-admin.cjs +19 -0
- package/dist/embedded-admin.cjs.map +1 -1
- package/dist/embedded-admin.d.cts +7 -1
- package/dist/embedded-admin.d.ts +7 -1
- package/dist/embedded-admin.js +19 -0
- package/dist/embedded-admin.js.map +1 -1
- package/dist/errors.d.cts +2 -2
- package/dist/errors.d.ts +2 -2
- package/dist/{index-1auUEYrl.d.ts → index-DcYsLOja.d.ts} +3 -3
- package/dist/{index-Bbpf5t-l.d.cts → index-gnVxTKXu.d.cts} +3 -3
- package/dist/index.cjs +521 -367
- 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 +521 -367
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BnIET0xU.d.cts → payload-types-BY1uZFRf.d.cts} +162 -50
- package/dist/{payload-types-BnIET0xU.d.ts → payload-types-BY1uZFRf.d.ts} +162 -50
- package/dist/query.cjs +22 -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 +22 -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 +1251 -1046
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +10 -9
- package/dist/server.d.ts +10 -9
- package/dist/server.js +1251 -1046
- package/dist/server.js.map +1 -1
- package/dist/{types-D1y4TgQm.d.ts → types-AWSVpuPE.d.ts} +2 -2
- package/dist/{types-DnRC3nLG.d.ts → types-CLRw0aDa.d.ts} +214 -42
- package/dist/{types-Dp1oYpD3.d.cts → types-DnIuxgu2.d.cts} +2 -2
- package/dist/{types-Dzn0LD2N.d.cts → types-csjaig4G.d.cts} +214 -42
- package/dist/ui/canvas.cjs +5 -1
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.js +5 -1
- package/dist/ui/canvas.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.cjs +9 -2
- package/dist/ui/video.cjs.map +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/ui/video.js +9 -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 +4 -4
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 {
|
|
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 { cN as ApiQueryOptions, cX as PayloadFindResponse, dd as PublicReadQueryOptions, cY as PayloadMutationResponse, de as CustomerAuth, df as CustomerProfile, dg as CustomerAuthResponse, dh as CustomerLoginData, di as CustomerRegisterResponse, dj as CustomerRegisterData, dk as CustomerRefreshResponse, dl as UpdateProfileData, dm as ProductListingPageParams, dn as ProductListingPageBaseParams, dp as ProductDetailParams, dq as ProductDetailCatalogResult, dr as ProductListingPageCatalogParams, ds as ProductListingPageResult, dt as ProductListingGroupsCatalogItem, du as ProductListingPageFullParams, dv as ProductListingGroupsItem, c$ as RootClient, c8 as RootServerClient } from './types-csjaig4G.cjs';
|
|
4
|
+
import './payload-types-BY1uZFRf.cjs';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-Dw5ElJs_.cjs';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-MbIJ5KzW.cjs';
|
|
7
|
+
import { C as CollectionType } from './types-DnIuxgu2.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 {
|
|
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 { cN as ApiQueryOptions, cX as PayloadFindResponse, dd as PublicReadQueryOptions, cY as PayloadMutationResponse, de as CustomerAuth, df as CustomerProfile, dg as CustomerAuthResponse, dh as CustomerLoginData, di as CustomerRegisterResponse, dj as CustomerRegisterData, dk as CustomerRefreshResponse, dl as UpdateProfileData, dm as ProductListingPageParams, dn as ProductListingPageBaseParams, dp as ProductDetailParams, dq as ProductDetailCatalogResult, dr as ProductListingPageCatalogParams, ds as ProductListingPageResult, dt as ProductListingGroupsCatalogItem, du as ProductListingPageFullParams, dv as ProductListingGroupsItem, c$ as RootClient, c8 as RootServerClient } from './types-CLRw0aDa.js';
|
|
4
|
+
import './payload-types-BY1uZFRf.js';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-Do27Udj6.js';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-IOaWsTMI.js';
|
|
7
|
+
import { C as CollectionType } from './types-AWSVpuPE.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
|
@@ -842,7 +842,9 @@ var COMMERCE_ENDPOINT_OPERATIONS = {
|
|
|
842
842
|
),
|
|
843
843
|
stockCheck: operation("products", "post", "/stock-check"),
|
|
844
844
|
stockSnapshot: operation("products", "get", "/stock"),
|
|
845
|
-
upsert: operation("products", "post", "/upsert")
|
|
845
|
+
upsert: operation("products", "post", "/upsert"),
|
|
846
|
+
graphRevision: operation("products", "get", "/:id/graph-revision"),
|
|
847
|
+
variantsPatch: operation("products", "patch", "/:id/variants")
|
|
846
848
|
},
|
|
847
849
|
orders: {
|
|
848
850
|
create: operation("orders", "post", "/create"),
|
|
@@ -1005,12 +1007,28 @@ var EXTERNAL_CUSTOMER_LINK_ENDPOINT_OPERATIONS = {
|
|
|
1005
1007
|
"/external-links/clear-previous-state"
|
|
1006
1008
|
)
|
|
1007
1009
|
};
|
|
1010
|
+
var BENEFIT_VOUCHER_ENDPOINT_OPERATIONS = {
|
|
1011
|
+
issue: operation("customers", "post", "/benefit-vouchers/issue"),
|
|
1012
|
+
get: operation("customers", "post", "/benefit-vouchers/get"),
|
|
1013
|
+
list: operation("customers", "post", "/benefit-vouchers/list"),
|
|
1014
|
+
redeem: operation("customers", "post", "/benefit-vouchers/redeem"),
|
|
1015
|
+
void: operation("customers", "post", "/benefit-vouchers/void"),
|
|
1016
|
+
listMine: operation("customers", "get", "/me/benefit-vouchers")
|
|
1017
|
+
};
|
|
1008
1018
|
var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
|
|
1009
1019
|
members: operation("customer-groups", "get", "/:id/members"),
|
|
1010
1020
|
grant: operation("customer-groups", "post", "/:id/members/grant"),
|
|
1011
1021
|
revoke: operation("customer-groups", "post", "/:id/members/revoke")
|
|
1012
1022
|
};
|
|
1013
1023
|
var CUSTOMER_AUTH_ENDPOINT_OPERATIONS = {
|
|
1024
|
+
register: operation("customers", "post", "/register"),
|
|
1025
|
+
login: operation("customers", "post", "/login"),
|
|
1026
|
+
refresh: operation("customers", "post", "/refresh"),
|
|
1027
|
+
me: operation("customers", "get", "/me"),
|
|
1028
|
+
updateProfile: operation("customers", "patch", "/me"),
|
|
1029
|
+
forgotPassword: operation("customers", "post", "/forgot-password"),
|
|
1030
|
+
resetPassword: operation("customers", "post", "/reset-password"),
|
|
1031
|
+
changePassword: operation("customers", "post", "/change-password"),
|
|
1014
1032
|
revokeRefresh: operation("customers", "post", "/revoke-refresh"),
|
|
1015
1033
|
withdraw: operation("customers", "post", "/withdraw")
|
|
1016
1034
|
};
|
|
@@ -1020,6 +1038,9 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
|
|
|
1020
1038
|
disable: operation("tenants", "delete", "/embedded-admin-app")
|
|
1021
1039
|
};
|
|
1022
1040
|
var EVENTS_ENDPOINT_OPERATIONS = {
|
|
1041
|
+
registrations: {
|
|
1042
|
+
listMine: operation("event-registrations", "get", "/my")
|
|
1043
|
+
},
|
|
1023
1044
|
events: {
|
|
1024
1045
|
convertSchedule: operation("events", "post", "/:id/schedule")
|
|
1025
1046
|
},
|