@coast/core-api-types 1.2.182 → 1.2.184

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.
@@ -0,0 +1,12 @@
1
+ import { Audit } from '../application/Audit';
2
+ import { BusinessId } from '../business/BusinessId';
3
+ import { UserId } from '../user/UserId';
4
+ import { ApiKeyId } from './ApiKeyId';
5
+ export interface ApiKey extends Audit {
6
+ id: ApiKeyId;
7
+ name: string;
8
+ userId: UserId;
9
+ businessId: BusinessId;
10
+ expiresAt?: Date;
11
+ deletedAt?: Date;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ApiKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiKey.js","sourceRoot":"","sources":["../../../src/models/auth/ApiKey.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ApiKeyId = Brand<string, 'ApiKeyId'>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ApiKeyId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiKeyId.js","sourceRoot":"","sources":["../../../src/models/auth/ApiKeyId.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface CreateApiKey {
2
+ name: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CreateApiKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateApiKey.js","sourceRoot":"","sources":["../../../src/models/auth/CreateApiKey.ts"],"names":[],"mappings":""}
@@ -5,6 +5,7 @@ export declare enum UserRole {
5
5
  INTEGRATION = "INTEGRATION",
6
6
  INTERNAL_TOOL = "INTERNAL_TOOL",
7
7
  MEMBER = "MEMBER",
8
+ PUBLIC_API = "PUBLIC_API",
8
9
  SITE_ADMIN = "SITE_ADMIN",
9
10
  SUPPORT = "SUPPORT",
10
11
  VIEW_CARD = "VIEW_CARD"
@@ -9,6 +9,7 @@ var UserRole;
9
9
  UserRole["INTEGRATION"] = "INTEGRATION";
10
10
  UserRole["INTERNAL_TOOL"] = "INTERNAL_TOOL";
11
11
  UserRole["MEMBER"] = "MEMBER";
12
+ UserRole["PUBLIC_API"] = "PUBLIC_API";
12
13
  UserRole["SITE_ADMIN"] = "SITE_ADMIN";
13
14
  UserRole["SUPPORT"] = "SUPPORT";
14
15
  UserRole["VIEW_CARD"] = "VIEW_CARD";
@@ -1 +1 @@
1
- {"version":3,"file":"UserRole.js","sourceRoot":"","sources":["../../../src/models/user/UserRole.ts"],"names":[],"mappings":";;;AACA,IAAY,QAUX;AAVD,WAAY,QAAQ;IAChB,mCAAuB,CAAA;IACvB,6CAAiC,CAAA;IACjC,2CAA+B,CAAA;IAC/B,uCAA2B,CAAA;IAC3B,2CAA+B,CAAA;IAC/B,6BAAiB,CAAA;IACjB,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;AAC3B,CAAC,EAVW,QAAQ,wBAAR,QAAQ,QAUnB"}
1
+ {"version":3,"file":"UserRole.js","sourceRoot":"","sources":["../../../src/models/user/UserRole.ts"],"names":[],"mappings":";;;AACA,IAAY,QAiBX;AAjBD,WAAY,QAAQ;IAChB,mCAAuB,CAAA;IACvB,6CAAiC,CAAA;IAIjC,2CAA+B,CAAA;IAC/B,uCAA2B,CAAA;IAC3B,2CAA+B,CAAA;IAC/B,6BAAiB,CAAA;IACjB,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;IAInB,mCAAuB,CAAA;AAC3B,CAAC,EAjBW,QAAQ,wBAAR,QAAQ,QAiBnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.182",
3
+ "version": "1.2.184",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {