@attraccess/database-entities 0.0.16 → 1.2.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.
- package/package.json +4 -5
- package/src/index.d.ts +2 -0
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/lib/entities/attractap.entity.d.ts +15 -0
- package/src/lib/entities/attractap.entity.js +87 -0
- package/src/lib/entities/attractap.entity.js.map +1 -0
- package/src/lib/entities/billing-transaction-item.entity.d.ts +11 -0
- package/src/lib/entities/billing-transaction-item.entity.js +65 -0
- package/src/lib/entities/billing-transaction-item.entity.js.map +1 -0
- package/src/lib/entities/billing-transaction.entity.d.ts +25 -0
- package/src/lib/entities/billing-transaction.entity.js +121 -0
- package/src/lib/entities/billing-transaction.entity.js.map +1 -0
- package/src/lib/entities/email-template.entity.d.ts +15 -0
- package/src/lib/entities/email-template.entity.js +61 -0
- package/src/lib/entities/email-template.entity.js.map +1 -0
- package/src/lib/entities/mqttServer.entity.d.ts +3 -2
- package/src/lib/entities/mqttServer.entity.js +24 -5
- package/src/lib/entities/mqttServer.entity.js.map +1 -1
- package/src/lib/entities/nfcCard.entity.d.ts +12 -0
- package/src/lib/entities/nfcCard.entity.js +77 -0
- package/src/lib/entities/nfcCard.entity.js.map +1 -0
- package/src/lib/entities/resource-billing-configuration.entity.d.ts +10 -0
- package/src/lib/entities/resource-billing-configuration.entity.js +52 -0
- package/src/lib/entities/resource-billing-configuration.entity.js.map +1 -0
- package/src/lib/entities/resource.entity.d.ts +23 -10
- package/src/lib/entities/resource.entity.js +96 -34
- package/src/lib/entities/resource.entity.js.map +1 -1
- package/src/lib/entities/resource.maintenance.d.ts +11 -0
- package/src/lib/entities/resource.maintenance.js +78 -0
- package/src/lib/entities/resource.maintenance.js.map +1 -0
- package/src/lib/entities/resource.type.d.ts +4 -0
- package/src/lib/entities/resource.type.js +9 -0
- package/src/lib/entities/resource.type.js.map +1 -0
- package/src/lib/entities/resourceFlowEdge.d.ts +12 -0
- package/src/lib/entities/resourceFlowEdge.js +86 -0
- package/src/lib/entities/resourceFlowEdge.js.map +1 -0
- package/src/lib/entities/resourceFlowLog.d.ts +18 -0
- package/src/lib/entities/resourceFlowLog.js +94 -0
- package/src/lib/entities/resourceFlowLog.js.map +1 -0
- package/src/lib/entities/resourceFlowNode.d.ts +161 -0
- package/src/lib/entities/resourceFlowNode.js +257 -0
- package/src/lib/entities/resourceFlowNode.js.map +1 -0
- package/src/lib/entities/resourceGroup.entity.d.ts +2 -2
- package/src/lib/entities/resourceGroup.entity.js +3 -3
- package/src/lib/entities/resourceGroup.entity.js.map +1 -1
- package/src/lib/entities/{resourceIntroductionUser.entity.d.ts → resourceIntroducer.entity.d.ts} +5 -4
- package/src/lib/entities/{resourceIntroductionUser.entity.js → resourceIntroducer.entity.js} +27 -17
- package/src/lib/entities/resourceIntroducer.entity.js.map +1 -0
- package/src/lib/entities/resourceIntroduction.entity.d.ts +2 -1
- package/src/lib/entities/resourceIntroduction.entity.js +14 -4
- package/src/lib/entities/resourceIntroduction.entity.js.map +1 -1
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.d.ts +1 -1
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.js +3 -3
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.js.map +1 -1
- package/src/lib/entities/resourceUsage.entity.d.ts +4 -0
- package/src/lib/entities/resourceUsage.entity.js +24 -2
- package/src/lib/entities/resourceUsage.entity.js.map +1 -1
- package/src/lib/entities/resourceUsage.type.d.ts +6 -0
- package/src/lib/entities/resourceUsage.type.js +11 -0
- package/src/lib/entities/resourceUsage.type.js.map +1 -0
- package/src/lib/entities/revokedToken.entity.d.ts +0 -5
- package/src/lib/entities/revokedToken.entity.js +1 -29
- package/src/lib/entities/revokedToken.entity.js.map +1 -1
- package/src/lib/entities/session.entity.d.ts +12 -0
- package/src/lib/entities/session.entity.js +91 -0
- package/src/lib/entities/session.entity.js.map +1 -0
- package/src/lib/entities/setting.entity.d.ts +8 -0
- package/src/lib/entities/setting.entity.js +56 -0
- package/src/lib/entities/setting.entity.js.map +1 -0
- package/src/lib/entities/ssoProvider.oidc.d.ts +3 -0
- package/src/lib/entities/ssoProvider.oidc.js +27 -0
- package/src/lib/entities/ssoProvider.oidc.js.map +1 -1
- package/src/lib/entities/user.entity.d.ts +17 -4
- package/src/lib/entities/user.entity.js +79 -8
- package/src/lib/entities/user.entity.js.map +1 -1
- package/src/lib/entities-index.d.ts +30 -9
- package/src/lib/entities-index.js +61 -12
- package/src/lib/entities-index.js.map +1 -1
- package/src/lib/types/documentationType.enum.d.ts +7 -0
- package/src/lib/types/documentationType.enum.js +12 -0
- package/src/lib/types/documentationType.enum.js.map +1 -0
- package/src/lib/entities/mqttResourceConfig.entity.d.ts +0 -15
- package/src/lib/entities/mqttResourceConfig.entity.js +0 -95
- package/src/lib/entities/mqttResourceConfig.entity.js.map +0 -1
- package/src/lib/entities/resourceIntroductionUser.entity.js.map +0 -1
- package/src/lib/entities/webhookConfig.entity.d.ts +0 -20
- package/src/lib/entities/webhookConfig.entity.js +0 -148
- package/src/lib/entities/webhookConfig.entity.js.map +0 -1
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookConfig = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
-
const resource_entity_1 = require("./resource.entity");
|
|
8
|
-
let WebhookConfig = class WebhookConfig {
|
|
9
|
-
};
|
|
10
|
-
exports.WebhookConfig = WebhookConfig;
|
|
11
|
-
tslib_1.__decorate([
|
|
12
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
13
|
-
(0, swagger_1.ApiProperty)({
|
|
14
|
-
description: 'The unique identifier of the webhook configuration',
|
|
15
|
-
example: 1,
|
|
16
|
-
}),
|
|
17
|
-
tslib_1.__metadata("design:type", Number)
|
|
18
|
-
], WebhookConfig.prototype, "id", void 0);
|
|
19
|
-
tslib_1.__decorate([
|
|
20
|
-
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
21
|
-
(0, swagger_1.ApiProperty)({
|
|
22
|
-
description: 'The ID of the resource this webhook configuration is for',
|
|
23
|
-
example: 1,
|
|
24
|
-
}),
|
|
25
|
-
tslib_1.__metadata("design:type", Number)
|
|
26
|
-
], WebhookConfig.prototype, "resourceId", void 0);
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
29
|
-
(0, swagger_1.ApiProperty)({
|
|
30
|
-
description: 'Friendly name for the webhook',
|
|
31
|
-
example: 'Slack Notification',
|
|
32
|
-
}),
|
|
33
|
-
tslib_1.__metadata("design:type", String)
|
|
34
|
-
], WebhookConfig.prototype, "name", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
37
|
-
(0, swagger_1.ApiProperty)({
|
|
38
|
-
description: 'Destination URL for the webhook',
|
|
39
|
-
example: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX',
|
|
40
|
-
}),
|
|
41
|
-
tslib_1.__metadata("design:type", String)
|
|
42
|
-
], WebhookConfig.prototype, "url", void 0);
|
|
43
|
-
tslib_1.__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
45
|
-
(0, swagger_1.ApiProperty)({
|
|
46
|
-
description: 'HTTP method to use for the webhook request',
|
|
47
|
-
example: 'POST',
|
|
48
|
-
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
|
49
|
-
}),
|
|
50
|
-
tslib_1.__metadata("design:type", String)
|
|
51
|
-
], WebhookConfig.prototype, "method", void 0);
|
|
52
|
-
tslib_1.__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
-
(0, swagger_1.ApiProperty)({
|
|
55
|
-
description: 'JSON object for custom headers',
|
|
56
|
-
example: '{"Content-Type": "application/json", "Authorization": "Bearer token123"}',
|
|
57
|
-
required: false,
|
|
58
|
-
}),
|
|
59
|
-
tslib_1.__metadata("design:type", String)
|
|
60
|
-
], WebhookConfig.prototype, "headers", void 0);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
63
|
-
(0, swagger_1.ApiProperty)({
|
|
64
|
-
description: 'Template for payload when resource is in use',
|
|
65
|
-
example: '{"status": "in_use", "resource": "{{name}}", "user": "{{user.name}}", "timestamp": "{{timestamp}}"}',
|
|
66
|
-
}),
|
|
67
|
-
tslib_1.__metadata("design:type", String)
|
|
68
|
-
], WebhookConfig.prototype, "inUseTemplate", void 0);
|
|
69
|
-
tslib_1.__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
71
|
-
(0, swagger_1.ApiProperty)({
|
|
72
|
-
description: 'Template for payload when resource is not in use',
|
|
73
|
-
example: '{"status": "not_in_use", "resource": "{{name}}", "timestamp": "{{timestamp}}"}',
|
|
74
|
-
}),
|
|
75
|
-
tslib_1.__metadata("design:type", String)
|
|
76
|
-
], WebhookConfig.prototype, "notInUseTemplate", void 0);
|
|
77
|
-
tslib_1.__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ default: true, type: 'boolean' }),
|
|
79
|
-
(0, swagger_1.ApiProperty)({
|
|
80
|
-
description: 'Whether the webhook is active',
|
|
81
|
-
example: true,
|
|
82
|
-
}),
|
|
83
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
84
|
-
], WebhookConfig.prototype, "active", void 0);
|
|
85
|
-
tslib_1.__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
87
|
-
(0, swagger_1.ApiProperty)({
|
|
88
|
-
description: 'Whether to enable retry mechanism for failed webhook requests',
|
|
89
|
-
example: true,
|
|
90
|
-
}),
|
|
91
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
92
|
-
], WebhookConfig.prototype, "retryEnabled", void 0);
|
|
93
|
-
tslib_1.__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ default: 3, type: 'integer' }),
|
|
95
|
-
(0, swagger_1.ApiProperty)({
|
|
96
|
-
description: 'Number of retry attempts for failed webhook requests (maximum 10)',
|
|
97
|
-
example: 3,
|
|
98
|
-
}),
|
|
99
|
-
tslib_1.__metadata("design:type", Number)
|
|
100
|
-
], WebhookConfig.prototype, "maxRetries", void 0);
|
|
101
|
-
tslib_1.__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ default: 1000, type: 'integer' }),
|
|
103
|
-
(0, swagger_1.ApiProperty)({
|
|
104
|
-
description: 'Delay in milliseconds between retries (maximum 10000)',
|
|
105
|
-
example: 1000,
|
|
106
|
-
}),
|
|
107
|
-
tslib_1.__metadata("design:type", Number)
|
|
108
|
-
], WebhookConfig.prototype, "retryDelay", void 0);
|
|
109
|
-
tslib_1.__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'text' }),
|
|
111
|
-
(0, swagger_1.ApiProperty)({
|
|
112
|
-
description: 'Secret key for signing webhook payloads',
|
|
113
|
-
example: 'whsec_abcdef123456789',
|
|
114
|
-
required: false,
|
|
115
|
-
}),
|
|
116
|
-
tslib_1.__metadata("design:type", String)
|
|
117
|
-
], WebhookConfig.prototype, "secret", void 0);
|
|
118
|
-
tslib_1.__decorate([
|
|
119
|
-
(0, typeorm_1.Column)({ default: 'X-Webhook-Signature', type: 'text' }),
|
|
120
|
-
(0, swagger_1.ApiProperty)({
|
|
121
|
-
description: 'Name of the header that contains the signature',
|
|
122
|
-
example: 'X-Webhook-Signature',
|
|
123
|
-
}),
|
|
124
|
-
tslib_1.__metadata("design:type", String)
|
|
125
|
-
], WebhookConfig.prototype, "signatureHeader", void 0);
|
|
126
|
-
tslib_1.__decorate([
|
|
127
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
128
|
-
(0, swagger_1.ApiProperty)({
|
|
129
|
-
description: 'When the webhook configuration was created',
|
|
130
|
-
}),
|
|
131
|
-
tslib_1.__metadata("design:type", Date)
|
|
132
|
-
], WebhookConfig.prototype, "createdAt", void 0);
|
|
133
|
-
tslib_1.__decorate([
|
|
134
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
135
|
-
(0, swagger_1.ApiProperty)({
|
|
136
|
-
description: 'When the webhook configuration was last updated',
|
|
137
|
-
}),
|
|
138
|
-
tslib_1.__metadata("design:type", Date)
|
|
139
|
-
], WebhookConfig.prototype, "updatedAt", void 0);
|
|
140
|
-
tslib_1.__decorate([
|
|
141
|
-
(0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource),
|
|
142
|
-
(0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
|
|
143
|
-
tslib_1.__metadata("design:type", resource_entity_1.Resource)
|
|
144
|
-
], WebhookConfig.prototype, "resource", void 0);
|
|
145
|
-
exports.WebhookConfig = WebhookConfig = tslib_1.__decorate([
|
|
146
|
-
(0, typeorm_1.Entity)()
|
|
147
|
-
], WebhookConfig);
|
|
148
|
-
//# sourceMappingURL=webhookConfig.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhookConfig.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/webhookConfig.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,uDAA6C;AAGtC,IAAM,aAAa,GAAnB,MAAM,aAAa;CAqHzB,CAAA;AArHY,sCAAa;AAMxB;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,CAAC;KACX,CAAC;;yCACU;AAOZ;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QACX,W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