@loopstack/common 0.23.0 → 0.25.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.
Files changed (150) hide show
  1. package/dist/base/base-tool.d.ts +10 -0
  2. package/dist/base/base-tool.d.ts.map +1 -0
  3. package/dist/base/base-tool.js +39 -0
  4. package/dist/base/base-tool.js.map +1 -0
  5. package/dist/base/base-workflow.d.ts +27 -0
  6. package/dist/base/base-workflow.d.ts.map +1 -0
  7. package/dist/base/base-workflow.js +53 -0
  8. package/dist/base/base-workflow.js.map +1 -0
  9. package/dist/base/index.d.ts +4 -0
  10. package/dist/base/index.d.ts.map +1 -0
  11. package/dist/base/index.js +20 -0
  12. package/dist/base/index.js.map +1 -0
  13. package/dist/base/workflow-templates.d.ts +2 -0
  14. package/dist/base/workflow-templates.d.ts.map +1 -0
  15. package/dist/{interfaces/state-machine-validator.interface.js → base/workflow-templates.js} +1 -1
  16. package/dist/base/workflow-templates.js.map +1 -0
  17. package/dist/decorators/block.decorator.d.ts +52 -48
  18. package/dist/decorators/block.decorator.d.ts.map +1 -1
  19. package/dist/decorators/block.decorator.js +66 -86
  20. package/dist/decorators/block.decorator.js.map +1 -1
  21. package/dist/decorators/index.d.ts +0 -1
  22. package/dist/decorators/index.d.ts.map +1 -1
  23. package/dist/decorators/index.js +0 -1
  24. package/dist/decorators/index.js.map +1 -1
  25. package/dist/dtos/run-context.d.ts +4 -5
  26. package/dist/dtos/run-context.d.ts.map +1 -1
  27. package/dist/dtos/run-context.js +3 -4
  28. package/dist/dtos/run-context.js.map +1 -1
  29. package/dist/entities/document.entity.d.ts +2 -3
  30. package/dist/entities/document.entity.d.ts.map +1 -1
  31. package/dist/entities/document.entity.js +8 -14
  32. package/dist/entities/document.entity.js.map +1 -1
  33. package/dist/entities/index.d.ts +2 -3
  34. package/dist/entities/index.d.ts.map +1 -1
  35. package/dist/entities/index.js +2 -3
  36. package/dist/entities/index.js.map +1 -1
  37. package/dist/entities/secret.entity.d.ts +11 -0
  38. package/dist/entities/secret.entity.d.ts.map +1 -0
  39. package/dist/entities/secret.entity.js +58 -0
  40. package/dist/entities/secret.entity.js.map +1 -0
  41. package/dist/entities/workflow-checkpoint.entity.d.ts +16 -0
  42. package/dist/entities/workflow-checkpoint.entity.d.ts.map +1 -0
  43. package/dist/entities/workflow-checkpoint.entity.js +83 -0
  44. package/dist/entities/workflow-checkpoint.entity.js.map +1 -0
  45. package/dist/entities/workflow.entity.d.ts +14 -16
  46. package/dist/entities/workflow.entity.d.ts.map +1 -1
  47. package/dist/entities/workflow.entity.js +65 -79
  48. package/dist/entities/workflow.entity.js.map +1 -1
  49. package/dist/entities/workspace.entity.d.ts +3 -3
  50. package/dist/entities/workspace.entity.d.ts.map +1 -1
  51. package/dist/entities/workspace.entity.js +7 -7
  52. package/dist/entities/workspace.entity.js.map +1 -1
  53. package/dist/enums/index.d.ts +0 -1
  54. package/dist/enums/index.d.ts.map +1 -1
  55. package/dist/enums/index.js +0 -1
  56. package/dist/enums/index.js.map +1 -1
  57. package/dist/enums/workflow-state.enum.d.ts +1 -0
  58. package/dist/enums/workflow-state.enum.d.ts.map +1 -1
  59. package/dist/enums/workflow-state.enum.js +1 -0
  60. package/dist/enums/workflow-state.enum.js.map +1 -1
  61. package/dist/index.d.ts +2 -0
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +2 -0
  64. package/dist/index.js.map +1 -1
  65. package/dist/interfaces/block.interface.d.ts +4 -9
  66. package/dist/interfaces/block.interface.d.ts.map +1 -1
  67. package/dist/interfaces/document-repository.interface.d.ts +18 -0
  68. package/dist/interfaces/document-repository.interface.d.ts.map +1 -0
  69. package/dist/interfaces/{state-machine-validator-result.interface.js → document-repository.interface.js} +1 -1
  70. package/dist/interfaces/document-repository.interface.js.map +1 -0
  71. package/dist/interfaces/execution-context.interface.d.ts +10 -0
  72. package/dist/interfaces/execution-context.interface.d.ts.map +1 -0
  73. package/dist/interfaces/execution-context.interface.js +3 -0
  74. package/dist/interfaces/execution-context.interface.js.map +1 -0
  75. package/dist/interfaces/handler.interface.d.ts +16 -5
  76. package/dist/interfaces/handler.interface.d.ts.map +1 -1
  77. package/dist/interfaces/index.d.ts +3 -2
  78. package/dist/interfaces/index.d.ts.map +1 -1
  79. package/dist/interfaces/index.js +3 -2
  80. package/dist/interfaces/index.js.map +1 -1
  81. package/dist/interfaces/tool-execution-interceptor.interface.d.ts +10 -10
  82. package/dist/interfaces/tool-execution-interceptor.interface.d.ts.map +1 -1
  83. package/dist/interfaces/tool-execution-interceptor.interface.js +12 -2
  84. package/dist/interfaces/tool-execution-interceptor.interface.js.map +1 -1
  85. package/dist/interfaces/workflow-metadata.interface.d.ts +0 -1
  86. package/dist/interfaces/workflow-metadata.interface.d.ts.map +1 -1
  87. package/dist/interfaces/workflow-orchestrator.interface.d.ts +11 -0
  88. package/dist/interfaces/workflow-orchestrator.interface.d.ts.map +1 -0
  89. package/dist/interfaces/workflow-orchestrator.interface.js +3 -0
  90. package/dist/interfaces/workflow-orchestrator.interface.js.map +1 -0
  91. package/dist/interfaces/workflow-state.interface.d.ts +1 -4
  92. package/dist/interfaces/workflow-state.interface.d.ts.map +1 -1
  93. package/dist/tokens.d.ts +5 -0
  94. package/dist/tokens.d.ts.map +1 -0
  95. package/dist/tokens.js +8 -0
  96. package/dist/tokens.js.map +1 -0
  97. package/dist/utils/block-config.builder.d.ts.map +1 -1
  98. package/dist/utils/block-config.builder.js +7 -6
  99. package/dist/utils/block-config.builder.js.map +1 -1
  100. package/dist/utils/block-metadata.utils.d.ts +7 -16
  101. package/dist/utils/block-metadata.utils.d.ts.map +1 -1
  102. package/dist/utils/block-metadata.utils.js +33 -63
  103. package/dist/utils/block-metadata.utils.js.map +1 -1
  104. package/dist/utils/index.d.ts +1 -3
  105. package/dist/utils/index.d.ts.map +1 -1
  106. package/dist/utils/index.js +1 -3
  107. package/dist/utils/index.js.map +1 -1
  108. package/dist/utils/workflow-transitions.builder.d.ts +3 -0
  109. package/dist/utils/workflow-transitions.builder.d.ts.map +1 -0
  110. package/dist/utils/workflow-transitions.builder.js +22 -0
  111. package/dist/utils/workflow-transitions.builder.js.map +1 -0
  112. package/package.json +2 -3
  113. package/dist/decorators/state-machine-validator.decorator.d.ts +0 -5
  114. package/dist/decorators/state-machine-validator.decorator.d.ts.map +0 -1
  115. package/dist/decorators/state-machine-validator.decorator.js +0 -11
  116. package/dist/decorators/state-machine-validator.decorator.js.map +0 -1
  117. package/dist/entities/event-subscriber.entity.d.ts +0 -20
  118. package/dist/entities/event-subscriber.entity.d.ts.map +0 -1
  119. package/dist/entities/event-subscriber.entity.js +0 -102
  120. package/dist/entities/event-subscriber.entity.js.map +0 -1
  121. package/dist/entities/namespace.entity.d.ts +0 -20
  122. package/dist/entities/namespace.entity.d.ts.map +0 -1
  123. package/dist/entities/namespace.entity.js +0 -107
  124. package/dist/entities/namespace.entity.js.map +0 -1
  125. package/dist/entities/pipeline.entity.d.ts +0 -32
  126. package/dist/entities/pipeline.entity.d.ts.map +0 -1
  127. package/dist/entities/pipeline.entity.js +0 -164
  128. package/dist/entities/pipeline.entity.js.map +0 -1
  129. package/dist/enums/pipeline-state.d.ts +0 -9
  130. package/dist/enums/pipeline-state.d.ts.map +0 -1
  131. package/dist/enums/pipeline-state.js +0 -13
  132. package/dist/enums/pipeline-state.js.map +0 -1
  133. package/dist/interfaces/state-machine-validator-result.interface.d.ts +0 -5
  134. package/dist/interfaces/state-machine-validator-result.interface.d.ts.map +0 -1
  135. package/dist/interfaces/state-machine-validator-result.interface.js.map +0 -1
  136. package/dist/interfaces/state-machine-validator.interface.d.ts +0 -9
  137. package/dist/interfaces/state-machine-validator.interface.d.ts.map +0 -1
  138. package/dist/interfaces/state-machine-validator.interface.js.map +0 -1
  139. package/dist/utils/create-hash.util.d.ts +0 -2
  140. package/dist/utils/create-hash.util.d.ts.map +0 -1
  141. package/dist/utils/create-hash.util.js +0 -13
  142. package/dist/utils/create-hash.util.js.map +0 -1
  143. package/dist/utils/normalize-deep-serialize.util.d.ts +0 -2
  144. package/dist/utils/normalize-deep-serialize.util.d.ts.map +0 -1
  145. package/dist/utils/normalize-deep-serialize.util.js +0 -19
  146. package/dist/utils/normalize-deep-serialize.util.js.map +0 -1
  147. package/dist/utils/object-fingerprint.util.d.ts +0 -2
  148. package/dist/utils/object-fingerprint.util.d.ts.map +0 -1
  149. package/dist/utils/object-fingerprint.util.js +0 -10
  150. package/dist/utils/object-fingerprint.util.js.map +0 -1
@@ -1,102 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EventSubscriberEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const pipeline_entity_1 = require("./pipeline.entity");
15
- const user_entity_1 = require("./user.entity");
16
- const workspace_entity_1 = require("./workspace.entity");
17
- let EventSubscriberEntity = class EventSubscriberEntity {
18
- id;
19
- subscriberPipeline;
20
- subscriberPipelineId;
21
- subscriberWorkflowId;
22
- subscriberTransition;
23
- eventCorrelationId;
24
- eventName;
25
- createdAt;
26
- updatedAt;
27
- workspace;
28
- workspaceId;
29
- user;
30
- userId;
31
- once;
32
- };
33
- exports.EventSubscriberEntity = EventSubscriberEntity;
34
- __decorate([
35
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
36
- __metadata("design:type", String)
37
- ], EventSubscriberEntity.prototype, "id", void 0);
38
- __decorate([
39
- (0, typeorm_1.ManyToOne)(() => pipeline_entity_1.PipelineEntity, { onDelete: 'CASCADE' }),
40
- (0, typeorm_1.JoinColumn)({ name: 'subscriber_pipeline_id' }),
41
- __metadata("design:type", pipeline_entity_1.PipelineEntity)
42
- ], EventSubscriberEntity.prototype, "subscriberPipeline", void 0);
43
- __decorate([
44
- (0, typeorm_1.Column)({ type: 'uuid', name: 'subscriber_pipeline_id' }),
45
- (0, typeorm_1.Index)(),
46
- __metadata("design:type", String)
47
- ], EventSubscriberEntity.prototype, "subscriberPipelineId", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: 'uuid', name: 'subscriber_workflow_id' }),
50
- __metadata("design:type", String)
51
- ], EventSubscriberEntity.prototype, "subscriberWorkflowId", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ type: 'varchar', name: 'subscriber_transition' }),
54
- __metadata("design:type", String)
55
- ], EventSubscriberEntity.prototype, "subscriberTransition", void 0);
56
- __decorate([
57
- (0, typeorm_1.Column)({ type: 'varchar', name: 'event_correlation_id' }),
58
- (0, typeorm_1.Index)(),
59
- __metadata("design:type", String)
60
- ], EventSubscriberEntity.prototype, "eventCorrelationId", void 0);
61
- __decorate([
62
- (0, typeorm_1.Column)({ type: 'varchar', name: 'event_name' }),
63
- (0, typeorm_1.Index)(),
64
- __metadata("design:type", String)
65
- ], EventSubscriberEntity.prototype, "eventName", void 0);
66
- __decorate([
67
- (0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
68
- __metadata("design:type", Date)
69
- ], EventSubscriberEntity.prototype, "createdAt", void 0);
70
- __decorate([
71
- (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
72
- __metadata("design:type", Date)
73
- ], EventSubscriberEntity.prototype, "updatedAt", void 0);
74
- __decorate([
75
- (0, typeorm_1.ManyToOne)(() => workspace_entity_1.WorkspaceEntity, { onDelete: 'CASCADE' }),
76
- (0, typeorm_1.JoinColumn)({ name: 'workspace_id' }),
77
- __metadata("design:type", workspace_entity_1.WorkspaceEntity)
78
- ], EventSubscriberEntity.prototype, "workspace", void 0);
79
- __decorate([
80
- (0, typeorm_1.Column)({ name: 'workspace_id', nullable: true }),
81
- __metadata("design:type", String)
82
- ], EventSubscriberEntity.prototype, "workspaceId", void 0);
83
- __decorate([
84
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'RESTRICT' }),
85
- (0, typeorm_1.JoinColumn)({ name: 'user_id' }),
86
- __metadata("design:type", user_entity_1.User)
87
- ], EventSubscriberEntity.prototype, "user", void 0);
88
- __decorate([
89
- (0, typeorm_1.Column)({ name: 'user_id', type: 'uuid' }),
90
- (0, typeorm_1.Index)(),
91
- __metadata("design:type", String)
92
- ], EventSubscriberEntity.prototype, "userId", void 0);
93
- __decorate([
94
- (0, typeorm_1.Column)({ name: 'once', type: 'boolean', default: true }),
95
- __metadata("design:type", Boolean)
96
- ], EventSubscriberEntity.prototype, "once", void 0);
97
- exports.EventSubscriberEntity = EventSubscriberEntity = __decorate([
98
- (0, typeorm_1.Entity)({ name: 'core_event_subscriber' }),
99
- (0, typeorm_1.Index)(['eventCorrelationId', 'eventName']),
100
- (0, typeorm_1.Index)(['subscriberPipelineId', 'subscriberWorkflowId', 'subscriberTransition'])
101
- ], EventSubscriberEntity);
102
- //# sourceMappingURL=event-subscriber.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-subscriber.entity.js","sourceRoot":"","sources":["../../src/entities/event-subscriber.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AACjB,uDAAmD;AACnD,+CAAqC;AACrC,yDAAqD;AAK9C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAEhC,EAAE,CAAU;IAIZ,kBAAkB,CAAkB;IAIpC,oBAAoB,CAAS;IAG7B,oBAAoB,CAAU;IAG9B,oBAAoB,CAAU;IAI9B,kBAAkB,CAAU;IAI5B,SAAS,CAAU;IAGnB,SA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AE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACzD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACzB,kCAAe;wDAAC;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC5B;AAIrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC/C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,kBAAI;mDAAC;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACzC,IAAA,eAAK,GAAE;;qDACQ;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDAC1C;gCAhDJ,qBAAqB;IAHjC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;IACzC,IAAA,eAAK,EAAC,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;IAC1C,IAAA,eAAK,EAAC,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,sBAAsB,CAAC,CAAC;GACnE,qBAAqB,CAiDjC"}
@@ -1,20 +0,0 @@
1
- import { PipelineEntity } from './pipeline.entity';
2
- import { User } from './user.entity';
3
- import { WorkflowEntity } from './workflow.entity';
4
- export declare class NamespaceEntity {
5
- id: string;
6
- name: string;
7
- workspaceId: string;
8
- pipeline: PipelineEntity;
9
- pipelineId: string;
10
- parent: NamespaceEntity;
11
- parentId: string | null;
12
- metadata: Record<string, any> | null;
13
- children: NamespaceEntity[];
14
- workflows: WorkflowEntity[];
15
- createdAt: Date;
16
- updatedAt: Date;
17
- creator: User;
18
- createdBy: string;
19
- }
20
- //# sourceMappingURL=namespace.entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespace.entity.d.ts","sourceRoot":"","sources":["../../src/entities/namespace.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBACa,eAAe;IAE1B,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,EAAG,MAAM,CAAC;IAMrB,QAAQ,EAAG,cAAc,CAAC;IAG1B,UAAU,EAAG,MAAM,CAAC;IAOpB,MAAM,EAAG,eAAe,CAAC;IAIzB,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,QAAQ,EAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAKtC,QAAQ,EAAG,eAAe,EAAE,CAAC;IAK7B,SAAS,EAAG,cAAc,EAAE,CAAC;IAG7B,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;IAIjB,OAAO,EAAG,IAAI,CAAC;IAIf,SAAS,EAAG,MAAM,CAAC;CACpB"}
@@ -1,107 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.NamespaceEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const pipeline_entity_1 = require("./pipeline.entity");
15
- const user_entity_1 = require("./user.entity");
16
- const workflow_entity_1 = require("./workflow.entity");
17
- let NamespaceEntity = class NamespaceEntity {
18
- id;
19
- name;
20
- workspaceId;
21
- pipeline;
22
- pipelineId;
23
- parent;
24
- parentId;
25
- metadata;
26
- children;
27
- workflows;
28
- createdAt;
29
- updatedAt;
30
- creator;
31
- createdBy;
32
- };
33
- exports.NamespaceEntity = NamespaceEntity;
34
- __decorate([
35
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
36
- __metadata("design:type", String)
37
- ], NamespaceEntity.prototype, "id", void 0);
38
- __decorate([
39
- (0, typeorm_1.Column)(),
40
- __metadata("design:type", String)
41
- ], NamespaceEntity.prototype, "name", void 0);
42
- __decorate([
43
- (0, typeorm_1.Column)({ name: 'workspace_id' }),
44
- __metadata("design:type", String)
45
- ], NamespaceEntity.prototype, "workspaceId", void 0);
46
- __decorate([
47
- (0, typeorm_1.ManyToOne)(() => pipeline_entity_1.PipelineEntity, (pipeline) => pipeline.namespaces, {
48
- onDelete: 'CASCADE',
49
- }),
50
- (0, typeorm_1.JoinColumn)({ name: 'pipeline_id' }),
51
- __metadata("design:type", pipeline_entity_1.PipelineEntity)
52
- ], NamespaceEntity.prototype, "pipeline", void 0);
53
- __decorate([
54
- (0, typeorm_1.Column)({ name: 'pipeline_id' }),
55
- __metadata("design:type", String)
56
- ], NamespaceEntity.prototype, "pipelineId", void 0);
57
- __decorate([
58
- (0, typeorm_1.ManyToOne)(() => NamespaceEntity, (namespace) => namespace.children, {
59
- onDelete: 'CASCADE',
60
- nullable: true,
61
- }),
62
- (0, typeorm_1.JoinColumn)({ name: 'parent_id' }),
63
- __metadata("design:type", NamespaceEntity)
64
- ], NamespaceEntity.prototype, "parent", void 0);
65
- __decorate([
66
- (0, typeorm_1.Column)({ name: 'parent_id', nullable: true }),
67
- (0, typeorm_1.Index)(),
68
- __metadata("design:type", Object)
69
- ], NamespaceEntity.prototype, "parentId", void 0);
70
- __decorate([
71
- (0, typeorm_1.Column)('json', { nullable: true }),
72
- __metadata("design:type", Object)
73
- ], NamespaceEntity.prototype, "metadata", void 0);
74
- __decorate([
75
- (0, typeorm_1.OneToMany)(() => NamespaceEntity, (namespace) => namespace.parent, {
76
- onDelete: 'CASCADE',
77
- }),
78
- __metadata("design:type", Array)
79
- ], NamespaceEntity.prototype, "children", void 0);
80
- __decorate([
81
- (0, typeorm_1.OneToMany)(() => workflow_entity_1.WorkflowEntity, (workflow) => workflow.namespace, {
82
- onDelete: 'CASCADE',
83
- }),
84
- __metadata("design:type", Array)
85
- ], NamespaceEntity.prototype, "workflows", void 0);
86
- __decorate([
87
- (0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
88
- __metadata("design:type", Date)
89
- ], NamespaceEntity.prototype, "createdAt", void 0);
90
- __decorate([
91
- (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
92
- __metadata("design:type", Date)
93
- ], NamespaceEntity.prototype, "updatedAt", void 0);
94
- __decorate([
95
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'RESTRICT' }),
96
- (0, typeorm_1.JoinColumn)({ name: 'created_by' }),
97
- __metadata("design:type", user_entity_1.User)
98
- ], NamespaceEntity.prototype, "creator", void 0);
99
- __decorate([
100
- (0, typeorm_1.Column)({ name: 'created_by', type: 'uuid' }),
101
- (0, typeorm_1.Index)(),
102
- __metadata("design:type", String)
103
- ], NamespaceEntity.prototype, "createdBy", void 0);
104
- exports.NamespaceEntity = NamespaceEntity = __decorate([
105
- (0, typeorm_1.Entity)('core_namespace')
106
- ], NamespaceEntity);
107
- //# sourceMappingURL=namespace.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespace.entity.js","sourceRoot":"","sources":["../../src/entities/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E,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,eAAK,GAAE;;iDACiB;AAGzB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACG;AAKtC;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE;QACjE,QAAQ,EAAE,SAAS;KACpB,CAAC;;iDAC2B;AAK7B;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAc,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE;QACjE,QAAQ,EAAE,SAAS;KACpB,CAAC;;kDAC2B;AAG7B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;kDAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;kDAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC/C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACzB,kBAAI;gDAAC;AAIf;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC5C,IAAA,eAAK,GAAE;;kDACW;0BAvDR,eAAe;IAD3B,IAAA,gBAAM,EAAC,gBAAgB,CAAC;GACZ,eAAe,CAwD3B"}
@@ -1,32 +0,0 @@
1
- import { z } from 'zod';
2
- import type { JSONSchemaConfigType } from '@loopstack/contracts/types';
3
- import { PipelineState } from '../enums';
4
- import { NamespaceEntity } from './namespace.entity';
5
- import { User } from './user.entity';
6
- import { WorkspaceEntity } from './workspace.entity';
7
- export declare class PipelineEntity {
8
- id: string;
9
- blockName: string;
10
- title: string | null;
11
- run: number;
12
- labels: string[];
13
- index: string;
14
- status: PipelineState;
15
- eventCorrelationId: string | null;
16
- args: any;
17
- context: Record<string, any>;
18
- schema: JSONSchemaConfigType | null;
19
- error: z.ZodError | null;
20
- ui: any;
21
- createdAt: Date;
22
- updatedAt: Date;
23
- workspace: WorkspaceEntity;
24
- workspaceId: string;
25
- creator: User;
26
- createdBy: string;
27
- namespaces: NamespaceEntity[];
28
- parent: PipelineEntity | null;
29
- parentId: string | null;
30
- children: PipelineEntity[];
31
- }
32
- //# sourceMappingURL=pipeline.entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline.entity.d.ts","sourceRoot":"","sources":["../../src/entities/pipeline.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBACa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAIZ,SAAS,EAAG,MAAM,CAAC;IAGnB,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,GAAG,EAAG,MAAM,CAAC;IAGb,MAAM,EAAG,MAAM,EAAE,CAAC;IAGlB,KAAK,EAAG,MAAM,CAAC;IAOf,MAAM,EAAG,aAAa,CAAC;IAGvB,kBAAkB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGnC,IAAI,EAAG,GAAG,CAAC;IAGX,OAAO,EAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAQ9B,MAAM,EAAG,oBAAoB,GAAG,IAAI,CAAC;IAGrC,KAAK,EAAG,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;IAQ1B,EAAE,EAAG,GAAG,CAAC;IAGT,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;IAMjB,SAAS,EAAG,eAAe,CAAC;IAG5B,WAAW,EAAG,MAAM,CAAC;IAIrB,OAAO,EAAG,IAAI,CAAC;IAIf,SAAS,EAAG,MAAM,CAAC;IAGnB,UAAU,EAAG,eAAe,EAAE,CAAC;IAO/B,MAAM,EAAG,cAAc,GAAG,IAAI,CAAC;IAG/B,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,QAAQ,EAAG,cAAc,EAAE,CAAC;CAC7B"}
@@ -1,164 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PipelineEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const enums_1 = require("../enums");
15
- const utils_1 = require("../utils");
16
- const namespace_entity_1 = require("./namespace.entity");
17
- const user_entity_1 = require("./user.entity");
18
- const workspace_entity_1 = require("./workspace.entity");
19
- let PipelineEntity = class PipelineEntity {
20
- id;
21
- blockName;
22
- title;
23
- run;
24
- labels;
25
- index;
26
- status;
27
- eventCorrelationId;
28
- args;
29
- context;
30
- schema;
31
- error;
32
- ui;
33
- createdAt;
34
- updatedAt;
35
- workspace;
36
- workspaceId;
37
- creator;
38
- createdBy;
39
- namespaces;
40
- parent;
41
- parentId;
42
- children;
43
- };
44
- exports.PipelineEntity = PipelineEntity;
45
- __decorate([
46
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
47
- __metadata("design:type", String)
48
- ], PipelineEntity.prototype, "id", void 0);
49
- __decorate([
50
- (0, typeorm_1.Column)({ type: 'varchar', name: 'block_name' }),
51
- (0, typeorm_1.Index)(),
52
- __metadata("design:type", String)
53
- ], PipelineEntity.prototype, "blockName", void 0);
54
- __decorate([
55
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
56
- __metadata("design:type", Object)
57
- ], PipelineEntity.prototype, "title", void 0);
58
- __decorate([
59
- (0, typeorm_1.Column)({ default: 1 }),
60
- __metadata("design:type", Number)
61
- ], PipelineEntity.prototype, "run", void 0);
62
- __decorate([
63
- (0, typeorm_1.Column)('jsonb', { default: [] }),
64
- __metadata("design:type", Array)
65
- ], PipelineEntity.prototype, "labels", void 0);
66
- __decorate([
67
- (0, typeorm_1.Column)('ltree', { default: '0001' }),
68
- __metadata("design:type", String)
69
- ], PipelineEntity.prototype, "index", void 0);
70
- __decorate([
71
- (0, typeorm_1.Column)({
72
- type: 'enum',
73
- enum: enums_1.PipelineState,
74
- default: 'pending',
75
- }),
76
- __metadata("design:type", String)
77
- ], PipelineEntity.prototype, "status", void 0);
78
- __decorate([
79
- (0, typeorm_1.Column)({ type: 'varchar', name: 'event_correlation_id', nullable: true }),
80
- __metadata("design:type", Object)
81
- ], PipelineEntity.prototype, "eventCorrelationId", void 0);
82
- __decorate([
83
- (0, typeorm_1.Column)('jsonb', { default: {} }),
84
- __metadata("design:type", Object)
85
- ], PipelineEntity.prototype, "args", void 0);
86
- __decorate([
87
- (0, typeorm_1.Column)('jsonb', { default: {} }),
88
- __metadata("design:type", Object)
89
- ], PipelineEntity.prototype, "context", void 0);
90
- __decorate([
91
- (0, typeorm_1.Column)({
92
- type: 'jsonb',
93
- transformer: new utils_1.StableJsonTransformer(),
94
- name: 'schema',
95
- nullable: true,
96
- }),
97
- __metadata("design:type", Object)
98
- ], PipelineEntity.prototype, "schema", void 0);
99
- __decorate([
100
- (0, typeorm_1.Column)('jsonb', { nullable: true, name: 'error' }),
101
- __metadata("design:type", Object)
102
- ], PipelineEntity.prototype, "error", void 0);
103
- __decorate([
104
- (0, typeorm_1.Column)({
105
- type: 'jsonb',
106
- transformer: new utils_1.StableJsonTransformer(),
107
- name: 'ui',
108
- nullable: true,
109
- }),
110
- __metadata("design:type", Object)
111
- ], PipelineEntity.prototype, "ui", void 0);
112
- __decorate([
113
- (0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
114
- __metadata("design:type", Date)
115
- ], PipelineEntity.prototype, "createdAt", void 0);
116
- __decorate([
117
- (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
118
- __metadata("design:type", Date)
119
- ], PipelineEntity.prototype, "updatedAt", void 0);
120
- __decorate([
121
- (0, typeorm_1.ManyToOne)(() => workspace_entity_1.WorkspaceEntity, (workspace) => workspace.pipelines, {
122
- onDelete: 'CASCADE',
123
- }),
124
- (0, typeorm_1.JoinColumn)({ name: 'workspace_id' }),
125
- __metadata("design:type", workspace_entity_1.WorkspaceEntity)
126
- ], PipelineEntity.prototype, "workspace", void 0);
127
- __decorate([
128
- (0, typeorm_1.Column)({ name: 'workspace_id' }),
129
- __metadata("design:type", String)
130
- ], PipelineEntity.prototype, "workspaceId", void 0);
131
- __decorate([
132
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'RESTRICT' }),
133
- (0, typeorm_1.JoinColumn)({ name: 'created_by' }),
134
- __metadata("design:type", user_entity_1.User)
135
- ], PipelineEntity.prototype, "creator", void 0);
136
- __decorate([
137
- (0, typeorm_1.Column)({ name: 'created_by', type: 'uuid' }),
138
- (0, typeorm_1.Index)(),
139
- __metadata("design:type", String)
140
- ], PipelineEntity.prototype, "createdBy", void 0);
141
- __decorate([
142
- (0, typeorm_1.OneToMany)(() => namespace_entity_1.NamespaceEntity, (namespace) => namespace.pipeline),
143
- __metadata("design:type", Array)
144
- ], PipelineEntity.prototype, "namespaces", void 0);
145
- __decorate([
146
- (0, typeorm_1.ManyToOne)(() => PipelineEntity, (pipeline) => pipeline.children, {
147
- onDelete: 'CASCADE',
148
- nullable: true,
149
- }),
150
- (0, typeorm_1.JoinColumn)({ name: 'parent_id' }),
151
- __metadata("design:type", Object)
152
- ], PipelineEntity.prototype, "parent", void 0);
153
- __decorate([
154
- (0, typeorm_1.Column)({ name: 'parent_id', type: 'uuid', nullable: true }),
155
- __metadata("design:type", Object)
156
- ], PipelineEntity.prototype, "parentId", void 0);
157
- __decorate([
158
- (0, typeorm_1.OneToMany)(() => PipelineEntity, (pipeline) => pipeline.parent),
159
- __metadata("design:type", Array)
160
- ], PipelineEntity.prototype, "children", void 0);
161
- exports.PipelineEntity = PipelineEntity = __decorate([
162
- (0, typeorm_1.Entity)({ name: 'core_pipeline' })
163
- ], PipelineEntity);
164
- //# sourceMappingURL=pipeline.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline.entity.js","sourceRoot":"","sources":["../../src/entities/pipeline.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AAGjB,oCAAyC;AACzC,oCAAiD;AACjD,yDAAqD;AACrD,+CAAqC;AACrC,yDAAqD;AAG9C,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAU;IAIZ,SAAS,CAAU;IAGnB,KAAK,CAAiB;IAGtB,GAAG,CAAU;IAGb,MAAM,CAAY;IAGlB,KAAK,CAAU;IAOf,MAAM,CAAiB;IAGvB,kBAAkB,CAAiB;IAGnC,IAAI,CAAO;IAGX,OAAO,CAAuB;IAQ9B,MAAM,CAA+B;IAGrC,KAAK,CAAqB;IAQ1B,EAAE,CAAO;IAGT,SAAS,CAAQ;IAGjB,SAA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,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC;;kDACrC;AAO/B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE;QAChE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;8CACH;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACnC;AAGzB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;;gDACnC;yBA5FjB,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,cAAc,CA6F1B"}
@@ -1,9 +0,0 @@
1
- export declare enum PipelineState {
2
- Pending = "pending",
3
- Running = "running",
4
- Paused = "paused",
5
- Completed = "completed",
6
- Failed = "failed",
7
- Canceled = "canceled"
8
- }
9
- //# sourceMappingURL=pipeline-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline-state.d.ts","sourceRoot":"","sources":["../../src/enums/pipeline-state.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PipelineState = void 0;
4
- var PipelineState;
5
- (function (PipelineState) {
6
- PipelineState["Pending"] = "pending";
7
- PipelineState["Running"] = "running";
8
- PipelineState["Paused"] = "paused";
9
- PipelineState["Completed"] = "completed";
10
- PipelineState["Failed"] = "failed";
11
- PipelineState["Canceled"] = "canceled";
12
- })(PipelineState || (exports.PipelineState = PipelineState = {}));
13
- //# sourceMappingURL=pipeline-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline-state.js","sourceRoot":"","sources":["../../src/enums/pipeline-state.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;AACvB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB"}
@@ -1,5 +0,0 @@
1
- export interface StateMachineValidatorResultInterface {
2
- valid: boolean;
3
- hashRecordUpdates: Record<string, string>;
4
- }
5
- //# sourceMappingURL=state-machine-validator-result.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-machine-validator-result.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/state-machine-validator-result.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oCAAoC;IACnD,KAAK,EAAE,OAAO,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-machine-validator-result.interface.js","sourceRoot":"","sources":["../../src/interfaces/state-machine-validator-result.interface.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { WorkflowEntity } from '../entities';
2
- export interface StateMachineValidatorInterface {
3
- validate(workflow: WorkflowEntity, args: Record<string, any> | undefined): {
4
- valid: boolean;
5
- target?: string;
6
- hash?: string;
7
- };
8
- }
9
- //# sourceMappingURL=state-machine-validator.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-machine-validator.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/state-machine-validator.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CACN,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GACpC;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-machine-validator.interface.js","sourceRoot":"","sources":["../../src/interfaces/state-machine-validator.interface.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export declare const createHash: (subject: any) => string;
2
- //# sourceMappingURL=create-hash.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-hash.util.d.ts","sourceRoot":"","sources":["../../src/utils/create-hash.util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,SAAS,GAAG,KAAG,MAGzC,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createHash = void 0;
7
- const murmurhash_1 = __importDefault(require("murmurhash"));
8
- const createHash = (subject) => {
9
- const jsonString = JSON.stringify(subject);
10
- return murmurhash_1.default.v3(jsonString).toString();
11
- };
12
- exports.createHash = createHash;
13
- //# sourceMappingURL=create-hash.util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-hash.util.js","sourceRoot":"","sources":["../../src/utils/create-hash.util.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AAE7B,MAAM,UAAU,GAAG,CAAC,OAAY,EAAU,EAAE;IACjD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,oBAAU,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC9C,CAAC,CAAC;AAHW,QAAA,UAAU,cAGrB"}
@@ -1,2 +0,0 @@
1
- export declare function normalizeDeepSerializeUtil(obj: unknown): string;
2
- //# sourceMappingURL=normalize-deep-serialize.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-deep-serialize.util.d.ts","sourceRoot":"","sources":["../../src/utils/normalize-deep-serialize.util.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAe/D"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeDeepSerializeUtil = normalizeDeepSerializeUtil;
4
- function normalizeDeepSerializeUtil(obj) {
5
- if (Array.isArray(obj)) {
6
- return JSON.stringify(obj.map(normalizeDeepSerializeUtil).sort());
7
- }
8
- else if (typeof obj === 'object' && obj !== null) {
9
- const record = obj;
10
- return JSON.stringify(Object.keys(record)
11
- .sort()
12
- .reduce((result, key) => {
13
- result[key] = normalizeDeepSerializeUtil(record[key]);
14
- return result;
15
- }, {}));
16
- }
17
- return String(obj);
18
- }
19
- //# sourceMappingURL=normalize-deep-serialize.util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-deep-serialize.util.js","sourceRoot":"","sources":["../../src/utils/normalize-deep-serialize.util.ts"],"names":[],"mappings":";;AAGA,gEAeC;AAfD,SAAgB,0BAA0B,CAAC,GAAY;IACrD,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACpE,CAAC;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QACnD,MAAM,MAAM,GAAG,GAA8B,CAAC;QAC9C,OAAO,IAAI,CAAC,SAAS,CACnB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;aAChB,IAAI,EAAE;aACN,MAAM,CAAC,CAAC,MAA8B,EAAE,GAAW,EAAE,EAAE;YACtD,MAAM,CAAC,GAAG,CAAC,GAAG,0BAA0B,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;YACtD,OAAO,MAAM,CAAC;QAChB,CAAC,EAAE,EAAE,CAAC,CACT,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const generateObjectFingerprint: (obj: Record<string, any>) => string;
2
- //# sourceMappingURL=object-fingerprint.util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object-fingerprint.util.d.ts","sourceRoot":"","sources":["../../src/utils/object-fingerprint.util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB,GAAI,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAEpE,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateObjectFingerprint = void 0;
4
- const create_hash_util_1 = require("./create-hash.util");
5
- const normalize_deep_serialize_util_1 = require("./normalize-deep-serialize.util");
6
- const generateObjectFingerprint = (obj) => {
7
- return (0, create_hash_util_1.createHash)((0, normalize_deep_serialize_util_1.normalizeDeepSerializeUtil)(obj));
8
- };
9
- exports.generateObjectFingerprint = generateObjectFingerprint;
10
- //# sourceMappingURL=object-fingerprint.util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object-fingerprint.util.js","sourceRoot":"","sources":["../../src/utils/object-fingerprint.util.ts"],"names":[],"mappings":";;;AAAA,yDAAgD;AAChD,mFAA6E;AAEtE,MAAM,yBAAyB,GAAG,CAAC,GAAwB,EAAU,EAAE;IAC5E,OAAO,IAAA,6BAAU,EAAC,IAAA,0DAA0B,EAAC,GAAG,CAAC,CAAC,CAAC;AACrD,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC"}