@loopstack/common 0.24.0 → 0.25.1

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 (146) 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 -42
  18. package/dist/decorators/block.decorator.d.ts.map +1 -1
  19. package/dist/decorators/block.decorator.js +66 -74
  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 +1 -3
  34. package/dist/entities/index.d.ts.map +1 -1
  35. package/dist/entities/index.js +1 -3
  36. package/dist/entities/index.js.map +1 -1
  37. package/dist/entities/workflow-checkpoint.entity.d.ts +16 -0
  38. package/dist/entities/workflow-checkpoint.entity.d.ts.map +1 -0
  39. package/dist/entities/workflow-checkpoint.entity.js +83 -0
  40. package/dist/entities/workflow-checkpoint.entity.js.map +1 -0
  41. package/dist/entities/workflow.entity.d.ts +14 -16
  42. package/dist/entities/workflow.entity.d.ts.map +1 -1
  43. package/dist/entities/workflow.entity.js +65 -79
  44. package/dist/entities/workflow.entity.js.map +1 -1
  45. package/dist/entities/workspace.entity.d.ts +3 -3
  46. package/dist/entities/workspace.entity.d.ts.map +1 -1
  47. package/dist/entities/workspace.entity.js +7 -7
  48. package/dist/entities/workspace.entity.js.map +1 -1
  49. package/dist/enums/index.d.ts +0 -1
  50. package/dist/enums/index.d.ts.map +1 -1
  51. package/dist/enums/index.js +0 -1
  52. package/dist/enums/index.js.map +1 -1
  53. package/dist/enums/workflow-state.enum.d.ts +1 -0
  54. package/dist/enums/workflow-state.enum.d.ts.map +1 -1
  55. package/dist/enums/workflow-state.enum.js +1 -0
  56. package/dist/enums/workflow-state.enum.js.map +1 -1
  57. package/dist/index.d.ts +2 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +2 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/interfaces/block.interface.d.ts +4 -10
  62. package/dist/interfaces/block.interface.d.ts.map +1 -1
  63. package/dist/interfaces/document-repository.interface.d.ts +18 -0
  64. package/dist/interfaces/document-repository.interface.d.ts.map +1 -0
  65. package/dist/interfaces/{state-machine-validator-result.interface.js → document-repository.interface.js} +1 -1
  66. package/dist/interfaces/document-repository.interface.js.map +1 -0
  67. package/dist/interfaces/execution-context.interface.d.ts +10 -0
  68. package/dist/interfaces/execution-context.interface.d.ts.map +1 -0
  69. package/dist/interfaces/execution-context.interface.js +3 -0
  70. package/dist/interfaces/execution-context.interface.js.map +1 -0
  71. package/dist/interfaces/handler.interface.d.ts +9 -5
  72. package/dist/interfaces/handler.interface.d.ts.map +1 -1
  73. package/dist/interfaces/index.d.ts +3 -2
  74. package/dist/interfaces/index.d.ts.map +1 -1
  75. package/dist/interfaces/index.js +3 -2
  76. package/dist/interfaces/index.js.map +1 -1
  77. package/dist/interfaces/tool-execution-interceptor.interface.d.ts +10 -10
  78. package/dist/interfaces/tool-execution-interceptor.interface.d.ts.map +1 -1
  79. package/dist/interfaces/tool-execution-interceptor.interface.js +12 -2
  80. package/dist/interfaces/tool-execution-interceptor.interface.js.map +1 -1
  81. package/dist/interfaces/workflow-metadata.interface.d.ts +0 -1
  82. package/dist/interfaces/workflow-metadata.interface.d.ts.map +1 -1
  83. package/dist/interfaces/workflow-orchestrator.interface.d.ts +11 -0
  84. package/dist/interfaces/workflow-orchestrator.interface.d.ts.map +1 -0
  85. package/dist/interfaces/workflow-orchestrator.interface.js +3 -0
  86. package/dist/interfaces/workflow-orchestrator.interface.js.map +1 -0
  87. package/dist/interfaces/workflow-state.interface.d.ts +1 -4
  88. package/dist/interfaces/workflow-state.interface.d.ts.map +1 -1
  89. package/dist/tokens.d.ts +5 -0
  90. package/dist/tokens.d.ts.map +1 -0
  91. package/dist/tokens.js +8 -0
  92. package/dist/tokens.js.map +1 -0
  93. package/dist/utils/block-config.builder.d.ts.map +1 -1
  94. package/dist/utils/block-config.builder.js +7 -6
  95. package/dist/utils/block-config.builder.js.map +1 -1
  96. package/dist/utils/block-metadata.utils.d.ts +8 -17
  97. package/dist/utils/block-metadata.utils.d.ts.map +1 -1
  98. package/dist/utils/block-metadata.utils.js +33 -63
  99. package/dist/utils/block-metadata.utils.js.map +1 -1
  100. package/dist/utils/index.d.ts +1 -3
  101. package/dist/utils/index.d.ts.map +1 -1
  102. package/dist/utils/index.js +1 -3
  103. package/dist/utils/index.js.map +1 -1
  104. package/dist/utils/workflow-transitions.builder.d.ts +3 -0
  105. package/dist/utils/workflow-transitions.builder.d.ts.map +1 -0
  106. package/dist/utils/workflow-transitions.builder.js +22 -0
  107. package/dist/utils/workflow-transitions.builder.js.map +1 -0
  108. package/package.json +3 -4
  109. package/dist/decorators/state-machine-validator.decorator.d.ts +0 -5
  110. package/dist/decorators/state-machine-validator.decorator.d.ts.map +0 -1
  111. package/dist/decorators/state-machine-validator.decorator.js +0 -11
  112. package/dist/decorators/state-machine-validator.decorator.js.map +0 -1
  113. package/dist/entities/event-subscriber.entity.d.ts +0 -21
  114. package/dist/entities/event-subscriber.entity.d.ts.map +0 -1
  115. package/dist/entities/event-subscriber.entity.js +0 -107
  116. package/dist/entities/event-subscriber.entity.js.map +0 -1
  117. package/dist/entities/namespace.entity.d.ts +0 -20
  118. package/dist/entities/namespace.entity.d.ts.map +0 -1
  119. package/dist/entities/namespace.entity.js +0 -107
  120. package/dist/entities/namespace.entity.js.map +0 -1
  121. package/dist/entities/pipeline.entity.d.ts +0 -32
  122. package/dist/entities/pipeline.entity.d.ts.map +0 -1
  123. package/dist/entities/pipeline.entity.js +0 -164
  124. package/dist/entities/pipeline.entity.js.map +0 -1
  125. package/dist/enums/pipeline-state.d.ts +0 -9
  126. package/dist/enums/pipeline-state.d.ts.map +0 -1
  127. package/dist/enums/pipeline-state.js +0 -13
  128. package/dist/enums/pipeline-state.js.map +0 -1
  129. package/dist/interfaces/state-machine-validator-result.interface.d.ts +0 -5
  130. package/dist/interfaces/state-machine-validator-result.interface.d.ts.map +0 -1
  131. package/dist/interfaces/state-machine-validator-result.interface.js.map +0 -1
  132. package/dist/interfaces/state-machine-validator.interface.d.ts +0 -9
  133. package/dist/interfaces/state-machine-validator.interface.d.ts.map +0 -1
  134. package/dist/interfaces/state-machine-validator.interface.js.map +0 -1
  135. package/dist/utils/create-hash.util.d.ts +0 -2
  136. package/dist/utils/create-hash.util.d.ts.map +0 -1
  137. package/dist/utils/create-hash.util.js +0 -13
  138. package/dist/utils/create-hash.util.js.map +0 -1
  139. package/dist/utils/normalize-deep-serialize.util.d.ts +0 -2
  140. package/dist/utils/normalize-deep-serialize.util.d.ts.map +0 -1
  141. package/dist/utils/normalize-deep-serialize.util.js +0 -19
  142. package/dist/utils/normalize-deep-serialize.util.js.map +0 -1
  143. package/dist/utils/object-fingerprint.util.d.ts +0 -2
  144. package/dist/utils/object-fingerprint.util.d.ts.map +0 -1
  145. package/dist/utils/object-fingerprint.util.js +0 -10
  146. package/dist/utils/object-fingerprint.util.js.map +0 -1
@@ -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,SAAS,CAAQ;IAMjB,SAAS,CAAmB;IAG5B,WAAW,CAAU;IAIrB,OAAO,CAAQ;IAIf,SAAS,CAAU;IAGnB,UAAU,CAAqB;IAO/B,MAAM,CAAyB;IAG/B,QAAQ,CAAiB;IAGzB,QAAQ,CAAoB;CAC7B,CAAA;AA7FY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;0CACnB;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,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ADC,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"}