@01.software/sdk 0.14.0 → 0.16.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/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
- import { O as Order, a as Cart, b as CartItem, P as Product, c as OrderItem$1, T as Transaction, d as Fulfillment, R as Return } from './payload-types-DH1fKdM3.cjs';
2
- export { D as Document, I as Image, e as Post, f as PostCategory, g as PostTag, h as ProductVariant, i as Tenant, V as Video } from './payload-types-DH1fKdM3.cjs';
1
+ import { O as Order, a as Cart, b as CartItem, P as Product, c as OrderItem$1, T as Transaction, d as Fulfillment, R as Return } from './payload-types-DRvL_bS2.cjs';
2
+ export { D as Document, I as Image, e as Post, f as PostCategory, g as PostTag, h as ProductVariant, i as Tenant, V as Video } from './payload-types-DRvL_bS2.cjs';
3
3
  import { Sort, Where } from 'payload';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { QueryClient, InfiniteData } from '@tanstack/react-query';
6
6
  import { Metadata } from 'next';
7
- import { C as CollectionType } from './webhook-IX2MGQj2.cjs';
8
- export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-IX2MGQj2.cjs';
9
- import { P as PublicCollection } from './const-CxpAy8X_.cjs';
10
- export { a as COLLECTIONS, C as Collection } from './const-CxpAy8X_.cjs';
7
+ import { C as CollectionType } from './webhook-CIcWL95t.cjs';
8
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-CIcWL95t.cjs';
9
+ import { P as PublicCollection } from './const-BLwHrFZ-.cjs';
10
+ export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS } from './const-BLwHrFZ-.cjs';
11
11
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
12
12
  export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.cjs';
13
13
  export { e as VideoGifOptions, V as VideoThumbnailOptions, a as getVideoGif, c as getVideoMp4Url, d as getVideoStoryboard, b as getVideoStreamUrl, g as getVideoThumbnail } from './video-DbLL8yuc.cjs';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { O as Order, a as Cart, b as CartItem, P as Product, c as OrderItem$1, T as Transaction, d as Fulfillment, R as Return } from './payload-types-DH1fKdM3.js';
2
- export { D as Document, I as Image, e as Post, f as PostCategory, g as PostTag, h as ProductVariant, i as Tenant, V as Video } from './payload-types-DH1fKdM3.js';
1
+ import { O as Order, a as Cart, b as CartItem, P as Product, c as OrderItem$1, T as Transaction, d as Fulfillment, R as Return } from './payload-types-DRvL_bS2.js';
2
+ export { D as Document, I as Image, e as Post, f as PostCategory, g as PostTag, h as ProductVariant, i as Tenant, V as Video } from './payload-types-DRvL_bS2.js';
3
3
  import { Sort, Where } from 'payload';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { QueryClient, InfiniteData } from '@tanstack/react-query';
6
6
  import { Metadata } from 'next';
7
- import { C as CollectionType } from './webhook-CmJWfLjs.js';
8
- export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-CmJWfLjs.js';
9
- import { P as PublicCollection } from './const-CigSm8e_.js';
10
- export { a as COLLECTIONS, C as Collection } from './const-CigSm8e_.js';
7
+ import { C as CollectionType } from './webhook-7_KR18M-.js';
8
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-7_KR18M-.js';
9
+ import { P as PublicCollection } from './const-RMD3ZVaS.js';
10
+ export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS } from './const-RMD3ZVaS.js';
11
11
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
12
12
  export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.js';
13
13
  export { e as VideoGifOptions, V as VideoThumbnailOptions, a as getVideoGif, c as getVideoMp4Url, d as getVideoStoryboard, b as getVideoStreamUrl, g as getVideoThumbnail } from './video-DbLL8yuc.js';
package/dist/index.js CHANGED
@@ -955,6 +955,34 @@ var CollectionClient = class extends HttpClient {
955
955
  };
956
956
 
957
957
  // src/core/collection/const.ts
958
+ var INTERNAL_COLLECTIONS = [
959
+ "users",
960
+ "payload-kv",
961
+ "payload-locked-documents",
962
+ "payload-preferences",
963
+ "payload-migrations",
964
+ "field-configs",
965
+ "system-media",
966
+ "track-assets",
967
+ "audiences",
968
+ "email-logs",
969
+ "tenant-auth-settings",
970
+ "tenant-community-settings",
971
+ "api-usage",
972
+ "tenant-analytics-daily",
973
+ "analytics-event-schemas",
974
+ "subscriptions",
975
+ "billing-history",
976
+ "order-status-logs",
977
+ "api-keys",
978
+ "personal-access-tokens",
979
+ "tenant-entitlements",
980
+ "webhook-events",
981
+ "webhook-deliveries",
982
+ "audit-logs",
983
+ "plans",
984
+ "webhooks"
985
+ ];
958
986
  var COLLECTIONS = [
959
987
  "tenants",
960
988
  "tenant-metadata",
@@ -981,6 +1009,7 @@ var COLLECTIONS = [
981
1009
  "carts",
982
1010
  "cart-items",
983
1011
  "discounts",
1012
+ "promotions",
984
1013
  "shipping-policies",
985
1014
  "documents",
986
1015
  "document-categories",
@@ -1007,6 +1036,8 @@ var COLLECTIONS = [
1007
1036
  "canvas-edge-types",
1008
1037
  "canvas-categories",
1009
1038
  "canvas-tags",
1039
+ "canvas-nodes",
1040
+ "canvas-edges",
1010
1041
  "videos",
1011
1042
  "video-categories",
1012
1043
  "video-tags",
@@ -3089,7 +3120,8 @@ function createAnalytics(config) {
3089
3120
  publishableKey: config.publishableKey,
3090
3121
  pathname,
3091
3122
  referrer: document.referrer || "",
3092
- eventId: newEventId()
3123
+ eventId: newEventId(),
3124
+ eventTs: Date.now()
3093
3125
  });
3094
3126
  sendBeaconOrFetch(body);
3095
3127
  }
@@ -3188,7 +3220,8 @@ function createAnalytics(config) {
3188
3220
  referrer: document.referrer || "",
3189
3221
  eventId: newEventId(),
3190
3222
  eventName: name,
3191
- eventProps: props
3223
+ eventProps: props,
3224
+ eventTs: Date.now()
3192
3225
  });
3193
3226
  sendBeaconOrFetch(body);
3194
3227
  },
@@ -3225,6 +3258,7 @@ export {
3225
3258
  DiscountApi,
3226
3259
  GoneError,
3227
3260
  IMAGE_SIZES,
3261
+ INTERNAL_COLLECTIONS,
3228
3262
  ModerationApi,
3229
3263
  NetworkError,
3230
3264
  NotFoundError,