@01.software/sdk 0.35.0 → 0.36.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.
Files changed (39) hide show
  1. package/dist/client.cjs.map +1 -1
  2. package/dist/client.d.cts +6 -6
  3. package/dist/client.d.ts +6 -6
  4. package/dist/client.js.map +1 -1
  5. package/dist/{collection-client-DkREjhQ9.d.ts → collection-client-Bq5Zd7p7.d.ts} +3 -3
  6. package/dist/{collection-client-CR2B8c1v.d.cts → collection-client-Cv0D2w1Q.d.cts} +3 -3
  7. package/dist/{const-CdqCauHQ.d.ts → const-BDUKFP9w.d.ts} +1 -1
  8. package/dist/{const-BTvdrXtY.d.cts → const-DVcM7Ac_.d.cts} +1 -1
  9. package/dist/{index-CjA3U6X3.d.cts → index-BHDKJ6B3.d.cts} +3 -3
  10. package/dist/{index-DK8_NXkh.d.ts → index-DTSXUYkr.d.ts} +3 -3
  11. package/dist/index.cjs +57 -4
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +7 -7
  14. package/dist/index.d.ts +7 -7
  15. package/dist/index.js +57 -4
  16. package/dist/index.js.map +1 -1
  17. package/dist/{payload-types-C7tb7Xbs.d.cts → payload-types-BCui2Oml.d.cts} +0 -20
  18. package/dist/{payload-types-C7tb7Xbs.d.ts → payload-types-BCui2Oml.d.ts} +0 -20
  19. package/dist/query.d.cts +5 -5
  20. package/dist/query.d.ts +5 -5
  21. package/dist/realtime.d.cts +2 -2
  22. package/dist/realtime.d.ts +2 -2
  23. package/dist/server.cjs +15 -0
  24. package/dist/server.cjs.map +1 -1
  25. package/dist/server.d.cts +7 -7
  26. package/dist/server.d.ts +7 -7
  27. package/dist/server.js +15 -0
  28. package/dist/server.js.map +1 -1
  29. package/dist/{types-1ylMrCuW.d.ts → types-3qV6sY7T.d.ts} +1 -1
  30. package/dist/{types-Bx558PU6.d.cts → types-CEzLf3PX.d.cts} +1 -1
  31. package/dist/{types-Byo_Rty4.d.ts → types-DK9EnLwJ.d.ts} +83 -17
  32. package/dist/{types-DDhtZI6E.d.cts → types-Dib-zdK6.d.cts} +83 -17
  33. package/dist/ui/form.d.cts +1 -1
  34. package/dist/ui/form.d.ts +1 -1
  35. package/dist/ui/video.d.cts +1 -1
  36. package/dist/ui/video.d.ts +1 -1
  37. package/dist/webhook.d.cts +4 -4
  38. package/dist/webhook.d.ts +4 -4
  39. package/package.json +3 -3
package/dist/server.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { S as ServerCollectionClient } from './collection-client-CR2B8c1v.cjs';
2
- export { C as CollectionClient } from './collection-client-CR2B8c1v.cjs';
3
- import { B as BaseApi, l as ServerApiOptions, m as ServerCommerceClient, T as TenantIntrospectionClient, a as CommunityClient, n as BanCustomerParams, o as CommunityBan, U as UnbanCustomerParams, c as ClientState, p as ClientServerConfig, E as EventsClient, q as RootServerClientWithEvents } from './types-DDhtZI6E.cjs';
4
- export { r as CollectionFieldSchema, s as CollectionSchemaResponse, t as EventGuestCancelParams, u as EventGuestRegistration, v as EventGuestRegistrationResponse, w as EventRegistrationAnswerInput, x as EventRegistrationAttendeeInput, y as EventRegistrationPublic, z as EventRegistrationRegisterParams, F as EventRegistrationRegisterResponse, G as EventsCalendarItem, H as EventsClientOptions, I as EventsDateParam, J as EventsExternalSource, K as EventsLocation, L as EventsOccurrenceLocation, M as EventsRangeEvent, N as EventsRangeOccurrence, O as EventsRangeParams, Q as EventsRangeResponse, V as EventsTaxonomyItem, X as ModerationApi, Y as RootServerClient, Z as TenantFeatureProgressEvidenceValue, _ as TenantFeatureProgressFeature, $ as TenantFeatureProgressGroup, a0 as TenantFeatureProgressInput, a1 as TenantFeatureProgressItem, a2 as TenantFeatureProgressItemState, a3 as TenantFeatureProgressResponse, a4 as TenantFeatureProgressSeverity, a5 as TenantFeatureProgressStatus, a6 as TenantIntrospectionApi, a7 as TenantIntrospectionApiOptions } from './types-DDhtZI6E.cjs';
5
- import './payload-types-C7tb7Xbs.cjs';
1
+ import { S as ServerCollectionClient } from './collection-client-Cv0D2w1Q.cjs';
2
+ export { C as CollectionClient } from './collection-client-Cv0D2w1Q.cjs';
3
+ import { B as BaseApi, l as ServerApiOptions, m as ServerCommerceClient, T as TenantIntrospectionClient, a as CommunityClient, n as BanCustomerParams, o as CommunityBan, U as UnbanCustomerParams, c as ClientState, p as ClientServerConfig, E as EventsClient, q as RootServerClientWithEvents } from './types-Dib-zdK6.cjs';
4
+ export { r as CollectionFieldSchema, s as CollectionSchemaResponse, t as EventGuestCancelParams, u as EventGuestRegistration, v as EventGuestRegistrationResponse, w as EventRegistrationAnswerInput, x as EventRegistrationAttendeeInput, y as EventRegistrationPublic, z as EventRegistrationRegisterParams, F as EventRegistrationRegisterResponse, G as EventsCalendarItem, H as EventsClientOptions, I as EventsDateParam, J as EventsExternalSource, K as EventsLocation, L as EventsOccurrenceLocation, M as EventsRangeEvent, N as EventsRangeOccurrence, O as EventsRangeParams, Q as EventsRangeResponse, V as EventsTaxonomyItem, X as ModerationApi, Y as RootServerClient, Z as TenantFeatureProgressEvidenceValue, _ as TenantFeatureProgressFeature, $ as TenantFeatureProgressGroup, a0 as TenantFeatureProgressInput, a1 as TenantFeatureProgressItem, a2 as TenantFeatureProgressItemState, a3 as TenantFeatureProgressResponse, a4 as TenantFeatureProgressSeverity, a5 as TenantFeatureProgressStatus, a6 as TenantIntrospectionApi, a7 as TenantIntrospectionApiOptions } from './types-Dib-zdK6.cjs';
5
+ import './payload-types-BCui2Oml.cjs';
6
6
  import './metadata.cjs';
7
- import './const-BTvdrXtY.cjs';
8
- import './types-Bx558PU6.cjs';
7
+ import './const-DVcM7Ac_.cjs';
8
+ import './types-CEzLf3PX.cjs';
9
9
 
10
10
  type PreviewDetailParams = {
11
11
  collection: string;
package/dist/server.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { S as ServerCollectionClient } from './collection-client-DkREjhQ9.js';
2
- export { C as CollectionClient } from './collection-client-DkREjhQ9.js';
3
- import { B as BaseApi, l as ServerApiOptions, m as ServerCommerceClient, T as TenantIntrospectionClient, a as CommunityClient, n as BanCustomerParams, o as CommunityBan, U as UnbanCustomerParams, c as ClientState, p as ClientServerConfig, E as EventsClient, q as RootServerClientWithEvents } from './types-Byo_Rty4.js';
4
- export { r as CollectionFieldSchema, s as CollectionSchemaResponse, t as EventGuestCancelParams, u as EventGuestRegistration, v as EventGuestRegistrationResponse, w as EventRegistrationAnswerInput, x as EventRegistrationAttendeeInput, y as EventRegistrationPublic, z as EventRegistrationRegisterParams, F as EventRegistrationRegisterResponse, G as EventsCalendarItem, H as EventsClientOptions, I as EventsDateParam, J as EventsExternalSource, K as EventsLocation, L as EventsOccurrenceLocation, M as EventsRangeEvent, N as EventsRangeOccurrence, O as EventsRangeParams, Q as EventsRangeResponse, V as EventsTaxonomyItem, X as ModerationApi, Y as RootServerClient, Z as TenantFeatureProgressEvidenceValue, _ as TenantFeatureProgressFeature, $ as TenantFeatureProgressGroup, a0 as TenantFeatureProgressInput, a1 as TenantFeatureProgressItem, a2 as TenantFeatureProgressItemState, a3 as TenantFeatureProgressResponse, a4 as TenantFeatureProgressSeverity, a5 as TenantFeatureProgressStatus, a6 as TenantIntrospectionApi, a7 as TenantIntrospectionApiOptions } from './types-Byo_Rty4.js';
5
- import './payload-types-C7tb7Xbs.js';
1
+ import { S as ServerCollectionClient } from './collection-client-Bq5Zd7p7.js';
2
+ export { C as CollectionClient } from './collection-client-Bq5Zd7p7.js';
3
+ import { B as BaseApi, l as ServerApiOptions, m as ServerCommerceClient, T as TenantIntrospectionClient, a as CommunityClient, n as BanCustomerParams, o as CommunityBan, U as UnbanCustomerParams, c as ClientState, p as ClientServerConfig, E as EventsClient, q as RootServerClientWithEvents } from './types-DK9EnLwJ.js';
4
+ export { r as CollectionFieldSchema, s as CollectionSchemaResponse, t as EventGuestCancelParams, u as EventGuestRegistration, v as EventGuestRegistrationResponse, w as EventRegistrationAnswerInput, x as EventRegistrationAttendeeInput, y as EventRegistrationPublic, z as EventRegistrationRegisterParams, F as EventRegistrationRegisterResponse, G as EventsCalendarItem, H as EventsClientOptions, I as EventsDateParam, J as EventsExternalSource, K as EventsLocation, L as EventsOccurrenceLocation, M as EventsRangeEvent, N as EventsRangeOccurrence, O as EventsRangeParams, Q as EventsRangeResponse, V as EventsTaxonomyItem, X as ModerationApi, Y as RootServerClient, Z as TenantFeatureProgressEvidenceValue, _ as TenantFeatureProgressFeature, $ as TenantFeatureProgressGroup, a0 as TenantFeatureProgressInput, a1 as TenantFeatureProgressItem, a2 as TenantFeatureProgressItemState, a3 as TenantFeatureProgressResponse, a4 as TenantFeatureProgressSeverity, a5 as TenantFeatureProgressStatus, a6 as TenantIntrospectionApi, a7 as TenantIntrospectionApiOptions } from './types-DK9EnLwJ.js';
5
+ import './payload-types-BCui2Oml.js';
6
6
  import './metadata.js';
7
- import './const-CdqCauHQ.js';
8
- import './types-1ylMrCuW.js';
7
+ import './const-BDUKFP9w.js';
8
+ import './types-3qV6sY7T.js';
9
9
 
10
10
  type PreviewDetailParams = {
11
11
  collection: string;
package/dist/server.js CHANGED
@@ -1780,6 +1780,20 @@ var OrderApi = class extends BaseApi {
1780
1780
  idempotencyKey ? { headers: { "X-Idempotency-Key": idempotencyKey } } : void 0
1781
1781
  );
1782
1782
  }
1783
+ resolveCancelRefund(params) {
1784
+ return this.request(
1785
+ "/api/orders/resolve-cancel-refund",
1786
+ {
1787
+ orderNumber: params.orderNumber,
1788
+ idempotencyKey: params.idempotencyKey,
1789
+ outcome: params.outcome,
1790
+ refundedAmount: params.refundedAmount,
1791
+ pgProvider: params.pgProvider,
1792
+ ...params.pgRefundId ? { pgRefundId: params.pgRefundId } : {}
1793
+ },
1794
+ idempotencyRequestOptions(params.idempotencyKey)
1795
+ );
1796
+ }
1783
1797
  checkout(params) {
1784
1798
  const { body, idempotencyKey } = splitIdempotencyKey(params);
1785
1799
  return this.request(
@@ -1922,6 +1936,7 @@ var ServerCommerceClient = class {
1922
1936
  updateTransaction: orderApi.updateTransaction.bind(orderApi),
1923
1937
  confirmPayment: orderApi.confirmPayment.bind(orderApi),
1924
1938
  cancelOrder: orderApi.cancelOrder.bind(orderApi),
1939
+ resolveCancelRefund: orderApi.resolveCancelRefund.bind(orderApi),
1925
1940
  createFulfillment: orderApi.createFulfillment.bind(orderApi),
1926
1941
  updateFulfillment: orderApi.updateFulfillment.bind(orderApi),
1927
1942
  bulkImportFulfillments: orderApi.bulkImportFulfillments.bind(orderApi),