@spotto/contract 1.0.64-alpha.0 → 1.0.65-alpha.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.
@@ -6,7 +6,7 @@ export declare type AssetBatteryStatus = 'critical' | 'low' | 'ok';
6
6
  export declare type AssetLocationStatus = 'NEVERSEEN' | 'UNKNOWN' | 'HOME' | 'AWAY' | 'ROAMING' | 'MAP';
7
7
  export interface CustomFieldsAssetFilter {
8
8
  id: string;
9
- values: string[];
9
+ values: any[];
10
10
  }
11
11
  export interface AssetFilters {
12
12
  labels?: string[];
@@ -1,4 +1,4 @@
1
- export declare type FieldDataType = 'STRING' | 'INTEGER' | 'DECIMAL' | 'BOOLEAN';
1
+ export declare type FieldDataType = 'STRING' | 'INTEGER' | 'DECIMAL' | 'BOOLEAN' | 'DATE' | 'DATETIME';
2
2
  export declare const FIELD_DATA_TYPES: FieldDataType[];
3
3
  export declare type FieldInputType = 'SINGLELINE' | 'MULTILINE' | 'LINK' | 'RICHTEXT' | 'DROPDOWN' | 'RADIO' | 'CHECKBOXES' | 'DATE' | 'DATETIME';
4
4
  export declare const FIELD_INPUT_TYPES: FieldInputType[];
@@ -6,6 +6,8 @@ exports.FIELD_DATA_TYPES = [
6
6
  'INTEGER',
7
7
  'DECIMAL',
8
8
  'BOOLEAN',
9
+ 'DATE',
10
+ 'DATETIME'
9
11
  ];
10
12
  exports.FIELD_INPUT_TYPES = [
11
13
  'SINGLELINE',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/fields/constants.ts"],"names":[],"mappings":";;;AAMa,QAAA,gBAAgB,GAAoB;IAC/C,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;CACV,CAAA;AAaY,QAAA,iBAAiB,GAAqB;IACjD,YAAY;IACZ,WAAW;IACX,MAAM;IACN,UAAU;IACV,UAAU;IACV,OAAO;IACP,YAAY;IACZ,MAAM;IACN,UAAU;CACX,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/fields/constants.ts"],"names":[],"mappings":";;;AAQa,QAAA,gBAAgB,GAAoB;IAC/C,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,MAAM;IACN,UAAU;CACX,CAAA;AAaY,QAAA,iBAAiB,GAAqB;IACjD,YAAY;IACZ,WAAW;IACX,MAAM;IACN,UAAU;IACV,UAAU;IACV,OAAO;IACP,YAAY;IACZ,MAAM;IACN,UAAU;CACX,CAAA"}
@@ -8,6 +8,8 @@ export interface IFieldValue {
8
8
  valueInteger?: number;
9
9
  valueDecimal?: number;
10
10
  valueBoolean?: boolean;
11
+ valueDate?: number;
12
+ valueDateTime?: Date;
11
13
  }
12
14
  export interface IFieldDefinitionAll extends GetFieldResponse {
13
15
  typePath: string;
@@ -13,24 +13,48 @@ declare type ValueStringOnly = {
13
13
  valueInteger?: never;
14
14
  valueDecimal?: never;
15
15
  valueBoolean?: never;
16
+ valueDate?: never;
17
+ valueDateTime?: never;
16
18
  };
17
19
  declare type ValueIntegerOnly = {
18
20
  valueString?: never;
19
21
  valueInteger: number;
20
22
  valueDecimal?: never;
21
23
  valueBoolean?: never;
24
+ valueDate?: never;
25
+ valueDateTime?: never;
22
26
  };
23
27
  declare type ValueDecimalOnly = {
24
28
  valueString?: never;
25
29
  valueInteger?: never;
26
30
  valueDecimal: number;
27
31
  valueBoolean?: never;
32
+ valueDate?: never;
33
+ valueDateTime?: never;
28
34
  };
29
35
  declare type ValueBooleanOnly = {
30
36
  valueString?: never;
31
37
  valueInteger?: never;
32
38
  valueDecimal?: never;
33
39
  valueBoolean: boolean;
40
+ valueDate?: never;
41
+ valueDateTime?: never;
42
+ };
43
+ declare type ValueDate = {
44
+ valueString?: never;
45
+ valueInteger?: never;
46
+ valueDecimal?: never;
47
+ valueBoolean: never;
48
+ valueDate?: number;
49
+ valueDateTime?: never;
50
+ };
51
+ declare type ValueDateTime = {
52
+ valueString?: never;
53
+ valueInteger?: never;
54
+ valueDecimal?: never;
55
+ valueBoolean: never;
56
+ valueDate?: never;
57
+ valueDateTime?: Date;
34
58
  };
35
59
  declare type IdOrName = {
36
60
  id: string;
@@ -42,7 +66,7 @@ declare type IdOrName = {
42
66
  id: string;
43
67
  name: string;
44
68
  };
45
- export declare type IFieldValueWithConstraints = IdOrName & (ValueStringOnly | ValueIntegerOnly | ValueDecimalOnly | ValueBooleanOnly);
69
+ export declare type IFieldValueWithConstraints = IdOrName & (ValueStringOnly | ValueIntegerOnly | ValueDecimalOnly | ValueBooleanOnly | ValueDate | ValueDateTime);
46
70
  export interface PostTypeRequest {
47
71
  name: string;
48
72
  parent?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AA6Da,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;IACzB,MAAM,EAAE;QACN;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,eAAe,EAAE;QACf;YAEE,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;SAEnB;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AAuFa,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;IACzB,MAAM,EAAE;QACN;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,eAAe,EAAE;QACf;YAEE,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;SAEnB;KACF;CACF,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.64-alpha.0",
4
+ "version": "1.0.65-alpha.0",
5
5
  "description": "Spotto's API Contract type definitions",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -18,5 +18,5 @@
18
18
  "@types/geojson": "^7946.0.11",
19
19
  "shx": "^0.3.4"
20
20
  },
21
- "gitHead": "24215a98128288bc1f8af4dca0ac73250e3431b1"
21
+ "gitHead": "3a9c3c75b0b162de558347774a74afd0b387b41c"
22
22
  }