@sudobility/entity_client 0.0.23 → 0.0.24

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.ts CHANGED
@@ -26,5 +26,6 @@
26
26
  */
27
27
  export { EntityClient, type EntityClientConfig, type ApiResponse, } from './network';
28
28
  export { useEntities, useEntity, useCreateEntity, useUpdateEntity, useDeleteEntity, entityKeys, useEntityMembers, useUpdateMemberRole, useRemoveMember, memberKeys, useMyInvitations, useEntityInvitations, useCreateInvitation, useCancelInvitation, useAcceptInvitation, useDeclineInvitation, invitationKeys, useCurrentEntity, useCurrentEntityOptional, CurrentEntityProvider, type CurrentEntityContextValue, type CurrentEntityProviderProps, type AuthUser, } from './hooks';
29
+ export { EntityErrorCode, type EntityApiError } from './types';
29
30
  export type { Entity, EntityWithRole, EntityMember, EntityInvitation, EntityType, EntityRole, InvitationStatus, EntityPermissions, CreateEntityRequest, UpdateEntityRequest, InviteMemberRequest, UpdateMemberRoleRequest, } from '@sudobility/types';
30
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,EACL,YAAY,EACZ,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAEL,WAAW,EACX,SAAS,EACT,eAAe,EACf,eAAe,EACf,eAAe,EACf,UAAU,EAEV,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,UAAU,EAEV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EAEd,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,QAAQ,GACd,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,MAAM,EACN,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,EACL,YAAY,EACZ,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAEL,WAAW,EACX,SAAS,EACT,eAAe,EACf,eAAe,EACf,eAAe,EACf,UAAU,EAEV,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,UAAU,EAEV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EAEd,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,QAAQ,GACd,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAG/D,YAAY,EACV,MAAM,EACN,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -36,4 +36,6 @@ useEntityMembers, useUpdateMemberRole, useRemoveMember, memberKeys,
36
36
  useMyInvitations, useEntityInvitations, useCreateInvitation, useCancelInvitation, useAcceptInvitation, useDeclineInvitation, invitationKeys,
37
37
  // Context
38
38
  useCurrentEntity, useCurrentEntityOptional, CurrentEntityProvider, } from './hooks';
39
+ // Error types
40
+ export { EntityErrorCode } from './types';
39
41
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,kBAAkB;AAClB,OAAO,EACL,YAAY,GAGb,MAAM,WAAW,CAAC;AAEnB,eAAe;AACf,OAAO;AACL,eAAe;AACf,WAAW,EACX,SAAS,EACT,eAAe,EACf,eAAe,EACf,eAAe,EACf,UAAU;AACV,eAAe;AACf,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,UAAU;AACV,mBAAmB;AACnB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc;AACd,UAAU;AACV,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,GAItB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,kBAAkB;AAClB,OAAO,EACL,YAAY,GAGb,MAAM,WAAW,CAAC;AAEnB,eAAe;AACf,OAAO;AACL,eAAe;AACf,WAAW,EACX,SAAS,EACT,eAAe,EACf,eAAe,EACf,eAAe,EACf,UAAU;AACV,eAAe;AACf,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,UAAU;AACV,mBAAmB;AACnB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc;AACd,UAAU;AACV,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,GAItB,MAAM,SAAS,CAAC;AAEjB,cAAc;AACd,OAAO,EAAE,eAAe,EAAuB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @fileoverview Error handling types for entity API operations
3
+ */
4
+ /**
5
+ * Standard error codes returned by the entity API.
6
+ */
7
+ export declare enum EntityErrorCode {
8
+ NOT_FOUND = "NOT_FOUND",
9
+ UNAUTHORIZED = "UNAUTHORIZED",
10
+ CONFLICT = "CONFLICT",
11
+ FORBIDDEN = "FORBIDDEN",
12
+ VALIDATION_ERROR = "VALIDATION_ERROR",
13
+ INTERNAL_ERROR = "INTERNAL_ERROR"
14
+ }
15
+ /**
16
+ * Typed error response from the entity API.
17
+ */
18
+ export interface EntityApiError {
19
+ /** Machine-readable error code */
20
+ code: EntityErrorCode;
21
+ /** Human-readable error message */
22
+ message: string;
23
+ }
24
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/types/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,eAAe;IACzB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,IAAI,EAAE,eAAe,CAAC;IACtB,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @fileoverview Error handling types for entity API operations
3
+ */
4
+ /**
5
+ * Standard error codes returned by the entity API.
6
+ */
7
+ export var EntityErrorCode;
8
+ (function (EntityErrorCode) {
9
+ EntityErrorCode["NOT_FOUND"] = "NOT_FOUND";
10
+ EntityErrorCode["UNAUTHORIZED"] = "UNAUTHORIZED";
11
+ EntityErrorCode["CONFLICT"] = "CONFLICT";
12
+ EntityErrorCode["FORBIDDEN"] = "FORBIDDEN";
13
+ EntityErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR";
14
+ EntityErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
15
+ })(EntityErrorCode || (EntityErrorCode = {}));
16
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/types/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,0CAAuB,CAAA;IACvB,gDAA6B,CAAA;IAC7B,wCAAqB,CAAA;IACrB,0CAAuB,CAAA;IACvB,wDAAqC,CAAA;IACrC,oDAAiC,CAAA;AACnC,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @fileoverview Type Exports
3
+ */
4
+ export { EntityErrorCode, type EntityApiError } from './errors';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @fileoverview Type Exports
3
+ */
4
+ export { EntityErrorCode } from './errors';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAuB,MAAM,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/entity_client",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "description": "Frontend client library for entity/organization management",
6
6
  "main": "dist/index.js",