@imolko/schemes-landlord 1.0.2-beta → 1.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imolko/schemes-landlord",
3
- "version": "1.0.2-beta",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/dist/index.d.ts DELETED
@@ -1,151 +0,0 @@
1
- export declare const Schemes: {
2
- "com.imolko.landlord.v1.tenantcreated": {
3
- version: string;
4
- schema: {
5
- type: string;
6
- properties: {
7
- id: {
8
- type: string;
9
- pattern: string;
10
- };
11
- source: {
12
- type: string;
13
- minLength: number;
14
- maxLength: number;
15
- pattern: string;
16
- };
17
- specversion: {
18
- type: string;
19
- pattern: string;
20
- };
21
- type: {
22
- type: string;
23
- const: string;
24
- };
25
- datacontenttype: {
26
- type: string;
27
- enum: string[];
28
- };
29
- dataschema: {
30
- type: string;
31
- format: string;
32
- };
33
- subject: {
34
- type: string;
35
- pattern: string;
36
- };
37
- time: {
38
- type: string;
39
- format: string;
40
- };
41
- recordedtime: {
42
- $ref: string;
43
- };
44
- comimolkotenant: {
45
- $ref: string;
46
- };
47
- comimolkohash: {
48
- type: string;
49
- };
50
- comimolkoinstance: {
51
- type: string;
52
- anyOf: {
53
- format: string;
54
- }[];
55
- };
56
- data: {
57
- type: string;
58
- properties: {
59
- name: {
60
- type: string;
61
- minLength: number;
62
- maxLength: number;
63
- };
64
- alias: {
65
- type: string;
66
- minLength: number;
67
- maxLength: number;
68
- pattern: string;
69
- };
70
- status: {
71
- type: string;
72
- };
73
- colaborators: {
74
- type: string;
75
- items: {
76
- type: string;
77
- properties: {
78
- id: {
79
- $ref: string;
80
- };
81
- };
82
- required: string[];
83
- additionalProperties: boolean;
84
- };
85
- };
86
- plans: {
87
- type: string;
88
- items: {
89
- type: string;
90
- properties: {
91
- subscriptionId: {
92
- type: string;
93
- };
94
- name: {
95
- type: string;
96
- };
97
- status: {
98
- type: string;
99
- enum: string[];
100
- };
101
- attributes: {
102
- type: string;
103
- additionalProperties: {
104
- anyOf: ({
105
- type: string;
106
- minLength: number;
107
- items?: undefined;
108
- minimum?: undefined;
109
- } | {
110
- type: string;
111
- items: {
112
- $ref: string;
113
- };
114
- minLength?: undefined;
115
- minimum?: undefined;
116
- } | {
117
- type: string;
118
- minimum: number;
119
- minLength?: undefined;
120
- items?: undefined;
121
- } | {
122
- type: string;
123
- minLength?: undefined;
124
- items?: undefined;
125
- minimum?: undefined;
126
- })[];
127
- };
128
- };
129
- id: {
130
- $ref: string;
131
- };
132
- };
133
- required: string[];
134
- additionalProperties: boolean;
135
- };
136
- };
137
- id: {
138
- $ref: string;
139
- };
140
- };
141
- required: string[];
142
- additionalProperties: boolean;
143
- };
144
- };
145
- required: string[];
146
- additionalProperties: boolean;
147
- $schema: string;
148
- };
149
- }[];
150
- };
151
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsMnB,CAAC"}
package/dist/index.js DELETED
@@ -1,203 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Schemes = void 0;
4
- exports.Schemes = {
5
- "com.imolko.landlord.v1.tenantcreated": [
6
- {
7
- "version": "1.0.0",
8
- "schema": {
9
- "type": "object",
10
- "properties": {
11
- "id": {
12
- "type": "string",
13
- "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
14
- },
15
- "source": {
16
- "type": "string",
17
- "minLength": 3,
18
- "maxLength": 500,
19
- "pattern": "^(?!-)(?!.*--)(?!.*\\.\\.)(?!.*\\.$)[a-zA-Z0-9-]{1,63}(?<!-)(\\.[a-zA-Z0-9-]{1,63})*$"
20
- },
21
- "specversion": {
22
- "type": "string",
23
- "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?$"
24
- },
25
- "type": {
26
- "type": "string",
27
- "const": "com.imolko.landlord.v1.tenantcreated"
28
- },
29
- "datacontenttype": {
30
- "type": "string",
31
- "enum": [
32
- "text/plain",
33
- "text/html",
34
- "text/css",
35
- "application/json",
36
- "application/xml",
37
- "image/jpeg",
38
- "image/png",
39
- "image/gif",
40
- "application/octet-stream"
41
- ]
42
- },
43
- "dataschema": {
44
- "type": "string",
45
- "format": "uri"
46
- },
47
- "subject": {
48
- "type": "string",
49
- "pattern": "^[^:]+:[^:]+$"
50
- },
51
- "time": {
52
- "type": "string",
53
- "format": "date-time"
54
- },
55
- "recordedtime": {
56
- "$ref": "#/properties/time"
57
- },
58
- "comimolkotenant": {
59
- "$ref": "#/properties/id"
60
- },
61
- "comimolkohash": {
62
- "type": "string"
63
- },
64
- "comimolkoinstance": {
65
- "type": "string",
66
- "anyOf": [
67
- {
68
- "format": "ipv4"
69
- },
70
- {
71
- "format": "ipv6"
72
- }
73
- ]
74
- },
75
- "data": {
76
- "type": "object",
77
- "properties": {
78
- "name": {
79
- "type": "string",
80
- "minLength": 1,
81
- "maxLength": 40
82
- },
83
- "alias": {
84
- "type": "string",
85
- "minLength": 2,
86
- "maxLength": 50,
87
- "pattern": "^[a-z0-9-]+$"
88
- },
89
- "status": {
90
- "type": "string"
91
- },
92
- "colaborators": {
93
- "type": "array",
94
- "items": {
95
- "type": "object",
96
- "properties": {
97
- "id": {
98
- "$ref": "#/properties/id"
99
- }
100
- },
101
- "required": [
102
- "id"
103
- ],
104
- "additionalProperties": false
105
- }
106
- },
107
- "plans": {
108
- "type": "array",
109
- "items": {
110
- "type": "object",
111
- "properties": {
112
- "subscriptionId": {
113
- "type": "string"
114
- },
115
- "name": {
116
- "type": "string"
117
- },
118
- "status": {
119
- "type": "string",
120
- "enum": [
121
- "REQUEST",
122
- "PREPARING_LAND",
123
- "ACTIVE",
124
- "INACTIVE",
125
- "PAUSED",
126
- "WILL_BE_DELETED"
127
- ]
128
- },
129
- "attributes": {
130
- "type": "object",
131
- "additionalProperties": {
132
- "anyOf": [
133
- {
134
- "type": "string",
135
- "minLength": 1
136
- },
137
- {
138
- "type": "array",
139
- "items": {
140
- "$ref": "#/properties/data/properties/plans/items/properties/attributes/additionalProperties/anyOf/0"
141
- }
142
- },
143
- {
144
- "type": "number",
145
- "minimum": 0
146
- },
147
- {
148
- "type": "boolean"
149
- }
150
- ]
151
- }
152
- },
153
- "id": {
154
- "$ref": "#/properties/id"
155
- }
156
- },
157
- "required": [
158
- "subscriptionId",
159
- "name",
160
- "status",
161
- "attributes",
162
- "id"
163
- ],
164
- "additionalProperties": false
165
- }
166
- },
167
- "id": {
168
- "$ref": "#/properties/id"
169
- }
170
- },
171
- "required": [
172
- "name",
173
- "alias",
174
- "status",
175
- "colaborators",
176
- "plans",
177
- "id"
178
- ],
179
- "additionalProperties": false
180
- }
181
- },
182
- "required": [
183
- "id",
184
- "source",
185
- "specversion",
186
- "type",
187
- "datacontenttype",
188
- "dataschema",
189
- "subject",
190
- "time",
191
- "recordedtime",
192
- "comimolkotenant",
193
- "comimolkohash",
194
- "comimolkoinstance",
195
- "data"
196
- ],
197
- "additionalProperties": false,
198
- "$schema": "http://json-schema.org/draft-07/schema#"
199
- }
200
- }
201
- ]
202
- };
203
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1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