@coast/core-types 0.0.16 → 0.0.17

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 (106) hide show
  1. package/dist/application/Id.d.ts +2 -0
  2. package/dist/application/Id.js +3 -0
  3. package/dist/application/Id.js.map +1 -0
  4. package/dist/auth/keys/ApiKeyId.d.ts +3 -0
  5. package/dist/auth/keys/ApiKeyId.js +7 -0
  6. package/dist/auth/keys/ApiKeyId.js.map +1 -0
  7. package/dist/automations/AutomationId.d.ts +3 -0
  8. package/dist/automations/AutomationId.js +7 -0
  9. package/dist/automations/AutomationId.js.map +1 -0
  10. package/dist/automations/action/AutomationActionId.d.ts +3 -0
  11. package/dist/automations/action/AutomationActionId.js +7 -0
  12. package/dist/automations/action/AutomationActionId.js.map +1 -0
  13. package/dist/automations/action/audit/AutomationActionAuditId.d.ts +3 -0
  14. package/dist/automations/action/audit/AutomationActionAuditId.js +7 -0
  15. package/dist/automations/action/audit/AutomationActionAuditId.js.map +1 -0
  16. package/dist/business/BusinessId.d.ts +3 -0
  17. package/dist/business/BusinessId.js +7 -0
  18. package/dist/business/BusinessId.js.map +1 -0
  19. package/dist/channel/ChannelSlug.d.ts +3 -0
  20. package/dist/channel/ChannelSlug.js +7 -0
  21. package/dist/channel/ChannelSlug.js.map +1 -0
  22. package/dist/channel/WorkspaceId.d.ts +3 -0
  23. package/dist/channel/WorkspaceId.js +7 -0
  24. package/dist/channel/WorkspaceId.js.map +1 -0
  25. package/dist/common/HmacSecretKey.d.ts +3 -0
  26. package/dist/common/HmacSecretKey.js +7 -0
  27. package/dist/common/HmacSecretKey.js.map +1 -0
  28. package/dist/common/ISODateString.d.ts +3 -0
  29. package/dist/common/ISODateString.js +7 -0
  30. package/dist/common/ISODateString.js.map +1 -0
  31. package/dist/common/RRuleString.d.ts +3 -0
  32. package/dist/common/RRuleString.js +7 -0
  33. package/dist/common/RRuleString.js.map +1 -0
  34. package/dist/file-operations/FileOperationId.d.ts +3 -0
  35. package/dist/file-operations/FileOperationId.js +8 -0
  36. package/dist/file-operations/FileOperationId.js.map +1 -0
  37. package/dist/file-storage/FileId.d.ts +3 -0
  38. package/dist/file-storage/FileId.js +7 -0
  39. package/dist/file-storage/FileId.js.map +1 -0
  40. package/dist/shared-link/SharedCardLinkId.d.ts +3 -0
  41. package/dist/shared-link/SharedCardLinkId.js +7 -0
  42. package/dist/shared-link/SharedCardLinkId.js.map +1 -0
  43. package/dist/user/UserId.d.ts +4 -0
  44. package/dist/user/UserId.js +7 -0
  45. package/dist/user/UserId.js.map +1 -0
  46. package/dist/user/group/UserGroupId.d.ts +3 -0
  47. package/dist/user/group/UserGroupId.js +7 -0
  48. package/dist/user/group/UserGroupId.js.map +1 -0
  49. package/dist/view-template/ViewTemplateId.d.ts +3 -0
  50. package/dist/view-template/ViewTemplateId.js +7 -0
  51. package/dist/view-template/ViewTemplateId.js.map +1 -0
  52. package/dist/view-template-layout/ViewTemplateLayoutId.d.ts +3 -0
  53. package/dist/view-template-layout/ViewTemplateLayoutId.js +7 -0
  54. package/dist/view-template-layout/ViewTemplateLayoutId.js.map +1 -0
  55. package/dist/view-template-layout/ViewTemplateLayoutItemId.d.ts +3 -0
  56. package/dist/view-template-layout/ViewTemplateLayoutItemId.js +7 -0
  57. package/dist/view-template-layout/ViewTemplateLayoutItemId.js.map +1 -0
  58. package/dist/workflow-app/bundle/BundleId.d.ts +3 -0
  59. package/dist/workflow-app/bundle/BundleId.js +7 -0
  60. package/dist/workflow-app/bundle/BundleId.js.map +1 -0
  61. package/dist/workflow-entity/WorkflowEntityEventId.d.ts +3 -0
  62. package/dist/workflow-entity/WorkflowEntityEventId.js +7 -0
  63. package/dist/workflow-entity/WorkflowEntityEventId.js.map +1 -0
  64. package/dist/workflow-entity/recurring/RecurringEntitiesScheduleId.d.ts +3 -0
  65. package/dist/workflow-entity/recurring/RecurringEntitiesScheduleId.js +7 -0
  66. package/dist/workflow-entity/recurring/RecurringEntitiesScheduleId.js.map +1 -0
  67. package/dist/workflow-entity/sort/LexoSortKey.d.ts +3 -0
  68. package/dist/workflow-entity/sort/LexoSortKey.js +7 -0
  69. package/dist/workflow-entity/sort/LexoSortKey.js.map +1 -0
  70. package/dist/workflow-template/WorkflowTemplateId.d.ts +3 -0
  71. package/dist/workflow-template/WorkflowTemplateId.js +7 -0
  72. package/dist/workflow-template/WorkflowTemplateId.js.map +1 -0
  73. package/dist/workflow-template/components/ComponentId.d.ts +3 -0
  74. package/dist/workflow-template/components/ComponentId.js +7 -0
  75. package/dist/workflow-template/components/ComponentId.js.map +1 -0
  76. package/dist/workspace-section/WorkspaceSectionId.d.ts +3 -0
  77. package/dist/workspace-section/WorkspaceSectionId.js +7 -0
  78. package/dist/workspace-section/WorkspaceSectionId.js.map +1 -0
  79. package/package.json +1 -1
  80. package/src/application/Id.ts +3 -0
  81. package/src/auth/keys/ApiKeyId.ts +8 -0
  82. package/src/automations/AutomationId.ts +8 -0
  83. package/src/automations/action/AutomationActionId.ts +8 -0
  84. package/src/automations/action/audit/AutomationActionAuditId.ts +8 -0
  85. package/src/business/BusinessId.ts +8 -0
  86. package/src/channel/ChannelSlug.ts +8 -0
  87. package/src/channel/WorkspaceId.ts +8 -0
  88. package/src/common/HmacSecretKey.ts +8 -0
  89. package/src/common/ISODateString.ts +8 -0
  90. package/src/common/RRuleString.ts +8 -0
  91. package/src/file-operations/FileOperationId.ts +8 -0
  92. package/src/file-storage/FileId.ts +8 -0
  93. package/src/shared-link/SharedCardLinkId.ts +8 -0
  94. package/src/user/UserId.ts +16 -0
  95. package/src/user/group/UserGroupId.ts +8 -0
  96. package/src/view-template/ViewTemplateId.ts +8 -0
  97. package/src/view-template-layout/ViewTemplateLayoutId.ts +8 -0
  98. package/src/view-template-layout/ViewTemplateLayoutItemId.ts +8 -0
  99. package/src/workflow-app/bundle/BundleId.ts +8 -0
  100. package/src/workflow-entity/WorkflowEntityEventId.ts +8 -0
  101. package/src/workflow-entity/recurring/RecurringEntitiesScheduleId.ts +8 -0
  102. package/src/workflow-entity/sort/LexoSortKey.ts +8 -0
  103. package/src/workflow-template/WorkflowTemplateId.ts +8 -0
  104. package/src/workflow-template/components/ComponentId.ts +8 -0
  105. package/src/workspace-section/WorkspaceSectionId.ts +8 -0
  106. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,2 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type Id = Brand<number | string, unknown> | number | string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Id.js","sourceRoot":"","sources":["../../src/application/Id.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ApiKeyId = Brand<string, 'ApiKeyId'>;
3
+ export declare function ApiKeyId(id: string): ApiKeyId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyId = ApiKeyId;
4
+ function ApiKeyId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=ApiKeyId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiKeyId.js","sourceRoot":"","sources":["../../../src/auth/keys/ApiKeyId.ts"],"names":[],"mappings":";;AAKA,4BAEC;AAFD,SAAgB,QAAQ,CAAC,EAAU;IAC/B,OAAO,EAAc,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type AutomationId = Brand<string, 'AutomationId'>;
3
+ export declare function AutomationId(id: string): AutomationId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationId = AutomationId;
4
+ function AutomationId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=AutomationId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationId.js","sourceRoot":"","sources":["../../src/automations/AutomationId.ts"],"names":[],"mappings":";;AAKA,oCAEC;AAFD,SAAgB,YAAY,CAAC,EAAU;IACnC,OAAO,EAAkB,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type AutomationActionId = Brand<string, 'AutomationActionId'>;
3
+ export declare function AutomationActionId(id: string): AutomationActionId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationActionId = AutomationActionId;
4
+ function AutomationActionId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=AutomationActionId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationActionId.js","sourceRoot":"","sources":["../../../src/automations/action/AutomationActionId.ts"],"names":[],"mappings":";;AAKA,gDAEC;AAFD,SAAgB,kBAAkB,CAAC,EAAU;IACzC,OAAO,EAAwB,CAAC;AACpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type AutomationActionAuditId = Brand<string, 'AutomationActionAuditId'>;
3
+ export declare function AutomationActionAuditId(id: string): AutomationActionAuditId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationActionAuditId = AutomationActionAuditId;
4
+ function AutomationActionAuditId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=AutomationActionAuditId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationActionAuditId.js","sourceRoot":"","sources":["../../../../src/automations/action/audit/AutomationActionAuditId.ts"],"names":[],"mappings":";;AAKA,0DAEC;AAFD,SAAgB,uBAAuB,CAAC,EAAU;IAC9C,OAAO,EAA6B,CAAC;AACzC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type BusinessId = Brand<number, 'BusinessId'>;
3
+ export declare function BusinessId(id: number): BusinessId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BusinessId = BusinessId;
4
+ function BusinessId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=BusinessId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessId.js","sourceRoot":"","sources":["../../src/business/BusinessId.ts"],"names":[],"mappings":";;AAKA,gCAEC;AAFD,SAAgB,UAAU,CAAC,EAAU;IACjC,OAAO,EAAgB,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ChannelSlug = Brand<string, 'ChannelSlug'>;
3
+ export declare function ChannelSlug(value: string): ChannelSlug;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelSlug = ChannelSlug;
4
+ function ChannelSlug(value) {
5
+ return value;
6
+ }
7
+ //# sourceMappingURL=ChannelSlug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelSlug.js","sourceRoot":"","sources":["../../src/channel/ChannelSlug.ts"],"names":[],"mappings":";;AAKA,kCAEC;AAFD,SAAgB,WAAW,CAAC,KAAa;IACrC,OAAO,KAAoB,CAAC;AAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type WorkspaceId = Brand<number, 'WorkspaceId'>;
3
+ export declare function WorkspaceId(id: number): WorkspaceId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkspaceId = WorkspaceId;
4
+ function WorkspaceId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=WorkspaceId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceId.js","sourceRoot":"","sources":["../../src/channel/WorkspaceId.ts"],"names":[],"mappings":";;AAKA,kCAEC;AAFD,SAAgB,WAAW,CAAC,EAAU;IAClC,OAAO,EAAiB,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type HmacSecretKey = Brand<string, 'HmacSecretKey'>;
3
+ export declare function HmacSecretKey(value: string): HmacSecretKey;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HmacSecretKey = HmacSecretKey;
4
+ function HmacSecretKey(value) {
5
+ return value;
6
+ }
7
+ //# sourceMappingURL=HmacSecretKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HmacSecretKey.js","sourceRoot":"","sources":["../../src/common/HmacSecretKey.ts"],"names":[],"mappings":";;AAKA,sCAEC;AAFD,SAAgB,aAAa,CAAC,KAAa;IACvC,OAAO,KAAsB,CAAC;AAClC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ISODateString = Brand<string, 'ISODateString'>;
3
+ export declare function ISODateString(value: string): ISODateString;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ISODateString = ISODateString;
4
+ function ISODateString(value) {
5
+ return value;
6
+ }
7
+ //# sourceMappingURL=ISODateString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISODateString.js","sourceRoot":"","sources":["../../src/common/ISODateString.ts"],"names":[],"mappings":";;AAKA,sCAEC;AAFD,SAAgB,aAAa,CAAC,KAAa;IACvC,OAAO,KAAsB,CAAC;AAClC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type RRuleString = Brand<string, 'RRuleString'>;
3
+ export declare function RRuleString(value: string): RRuleString;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RRuleString = RRuleString;
4
+ function RRuleString(value) {
5
+ return value;
6
+ }
7
+ //# sourceMappingURL=RRuleString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RRuleString.js","sourceRoot":"","sources":["../../src/common/RRuleString.ts"],"names":[],"mappings":";;AAKA,kCAEC;AAFD,SAAgB,WAAW,CAAC,KAAa;IACrC,OAAO,KAAoB,CAAC;AAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type FileOperationId = Brand<string, 'FileOperationId'>;
3
+ export declare const FileOperationId: (id: string) => FileOperationId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileOperationId = void 0;
4
+ const FileOperationId = (id) => {
5
+ return id;
6
+ };
7
+ exports.FileOperationId = FileOperationId;
8
+ //# sourceMappingURL=FileOperationId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileOperationId.js","sourceRoot":"","sources":["../../src/file-operations/FileOperationId.ts"],"names":[],"mappings":";;;AAKO,MAAM,eAAe,GAAG,CAAC,EAAU,EAAmB,EAAE;IAC3D,OAAO,EAAqB,CAAC;AACjC,CAAC,CAAC;AAFW,QAAA,eAAe,mBAE1B"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type FileId = Brand<string, 'FileId'>;
3
+ export declare function FileId(id: string): FileId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileId = FileId;
4
+ function FileId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=FileId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileId.js","sourceRoot":"","sources":["../../src/file-storage/FileId.ts"],"names":[],"mappings":";;AAKA,wBAEC;AAFD,SAAgB,MAAM,CAAC,EAAU;IAC7B,OAAO,EAAY,CAAC;AACxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type SharedCardLinkId = Brand<string, 'SharedCardLinkId'>;
3
+ export declare function SharedCardLinkId(value: string): SharedCardLinkId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SharedCardLinkId = SharedCardLinkId;
4
+ function SharedCardLinkId(value) {
5
+ return value;
6
+ }
7
+ //# sourceMappingURL=SharedCardLinkId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedCardLinkId.js","sourceRoot":"","sources":["../../src/shared-link/SharedCardLinkId.ts"],"names":[],"mappings":";;AAKA,4CAEC;AAFD,SAAgB,gBAAgB,CAAC,KAAa;IAC1C,OAAO,KAAyB,CAAC;AACrC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Brand, SubBrand } from '@paradoxical-io/types';
2
+ export type UserId = Brand<number, 'UserId'>;
3
+ export type OriginUserId = SubBrand<UserId, 'OriginUserId'>;
4
+ export declare function UserId<T extends UserId>(value: number): T;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserId = UserId;
4
+ function UserId(value) {
5
+ return value;
6
+ }
7
+ //# sourceMappingURL=UserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserId.js","sourceRoot":"","sources":["../../src/user/UserId.ts"],"names":[],"mappings":";;AAaA,wBAEC;AAFD,SAAgB,MAAM,CAAmB,KAAa;IAClD,OAAO,KAAU,CAAC;AACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type UserGroupId = Brand<string, 'UserGroupId'>;
3
+ export declare function UserGroupId(id: string): UserGroupId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserGroupId = UserGroupId;
4
+ function UserGroupId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=UserGroupId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserGroupId.js","sourceRoot":"","sources":["../../../src/user/group/UserGroupId.ts"],"names":[],"mappings":";;AAKA,kCAEC;AAFD,SAAgB,WAAW,CAAC,EAAU;IAClC,OAAO,EAAiB,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ViewTemplateId = Brand<string, 'ViewTemplateId'>;
3
+ export declare function ViewTemplateId(id: string): ViewTemplateId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewTemplateId = ViewTemplateId;
4
+ function ViewTemplateId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=ViewTemplateId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewTemplateId.js","sourceRoot":"","sources":["../../src/view-template/ViewTemplateId.ts"],"names":[],"mappings":";;AAKA,wCAEC;AAFD,SAAgB,cAAc,CAAC,EAAU;IACrC,OAAO,EAAoB,CAAC;AAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ViewTemplateLayoutId = Brand<string, 'ViewTemplateLayoutId'>;
3
+ export declare function ViewTemplateLayoutId(id: string): ViewTemplateLayoutId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewTemplateLayoutId = ViewTemplateLayoutId;
4
+ function ViewTemplateLayoutId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=ViewTemplateLayoutId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewTemplateLayoutId.js","sourceRoot":"","sources":["../../src/view-template-layout/ViewTemplateLayoutId.ts"],"names":[],"mappings":";;AAKA,oDAEC;AAFD,SAAgB,oBAAoB,CAAC,EAAU;IAC3C,OAAO,EAA0B,CAAC;AACtC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ViewTemplateLayoutItemId = Brand<string, 'ViewSectionLayoutId'>;
3
+ export declare function ViewSectionLayoutItemId(id: string): ViewTemplateLayoutItemId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewSectionLayoutItemId = ViewSectionLayoutItemId;
4
+ function ViewSectionLayoutItemId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=ViewTemplateLayoutItemId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewTemplateLayoutItemId.js","sourceRoot":"","sources":["../../src/view-template-layout/ViewTemplateLayoutItemId.ts"],"names":[],"mappings":";;AAKA,0DAEC;AAFD,SAAgB,uBAAuB,CAAC,EAAU;IAC9C,OAAO,EAA8B,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type BundleId = Brand<string, 'BundleId'>;
3
+ export declare function BundleId(id: string): BundleId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BundleId = BundleId;
4
+ function BundleId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=BundleId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BundleId.js","sourceRoot":"","sources":["../../../src/workflow-app/bundle/BundleId.ts"],"names":[],"mappings":";;AAKA,4BAEC;AAFD,SAAgB,QAAQ,CAAC,EAAU;IAC/B,OAAO,EAAc,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type WorkflowEntityEventId = Brand<string, 'WorkflowEntityEventId'>;
3
+ export declare function WorkflowEntityEventId(id: string): WorkflowEntityEventId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowEntityEventId = WorkflowEntityEventId;
4
+ function WorkflowEntityEventId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=WorkflowEntityEventId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowEntityEventId.js","sourceRoot":"","sources":["../../src/workflow-entity/WorkflowEntityEventId.ts"],"names":[],"mappings":";;AAKA,sDAEC;AAFD,SAAgB,qBAAqB,CAAC,EAAU;IAC5C,OAAO,EAA2B,CAAC;AACvC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type RecurringEntitiesScheduleId = Brand<string, 'RecurringEntitiesScheduleId'>;
3
+ export declare function RecurringEntitiesScheduleId(id: string): RecurringEntitiesScheduleId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecurringEntitiesScheduleId = RecurringEntitiesScheduleId;
4
+ function RecurringEntitiesScheduleId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=RecurringEntitiesScheduleId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecurringEntitiesScheduleId.js","sourceRoot":"","sources":["../../../src/workflow-entity/recurring/RecurringEntitiesScheduleId.ts"],"names":[],"mappings":";;AAKA,kEAEC;AAFD,SAAgB,2BAA2B,CAAC,EAAU;IAClD,OAAO,EAAiC,CAAC;AAC7C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type LexoSortKey = Brand<string, 'LexoSortKey'>;
3
+ export declare function LexoSortKey(key: string): LexoSortKey;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LexoSortKey = LexoSortKey;
4
+ function LexoSortKey(key) {
5
+ return key;
6
+ }
7
+ //# sourceMappingURL=LexoSortKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexoSortKey.js","sourceRoot":"","sources":["../../../src/workflow-entity/sort/LexoSortKey.ts"],"names":[],"mappings":";;AAKA,kCAEC;AAFD,SAAgB,WAAW,CAAC,GAAW;IACnC,OAAO,GAAkB,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type WorkflowTemplateId = Brand<string, 'WorkflowTemplateId'>;
3
+ export declare function WorkflowTemplateId(id: string): WorkflowTemplateId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowTemplateId = WorkflowTemplateId;
4
+ function WorkflowTemplateId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=WorkflowTemplateId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowTemplateId.js","sourceRoot":"","sources":["../../src/workflow-template/WorkflowTemplateId.ts"],"names":[],"mappings":";;AAKA,gDAEC;AAFD,SAAgB,kBAAkB,CAAC,EAAU;IACzC,OAAO,EAAwB,CAAC;AACpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ComponentId = Brand<string, 'ComponentId'>;
3
+ export declare function ComponentId(value: string): ComponentId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentId = ComponentId;
4
+ function ComponentId(value) {
5
+ return value;
6
+ }
7
+ //# sourceMappingURL=ComponentId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComponentId.js","sourceRoot":"","sources":["../../../src/workflow-template/components/ComponentId.ts"],"names":[],"mappings":";;AAKA,kCAEC;AAFD,SAAgB,WAAW,CAAC,KAAa;IACrC,OAAO,KAAoB,CAAC;AAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type WorkspaceSectionId = Brand<string, 'WorkspaceSection'>;
3
+ export declare function WorkspaceSectionId(id: string): WorkspaceSectionId;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkspaceSectionId = WorkspaceSectionId;
4
+ function WorkspaceSectionId(id) {
5
+ return id;
6
+ }
7
+ //# sourceMappingURL=WorkspaceSectionId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceSectionId.js","sourceRoot":"","sources":["../../src/workspace-section/WorkspaceSectionId.ts"],"names":[],"mappings":";;AAKA,gDAEC;AAFD,SAAgB,kBAAkB,CAAC,EAAU;IACzC,OAAO,EAAwB,CAAC;AACpC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-types",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "author": "Coast Engineering",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -0,0 +1,3 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type Id = Brand<number | string, unknown> | number | string;
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type ApiKeyId = Brand<string, 'ApiKeyId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function ApiKeyId(id: string): ApiKeyId {
7
+ return id as ApiKeyId;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type AutomationId = Brand<string, 'AutomationId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function AutomationId(id: string): AutomationId {
7
+ return id as AutomationId;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type AutomationActionId = Brand<string, 'AutomationActionId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function AutomationActionId(id: string): AutomationActionId {
7
+ return id as AutomationActionId;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type AutomationActionAuditId = Brand<string, 'AutomationActionAuditId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function AutomationActionAuditId(id: string): AutomationActionAuditId {
7
+ return id as AutomationActionAuditId;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type BusinessId = Brand<number, 'BusinessId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function BusinessId(id: number): BusinessId {
7
+ return id as BusinessId;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type ChannelSlug = Brand<string, 'ChannelSlug'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function ChannelSlug(value: string): ChannelSlug {
7
+ return value as ChannelSlug;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type WorkspaceId = Brand<number, 'WorkspaceId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function WorkspaceId(id: number): WorkspaceId {
7
+ return id as WorkspaceId;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type HmacSecretKey = Brand<string, 'HmacSecretKey'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function HmacSecretKey(value: string): HmacSecretKey {
7
+ return value as HmacSecretKey;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type ISODateString = Brand<string, 'ISODateString'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function ISODateString(value: string): ISODateString {
7
+ return value as ISODateString;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type RRuleString = Brand<string, 'RRuleString'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function RRuleString(value: string): RRuleString {
7
+ return value as RRuleString;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type FileOperationId = Brand<string, 'FileOperationId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export const FileOperationId = (id: string): FileOperationId => {
7
+ return id as FileOperationId;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type FileId = Brand<string, 'FileId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function FileId(id: string): FileId {
7
+ return id as FileId;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+
3
+ export type SharedCardLinkId = Brand<string, 'SharedCardLinkId'>;
4
+
5
+ // eslint-disable-next-line no-restricted-syntax
6
+ export function SharedCardLinkId(value: string): SharedCardLinkId {
7
+ return value as SharedCardLinkId;
8
+ }