@nomalism-com/types 0.9.539 → 0.9.541

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.
@@ -3,12 +3,12 @@ export type Tickets = {
3
3
  number: number;
4
4
  channel_id: number;
5
5
  who_attended: string | null;
6
- attended_at: Date | null;
6
+ attended_at: string | null;
7
7
  language_id: number;
8
8
  created_by: string;
9
9
  updated_by: string | null;
10
- created_at: Date;
11
- updated_at: Date;
10
+ created_at: string;
11
+ updated_at: string;
12
12
  };
13
13
  export type Channel = {
14
14
  id: number;
@@ -21,8 +21,8 @@ export type Channel = {
21
21
  disabled_color: string;
22
22
  created_by: string;
23
23
  updated_by: string | null;
24
- created_at: Date;
25
- updated_at: Date;
24
+ created_at: string;
25
+ updated_at: string;
26
26
  };
27
27
  export type Language = {
28
28
  id: number;
@@ -35,16 +35,16 @@ export type Language = {
35
35
  created_by: string;
36
36
  updated_by: string | null;
37
37
  order: number;
38
- created_at: Date;
39
- updated_at: Date;
38
+ created_at: string;
39
+ updated_at: string;
40
40
  };
41
41
  export type Translation = {
42
42
  id: number;
43
43
  key: string;
44
44
  created_by: string;
45
45
  updated_by: string | null;
46
- created_at: Date;
47
- updated_at: Date;
46
+ created_at: string;
47
+ updated_at: string;
48
48
  };
49
49
  export type CLT = {
50
50
  id: number;
@@ -54,6 +54,6 @@ export type CLT = {
54
54
  name: string;
55
55
  created_by: string;
56
56
  updated_by: string | null;
57
- created_at: Date;
58
- updated_at: Date;
57
+ created_at: string;
58
+ updated_at: string;
59
59
  };
@@ -5,9 +5,9 @@ export type Users = {
5
5
  password: string | null;
6
6
  thumbnail_id: string | null;
7
7
  supervisor_id: string | null;
8
- created_at: Date;
9
- updated_at: Date;
10
- deleted_at: Date | null;
8
+ created_at: string;
9
+ updated_at: string;
10
+ deleted_at: string | null;
11
11
  created_by: string;
12
12
  updated_by: string;
13
13
  origin_id: string | null;
@@ -17,8 +17,8 @@ export type UserTokens = {
17
17
  token: string;
18
18
  user_id: string;
19
19
  consumed: boolean;
20
- created_at: Date;
21
- updated_at: Date;
20
+ created_at: string;
21
+ updated_at: string;
22
22
  created_by: string;
23
23
  updated_by: string;
24
24
  };
@@ -28,8 +28,8 @@ export type EntityList = {
28
28
  entity: string;
29
29
  name: string;
30
30
  list_item: string[];
31
- created_at: Date;
32
- updated_at: Date;
31
+ created_at: string;
32
+ updated_at: string;
33
33
  created_by: string;
34
34
  updated_by: string;
35
35
  };
@@ -37,16 +37,16 @@ export type Favorites = {
37
37
  id: string;
38
38
  user_id: string;
39
39
  url: string;
40
- created_at: Date;
41
- updated_at: Date;
40
+ created_at: string;
41
+ updated_at: string;
42
42
  };
43
43
  export type Permissions = {
44
44
  id: number;
45
45
  code: string;
46
46
  description: string;
47
47
  enable: boolean;
48
- created_at: Date;
49
- updated_at: Date;
48
+ created_at: string;
49
+ updated_at: string;
50
50
  created_by: string;
51
51
  updated_by: string;
52
52
  };
@@ -55,8 +55,8 @@ export type GroupPermissions = {
55
55
  code: string;
56
56
  description: string;
57
57
  enable: boolean;
58
- created_at: Date;
59
- updated_at: Date;
58
+ created_at: string;
59
+ updated_at: string;
60
60
  created_by: string;
61
61
  updated_by: string;
62
62
  };
@@ -65,8 +65,8 @@ export type UserPermissions = {
65
65
  user_id: string;
66
66
  group_id: number;
67
67
  permission_id: number;
68
- created_at: Date;
69
- updated_at: Date;
68
+ created_at: string;
69
+ updated_at: string;
70
70
  created_by: string;
71
71
  updated_by: string;
72
72
  };
@@ -89,8 +89,8 @@ export type Providers = {
89
89
  default_vehicle_id: string | null;
90
90
  default_discount: number;
91
91
  external_id: string | null;
92
- created_at: Date;
93
- updated_at: Date;
92
+ created_at: string;
93
+ updated_at: string;
94
94
  created_by: string;
95
95
  updated_by: string;
96
96
  origin_id: string | null;
@@ -98,8 +98,8 @@ export type Providers = {
98
98
  export type ProviderType = {
99
99
  id: string;
100
100
  name: string;
101
- created_at: Date;
102
- updated_at: Date;
101
+ created_at: string;
102
+ updated_at: string;
103
103
  created_by: string;
104
104
  updated_by: string;
105
105
  origin_id: string | null;
@@ -108,8 +108,8 @@ export type Country = {
108
108
  id: string;
109
109
  name: string;
110
110
  alpha2: string;
111
- created_at: Date;
112
- updated_at: Date;
111
+ created_at: string;
112
+ updated_at: string;
113
113
  created_by: string;
114
114
  updated_by: string;
115
115
  origin_id: string | null;
@@ -118,8 +118,8 @@ export type Country = {
118
118
  export type Language = {
119
119
  id: string;
120
120
  name: string;
121
- created_at: Date;
122
- updated_at: Date;
121
+ created_at: string;
122
+ updated_at: string;
123
123
  created_by: string;
124
124
  updated_by: string;
125
125
  origin_id: string | null;
@@ -146,16 +146,16 @@ export type Clients = {
146
146
  external_id: string | null;
147
147
  deferred_payment: boolean;
148
148
  origin_id: string | null;
149
- created_at: Date;
150
- updated_at: Date;
149
+ created_at: string;
150
+ updated_at: string;
151
151
  created_by: string;
152
152
  updated_by: string;
153
153
  };
154
154
  export type ClientType = {
155
155
  id: string;
156
156
  name: string;
157
- created_at: Date;
158
- updated_at: Date;
157
+ created_at: string;
158
+ updated_at: string;
159
159
  created_by: string;
160
160
  updated_by: string;
161
161
  origin_id: string | null;
@@ -164,8 +164,8 @@ export type SegmentsArea = {
164
164
  id: string;
165
165
  type: string;
166
166
  name: string;
167
- created_at: Date;
168
- updated_at: Date;
167
+ created_at: string;
168
+ updated_at: string;
169
169
  created_by: string;
170
170
  updated_by: string;
171
171
  origin_id: string | null;
@@ -177,8 +177,8 @@ export type PurchaseConditions = {
177
177
  deadline: string;
178
178
  minimum_quantity: string;
179
179
  product_category_id: string | null;
180
- created_at: Date;
181
- updated_at: Date;
180
+ created_at: string;
181
+ updated_at: string;
182
182
  created_by: string;
183
183
  updated_by: string;
184
184
  origin_id: string | null;
@@ -190,8 +190,8 @@ export type Shippings = {
190
190
  purchase_conditions_id: string;
191
191
  value: string;
192
192
  unit: string;
193
- created_at: Date;
194
- updated_at: Date;
193
+ created_at: string;
194
+ updated_at: string;
195
195
  created_by: string;
196
196
  updated_by: string;
197
197
  origin_id: string | null;
@@ -201,8 +201,8 @@ export type PaymentConditions = {
201
201
  days: number;
202
202
  purchase_conditions_id: string;
203
203
  discount: string;
204
- created_at: Date;
205
- updated_at: Date;
204
+ created_at: string;
205
+ updated_at: string;
206
206
  created_by: string;
207
207
  updated_by: string;
208
208
  origin_id: string | null;
@@ -214,8 +214,8 @@ export type SocialMedia = {
214
214
  store_operator_id: string | null;
215
215
  commissioner_id: string | null;
216
216
  url: string;
217
- created_at: Date;
218
- updated_at: Date;
217
+ created_at: string;
218
+ updated_at: string;
219
219
  created_by: string;
220
220
  updated_by: string;
221
221
  };
@@ -233,8 +233,8 @@ export type Commissioner = {
233
233
  default_maturity_date_id: string | null;
234
234
  default_delivery_method_id: string | null;
235
235
  default_vehicle_id: string | null;
236
- created_at: Date;
237
- updated_at: Date;
236
+ created_at: string;
237
+ updated_at: string;
238
238
  created_by: string;
239
239
  updated_by: string;
240
240
  origin_id: string | null;
@@ -252,8 +252,8 @@ export type Address = {
252
252
  billing: boolean;
253
253
  delivery: boolean;
254
254
  head_office: boolean;
255
- created_at: Date;
256
- updated_at: Date;
255
+ created_at: string;
256
+ updated_at: string;
257
257
  created_by: string;
258
258
  updated_by: string;
259
259
  origin_id: string | null;
@@ -267,8 +267,8 @@ export type BankData = {
267
267
  iban: string;
268
268
  swift_id: string | null;
269
269
  country_id: string;
270
- created_at: Date;
271
- updated_at: Date;
270
+ created_at: string;
271
+ updated_at: string;
272
272
  created_by: string;
273
273
  updated_by: string;
274
274
  origin_id: string | null;
@@ -281,8 +281,8 @@ export type Swift = {
281
281
  branch: string | null;
282
282
  code: string;
283
283
  country_id: string;
284
- created_at: Date;
285
- updated_at: Date;
284
+ created_at: string;
285
+ updated_at: string;
286
286
  created_by: string;
287
287
  updated_by: string;
288
288
  origin_id: string | null;
@@ -292,8 +292,8 @@ export type ReasonForExemption = {
292
292
  name: string;
293
293
  description: string;
294
294
  saft_code: string;
295
- created_at: Date;
296
- updated_at: Date;
295
+ created_at: string;
296
+ updated_at: string;
297
297
  created_by: string;
298
298
  updated_by: string;
299
299
  origin_id: string | null;
@@ -310,8 +310,8 @@ export type StoreOperator = {
310
310
  pin: string;
311
311
  location_id: string;
312
312
  inactive: boolean;
313
- created_at: Date;
314
- updated_at: Date;
313
+ created_at: string;
314
+ updated_at: string;
315
315
  created_by: string;
316
316
  updated_by: string;
317
317
  origin_id: string | null;
@@ -320,8 +320,8 @@ export type StoreOperator = {
320
320
  export type UserPositions = {
321
321
  id: string;
322
322
  name: string;
323
- created_at: Date;
324
- updated_at: Date;
323
+ created_at: string;
324
+ updated_at: string;
325
325
  created_by: string;
326
326
  updated_by: string;
327
327
  origin_id: string | null;
@@ -338,8 +338,8 @@ export type Contacts = {
338
338
  position: string | null;
339
339
  telephone: string | null;
340
340
  email: string | null;
341
- created_at: Date;
342
- updated_at: Date;
341
+ created_at: string;
342
+ updated_at: string;
343
343
  created_by: string;
344
344
  updated_by: string;
345
345
  origin_id: string | null;
@@ -347,8 +347,8 @@ export type Contacts = {
347
347
  export type ContactTypes = {
348
348
  id: string;
349
349
  name: string;
350
- created_at: Date;
351
- updated_at: Date;
350
+ created_at: string;
351
+ updated_at: string;
352
352
  created_by: string;
353
353
  updated_by: string;
354
354
  origin_id: string | null;
@@ -361,8 +361,8 @@ export type PaymentMethods = {
361
361
  is_numerary: boolean;
362
362
  is_mb: boolean;
363
363
  is_credit: boolean;
364
- created_at: Date;
365
- updated_at: Date;
364
+ created_at: string;
365
+ updated_at: string;
366
366
  created_by: string;
367
367
  updated_by: string;
368
368
  };
@@ -370,8 +370,8 @@ export type DeliveryMethods = {
370
370
  id: string;
371
371
  delivery_method_id: number | null;
372
372
  name: string;
373
- created_at: Date;
374
- updated_at: Date;
373
+ created_at: string;
374
+ updated_at: string;
375
375
  created_by: string;
376
376
  updated_by: string;
377
377
  };
@@ -380,8 +380,8 @@ export type MaturityDates = {
380
380
  maturity_date_id: number | null;
381
381
  name: string;
382
382
  days: number;
383
- created_at: Date;
384
- updated_at: Date;
383
+ created_at: string;
384
+ updated_at: string;
385
385
  created_by: string;
386
386
  updated_by: string;
387
387
  };
@@ -390,8 +390,8 @@ export type Vehicles = {
390
390
  vehicle_id: number | null;
391
391
  description: string;
392
392
  number_plate: string;
393
- created_at: Date;
394
- updated_at: Date;
393
+ created_at: string;
394
+ updated_at: string;
395
395
  created_by: string;
396
396
  updated_by: string;
397
397
  };
@@ -425,8 +425,8 @@ export type Tenant = {
425
425
  telephone: string | null;
426
426
  fax: string | null;
427
427
  website: string | null;
428
- created_at: Date;
429
- updated_at: Date;
428
+ created_at: string;
429
+ updated_at: string;
430
430
  created_by: string;
431
431
  updated_by: string;
432
432
  };
@@ -443,8 +443,8 @@ export type Persona = {
443
443
  provider_id: string | null;
444
444
  client_id: string | null;
445
445
  commissioner_id: string | null;
446
- created_at: Date;
447
- updated_at: Date;
446
+ created_at: string;
447
+ updated_at: string;
448
448
  created_by: string;
449
449
  updated_by: string;
450
450
  };
@@ -7,10 +7,10 @@ export { messages };
7
7
  type CreatedAt = 'created_at';
8
8
  type UpdatedAt = 'updated_at';
9
9
  export interface WithCreatedAt {
10
- created_at: Date;
10
+ created_at: string;
11
11
  }
12
12
  export interface WithUpdatedAt {
13
- updated_at: Date;
13
+ updated_at: string;
14
14
  }
15
15
  export interface WithOriginId {
16
16
  origin_id: string;
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "@nomalism-com/types",
3
- "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
5
- "keywords": [
6
- "nomalism",
7
- "api",
8
- "types",
9
- "typescript",
10
- "helper"
11
- ],
12
- "version": "0.9.539",
13
- "main": "./dist/index.js",
14
- "types": "./dist/index.d.ts",
15
- "files": [
16
- "dist"
17
- ],
18
- "browserslist": "> 0.25%, not dead",
19
- "license": "UNLICENSED",
20
- "homepage": "https://gitlab.com/nomalism-develop/types",
21
- "bugs": {
22
- "url": "https://gitlab.com/nomalism-develop/types/issues"
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://gitlab.com/nomalism-develop/types.git"
27
- },
28
- "scripts": {
29
- "lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
30
- "build": "rm -rf dist && tsc --project tsconfig.json",
31
- "start": "tsx --tsconfig ./tsconfig.json src/index.ts",
32
- "prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
33
- },
34
- "dependencies": {
35
- "convert-units": "^2.3.4",
36
- "joi": "^17.9.2",
37
- "joi-to-swagger": "^6.2.0"
38
- },
39
- "devDependencies": {
40
- "@types/convert-units": "^2.3.6",
41
- "@types/node": "^18.17.1",
42
- "@typescript-eslint/eslint-plugin": "^5.62.0",
43
- "@typescript-eslint/parser": "^5.62.0",
44
- "concurrently": "^8.2.0",
45
- "eslint": "^8.45.0",
46
- "eslint-config-airbnb-base": "^15.0.0",
47
- "eslint-config-prettier": "^8.9.0",
48
- "eslint-import-resolver-typescript": "^3.5.5",
49
- "eslint-plugin-import": "^2.28.0",
50
- "eslint-plugin-prettier": "^4.2.1",
51
- "prettier": "^2.8.8",
52
- "tsx": "^3.12.7",
53
- "typescript": "^5.1.6"
54
- }
55
- }
1
+ {
2
+ "name": "@nomalism-com/types",
3
+ "description": "A nomalism package with all necessary types and validations for developing APIs",
4
+ "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
5
+ "keywords": [
6
+ "nomalism",
7
+ "api",
8
+ "types",
9
+ "typescript",
10
+ "helper"
11
+ ],
12
+ "version": "0.9.541",
13
+ "main": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "browserslist": "> 0.25%, not dead",
19
+ "license": "UNLICENSED",
20
+ "homepage": "https://gitlab.com/nomalism-develop/types",
21
+ "bugs": {
22
+ "url": "https://gitlab.com/nomalism-develop/types/issues"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://gitlab.com/nomalism-develop/types.git"
27
+ },
28
+ "scripts": {
29
+ "lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
30
+ "build": "rm -rf dist && tsc --project tsconfig.json",
31
+ "start": "tsx --tsconfig ./tsconfig.json src/index.ts",
32
+ "prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
33
+ },
34
+ "dependencies": {
35
+ "convert-units": "^2.3.4",
36
+ "joi": "^17.9.2",
37
+ "joi-to-swagger": "^6.2.0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/convert-units": "^2.3.6",
41
+ "@types/node": "^18.17.1",
42
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
43
+ "@typescript-eslint/parser": "^5.62.0",
44
+ "concurrently": "^8.2.0",
45
+ "eslint": "^8.45.0",
46
+ "eslint-config-airbnb-base": "^15.0.0",
47
+ "eslint-config-prettier": "^8.9.0",
48
+ "eslint-import-resolver-typescript": "^3.5.5",
49
+ "eslint-plugin-import": "^2.28.0",
50
+ "eslint-plugin-prettier": "^4.2.1",
51
+ "prettier": "^2.8.8",
52
+ "tsx": "^3.12.7",
53
+ "typescript": "^5.1.6"
54
+ }
55
+ }