@01.software/sdk 0.2.3 → 0.2.4

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.
@@ -1,5 +1,5 @@
1
1
  import { Sort, Where } from 'payload';
2
- import './payload-types-COjt2QTn.js';
2
+ import './payload-types-BFIUYPDZ.js';
3
3
 
4
4
  declare class SDKError extends Error {
5
5
  readonly code: string;
@@ -1,5 +1,5 @@
1
1
  import { Sort, Where } from 'payload';
2
- import './payload-types-COjt2QTn.cjs';
2
+ import './payload-types-BFIUYPDZ.cjs';
3
3
 
4
4
  declare class SDKError extends Error {
5
5
  readonly code: string;
package/dist/auth.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { J as JwtPayload, q as createApiKey, o as createServerToken, p as decodeServerToken, r as parseApiKey, v as verifyServerToken } from './auth-C7hwnGOb.cjs';
1
+ export { J as JwtPayload, q as createApiKey, o as createServerToken, p as decodeServerToken, r as parseApiKey, v as verifyServerToken } from './auth-DTkwMgvi.cjs';
2
2
  import 'payload';
3
- import './payload-types-COjt2QTn.cjs';
3
+ import './payload-types-BFIUYPDZ.cjs';
package/dist/auth.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { J as JwtPayload, q as createApiKey, o as createServerToken, p as decodeServerToken, r as parseApiKey, v as verifyServerToken } from './auth-C-9PVtsp.js';
1
+ export { J as JwtPayload, q as createApiKey, o as createServerToken, p as decodeServerToken, r as parseApiKey, v as verifyServerToken } from './auth-CWsLf5vd.js';
2
2
  import 'payload';
3
- import './payload-types-COjt2QTn.js';
3
+ import './payload-types-BFIUYPDZ.js';
@@ -2,7 +2,7 @@ import React, { CSSProperties } from 'react';
2
2
  import { SerializedLinkNode, SerializedBlockNode } from '@payloadcms/richtext-lexical';
3
3
  import { SerializedEditorState, SerializedLexicalNode } from '@payloadcms/richtext-lexical/lexical';
4
4
  import { JSXConverter } from '@payloadcms/richtext-lexical/react';
5
- import { F as Form } from './payload-types-COjt2QTn.cjs';
5
+ import { F as Form } from './payload-types-BFIUYPDZ.cjs';
6
6
  import { I as ImageData } from './image-TT8lTsk5.cjs';
7
7
 
8
8
  type RichTextData = SerializedEditorState<SerializedLexicalNode>;
@@ -2,7 +2,7 @@ import React, { CSSProperties } from 'react';
2
2
  import { SerializedLinkNode, SerializedBlockNode } from '@payloadcms/richtext-lexical';
3
3
  import { SerializedEditorState, SerializedLexicalNode } from '@payloadcms/richtext-lexical/lexical';
4
4
  import { JSXConverter } from '@payloadcms/richtext-lexical/react';
5
- import { F as Form } from './payload-types-COjt2QTn.js';
5
+ import { F as Form } from './payload-types-BFIUYPDZ.js';
6
6
  import { I as ImageData } from './image-TT8lTsk5.js';
7
7
 
8
8
  type RichTextData = SerializedEditorState<SerializedLexicalNode>;
package/dist/index.cjs CHANGED
@@ -701,7 +701,8 @@ var ProductApi = class {
701
701
 
702
702
  // src/utils/types.ts
703
703
  var resolveRelation = (ref) => {
704
- if (typeof ref === "number" || ref === null || ref === void 0) return null;
704
+ if (typeof ref === "string" || typeof ref === "number" || ref === null || ref === void 0)
705
+ return null;
705
706
  return ref;
706
707
  };
707
708
  var objectFor = resolveRelation;