@ja-platform/parser-schema 0.0.0-dev-20261021195551 → 0.0.0-dev-20261021212654

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 (71) hide show
  1. package/dist/@types/index.d.ts +16 -1
  2. package/dist/@types/schema/Schema.d.ts +1 -1
  3. package/dist/@types/schema/TypeFactory.d.ts +1 -1
  4. package/dist/@types/types/SchemaModelType.d.ts +1 -1
  5. package/dist/@types/types/primitives/{index.d.ts → PrimitiveTypes.d.ts} +13 -28
  6. package/dist/@types/types/primitives/attachments/{Photo.d.ts → PhotoType.d.ts} +1 -1
  7. package/dist/@types/types/primitives/attachments/{Signature.d.ts → SignatureType.d.ts} +1 -1
  8. package/dist/index.js +20 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/schema/Schema.js +4 -4
  11. package/dist/schema/Schema.js.map +1 -1
  12. package/dist/schema/TypeFactory.js +2 -2
  13. package/dist/schema/TypeFactory.js.map +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/types/SchemaModelType.js +3 -3
  16. package/dist/types/SchemaModelType.js.map +1 -1
  17. package/dist/types/primitives/{Boolean.js → BooleanType.js} +1 -1
  18. package/dist/types/primitives/BooleanType.js.map +1 -0
  19. package/dist/types/primitives/{Date.js → DateType.js} +1 -1
  20. package/dist/types/primitives/DateType.js.map +1 -0
  21. package/dist/types/primitives/{Datetime.js → DatetimeType.js} +1 -1
  22. package/dist/types/primitives/DatetimeType.js.map +1 -0
  23. package/dist/types/primitives/{GeoTrack.js → GeoTrackType.js} +1 -1
  24. package/dist/types/primitives/GeoTrackType.js.map +1 -0
  25. package/dist/types/primitives/{Location.js → LocationType.js} +3 -3
  26. package/dist/types/primitives/LocationType.js.map +1 -0
  27. package/dist/types/primitives/{MultipleChoiceInteger.js → MultipleChoiceIntegerType.js} +1 -1
  28. package/dist/types/primitives/MultipleChoiceIntegerType.js.map +1 -0
  29. package/dist/types/primitives/{MultipleChoice.js → MultipleChoiceType.js} +1 -1
  30. package/dist/types/primitives/MultipleChoiceType.js.map +1 -0
  31. package/dist/types/primitives/PrimitiveTypes.js +54 -0
  32. package/dist/types/primitives/PrimitiveTypes.js.map +1 -0
  33. package/dist/types/primitives/{SingleChoiceInteger.js → SingleChoiceIntegerType.js} +1 -1
  34. package/dist/types/primitives/SingleChoiceIntegerType.js.map +1 -0
  35. package/dist/types/primitives/{SingleChoice.js → SingleChoiceType.js} +1 -1
  36. package/dist/types/primitives/SingleChoiceType.js.map +1 -0
  37. package/dist/types/primitives/{Text.js → TextType.js} +1 -1
  38. package/dist/types/primitives/TextType.js.map +1 -0
  39. package/dist/types/primitives/attachments/{Attachment.js → AttachmentType.js} +1 -1
  40. package/dist/types/primitives/attachments/AttachmentType.js.map +1 -0
  41. package/dist/types/primitives/attachments/{Photo.js → PhotoType.js} +3 -3
  42. package/dist/types/primitives/attachments/PhotoType.js.map +1 -0
  43. package/dist/types/primitives/attachments/{Signature.js → SignatureType.js} +3 -3
  44. package/dist/types/primitives/attachments/SignatureType.js.map +1 -0
  45. package/package.json +3 -3
  46. package/dist/types/primitives/Boolean.js.map +0 -1
  47. package/dist/types/primitives/Date.js.map +0 -1
  48. package/dist/types/primitives/Datetime.js.map +0 -1
  49. package/dist/types/primitives/GeoTrack.js.map +0 -1
  50. package/dist/types/primitives/Location.js.map +0 -1
  51. package/dist/types/primitives/MultipleChoice.js.map +0 -1
  52. package/dist/types/primitives/MultipleChoiceInteger.js.map +0 -1
  53. package/dist/types/primitives/SingleChoice.js.map +0 -1
  54. package/dist/types/primitives/SingleChoiceInteger.js.map +0 -1
  55. package/dist/types/primitives/Text.js.map +0 -1
  56. package/dist/types/primitives/attachments/Attachment.js.map +0 -1
  57. package/dist/types/primitives/attachments/Photo.js.map +0 -1
  58. package/dist/types/primitives/attachments/Signature.js.map +0 -1
  59. package/dist/types/primitives/index.js +0 -85
  60. package/dist/types/primitives/index.js.map +0 -1
  61. /package/dist/@types/types/primitives/{Boolean.d.ts → BooleanType.d.ts} +0 -0
  62. /package/dist/@types/types/primitives/{Date.d.ts → DateType.d.ts} +0 -0
  63. /package/dist/@types/types/primitives/{Datetime.d.ts → DatetimeType.d.ts} +0 -0
  64. /package/dist/@types/types/primitives/{GeoTrack.d.ts → GeoTrackType.d.ts} +0 -0
  65. /package/dist/@types/types/primitives/{Location.d.ts → LocationType.d.ts} +0 -0
  66. /package/dist/@types/types/primitives/{MultipleChoiceInteger.d.ts → MultipleChoiceIntegerType.d.ts} +0 -0
  67. /package/dist/@types/types/primitives/{MultipleChoice.d.ts → MultipleChoiceType.d.ts} +0 -0
  68. /package/dist/@types/types/primitives/{SingleChoiceInteger.d.ts → SingleChoiceIntegerType.d.ts} +0 -0
  69. /package/dist/@types/types/primitives/{SingleChoice.d.ts → SingleChoiceType.d.ts} +0 -0
  70. /package/dist/@types/types/primitives/{Text.d.ts → TextType.d.ts} +0 -0
  71. /package/dist/@types/types/primitives/attachments/{Attachment.d.ts → AttachmentType.d.ts} +0 -0
@@ -5,7 +5,22 @@ export * from './types/Field';
5
5
  export * from './types/Param';
6
6
  export * from './types/SchemaModelType';
7
7
  export * from './types/Relationship';
8
- export * from './types/primitives';
8
+ export * from './types/primitives/PrimitiveTypes';
9
+ export * from './types/primitives/BooleanType';
10
+ export * from './types/primitives/DateType';
11
+ export * from './types/primitives/DatetimeType';
12
+ export { IntegerType, NumberType } from '@ja-platform/parser-type-system';
13
+ export * from './types/primitives/TextType';
14
+ export * from './types/primitives/LocationType';
15
+ export * from './types/primitives/GeoTrackType';
16
+ export * from './types/primitives/ChoiceType';
17
+ export * from './types/primitives/MultipleChoiceType';
18
+ export * from './types/primitives/MultipleChoiceIntegerType';
19
+ export * from './types/primitives/SingleChoiceType';
20
+ export * from './types/primitives/SingleChoiceIntegerType';
21
+ export * from './types/primitives/attachments/AttachmentType';
22
+ export * from './types/primitives/attachments/PhotoType';
23
+ export * from './types/primitives/attachments/SignatureType';
9
24
  export { ArrayType } from '@ja-platform/parser-type-system';
10
25
  export * from './types/QueryType';
11
26
  export * from './expressions/SchemaObjectDisplayExpression';
@@ -3,7 +3,7 @@ import { Field } from '../types/Field';
3
3
  import { Relationship } from '../types/Relationship';
4
4
  import { SchemaModelType } from '../types/SchemaModelType';
5
5
  import { Type } from '@ja-platform/parser-type-system';
6
- import { PrimitiveTypeMap, PrimitiveTypeName } from '../types/primitives';
6
+ import { PrimitiveTypeMap, PrimitiveTypeName } from '../types/primitives/PrimitiveTypes';
7
7
  import { TypeFactory } from './TypeFactory';
8
8
  export type InferGetType<T extends string | PrimitiveTypeName, MAP extends {
9
9
  [key in PrimitiveTypeName]: new (...args: any[]) => Type;
@@ -1,6 +1,6 @@
1
1
  import { SchemaModelType } from '../types/SchemaModelType';
2
2
  import { Param } from '../types/Param';
3
- import { PrimitiveTypeInstance, PrimitiveTypeName } from '../types/primitives';
3
+ import { PrimitiveTypeInstance, PrimitiveTypeName } from '../types/primitives/PrimitiveTypes';
4
4
  import { Relationship } from '../types/Relationship';
5
5
  import { Field } from '../types/Field';
6
6
  import { Schema } from './Schema';
@@ -4,7 +4,7 @@ import { Field } from './Field';
4
4
  import { Relationship } from './Relationship';
5
5
  import { Schema } from '../schema/Schema';
6
6
  import { ModelIndex } from '../schema/ModelIndex';
7
- import { TextType } from './primitives';
7
+ import { TextType } from './primitives/TextType';
8
8
  import { AbstractObjectTypeFactory, GenerateTypeEvent } from '../schema/TypeFactory';
9
9
  export interface NotificationConfig {
10
10
  message: SchemaObjectDisplayExpression;
@@ -1,17 +1,17 @@
1
- import { AttachmentType } from './attachments/Attachment';
2
- import { TextType } from './Text';
3
- import { BooleanType } from './Boolean';
4
- import { LocationType } from './Location';
5
- import { GeoTrackType } from './GeoTrack';
6
- import { SingleChoiceType } from './SingleChoice';
7
- import { SingleChoiceIntegerType } from './SingleChoiceInteger';
8
- import { MultipleChoiceType } from './MultipleChoice';
9
- import { MultipleChoiceIntegerType } from './MultipleChoiceInteger';
1
+ import { AttachmentType } from './attachments/AttachmentType';
2
+ import { TextType } from './TextType';
3
+ import { BooleanType } from './BooleanType';
4
+ import { LocationType } from './LocationType';
5
+ import { GeoTrackType } from './GeoTrackType';
6
+ import { SingleChoiceType } from './SingleChoiceType';
7
+ import { SingleChoiceIntegerType } from './SingleChoiceIntegerType';
8
+ import { MultipleChoiceType } from './MultipleChoiceType';
9
+ import { MultipleChoiceIntegerType } from './MultipleChoiceIntegerType';
10
10
  import { IntegerType, NumberType } from '@ja-platform/parser-type-system';
11
- import { DateType } from './Date';
12
- import { DatetimeType } from './Datetime';
13
- import { PhotoType } from './attachments/Photo';
14
- import { SignatureType } from './attachments/Signature';
11
+ import { DateType } from './DateType';
12
+ import { DatetimeType } from './DatetimeType';
13
+ import { PhotoType } from './attachments/PhotoType';
14
+ import { SignatureType } from './attachments/SignatureType';
15
15
  export declare const PrimitiveType: {
16
16
  readonly ATTACHMENT: "attachment";
17
17
  readonly BOOLEAN: "boolean";
@@ -50,18 +50,3 @@ export declare const PrimitiveTypeMap: {
50
50
  export type PrimitiveTypeMap = typeof PrimitiveTypeMap;
51
51
  export type PrimitiveTypeName = keyof typeof PrimitiveTypeMap;
52
52
  export type PrimitiveTypeInstance = InstanceType<PrimitiveTypeMap[PrimitiveTypeName]>;
53
- export * from './Boolean';
54
- export * from './Date';
55
- export * from './Datetime';
56
- export { IntegerType, NumberType } from '@ja-platform/parser-type-system';
57
- export * from './Text';
58
- export * from './Location';
59
- export * from './GeoTrack';
60
- export * from './ChoiceType';
61
- export * from './MultipleChoice';
62
- export * from './MultipleChoiceInteger';
63
- export * from './SingleChoice';
64
- export * from './SingleChoiceInteger';
65
- export * from './attachments/Attachment';
66
- export * from './attachments/Photo';
67
- export * from './attachments/Signature';
@@ -1,4 +1,4 @@
1
- import { AttachmentType } from './Attachment';
1
+ import { AttachmentType } from './AttachmentType';
2
2
  export declare class PhotoType extends AttachmentType {
3
3
  static readonly SUB_TYPE = "photo";
4
4
  constructor();
@@ -1,4 +1,4 @@
1
- import { AttachmentType } from './Attachment';
1
+ import { AttachmentType } from './AttachmentType';
2
2
  export declare class SignatureType extends AttachmentType {
3
3
  static readonly SUB_TYPE = "signature";
4
4
  constructor();
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ArrayType = void 0;
17
+ exports.ArrayType = exports.NumberType = exports.IntegerType = void 0;
18
18
  __exportStar(require("./schema/Schema"), exports);
19
19
  __exportStar(require("./schema/TypeFactory"), exports);
20
20
  __exportStar(require("./types/EnumOption"), exports);
@@ -22,9 +22,26 @@ __exportStar(require("./types/Field"), exports);
22
22
  __exportStar(require("./types/Param"), exports);
23
23
  __exportStar(require("./types/SchemaModelType"), exports);
24
24
  __exportStar(require("./types/Relationship"), exports);
25
- __exportStar(require("./types/primitives"), exports);
25
+ __exportStar(require("./types/primitives/PrimitiveTypes"), exports);
26
+ __exportStar(require("./types/primitives/BooleanType"), exports);
27
+ __exportStar(require("./types/primitives/DateType"), exports);
28
+ __exportStar(require("./types/primitives/DatetimeType"), exports);
26
29
  var parser_type_system_1 = require("@ja-platform/parser-type-system");
27
- Object.defineProperty(exports, "ArrayType", { enumerable: true, get: function () { return parser_type_system_1.ArrayType; } });
30
+ Object.defineProperty(exports, "IntegerType", { enumerable: true, get: function () { return parser_type_system_1.IntegerType; } });
31
+ Object.defineProperty(exports, "NumberType", { enumerable: true, get: function () { return parser_type_system_1.NumberType; } });
32
+ __exportStar(require("./types/primitives/TextType"), exports);
33
+ __exportStar(require("./types/primitives/LocationType"), exports);
34
+ __exportStar(require("./types/primitives/GeoTrackType"), exports);
35
+ __exportStar(require("./types/primitives/ChoiceType"), exports);
36
+ __exportStar(require("./types/primitives/MultipleChoiceType"), exports);
37
+ __exportStar(require("./types/primitives/MultipleChoiceIntegerType"), exports);
38
+ __exportStar(require("./types/primitives/SingleChoiceType"), exports);
39
+ __exportStar(require("./types/primitives/SingleChoiceIntegerType"), exports);
40
+ __exportStar(require("./types/primitives/attachments/AttachmentType"), exports);
41
+ __exportStar(require("./types/primitives/attachments/PhotoType"), exports);
42
+ __exportStar(require("./types/primitives/attachments/SignatureType"), exports);
43
+ var parser_type_system_2 = require("@ja-platform/parser-type-system");
44
+ Object.defineProperty(exports, "ArrayType", { enumerable: true, get: function () { return parser_type_system_2.ArrayType; } });
28
45
  __exportStar(require("./types/QueryType"), exports);
29
46
  __exportStar(require("./expressions/SchemaObjectDisplayExpression"), exports);
30
47
  __exportStar(require("./day/Day"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAgC;AAEhC,uDAAqC;AAErC,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B;AAC9B,0DAAwC;AACxC,uDAAqC;AAErC,qDAAmC;AAEnC,sEAA4D;AAAnD,+GAAA,SAAS,OAAA;AAClB,oDAAkC;AAElC,8EAA4D;AAE5D,4CAA0B;AAC1B,8CAA4B;AAE5B,sDAAoC;AACpC,yDAAuC;AACvC,4EAA0D","sourcesContent":["export * from './schema/Schema';\n\nexport * from './schema/TypeFactory';\n\nexport * from './types/EnumOption';\nexport * from './types/Field';\nexport * from './types/Param';\nexport * from './types/SchemaModelType';\nexport * from './types/Relationship';\n\nexport * from './types/primitives';\n\nexport { ArrayType } from '@ja-platform/parser-type-system';\nexport * from './types/QueryType';\n\nexport * from './expressions/SchemaObjectDisplayExpression';\n\nexport * from './day/Day';\nexport * from './day/utils';\n\nexport * from './schema/ModelIndex';\nexport * from './schema/fieldMetadata';\nexport * from './expressions/parseParameterValueProvider';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAgC;AAEhC,uDAAqC;AAErC,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B;AAC9B,0DAAwC;AACxC,uDAAqC;AAErC,oEAAkD;AAClD,iEAA+C;AAC/C,8DAA4C;AAC5C,kEAAgD;AAChD,sEAA0E;AAAjE,iHAAA,WAAW,OAAA;AAAE,gHAAA,UAAU,OAAA;AAChC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,gEAA8C;AAC9C,wEAAsD;AACtD,+EAA6D;AAC7D,sEAAoD;AACpD,6EAA2D;AAC3D,gFAA8D;AAC9D,2EAAyD;AACzD,+EAA6D;AAE7D,sEAA4D;AAAnD,+GAAA,SAAS,OAAA;AAClB,oDAAkC;AAElC,8EAA4D;AAE5D,4CAA0B;AAC1B,8CAA4B;AAE5B,sDAAoC;AACpC,yDAAuC;AACvC,4EAA0D","sourcesContent":["export * from './schema/Schema';\n\nexport * from './schema/TypeFactory';\n\nexport * from './types/EnumOption';\nexport * from './types/Field';\nexport * from './types/Param';\nexport * from './types/SchemaModelType';\nexport * from './types/Relationship';\n\nexport * from './types/primitives/PrimitiveTypes';\nexport * from './types/primitives/BooleanType';\nexport * from './types/primitives/DateType';\nexport * from './types/primitives/DatetimeType';\nexport { IntegerType, NumberType } from '@ja-platform/parser-type-system';\nexport * from './types/primitives/TextType';\nexport * from './types/primitives/LocationType';\nexport * from './types/primitives/GeoTrackType';\nexport * from './types/primitives/ChoiceType';\nexport * from './types/primitives/MultipleChoiceType';\nexport * from './types/primitives/MultipleChoiceIntegerType';\nexport * from './types/primitives/SingleChoiceType';\nexport * from './types/primitives/SingleChoiceIntegerType';\nexport * from './types/primitives/attachments/AttachmentType';\nexport * from './types/primitives/attachments/PhotoType';\nexport * from './types/primitives/attachments/SignatureType';\n\nexport { ArrayType } from '@ja-platform/parser-type-system';\nexport * from './types/QueryType';\n\nexport * from './expressions/SchemaObjectDisplayExpression';\n\nexport * from './day/Day';\nexport * from './day/utils';\n\nexport * from './schema/ModelIndex';\nexport * from './schema/fieldMetadata';\nexport * from './expressions/parseParameterValueProvider';\n"]}
@@ -5,7 +5,7 @@ const Param_1 = require("../types/Param");
5
5
  const Field_1 = require("../types/Field");
6
6
  const Relationship_1 = require("../types/Relationship");
7
7
  const SchemaModelType_1 = require("../types/SchemaModelType");
8
- const primitives_1 = require("../types/primitives");
8
+ const PrimitiveTypes_1 = require("../types/primitives/PrimitiveTypes");
9
9
  const TypeFactory_1 = require("./TypeFactory");
10
10
  class Schema {
11
11
  /**
@@ -19,7 +19,7 @@ class Schema {
19
19
  this.registerTypeFactory(new SchemaModelType_1.SchemaModelTypeFactory());
20
20
  this.registerTypeFactory(new Relationship_1.RelationshipTypeFactory());
21
21
  // Register all the primitive types
22
- for (const primitiveName of Object.keys(primitives_1.PrimitiveTypeMap)) {
22
+ for (const primitiveName of Object.keys(PrimitiveTypes_1.PrimitiveTypeMap)) {
23
23
  this.registerTypeFactory(new TypeFactory_1.PrimitiveTypeFactory(primitiveName));
24
24
  }
25
25
  }
@@ -46,7 +46,7 @@ class Schema {
46
46
  // Given a type name, return the specified type. Returns `undefined` if the type is not found.
47
47
  // The type name may refer to a primitive, or an object type defined in the schema.
48
48
  getType(typeName) {
49
- if (typeName in primitives_1.PrimitiveTypeMap) {
49
+ if (typeName in PrimitiveTypes_1.PrimitiveTypeMap) {
50
50
  // primitive
51
51
  return this.primitive(typeName);
52
52
  }
@@ -54,7 +54,7 @@ class Schema {
54
54
  return this.objects[typeName];
55
55
  }
56
56
  primitive(name) {
57
- if (!(name in primitives_1.PrimitiveTypeMap)) {
57
+ if (!(name in PrimitiveTypes_1.PrimitiveTypeMap)) {
58
58
  return null;
59
59
  }
60
60
  const factory = this.getFactory(name);
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../src/schema/Schema.ts"],"names":[],"mappings":";;;AAAA,0CAAqD;AACrD,0CAAqD;AACrD,wDAA8E;AAC9E,8DAAmF;AAEnF,oDAA0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../types/Field';\nimport { Relationship, RelationshipTypeFactory } from '../types/Relationship';\nimport { SchemaModelType, SchemaModelTypeFactory } from '../types/SchemaModelType';\nimport { Type } from '@ja-platform/parser-type-system';\nimport { PrimitiveTypeMap, PrimitiveTypeName } from '../types/primitives';\nimport { PrimitiveTypeFactory, TypeFactory } from './TypeFactory';\n\nexport type InferGetType<\n T extends string | PrimitiveTypeName,\n MAP extends { [key in PrimitiveTypeName]: new (...args: any[]) => Type } = PrimitiveTypeMap,\n Model extends SchemaModelType = SchemaModelType\n> = T extends PrimitiveTypeName ? InstanceType<MAP[T]> : Model;\n\nexport class Schema {\n typeFactories: { [key: string]: TypeFactory } = {};\n\n objects: { [index: string]: SchemaModelType };\n\n // these are used by the tern defs (legacy editor)\n apiVersion?;\n mobileUserType?;\n\n /**\n * Create an empty resolved schema, independently of its input format.\n */\n constructor() {\n this.objects = {};\n\n this.registerTypeFactory(new FieldFactory());\n this.registerTypeFactory(new ParamFactory());\n this.registerTypeFactory(new SchemaModelTypeFactory());\n this.registerTypeFactory(new RelationshipTypeFactory());\n\n // Register all the primitive types\n for (const primitiveName of Object.keys(PrimitiveTypeMap)) {\n this.registerTypeFactory(new PrimitiveTypeFactory(primitiveName as PrimitiveTypeName));\n }\n }\n\n registerTypeFactory(factory: TypeFactory) {\n this.typeFactories[factory.name] = factory;\n }\n\n getFactory(name: string) {\n return this.typeFactories[name];\n }\n\n /** Helper function to assist in creating variables */\n field<T extends Type = Type>(name?: string, type?: string): Field<T>;\n field<T extends Type = Type>(name?: string, type?: T): Field<T>;\n field<T extends Type = Type>(name?: string, type?: T | string): Field<T> {\n const _type = typeof type === 'string' ? this.getType(type) : type;\n return this.getFactory(Field.TYPE).generate<T>({ schema: this, name, type: _type });\n }\n\n param<T extends Type = Type>(name?: string, type?: string): Param<T>;\n param<T extends Type = Type>(name?: string, type?: T): Param<T>;\n param<T extends Type = Type>(name?: string, type?: T | string): Param<T> {\n const _type = typeof type === 'string' ? this.getType(type) : type;\n return this.getFactory(Param.TYPE).generate<T>({ schema: this, name, type: _type });\n }\n\n newObjectType(name?: string) {\n return this.getFactory(SchemaModelType.TYPE).generate({ schema: this, name }) as SchemaModelType;\n }\n\n newRelationship() {\n return this.getFactory(Relationship.TYPE).generate({ schema: this }) as Relationship;\n }\n\n // Given a type name, return the specified type. Returns `undefined` if the type is not found.\n // The type name may refer to a primitive, or an object type defined in the schema.\n getType<T extends string | PrimitiveTypeName>(typeName: T): InferGetType<T> {\n if (typeName in PrimitiveTypeMap) {\n // primitive\n return this.primitive(typeName);\n }\n // not a primitive - most likely an object\n return this.objects[typeName] as InferGetType<T>;\n }\n\n primitive<T extends string | PrimitiveTypeName>(name: T): InferGetType<T> {\n if (!(name in PrimitiveTypeMap)) {\n return null;\n }\n const factory = this.getFactory(name);\n if (factory) {\n return factory.generate({ schema: this });\n } else {\n return null;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../src/schema/Schema.ts"],"names":[],"mappings":";;;AAAA,0CAAqD;AACrD,0CAAqD;AACrD,wDAA8E;AAC9E,8DAAmF;AAEnF,uEAAyF;AACzF,+CAAkE;AAQlE;IASE;;OAEG;IACH;QAXA,kBAAa,GAAmC,EAAE,CAAC;QAYjD,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAElB,IAAI,CAAC,mBAAmB,CAAC,IAAI,oBAAY,EAAE,CAAC,CAAC;QAC7C,IAAI,CAAC,mBAAmB,CAAC,IAAI,oBAAY,EAAE,CAAC,CAAC;QAC7C,IAAI,CAAC,mBAAmB,CAAC,IAAI,wCAAsB,EAAE,CAAC,CAAC;QACvD,IAAI,CAAC,mBAAmB,CAAC,IAAI,sCAAuB,EAAE,CAAC,CAAC;QAExD,mCAAmC;QACnC,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,iCAAgB,CAAC,EAAE,CAAC;YAC1D,IAAI,CAAC,mBAAmB,CAAC,IAAI,kCAAoB,CAAC,aAAkC,CAAC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CAAC;IAED,8FAA8F;IAC9F,mFAAmF;IACnF,OAAO,CAAuC,QAAW;QACvD,IAAI,QAAQ,IAAI,iCAAgB,EAAE,CAAC;YACjC,YAAY;YACZ,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;QACD,0CAA0C;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAoB,CAAC;IACnD,CAAC;IAED,SAAS,CAAuC,IAAO;QACrD,IAAI,CAAC,CAAC,IAAI,IAAI,iCAAgB,CAAC,EAAE,CAAC;YAChC,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF","sourcesContent":["import { Param, ParamFactory } from '../types/Param';\nimport { Field, FieldFactory } from '../types/Field';\nimport { Relationship, RelationshipTypeFactory } from '../types/Relationship';\nimport { SchemaModelType, SchemaModelTypeFactory } from '../types/SchemaModelType';\nimport { Type } from '@ja-platform/parser-type-system';\nimport { PrimitiveTypeMap, PrimitiveTypeName } from '../types/primitives/PrimitiveTypes';\nimport { PrimitiveTypeFactory, TypeFactory } from './TypeFactory';\n\nexport type InferGetType<\n T extends string | PrimitiveTypeName,\n MAP extends { [key in PrimitiveTypeName]: new (...args: any[]) => Type } = PrimitiveTypeMap,\n Model extends SchemaModelType = SchemaModelType\n> = T extends PrimitiveTypeName ? InstanceType<MAP[T]> : Model;\n\nexport class Schema {\n typeFactories: { [key: string]: TypeFactory } = {};\n\n objects: { [index: string]: SchemaModelType };\n\n // these are used by the tern defs (legacy editor)\n apiVersion?;\n mobileUserType?;\n\n /**\n * Create an empty resolved schema, independently of its input format.\n */\n constructor() {\n this.objects = {};\n\n this.registerTypeFactory(new FieldFactory());\n this.registerTypeFactory(new ParamFactory());\n this.registerTypeFactory(new SchemaModelTypeFactory());\n this.registerTypeFactory(new RelationshipTypeFactory());\n\n // Register all the primitive types\n for (const primitiveName of Object.keys(PrimitiveTypeMap)) {\n this.registerTypeFactory(new PrimitiveTypeFactory(primitiveName as PrimitiveTypeName));\n }\n }\n\n registerTypeFactory(factory: TypeFactory) {\n this.typeFactories[factory.name] = factory;\n }\n\n getFactory(name: string) {\n return this.typeFactories[name];\n }\n\n /** Helper function to assist in creating variables */\n field<T extends Type = Type>(name?: string, type?: string): Field<T>;\n field<T extends Type = Type>(name?: string, type?: T): Field<T>;\n field<T extends Type = Type>(name?: string, type?: T | string): Field<T> {\n const _type = typeof type === 'string' ? this.getType(type) : type;\n return this.getFactory(Field.TYPE).generate<T>({ schema: this, name, type: _type });\n }\n\n param<T extends Type = Type>(name?: string, type?: string): Param<T>;\n param<T extends Type = Type>(name?: string, type?: T): Param<T>;\n param<T extends Type = Type>(name?: string, type?: T | string): Param<T> {\n const _type = typeof type === 'string' ? this.getType(type) : type;\n return this.getFactory(Param.TYPE).generate<T>({ schema: this, name, type: _type });\n }\n\n newObjectType(name?: string) {\n return this.getFactory(SchemaModelType.TYPE).generate({ schema: this, name }) as SchemaModelType;\n }\n\n newRelationship() {\n return this.getFactory(Relationship.TYPE).generate({ schema: this }) as Relationship;\n }\n\n // Given a type name, return the specified type. Returns `undefined` if the type is not found.\n // The type name may refer to a primitive, or an object type defined in the schema.\n getType<T extends string | PrimitiveTypeName>(typeName: T): InferGetType<T> {\n if (typeName in PrimitiveTypeMap) {\n // primitive\n return this.primitive(typeName);\n }\n // not a primitive - most likely an object\n return this.objects[typeName] as InferGetType<T>;\n }\n\n primitive<T extends string | PrimitiveTypeName>(name: T): InferGetType<T> {\n if (!(name in PrimitiveTypeMap)) {\n return null;\n }\n const factory = this.getFactory(name);\n if (factory) {\n return factory.generate({ schema: this });\n } else {\n return null;\n }\n }\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PrimitiveTypeFactory = exports.AbstractObjectTypeFactory = void 0;
4
- const primitives_1 = require("../types/primitives");
4
+ const PrimitiveTypes_1 = require("../types/primitives/PrimitiveTypes");
5
5
  class AbstractObjectTypeFactory {
6
6
  constructor(name) {
7
7
  this.name = name;
@@ -13,7 +13,7 @@ class PrimitiveTypeFactory {
13
13
  this.name = name;
14
14
  }
15
15
  generate(event) {
16
- const instance = new primitives_1.PrimitiveTypeMap[this.name]();
16
+ const instance = new PrimitiveTypes_1.PrimitiveTypeMap[this.name]();
17
17
  return instance;
18
18
  }
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TypeFactory.js","sourceRoot":"","sources":["../../src/schema/TypeFactory.ts"],"names":[],"mappings":";;;AAEA,oDAAiG;AAmBjG;IAME,YAAY,IAAoB;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAGF;;AAED;IAKE,YAAY,IAAuB;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IACD,QAAQ,CAAC,KAAQ;QACf,MAAM,QAAQ,GAAG,IAAI,6BAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACnD,OAAO,QAAa,CAAC;IACvB,CAAC;CACF","sourcesContent":["import { SchemaModelType } from '../types/SchemaModelType';\nimport { Param } from '../types/Param';\nimport { PrimitiveTypeInstance, PrimitiveTypeMap, PrimitiveTypeName } from '../types/primitives';\nimport { Relationship } from '../types/Relationship';\nimport { Field } from '../types/Field';\nimport { Schema } from './Schema';\n\nexport interface TypeFactory<NAME extends string = string> {\n name: NAME;\n generate: <T>(event?: any) => any;\n}\n\nexport interface GenerateTypeEvent {\n schema: Schema;\n}\n\nexport type ObjectTypeInstance = Field<any> | Param | SchemaModelType | Relationship;\n\nexport type ObjectTypeName =\n typeof Param.TYPE | typeof Field.TYPE | typeof SchemaModelType.TYPE | typeof Relationship.TYPE;\n\nexport abstract class AbstractObjectTypeFactory<\n R extends ObjectTypeInstance = ObjectTypeInstance,\n E extends GenerateTypeEvent = GenerateTypeEvent\n> implements TypeFactory<ObjectTypeName> {\n name: ObjectTypeName;\n\n constructor(name: ObjectTypeName) {\n this.name = name;\n }\n\n abstract generate<T>(event: E): R;\n}\n\nexport class PrimitiveTypeFactory<\n T extends PrimitiveTypeInstance,\n E extends GenerateTypeEvent = GenerateTypeEvent\n> implements TypeFactory<PrimitiveTypeName> {\n name: PrimitiveTypeName;\n constructor(name: PrimitiveTypeName) {\n this.name = name;\n }\n generate(event: E): T {\n const instance = new PrimitiveTypeMap[this.name]();\n return instance as T;\n }\n}\n"]}
1
+ {"version":3,"file":"TypeFactory.js","sourceRoot":"","sources":["../../src/schema/TypeFactory.ts"],"names":[],"mappings":";;;AAEA,uEAAgH;AAmBhH;IAME,YAAY,IAAoB;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAGF;;AAED;IAKE,YAAY,IAAuB;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IACD,QAAQ,CAAC,KAAQ;QACf,MAAM,QAAQ,GAAG,IAAI,iCAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACnD,OAAO,QAAa,CAAC;IACvB,CAAC;CACF","sourcesContent":["import { SchemaModelType } from '../types/SchemaModelType';\nimport { Param } from '../types/Param';\nimport { PrimitiveTypeInstance, PrimitiveTypeMap, PrimitiveTypeName } from '../types/primitives/PrimitiveTypes';\nimport { Relationship } from '../types/Relationship';\nimport { Field } from '../types/Field';\nimport { Schema } from './Schema';\n\nexport interface TypeFactory<NAME extends string = string> {\n name: NAME;\n generate: <T>(event?: any) => any;\n}\n\nexport interface GenerateTypeEvent {\n schema: Schema;\n}\n\nexport type ObjectTypeInstance = Field<any> | Param | SchemaModelType | Relationship;\n\nexport type ObjectTypeName =\n typeof Param.TYPE | typeof Field.TYPE | typeof SchemaModelType.TYPE | typeof Relationship.TYPE;\n\nexport abstract class AbstractObjectTypeFactory<\n R extends ObjectTypeInstance = ObjectTypeInstance,\n E extends GenerateTypeEvent = GenerateTypeEvent\n> implements TypeFactory<ObjectTypeName> {\n name: ObjectTypeName;\n\n constructor(name: ObjectTypeName) {\n this.name = name;\n }\n\n abstract generate<T>(event: E): R;\n}\n\nexport class PrimitiveTypeFactory<\n T extends PrimitiveTypeInstance,\n E extends GenerateTypeEvent = GenerateTypeEvent\n> implements TypeFactory<PrimitiveTypeName> {\n name: PrimitiveTypeName;\n constructor(name: PrimitiveTypeName) {\n this.name = name;\n }\n generate(event: E): T {\n const instance = new PrimitiveTypeMap[this.name]();\n return instance as T;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":"7.0.2","root":[[130,147],[149,160]],"packageJsons":["../../../node_modules/.pnpm/@babel+types@8.0.6/node_modules/@babel/types/package.json","../../../node_modules/.pnpm/moment@2.31.0/node_modules/moment/package.json","../../expressions/package.json","../package.json","../../type-system/package.json"],"missingPackageJsons":["../../../node_modules/.pnpm/@babel+types@8.0.6/node_modules/@babel/types/lib/package.json","../../../node_modules/.pnpm/moment@2.31.0/node_modules/moment/ts3.1-typings/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.es2024.d.ts","lib.es2025.d.ts","lib.esnext.d.ts","lib.dom.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.es2024.arraybuffer.d.ts","lib.es2024.collection.d.ts","lib.es2024.object.d.ts","lib.es2024.promise.d.ts","lib.es2024.regexp.d.ts","lib.es2024.sharedmemory.d.ts","lib.es2024.string.d.ts","lib.es2025.collection.d.ts","lib.es2025.float16.d.ts","lib.es2025.intl.d.ts","lib.es2025.iterator.d.ts","lib.es2025.promise.d.ts","lib.es2025.regexp.d.ts","lib.esnext.array.d.ts","lib.esnext.collection.d.ts","lib.esnext.date.d.ts","lib.esnext.decorators.d.ts","lib.esnext.disposable.d.ts","lib.esnext.error.d.ts","lib.esnext.intl.d.ts","lib.esnext.sharedmemory.d.ts","lib.esnext.temporal.d.ts","lib.esnext.typedarrays.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../../expressions/dist/@types/tokens/AbstractToken.d.ts","../../expressions/dist/@types/tokens/DelimiterToken.d.ts","../../expressions/dist/@types/tokens/EnumToken.d.ts","../../expressions/dist/@types/tokens/text/TextToken.d.ts","../../../node_modules/.pnpm/@babel+types@8.0.6/node_modules/@babel/types/lib/index.d.ts","../../expressions/dist/@types/tokens/code/CodeToken.d.ts","../../expressions/dist/@types/tokens/code/JSToken.d.ts","../../expressions/dist/@types/tokens/code/PrefixToken.d.ts","../../expressions/dist/@types/tokens/code/IdentifierToken.d.ts","../../type-system/dist/@types/Formatter.d.ts","../../type-system/dist/@types/Type.d.ts","../../type-system/dist/@types/ObjectType.d.ts","../../type-system/dist/@types/ArrayType.d.ts","../../type-system/dist/@types/UnknownType.d.ts","../../type-system/dist/@types/ScalarType.d.ts","../../type-system/dist/@types/TextType.d.ts","../../type-system/dist/@types/NumberType.d.ts","../../type-system/dist/@types/IntegerType.d.ts","../../type-system/dist/@types/BooleanType.d.ts","../../type-system/dist/@types/index.d.ts","../../expressions/dist/@types/definitions/ValidationContext.d.ts","../../expressions/dist/@types/expressions/AbstractExpression.d.ts","../../expressions/dist/@types/tokens/text/PlaceholderToken.d.ts","../../expressions/dist/@types/utils/tokenUtils.d.ts","../../expressions/dist/@types/tokens/index.d.ts","../../expressions/dist/@types/ExpressionParser.d.ts","../../expressions/dist/@types/CombinedParser.d.ts","../../expressions/dist/@types/expressions/ListExpression.d.ts","../../expressions/dist/@types/expressions/EvaluatedExpression.d.ts","../../expressions/dist/@types/expressions/shorthand/ShorthandExpression.d.ts","../../expressions/dist/@types/expressions/shorthand/FormatShorthandExpression.d.ts","../../expressions/dist/@types/expressions/constant/ConstantExpression.d.ts","../../expressions/dist/@types/expressions/function/FunctionExpression.d.ts","../../expressions/dist/@types/expressions/text/AbstractFormatExpression.d.ts","../../expressions/dist/@types/expressions/text/FormatStringExpression.d.ts","../../expressions/dist/@types/expressions/index.d.ts","../../expressions/dist/@types/utils/parserUtils.d.ts","../../expressions/dist/@types/code-parsers/CodeParser.d.ts","../../expressions/dist/@types/code-parsers/JavaScriptParser.d.ts","../../expressions/dist/@types/utils/valueFormatting.d.ts","../../expressions/dist/@types/index.d.ts","../src/expressions/SchemaObjectDisplayExpression.ts","../src/types/QueryType.ts","../src/types/Field.ts","../src/types/Relationship.ts","../src/schema/ModelIndex.ts","../src/types/primitives/attachments/Attachment.ts","../src/types/primitives/Text.ts","../src/types/EnumOption.ts","../src/types/primitives/ChoiceType.ts","../src/types/primitives/Boolean.ts","../src/types/primitives/Location.ts","../src/types/primitives/GeoTrack.ts","../src/types/primitives/SingleChoice.ts","../src/types/primitives/SingleChoiceInteger.ts","../src/types/primitives/MultipleChoice.ts","../src/types/primitives/MultipleChoiceInteger.ts","../src/day/utils.ts","../src/day/Day.ts","../../../node_modules/.pnpm/moment@2.31.0/node_modules/moment/ts3.1-typings/moment.d.ts","../src/types/primitives/Date.ts","../src/types/primitives/Datetime.ts","../src/types/primitives/attachments/Photo.ts","../src/types/primitives/attachments/Signature.ts","../src/types/primitives/index.ts","../src/types/SchemaModelType.ts","../src/schema/TypeFactory.ts","../src/types/Param.ts","../src/schema/Schema.ts","../src/schema/fieldMetadata.ts","../src/expressions/parseParameterValueProvider.ts","../src/index.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995","793cee405385076e27c24f409659dccd","09f69c6610266eaee1ac9e3e30df2c71","62bad718844246b8e17547f37bad6085",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"38856f70edcd2115c355d96ec77cc09e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"de8700156c1275465bcd473c28b359aa","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d47cfdb6ede40518357bb5a4cd7cd9fb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6e5773860cd9e5b15e683113f642ab47","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"30ff5fe1682f7fcd629880476ca3c2e0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf23d7d1b40b9015b694ddc2f011752f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2cc585d42e2c548f9f24a30a1989fd33","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"713906ce9d332d2242b7f05ed9304be3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0219894bfe5042c7e1aa2d22e4a91ed0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6009ffff7e43c93318804d2d28e37fe3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"03be89b227587594fbb50509fc1c2e45","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b30df52dc24740c0bad7c55c3511df7d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ab8d3c9b5ed5c2ab8f383607eef439f0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d950ec671d0a8e07f3c1a31e94abed86","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1abef2ace5eccb02d60dd73cd5a5ee4c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5f0a3044029d1cc081b5887eb4deb07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d57c697f1446940ec4bfe669c962e2c4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be41035d7b941482a1e1ae6a5c5dcca5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"10f7d9da7564f27f8ddf4a162b6da6d3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1d0520af549e0c3581f15173cc713ca1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d65083f97fd741cff028472563eddb79","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"da7f24f00653ebac660ac1c0821ed33d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7cb5ae9e65516ea2235f0721f6aac43c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"510b0b622fafd6eff2bf5d020de046ee","ae63a2414b6a326b93ee65bba693d617","57845437bcd4011990eb52478f02c4a0","f25290e9ca5aee09a0210e2a454437f8",{"version":"3575b2b8e50b5a5b3acce219e08900c5","impliedNodeFormat":99},"968dbf07ccc13a1a84f319c26e9909b3","354fc88481ff608fcbbfaf7851a29043","bf6d579deb9596ec514083ea94789be0","3058c9c4ad1200a2ff62094072deed53","e5fb7990b84f5089ba92554ea3614810","770ee32ef332fd48bfef508442b30edb","5c1b5931ee0c894699ca56f5b573f88a","822b842ad7efa3485d65fbeb2f919865","89b6053090a8d01f57cb8f521fae777d","26302a8b72d74f944dcf8f6452e54f7c","bc95bdb594a5aece18248fbf4387dd2e","90125a76f2ae701181f7e09dea41f3ad","ac52bb76ccad935a013384d2a71ab267","2c96eeb69afb823580d4e1e5f1b188e0","c06213bcb24cd658dfcd1239777159bd","ada7f0921b6eace272ee48028595ff4e","e518fcc525a72f156f4235f97e942e72","cf3121ca4479d3afdaceb690d14cf086","d33a7d16b8bb10392237228466f959f8","e2bb800214278396da6f4dfb9210a507","c0cbc64b7a419382086b8d30226b8f0f","bb9d86257bed6b06d027b9b561ba2c31","ddac5ec2816a79b75ca0b28b073126c9","e62a96adf38e2e5adbeb996a1bbb0ca6","358284d17020fff7c8988fe49465ebce","788ca99c9132de5f347c0c196085cc16","74a85c95eb3b8b1bd5c7d0822fe65312","f85883c070822e429d13802a651146bc","038c82b1bfec7b11761d58241d68970f","fa4b9cdace3ba0abd1e6547b87390de6","b5fa992ef592b85d4851433a12195162","6844f7dcecd5297f9a25fe55fe7aeacc","e78cf9dc5bca6011a220581f56da19cb","25aba7d58ecafcf7098f9bcca63ea72a","90506d77482148f93c56044616613958","3a5ea1baf065ad0e1794aeb15153114c",{"version":"f9bd850e5e3a05926dbfc2a68d393e2f","signature":"aa250c74fe5a950a7dea8c41eba97441","impliedNodeFormat":1},{"version":"e15b8a94bffca79fb19f767e7feb2f64","signature":"a2614d5bf8c8a719715fad139f7d2849","impliedNodeFormat":1},{"version":"2e0f0b769b39a42a5a9133ad03d07faf","signature":"88ae61f99ea8bab323e2e743e4ee8a90","impliedNodeFormat":1},{"version":"0ed54f86ee92c964f950c9d44df12feb","signature":"44ebda1090b59085d1eeda6c2c25e4af","impliedNodeFormat":1},{"version":"0973156bf9ac211846a3984519c9ff9a","signature":"2d1c84be972f91834168ee8b45ef3260","impliedNodeFormat":1},{"version":"d9ec3b9d0e317b6e05cfca6d17a72c5b","signature":"01d13385ca95028b548f57422632cd10","impliedNodeFormat":1},{"version":"56f99034e7ca1de3f11e3942d42866a0","signature":"e1421b701f3826a978db13ebc309e2db","impliedNodeFormat":1},{"version":"b5f1e4e6e26ff0ce16a892c338a393fc","signature":"c5f116e28ed4d9b893b3bb22615c4a6e","impliedNodeFormat":1},{"version":"853e1f8841cceac171473411e2890199","signature":"a017252f6e0a3f0b8f7812273df80ece","impliedNodeFormat":1},{"version":"4a44098fe761e3d312038c4f38bba8cd","signature":"4fdad46f00f0e8c18ff903eacb5cab67","impliedNodeFormat":1},{"version":"0d42efa8d0b08642ce89e89ecbafcbf3","signature":"4538c220c4065a35c60d00ac0baa8e76","impliedNodeFormat":1},{"version":"73fe0aa7eb191e1180dca2b3bac48fcd","signature":"363c6b7126845050cea9bd1b53a77a66","impliedNodeFormat":1},{"version":"4d52f2f9aff3960fd8112462c999364c","signature":"0b856f0bab913d03af59d1f4f0f59562","impliedNodeFormat":1},{"version":"0ea802eee8d188d1c8159b0791d10f20","signature":"8264702ad4ee79cdcbea078c3da56f14","impliedNodeFormat":1},{"version":"4bd3004fb92e43c60401993de8f08ec8","signature":"5d7211f45479b46afb44d4d8e573535b","impliedNodeFormat":1},{"version":"76c75ada51f066eceb74736c546e0dc6","signature":"ec0bba0a0909104c137edc876deb700c","impliedNodeFormat":1},{"version":"ecde8511f785827876f35c97838f2217","signature":"df8eef6e7eccf796eb60b204e7fb0f8c","impliedNodeFormat":1},{"version":"44f604903f90b5463fa5141e449472c6","signature":"e18c2c8b2f19905e6ee32e3885543768","impliedNodeFormat":1},"bdce55db2d0ce77261b470a9b7a64095",{"version":"4184bcd819603715ed5412485b85ab04","signature":"96ee6501eee7a02a19ea7ff1f53d661c","impliedNodeFormat":1},{"version":"37716ac94c7c13750508fe67b1985b58","signature":"d964aada007f95d0dd07460963f68a0c","impliedNodeFormat":1},{"version":"efd1d130a0976975bd2013c01a9c2d30","signature":"402d2259e74ccac3588d639c08e81545","impliedNodeFormat":1},{"version":"edb60acfe3d08ded876343643d1f89bc","signature":"e95214003cc4a559b833b4ecf52f2d92","impliedNodeFormat":1},{"version":"6e7df691e9383dcc50b10a35e152c948","signature":"69f847a0a3ca0c866ac328c9348cbe04","impliedNodeFormat":1},{"version":"8153badb2a51a806f16d43fae7c7c8a5","signature":"632deda2127ca3a142ca076cf54d1143","impliedNodeFormat":1},{"version":"aaa9d7c5b41f6e1c523a780ec7912e10","signature":"4cb877c523b96073f4dd0de7f41e9803","impliedNodeFormat":1},{"version":"e3424277ca0424373630e388eb21ca6b","signature":"dcd337aeff86227b569df4951219b6b6","impliedNodeFormat":1},{"version":"dcf40ad0d91569bfa4257e29f227eb1d","signature":"699585d6b5731578b044e283b9363e6f","impliedNodeFormat":1},{"version":"8cc989ae5c82c1ff8840588694d62750","signature":"eb7b402991957b09b77be3d8046faa56","impliedNodeFormat":1},{"version":"3365c7d6a19dcfc162cb7fe14c8a16af","signature":"205c6187ac6e4ef53474b4a23ba47e42","impliedNodeFormat":1},{"version":"a546ca9348fea781d81bff8239a3b806","signature":"8ff324d87ffc8c78c0de87df2c82fa62","impliedNodeFormat":1}],"fileIdsList":[[110,113,114],[110,113],[93,126],[108,113],[109,113],[108,110,113,114],[110,113,114,117],[110,116,117,118,119,120,121,122,123],[113,114,118],[108,109,110,113,114],[109,110,113,114],[113,117,118,122],[109,113,114,115,124,125,126,127,128],[89],[93,94],[89,90,91,92,94,95,96,97,111,112],[89,110],[113,124],[89,94,95],[108],[146],[129],[108,130,131,132,133,134,137,146,147,153,154,155,156,157,158,159],[108,132,133,153,154,155,156],[132,133,153,154,156,157],[108,155],[108,129,132,155],[154,155],[108,130,131,132,133,134,153,155,157],[108,138],[108,137],[108,146,147,148],[108,148],[108,136],[138],[137,138],[135],[108,135,136,138,139,140,141,142,143,144,145,149,150,151,152],[99],[99,103],[98],[98,99,100,101,102,103,104,105,106,107]],"options":{"composite":true,"declaration":true,"declarationDir":"./@types","inlineSources":true,"module":199,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":false,"stripInternal":true,"sourceMap":true,"target":4,"tsBuildInfoFile":"./tsconfig.tsbuildinfo","esModuleInterop":true},"referencedMap":[[115,1],[114,2],[127,3],[109,4],[110,5],[117,1],[116,1],[120,6],[121,7],[124,8],[119,9],[118,10],[122,11],[123,12],[129,13],[90,14],[91,14],[94,14],[97,14],[95,15],[96,14],[113,16],[111,17],[92,14],[125,18],[112,19],[128,20],[147,21],[130,22],[159,22],[160,23],[157,24],[155,25],[132,26],[156,27],[131,20],[133,28],[154,29],[139,30],[138,31],[149,32],[150,33],[141,20],[140,34],[144,35],[145,35],[142,35],[143,36],[136,20],[135,20],[151,37],[152,37],[153,38],[101,39],[107,40],[106,40],[105,40],[100,39],[103,39],[104,40],[99,41],[102,39],[108,42]],"latestChangedDtsFile":"./@types/index.d.ts"}
1
+ {"version":"7.0.2","root":[[128,145],[147,158]],"packageJsons":["../../../node_modules/.pnpm/@babel+types@8.0.6/node_modules/@babel/types/package.json","../../../node_modules/.pnpm/moment@2.31.0/node_modules/moment/package.json","../../expressions/package.json","../package.json","../../type-system/package.json"],"missingPackageJsons":["../../../node_modules/.pnpm/@babel+types@8.0.6/node_modules/@babel/types/lib/package.json","../../../node_modules/.pnpm/moment@2.31.0/node_modules/moment/ts3.1-typings/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.es2024.d.ts","lib.es2025.d.ts","lib.esnext.d.ts","lib.dom.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.es2024.arraybuffer.d.ts","lib.es2024.collection.d.ts","lib.es2024.object.d.ts","lib.es2024.promise.d.ts","lib.es2024.regexp.d.ts","lib.es2024.sharedmemory.d.ts","lib.es2024.string.d.ts","lib.es2025.collection.d.ts","lib.es2025.float16.d.ts","lib.es2025.intl.d.ts","lib.es2025.iterator.d.ts","lib.es2025.promise.d.ts","lib.es2025.regexp.d.ts","lib.esnext.array.d.ts","lib.esnext.collection.d.ts","lib.esnext.date.d.ts","lib.esnext.decorators.d.ts","lib.esnext.disposable.d.ts","lib.esnext.error.d.ts","lib.esnext.intl.d.ts","lib.esnext.sharedmemory.d.ts","lib.esnext.temporal.d.ts","lib.esnext.typedarrays.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../../expressions/dist/@types/tokens/AbstractToken.d.ts","../../expressions/dist/@types/tokens/code/CodeToken.d.ts","../../type-system/dist/@types/Formatter.d.ts","../../type-system/dist/@types/Type.d.ts","../../type-system/dist/@types/ObjectType.d.ts","../../type-system/dist/@types/ArrayType.d.ts","../../type-system/dist/@types/UnknownType.d.ts","../../type-system/dist/@types/ScalarType.d.ts","../../type-system/dist/@types/TextType.d.ts","../../type-system/dist/@types/NumberType.d.ts","../../type-system/dist/@types/IntegerType.d.ts","../../type-system/dist/@types/BooleanType.d.ts","../../type-system/dist/@types/index.d.ts","../../expressions/dist/@types/definitions/ValidationContext.d.ts","../../expressions/dist/@types/expressions/AbstractExpression.d.ts","../../expressions/dist/@types/ExpressionParser.d.ts","../../expressions/dist/@types/CombinedParser.d.ts","../../expressions/dist/@types/utils/parserUtils.d.ts","../../expressions/dist/@types/code-parsers/CodeParser.d.ts","../../../node_modules/.pnpm/@babel+types@8.0.6/node_modules/@babel/types/lib/index.d.ts","../../expressions/dist/@types/code-parsers/JavaScriptParser.d.ts","../../expressions/dist/@types/utils/valueFormatting.d.ts","../../expressions/dist/@types/tokens/DelimiterToken.d.ts","../../expressions/dist/@types/expressions/ListExpression.d.ts","../../expressions/dist/@types/expressions/EvaluatedExpression.d.ts","../../expressions/dist/@types/expressions/shorthand/ShorthandExpression.d.ts","../../expressions/dist/@types/expressions/shorthand/FormatShorthandExpression.d.ts","../../expressions/dist/@types/expressions/constant/ConstantExpression.d.ts","../../expressions/dist/@types/expressions/function/FunctionExpression.d.ts","../../expressions/dist/@types/tokens/text/TextToken.d.ts","../../expressions/dist/@types/tokens/text/PlaceholderToken.d.ts","../../expressions/dist/@types/expressions/text/AbstractFormatExpression.d.ts","../../expressions/dist/@types/expressions/text/FormatStringExpression.d.ts","../../expressions/dist/@types/tokens/EnumToken.d.ts","../../expressions/dist/@types/tokens/code/JSToken.d.ts","../../expressions/dist/@types/tokens/code/PrefixToken.d.ts","../../expressions/dist/@types/tokens/code/IdentifierToken.d.ts","../../expressions/dist/@types/utils/tokenUtils.d.ts","../../expressions/dist/@types/index.d.ts","../src/expressions/SchemaObjectDisplayExpression.ts","../src/types/QueryType.ts","../src/types/Field.ts","../src/types/Relationship.ts","../src/schema/ModelIndex.ts","../src/types/primitives/attachments/AttachmentType.ts","../src/types/primitives/TextType.ts","../src/types/EnumOption.ts","../src/types/primitives/ChoiceType.ts","../src/types/primitives/BooleanType.ts","../src/types/primitives/LocationType.ts","../src/types/primitives/GeoTrackType.ts","../src/types/primitives/SingleChoiceType.ts","../src/types/primitives/SingleChoiceIntegerType.ts","../src/types/primitives/MultipleChoiceType.ts","../src/types/primitives/MultipleChoiceIntegerType.ts","../src/day/utils.ts","../src/day/Day.ts","../../../node_modules/.pnpm/moment@2.31.0/node_modules/moment/ts3.1-typings/moment.d.ts","../src/types/primitives/DateType.ts","../src/types/primitives/DatetimeType.ts","../src/types/primitives/attachments/PhotoType.ts","../src/types/primitives/attachments/SignatureType.ts","../src/types/primitives/PrimitiveTypes.ts","../src/types/SchemaModelType.ts","../src/schema/TypeFactory.ts","../src/types/Param.ts","../src/schema/Schema.ts","../src/schema/fieldMetadata.ts","../src/expressions/parseParameterValueProvider.ts","../src/index.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995","793cee405385076e27c24f409659dccd","09f69c6610266eaee1ac9e3e30df2c71","62bad718844246b8e17547f37bad6085",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"38856f70edcd2115c355d96ec77cc09e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"de8700156c1275465bcd473c28b359aa","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d47cfdb6ede40518357bb5a4cd7cd9fb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6e5773860cd9e5b15e683113f642ab47","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"30ff5fe1682f7fcd629880476ca3c2e0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf23d7d1b40b9015b694ddc2f011752f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2cc585d42e2c548f9f24a30a1989fd33","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"713906ce9d332d2242b7f05ed9304be3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0219894bfe5042c7e1aa2d22e4a91ed0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6009ffff7e43c93318804d2d28e37fe3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"03be89b227587594fbb50509fc1c2e45","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b30df52dc24740c0bad7c55c3511df7d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ab8d3c9b5ed5c2ab8f383607eef439f0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d950ec671d0a8e07f3c1a31e94abed86","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1abef2ace5eccb02d60dd73cd5a5ee4c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5f0a3044029d1cc081b5887eb4deb07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d57c697f1446940ec4bfe669c962e2c4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be41035d7b941482a1e1ae6a5c5dcca5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"10f7d9da7564f27f8ddf4a162b6da6d3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1d0520af549e0c3581f15173cc713ca1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d65083f97fd741cff028472563eddb79","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"da7f24f00653ebac660ac1c0821ed33d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7cb5ae9e65516ea2235f0721f6aac43c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"510b0b622fafd6eff2bf5d020de046ee","968dbf07ccc13a1a84f319c26e9909b3","e5fb7990b84f5089ba92554ea3614810","770ee32ef332fd48bfef508442b30edb","5c1b5931ee0c894699ca56f5b573f88a","822b842ad7efa3485d65fbeb2f919865","89b6053090a8d01f57cb8f521fae777d","26302a8b72d74f944dcf8f6452e54f7c","bc95bdb594a5aece18248fbf4387dd2e","90125a76f2ae701181f7e09dea41f3ad","ac52bb76ccad935a013384d2a71ab267","2c96eeb69afb823580d4e1e5f1b188e0","c06213bcb24cd658dfcd1239777159bd","84519ebe510a4219ef71e5a0a973c591","0c68f6d853b53c3d34189f5c99c4b624","18408a4ba98e42e70324ba5c0b71f379","d6ca1e855d5b6554555a009a40e806a2","92d25cb01f547225fee7d19311179220","e78cf9dc5bca6011a220581f56da19cb",{"version":"3575b2b8e50b5a5b3acce219e08900c5","impliedNodeFormat":99},"25aba7d58ecafcf7098f9bcca63ea72a","90506d77482148f93c56044616613958","ae63a2414b6a326b93ee65bba693d617","0b41d778150d6774bc72b9e36a6c409f","cc36a10654ee721a890569de343ee4a0","81bde6b904e09fb337a80f52526d0c49","61b4c95d7a2ba531a5faae6b4e0694f1","c3b9b5f9be217e9fabbfc9f5b48da439","be6a700c7b2a3007e5ff5eccccd1e6ca","f25290e9ca5aee09a0210e2a454437f8","cf3121ca4479d3afdaceb690d14cf086","c115de0a80c101e99244da31e79527d1","cabc47d72ba300dd603c14a7bb2b7cde","57845437bcd4011990eb52478f02c4a0","354fc88481ff608fcbbfaf7851a29043","bf6d579deb9596ec514083ea94789be0","3058c9c4ad1200a2ff62094072deed53","d33a7d16b8bb10392237228466f959f8","4678acee57e4a32f080f3a53600abf18",{"version":"f9bd850e5e3a05926dbfc2a68d393e2f","signature":"aa250c74fe5a950a7dea8c41eba97441","impliedNodeFormat":1},{"version":"e15b8a94bffca79fb19f767e7feb2f64","signature":"a2614d5bf8c8a719715fad139f7d2849","impliedNodeFormat":1},{"version":"2e0f0b769b39a42a5a9133ad03d07faf","signature":"88ae61f99ea8bab323e2e743e4ee8a90","impliedNodeFormat":1},{"version":"0ed54f86ee92c964f950c9d44df12feb","signature":"44ebda1090b59085d1eeda6c2c25e4af","impliedNodeFormat":1},{"version":"0973156bf9ac211846a3984519c9ff9a","signature":"2d1c84be972f91834168ee8b45ef3260","impliedNodeFormat":1},{"version":"d9ec3b9d0e317b6e05cfca6d17a72c5b","signature":"01d13385ca95028b548f57422632cd10","impliedNodeFormat":1},{"version":"56f99034e7ca1de3f11e3942d42866a0","signature":"e1421b701f3826a978db13ebc309e2db","impliedNodeFormat":1},{"version":"b5f1e4e6e26ff0ce16a892c338a393fc","signature":"c5f116e28ed4d9b893b3bb22615c4a6e","impliedNodeFormat":1},{"version":"853e1f8841cceac171473411e2890199","signature":"a017252f6e0a3f0b8f7812273df80ece","impliedNodeFormat":1},{"version":"4a44098fe761e3d312038c4f38bba8cd","signature":"4fdad46f00f0e8c18ff903eacb5cab67","impliedNodeFormat":1},{"version":"1c62a09292215a4cf95f0d5df0b1508d","signature":"4538c220c4065a35c60d00ac0baa8e76","impliedNodeFormat":1},{"version":"73fe0aa7eb191e1180dca2b3bac48fcd","signature":"363c6b7126845050cea9bd1b53a77a66","impliedNodeFormat":1},{"version":"4d52f2f9aff3960fd8112462c999364c","signature":"0b856f0bab913d03af59d1f4f0f59562","impliedNodeFormat":1},{"version":"0ea802eee8d188d1c8159b0791d10f20","signature":"8264702ad4ee79cdcbea078c3da56f14","impliedNodeFormat":1},{"version":"4bd3004fb92e43c60401993de8f08ec8","signature":"5d7211f45479b46afb44d4d8e573535b","impliedNodeFormat":1},{"version":"76c75ada51f066eceb74736c546e0dc6","signature":"ec0bba0a0909104c137edc876deb700c","impliedNodeFormat":1},{"version":"ecde8511f785827876f35c97838f2217","signature":"df8eef6e7eccf796eb60b204e7fb0f8c","impliedNodeFormat":1},{"version":"44f604903f90b5463fa5141e449472c6","signature":"e18c2c8b2f19905e6ee32e3885543768","impliedNodeFormat":1},"bdce55db2d0ce77261b470a9b7a64095",{"version":"4184bcd819603715ed5412485b85ab04","signature":"96ee6501eee7a02a19ea7ff1f53d661c","impliedNodeFormat":1},{"version":"37716ac94c7c13750508fe67b1985b58","signature":"d964aada007f95d0dd07460963f68a0c","impliedNodeFormat":1},{"version":"9c3b005269572f68f3d8b496be4581af","signature":"f063601c5b39dd0ae3fe66459e8ccea2","impliedNodeFormat":1},{"version":"3e57bf75e0c5984047078be90b15ac85","signature":"97867d951e0249277164096f5bbadc20","impliedNodeFormat":1},{"version":"bafb9786356e055bbfd633d30727f512","signature":"05ebce4882d0c7d1c066b51e55f93685","impliedNodeFormat":1},{"version":"7ac16ec8fa5ac5ebab823873d1ae3303","signature":"4e9c1a842d05a1f95dcdcfec6b540283","impliedNodeFormat":1},{"version":"efd4e9ab467bfaf61ba44a65a04f68c1","signature":"6030b59fbf00d2b0aecb059c3352c479","impliedNodeFormat":1},{"version":"e3424277ca0424373630e388eb21ca6b","signature":"dcd337aeff86227b569df4951219b6b6","impliedNodeFormat":1},{"version":"d4b41c4ef58c0a466ddd9a3e6bc3e9fa","signature":"0e8db9e9df76cda9a82eefe26c9aad25","impliedNodeFormat":1},{"version":"8cc989ae5c82c1ff8840588694d62750","signature":"eb7b402991957b09b77be3d8046faa56","impliedNodeFormat":1},{"version":"3365c7d6a19dcfc162cb7fe14c8a16af","signature":"205c6187ac6e4ef53474b4a23ba47e42","impliedNodeFormat":1},{"version":"4e64f639aa18931d67ad0fdcd666fe46","signature":"9b10f44359c357ec9eb524788f857844","impliedNodeFormat":1}],"fileIdsList":[[89,103,104],[89,103],[107,108],[90,101],[89,102],[89,90,103,104],[89,103,104,111],[89,101,103,104],[89,90,103,104,113],[89,104,114],[89,90,101,102,103,104],[89,102,103,104,118,119],[89,113,114,120],[89,90,102,103,104,105,106,107,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126],[89],[90,108],[89,90,123],[101],[144],[127],[101,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,147,148,149,150,151,152,153,154,155,156,157],[101,130,131,151,152,153,154],[130,131,151,152,154,155],[101,153],[101,127,130,153],[152,153],[101,128,129,130,131,132,134,151,153,155],[101,136],[101,135],[101,144,145,146],[101,146],[101,134],[136],[101,133,134,137,138,139,140,141,142,143,147,148,149,150],[135,136],[133],[92],[92,96],[91],[91,92,93,94,95,96,97,98,99,100]],"options":{"composite":true,"declaration":true,"declarationDir":"./@types","inlineSources":true,"module":199,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":false,"stripInternal":true,"sourceMap":true,"target":4,"tsBuildInfoFile":"./tsconfig.tsbuildinfo","esModuleInterop":true},"referencedMap":[[105,1],[104,2],[109,3],[102,4],[103,5],[113,6],[112,7],[116,8],[117,9],[115,10],[114,11],[120,12],[121,13],[127,14],[111,15],[122,15],[90,15],[125,15],[123,16],[124,15],[119,2],[118,15],[106,2],[126,17],[110,18],[145,19],[128,20],[157,20],[158,21],[155,22],[153,23],[130,24],[154,25],[129,18],[131,26],[152,27],[137,28],[136,29],[147,30],[148,31],[139,18],[138,32],[143,33],[142,33],[151,34],[141,35],[140,33],[134,18],[133,18],[149,36],[150,36],[94,37],[100,38],[99,38],[98,38],[93,37],[96,37],[97,38],[92,39],[95,37],[101,40]],"latestChangedDtsFile":"./@types/index.d.ts"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SchemaModelTypeFactory = exports.SchemaModelType = void 0;
4
4
  const QueryType_1 = require("./QueryType");
5
5
  const parser_type_system_1 = require("@ja-platform/parser-type-system");
6
- const primitives_1 = require("./primitives");
6
+ const PrimitiveTypes_1 = require("./primitives/PrimitiveTypes");
7
7
  const TypeFactory_1 = require("../schema/TypeFactory");
8
8
  class SchemaModelType extends parser_type_system_1.ObjectType {
9
9
  static isInstanceOf(type) {
@@ -29,7 +29,7 @@ class SchemaModelType extends parser_type_system_1.ObjectType {
29
29
  this.attributes[attribute.name] = attribute;
30
30
  }
31
31
  setupVariables(schema) {
32
- this.idVar = schema.field('id', primitives_1.PrimitiveType.TEXT);
32
+ this.idVar = schema.field('id', PrimitiveTypes_1.PrimitiveType.TEXT);
33
33
  }
34
34
  /**
35
35
  * Attribute or relationship variable.
@@ -92,7 +92,7 @@ class SchemaModelType extends parser_type_system_1.ObjectType {
92
92
  // For type lookups
93
93
  object.belongsToVars[name] = schema.field(name, rel.foreignType);
94
94
  object.belongsToVars[name].relationship = name;
95
- const idVar = schema.field(name + '_id', primitives_1.PrimitiveType.TEXT);
95
+ const idVar = schema.field(name + '_id', PrimitiveTypes_1.PrimitiveType.TEXT);
96
96
  idVar.relationship = name;
97
97
  idVar.isBelongsToId = true;
98
98
  object.belongsToIdVars[idVar.name] = idVar;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaModelType.js","sourceRoot":"","sources":["../../src/types/SchemaModelType.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AACxC,wEAAmE;AAKnE,6CAAuD;AACvD,uDAAqF;AASrF,qBAA6B,SAAQ,+BAAU;IAO7C,MAAM,CAAC,YAAY,CAAC,IAAS;QAC3B,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,MAAK,eAAe,CAAC,IAAI,CAAC;IAClD,CAAC;IAwBD,YAAY,IAAa;QACvB,KAAK,CAAC,IAAI,CAAC,CAAC;QA/BL,oBAAe,GAAG,KAAK,CAAC;QACxB,aAAQ,GAAG,IAAI,CAAC;QACzB,eAAU,GAA0B,EAAE,CAAC;QA+BrC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QAEnB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,YAAY,CAAC,SAAgB;QAC3B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAC9C,CAAC;IAED,cAAc,CAAC,MAAc;QAC3B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,0BAAa,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,IA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CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,YAAY,GAAG,IAAI,CAAC;gBAE/C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,0BAAa,CAAC,IAAI,CAAC,CAAC;gBAC7D,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;gBAC1B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;gBAC3B,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;YAC7C,CAAC;YAED,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;gBACxB,GAAG,CAAC,WAAW,GAAG,WAAW,CAAC;gBAC9B,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC;gBAC3C,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,qBAAS,CAAC,MAAM,CAAC,CAAC,CAAC;YAC9F,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;;AAxIiB,oBAAI,GAAG,QAAQ,AAAX,CAAY;AA8IlC,4BAAoC,SAAQ,uCAAwE;IAClH;QACE,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,QAAQ,CAAC,KAAmC;QAC1C,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACjD,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","sourcesContent":["import { SchemaObjectDisplayExpression } from '../expressions/SchemaObjectDisplayExpression';\nimport { QueryType } from './QueryType';\nimport { ObjectType, Type } from '@ja-platform/parser-type-system';\nimport { Field } from './Field';\nimport { Relationship } from './Relationship';\nimport { Schema } from '../schema/Schema';\nimport { ModelIndex } from '../schema/ModelIndex';\nimport { PrimitiveType, TextType } from './primitives';\nimport { AbstractObjectTypeFactory, GenerateTypeEvent } from '../schema/TypeFactory';\n\nexport interface NotificationConfig {\n message: SchemaObjectDisplayExpression;\n recipient: string;\n received: string;\n badgeCount: string;\n}\n\nexport class SchemaModelType extends ObjectType {\n static readonly TYPE = 'object';\n\n readonly isPrimitiveType = false;\n readonly isObject = true;\n attributes: Record<string, Field> = {};\n\n static isInstanceOf(type: any): type is SchemaModelType {\n return type?._typeName === SchemaModelType.TYPE;\n }\n\n displayFormat: SchemaObjectDisplayExpression | null;\n label: string;\n\n belongsTo: { [index: string]: Relationship };\n hasMany: { [index: string]: Relationship };\n\n belongsToVars: { [index: string]: Field };\n belongsToIdVars: { [index: string]: Field };\n hasManyVars: { [index: string]: Field };\n idVar: Field<TextType>;\n\n /**\n * App and Cloud indexes.\n */\n allIndexes: ModelIndex[];\n /**\n * App indexes.\n */\n indexes: ModelIndex[];\n webhooks: any[]; // TODO\n notifyUsers: NotificationConfig[];\n\n constructor(name?: string) {\n super(name);\n\n this.displayFormat = null;\n this.belongsTo = {};\n this.hasMany = {};\n this.belongsToVars = {};\n this.belongsToIdVars = {};\n this.hasManyVars = {};\n this.indexes = [];\n this.allIndexes = [];\n this.webhooks = [];\n\n this.notifyUsers = [];\n }\n\n addAttribute(attribute: Field): void {\n this.attributes[attribute.name] = attribute;\n }\n\n setupVariables(schema: Schema) {\n this.idVar = schema.field('id', PrimitiveType.TEXT);\n }\n\n /**\n * Attribute or relationship variable.\n */\n getAttribute(name: string): Field | null {\n if (Object.prototype.hasOwnProperty.call(this.attributes, name)) {\n return this.attributes[name];\n } else if (Object.prototype.hasOwnProperty.call(this.belongsToVars, name)) {\n return this.belongsToVars[name];\n } else if (Object.prototype.hasOwnProperty.call(this.belongsToIdVars, name)) {\n return this.belongsToIdVars[name];\n } else if (Object.prototype.hasOwnProperty.call(this.hasManyVars, name)) {\n return this.hasManyVars[name];\n } else if (name == 'id') {\n return this.idVar;\n } else {\n return null;\n }\n }\n\n getField(name: string): Type | null {\n return this.getAttribute(name)?.type ?? null;\n }\n\n getAttributes(): { [index: string]: Field } {\n return {\n ...this.hasManyVars,\n ...this.belongsToIdVars,\n ...this.belongsToVars,\n ...this.attributes,\n id: this.idVar\n };\n }\n\n addBelongsTo(options: { schema: Schema; type?: string; foreignName?: string; name: string }) {\n const object = this;\n const schema = options.schema;\n let err;\n const rel = schema.newRelationship();\n const typeName = options.type;\n const foreignName = options.foreignName;\n if (typeName != null) {\n let name = options.name;\n if (name == null || name === '') {\n name = typeName;\n }\n rel.name = name;\n rel.objectType = object;\n rel.foreignType = schema.objects[typeName];\n if (rel.foreignType == null) {\n err = new Error(\"Object '\" + typeName + \"' is not defined\");\n (err as any).attribute = 'type';\n throw err;\n }\n\n if (object.belongsTo.hasOwnProperty(name)) {\n err = new Error(\"Relationship '\" + name + \"' is already defined\");\n (err as any).attribute = 'name';\n throw err;\n } else {\n object.belongsTo[name] = rel;\n\n // For type lookups\n object.belongsToVars[name] = schema.field(name, rel.foreignType);\n object.belongsToVars[name].relationship = name;\n\n const idVar = schema.field(name + '_id', PrimitiveType.TEXT);\n idVar.relationship = name;\n idVar.isBelongsToId = true;\n object.belongsToIdVars[idVar.name] = idVar;\n }\n\n if (foreignName != null) {\n rel.foreignName = foreignName;\n rel.foreignType.hasMany[foreignName] = rel;\n rel.foreignType.hasManyVars[foreignName] = schema.field(foreignName, new QueryType(object));\n }\n return rel;\n }\n return null;\n }\n}\n\nexport interface GenerateSchemaModelTypeEvent extends GenerateTypeEvent {\n name?: string;\n}\n\nexport class SchemaModelTypeFactory extends AbstractObjectTypeFactory<SchemaModelType, GenerateSchemaModelTypeEvent> {\n constructor() {\n super(SchemaModelType.TYPE);\n }\n\n generate(event: GenerateSchemaModelTypeEvent) {\n const instance = new SchemaModelType(event.name);\n instance.setupVariables(event.schema);\n return instance;\n }\n}\n"]}
1
+ {"version":3,"file":"Schem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M,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,8BAAa,CAAC,IAAI,CAAC,CAAC;gBAC7D,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;gBAC1B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;gBAC3B,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;YAC7C,CAAC;YAED,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;gBACxB,GAAG,CAAC,WAAW,GAAG,WAAW,CAAC;gBAC9B,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC;gBAC3C,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,qBAAS,CAAC,MAAM,CAAC,CAAC,CAAC;YAC9F,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;;AAxIiB,oBAAI,GAAG,QAAQ,AAAX,CAAY;AA8IlC,4BAAoC,SAAQ,uCAAwE;IAClH;QACE,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,QAAQ,CAAC,KAAmC;QAC1C,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACjD,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","sourcesContent":["import { SchemaObjectDisplayExpression } from '../expressions/SchemaObjectDisplayExpression';\nimport { QueryType } from './QueryType';\nimport { ObjectType, Type } from '@ja-platform/parser-type-system';\nimport { Field } from './Field';\nimport { Relationship } from './Relationship';\nimport { Schema } from '../schema/Schema';\nimport { ModelIndex } from '../schema/ModelIndex';\nimport { PrimitiveType } from './primitives/PrimitiveTypes';\nimport { TextType } from './primitives/TextType';\nimport { AbstractObjectTypeFactory, GenerateTypeEvent } from '../schema/TypeFactory';\n\nexport interface NotificationConfig {\n message: SchemaObjectDisplayExpression;\n recipient: string;\n received: string;\n badgeCount: string;\n}\n\nexport class SchemaModelType extends ObjectType {\n static readonly TYPE = 'object';\n\n readonly isPrimitiveType = false;\n readonly isObject = true;\n attributes: Record<string, Field> = {};\n\n static isInstanceOf(type: any): type is SchemaModelType {\n return type?._typeName === SchemaModelType.TYPE;\n }\n\n displayFormat: SchemaObjectDisplayExpression | null;\n label: string;\n\n belongsTo: { [index: string]: Relationship };\n hasMany: { [index: string]: Relationship };\n\n belongsToVars: { [index: string]: Field };\n belongsToIdVars: { [index: string]: Field };\n hasManyVars: { [index: string]: Field };\n idVar: Field<TextType>;\n\n /**\n * App and Cloud indexes.\n */\n allIndexes: ModelIndex[];\n /**\n * App indexes.\n */\n indexes: ModelIndex[];\n webhooks: any[]; // TODO\n notifyUsers: NotificationConfig[];\n\n constructor(name?: string) {\n super(name);\n\n this.displayFormat = null;\n this.belongsTo = {};\n this.hasMany = {};\n this.belongsToVars = {};\n this.belongsToIdVars = {};\n this.hasManyVars = {};\n this.indexes = [];\n this.allIndexes = [];\n this.webhooks = [];\n\n this.notifyUsers = [];\n }\n\n addAttribute(attribute: Field): void {\n this.attributes[attribute.name] = attribute;\n }\n\n setupVariables(schema: Schema) {\n this.idVar = schema.field('id', PrimitiveType.TEXT);\n }\n\n /**\n * Attribute or relationship variable.\n */\n getAttribute(name: string): Field | null {\n if (Object.prototype.hasOwnProperty.call(this.attributes, name)) {\n return this.attributes[name];\n } else if (Object.prototype.hasOwnProperty.call(this.belongsToVars, name)) {\n return this.belongsToVars[name];\n } else if (Object.prototype.hasOwnProperty.call(this.belongsToIdVars, name)) {\n return this.belongsToIdVars[name];\n } else if (Object.prototype.hasOwnProperty.call(this.hasManyVars, name)) {\n return this.hasManyVars[name];\n } else if (name == 'id') {\n return this.idVar;\n } else {\n return null;\n }\n }\n\n getField(name: string): Type | null {\n return this.getAttribute(name)?.type ?? null;\n }\n\n getAttributes(): { [index: string]: Field } {\n return {\n ...this.hasManyVars,\n ...this.belongsToIdVars,\n ...this.belongsToVars,\n ...this.attributes,\n id: this.idVar\n };\n }\n\n addBelongsTo(options: { schema: Schema; type?: string; foreignName?: string; name: string }) {\n const object = this;\n const schema = options.schema;\n let err;\n const rel = schema.newRelationship();\n const typeName = options.type;\n const foreignName = options.foreignName;\n if (typeName != null) {\n let name = options.name;\n if (name == null || name === '') {\n name = typeName;\n }\n rel.name = name;\n rel.objectType = object;\n rel.foreignType = schema.objects[typeName];\n if (rel.foreignType == null) {\n err = new Error(\"Object '\" + typeName + \"' is not defined\");\n (err as any).attribute = 'type';\n throw err;\n }\n\n if (object.belongsTo.hasOwnProperty(name)) {\n err = new Error(\"Relationship '\" + name + \"' is already defined\");\n (err as any).attribute = 'name';\n throw err;\n } else {\n object.belongsTo[name] = rel;\n\n // For type lookups\n object.belongsToVars[name] = schema.field(name, rel.foreignType);\n object.belongsToVars[name].relationship = name;\n\n const idVar = schema.field(name + '_id', PrimitiveType.TEXT);\n idVar.relationship = name;\n idVar.isBelongsToId = true;\n object.belongsToIdVars[idVar.name] = idVar;\n }\n\n if (foreignName != null) {\n rel.foreignName = foreignName;\n rel.foreignType.hasMany[foreignName] = rel;\n rel.foreignType.hasManyVars[foreignName] = schema.field(foreignName, new QueryType(object));\n }\n return rel;\n }\n return null;\n }\n}\n\nexport interface GenerateSchemaModelTypeEvent extends GenerateTypeEvent {\n name?: string;\n}\n\nexport class SchemaModelTypeFactory extends AbstractObjectTypeFactory<SchemaModelType, GenerateSchemaModelTypeEvent> {\n constructor() {\n super(SchemaModelType.TYPE);\n }\n\n generate(event: GenerateSchemaModelTypeEvent) {\n const instance = new SchemaModelType(event.name);\n instance.setupVariables(event.schema);\n return instance;\n }\n}\n"]}
@@ -6,4 +6,4 @@ const ChoiceType_1 = require("./ChoiceType");
6
6
  class BooleanType extends (0, ChoiceType_1.withChoices)(parser_type_system_1.BooleanType) {
7
7
  }
8
8
  exports.BooleanType = BooleanType;
9
- //# sourceMappingURL=Boolean.js.map
9
+ //# sourceMappingURL=BooleanType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BooleanType.js","sourceRoot":"","sources":["../../../src/types/primitives/BooleanType.ts"],"names":[],"mappings":";;;AAAA,wEAAkF;AAClF,6CAA2C;AAE3C,iBAAyB,SAAQ,IAAA,wBAAW,EAAC,gCAAgB,CAAC;CAAG","sourcesContent":["import { BooleanType as ValueBooleanType } from '@ja-platform/parser-type-system';\nimport { withChoices } from './ChoiceType';\n\nexport class BooleanType extends withChoices(ValueBooleanType) {}\n"]}
@@ -66,4 +66,4 @@ class DateType extends parser_type_system_1.Type {
66
66
  exports.DateType = DateType;
67
67
  DateType.DEFAULT_FORMAT = 'MMMM D YYYY';
68
68
  DateType.TYPE = 'date';
69
- //# sourceMappingURL=Date.js.map
69
+ //# sourceMappingURL=DateType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateType.js","sourceRoot":"","sources":["../../../src/types/primitives/DateType.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAoC;AACpC,2CAA2C;AAC3C,oDAA4B;AAC5B,wEAAuD;AAEvD,cAAsB,SAAQ,yBAAI;IAKhC,MAAM,CAAC,YAAY,CAAC,IAAiB;QACnC,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,MAAK,QAAQ,CAAC,IAAI,CAAC;IAC3C,CAAC;IAGD;QACE,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QATd,cAAS,GAAG,MAAM,CAAC;IAU5B,CAAC;IAED,qCAAqC;IACrC,yEAAyE;IACzE,MAAM;QACJ,MAAM,IAAI,GAAwB,KAAK,CAAC,MAAM,EAAE,CAAC;QACjD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACp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K,CAAC,KAAK,GAAG,gBAAgB,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;IACH,CAAC;CACF;;AAxDQ,uBAAc,GAAG,aAAa,AAAhB,CAAiB;AAEtB,aAAI,GAAG,MAAM,AAAT,CAAU","sourcesContent":["import { Day } from '../../day/Day';\nimport { pureDate } from '../../day/utils';\nimport moment from 'moment';\nimport { Type } from '@ja-platform/parser-type-system';\n\nexport class DateType extends Type {\n static DEFAULT_FORMAT = 'MMMM D YYYY';\n readonly _typeName = 'date';\n static readonly TYPE = 'date';\n\n static isInstanceOf(type: Type | null): type is DateType {\n return type?._typeName === DateType.TYPE;\n }\n isDay?: boolean;\n\n constructor() {\n super(DateType.TYPE);\n }\n\n // Return either {} or {isDay: true}.\n // For consistency, we never return {isDay: undefined} or {isDay: false}.\n toJSON(): any {\n const json: { isDay?: boolean } = super.toJSON();\n if (this.isDay) {\n json.isDay = true;\n }\n return json;\n }\n format(value: any, format?: string) {\n // Works for Date and Day objects.\n if (Day.isDay(value)) {\n value = value.toDate();\n }\n const d = moment(value).utc();\n return d.format(format ?? DateType.DEFAULT_FORMAT);\n }\n\n is(value: any): boolean {\n return this.isDay ? Day.isDay(value) : value instanceof Date;\n }\n\n parse(value: any) {\n if (this.isDay) {\n if (Day.isDay(value)) {\n return value;\n } else if (value instanceof Date) {\n // Convert from local timezone\n return new Day(value);\n } else {\n throw new Error(value + ' is not a Day');\n }\n } else {\n if (value instanceof Date) {\n // Assume UTC timezone\n return pureDate(value);\n } else if (Day.isDay(value)) {\n return value.toDate();\n } else {\n throw new Error(value + ' is not a Date');\n }\n }\n }\n}\n"]}
@@ -28,4 +28,4 @@ class DatetimeType extends parser_type_system_1.Type {
28
28
  exports.DatetimeType = DatetimeType;
29
29
  DatetimeType.DEFAULT_FORMAT = 'MMMM D YYYY h:mm A';
30
30
  DatetimeType.TYPE = 'datetime';
31
- //# sourceMappingURL=Datetime.js.map
31
+ //# sourceMappingURL=DatetimeType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatetimeType.js","sourceRoot":"","sources":["../../../src/types/primitives/DatetimeType.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,wEAAuD;AAEvD,kBAA0B,SAAQ,yBAAI;IAIpC;QACE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IACD,MAAM,CAAC,KAAU,EAAE,MAAe;QAChC,OAAO,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,YAAY,CAAC,cAAc,CAAC,CAAC;IACrE,CAAC;IAED,EAAE,CAAC,KAAU;QACX,OAAO,KAAK,YAAY,IAAI,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,KAAU;QACd,IAAI,KAAK,YAAY,IAAI,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC;QACf,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,gBAAgB,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;CACF;;AArBQ,2BAAc,GAAG,oBAAoB,CAAC;AAC7B,iBAAI,GAAG,UAAU,CAAC","sourcesContent":["import moment from 'moment';\nimport { Type } from '@ja-platform/parser-type-system';\n\nexport class DatetimeType extends Type {\n static DEFAULT_FORMAT = 'MMMM D YYYY h:mm A';\n static readonly TYPE = 'datetime';\n\n constructor() {\n super(DatetimeType.TYPE);\n }\n format(value: any, format?: string): string {\n return moment(value).format(format ?? DatetimeType.DEFAULT_FORMAT);\n }\n\n is(value: any): boolean {\n return value instanceof Date;\n }\n\n parse(value: any): any {\n if (value instanceof Date) {\n return value;\n } else {\n throw new Error(value + ' is not a Date');\n }\n }\n}\n"]}
@@ -9,4 +9,4 @@ class GeoTrackType extends parser_type_system_1.Type {
9
9
  }
10
10
  exports.GeoTrackType = GeoTrackType;
11
11
  GeoTrackType.TYPE = 'track';
12
- //# sourceMappingURL=GeoTrack.js.map
12
+ //# sourceMappingURL=GeoTrackType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeoTrackType.js","sourceRoot":"","sources":["../../../src/types/primitives/GeoTrackType.ts"],"names":[],"mappings":";;;AAAA,wEAAuD;AAEvD,kBAA0B,SAAQ,yBAAI;IAGpC;QACE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;;AALiB,iBAAI,GAAG,OAAO,CAAC","sourcesContent":["import { Type } from '@ja-platform/parser-type-system';\n\nexport class GeoTrackType extends Type {\n static readonly TYPE = 'track';\n\n constructor() {\n super(GeoTrackType.TYPE);\n }\n}\n"]}
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LocationType = void 0;
4
4
  const parser_type_system_1 = require("@ja-platform/parser-type-system");
5
- const Text_1 = require("./Text");
5
+ const TextType_1 = require("./TextType");
6
6
  class LocationType extends parser_type_system_1.ObjectType {
7
7
  constructor() {
8
8
  super(LocationType.TYPE);
9
9
  }
10
10
  getField(name) {
11
11
  return ['latitude', 'longitude', 'altitude', 'horizontal_accuracy', 'vertical_accuracy'].includes(name)
12
- ? new Text_1.TextType()
12
+ ? new TextType_1.TextType()
13
13
  : null;
14
14
  }
15
15
  }
16
16
  exports.LocationType = LocationType;
17
17
  LocationType.TYPE = 'location';
18
- //# sourceMappingURL=Location.js.map
18
+ //# sourceMappingURL=LocationType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationType.js","sourceRoot":"","sources":["../../../src/types/primitives/LocationType.ts"],"names":[],"mappings":";;;AAAA,wEAAmE;AACnE,yCAAsC;AAEtC,kBAA0B,SAAQ,+BAAU;IAG1C;QACE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,QAAQ,CAAC,IAAY;QACnB,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,qBAAqB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YACrG,CAAC,CAAC,IAAI,mBAAQ,EAAE;YAChB,CAAC,CAAC,IAAI,CAAC;IACX,CAAC;CACF;;AAXiB,iBAAI,GAAG,UAAU,CAAC","sourcesContent":["import { ObjectType, Type } from '@ja-platform/parser-type-system';\nimport { TextType } from './TextType';\n\nexport class LocationType extends ObjectType {\n static readonly TYPE = 'location';\n\n constructor() {\n super(LocationType.TYPE);\n }\n\n getField(name: string): Type | null {\n return ['latitude', 'longitude', 'altitude', 'horizontal_accuracy', 'vertical_accuracy'].includes(name)\n ? new TextType()\n : null;\n }\n}\n"]}
@@ -31,4 +31,4 @@ class MultipleChoiceIntegerType extends ChoiceType_1.ChoiceType {
31
31
  }
32
32
  exports.MultipleChoiceIntegerType = MultipleChoiceIntegerType;
33
33
  MultipleChoiceIntegerType.TYPE = 'multiple-choice-integer';
34
- //# sourceMappingURL=MultipleChoiceInteger.js.map
34
+ //# sourceMappingURL=MultipleChoiceIntegerType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultipleChoiceIntegerType.js","sourceRoot":"","sources":["../../../src/types/primitives/MultipleChoiceIntegerType.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,+BAAuC,SAAQ,uBAAU;IAGvD;QACE,KAAK,CAAC,yBAAyB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,eAAe,CAAC,MAAgB;QAC9B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAED,EAAE,CAAC,KAAU;QACX,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;IACnF,CAAC;IAED,KAAK,CAAC,KAAU;QACd,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,kBAAkB,CAAC,CAAC;QAC9C,CAAC;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACvB,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACnC,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,wBAAwB,CAAC,CAAC;YACpD,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;;AAhCiB,8BAAI,GAAG,yBAAyB,CAAC","sourcesContent":["import { ChoiceType } from './ChoiceType';\n\nexport class MultipleChoiceIntegerType extends ChoiceType {\n static readonly TYPE = 'multiple-choice-integer';\n\n constructor() {\n super(MultipleChoiceIntegerType.TYPE, { multiple: true });\n }\n\n setOptionLabels(labels: string[]) {\n this.options = {};\n for (let i = 0; i < labels.length; i++) {\n this.addOption(i, labels[i], i);\n }\n }\n\n is(value: any): boolean {\n return Array.isArray(value) && value.every((item) => this.options[item] != null);\n }\n\n parse(value: any) {\n if (!(value instanceof Array)) {\n throw new Error(value + ' is not an array');\n }\n\n for (let i = 0; i < value.length; i++) {\n const index = value[i];\n const option = this.options[index];\n if (option == null) {\n throw new Error(index + ' is not a valid option');\n }\n }\n\n return value;\n }\n}\n"]}
@@ -9,4 +9,4 @@ class MultipleChoiceType extends ChoiceType_1.ChoiceType {
9
9
  }
10
10
  exports.MultipleChoiceType = MultipleChoiceType;
11
11
  MultipleChoiceType.TYPE = 'multiple-choice';
12
- //# sourceMappingURL=MultipleChoice.js.map
12
+ //# sourceMappingURL=MultipleChoiceType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultipleChoiceType.js","sourceRoot":"","sources":["../../../src/types/primitives/MultipleChoiceType.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,wBAAgC,SAAQ,uBAAU;IAGhD;QACE,KAAK,CAAC,kBAAkB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;CACF;;AALiB,uBAAI,GAAG,iBAAiB,CAAC","sourcesContent":["import { ChoiceType } from './ChoiceType';\n\nexport class MultipleChoiceType extends ChoiceType {\n static readonly TYPE = 'multiple-choice';\n\n constructor() {\n super(MultipleChoiceType.TYPE, { multiple: true });\n }\n}\n"]}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrimitiveTypeMap = exports.PrimitiveType = void 0;
4
+ const AttachmentType_1 = require("./attachments/AttachmentType");
5
+ const TextType_1 = require("./TextType");
6
+ const BooleanType_1 = require("./BooleanType");
7
+ const LocationType_1 = require("./LocationType");
8
+ const GeoTrackType_1 = require("./GeoTrackType");
9
+ const SingleChoiceType_1 = require("./SingleChoiceType");
10
+ const SingleChoiceIntegerType_1 = require("./SingleChoiceIntegerType");
11
+ const MultipleChoiceType_1 = require("./MultipleChoiceType");
12
+ const MultipleChoiceIntegerType_1 = require("./MultipleChoiceIntegerType");
13
+ const parser_type_system_1 = require("@ja-platform/parser-type-system");
14
+ const DateType_1 = require("./DateType");
15
+ const DatetimeType_1 = require("./DatetimeType");
16
+ const PhotoType_1 = require("./attachments/PhotoType");
17
+ const SignatureType_1 = require("./attachments/SignatureType");
18
+ exports.PrimitiveType = {
19
+ ATTACHMENT: AttachmentType_1.AttachmentType.TYPE,
20
+ BOOLEAN: BooleanType_1.BooleanType.TYPE,
21
+ DATE: DateType_1.DateType.TYPE,
22
+ DATETIME: DatetimeType_1.DatetimeType.TYPE,
23
+ GEO_TRACK: GeoTrackType_1.GeoTrackType.TYPE,
24
+ INTEGER: parser_type_system_1.IntegerType.TYPE,
25
+ LOCATION: LocationType_1.LocationType.TYPE,
26
+ MULTIPLE_CHOICE_INTEGER: MultipleChoiceIntegerType_1.MultipleChoiceIntegerType.TYPE,
27
+ MULTIPLE_CHOICE: MultipleChoiceType_1.MultipleChoiceType.TYPE,
28
+ NUMBER: parser_type_system_1.NumberType.TYPE,
29
+ SINGLE_CHOICE_INTEGER: SingleChoiceIntegerType_1.SingleChoiceIntegerType.TYPE,
30
+ SINGLE_CHOICE: SingleChoiceType_1.SingleChoiceType.TYPE,
31
+ TEXT: TextType_1.TextType.TYPE,
32
+ PHOTO: PhotoType_1.PhotoType.SUB_TYPE,
33
+ SIGNATURE: SignatureType_1.SignatureType.SUB_TYPE
34
+ };
35
+ // Collection of primitive types.
36
+ // Each type is a constructor creating a default instance of that type.
37
+ exports.PrimitiveTypeMap = {
38
+ [exports.PrimitiveType.ATTACHMENT]: AttachmentType_1.AttachmentType,
39
+ [exports.PrimitiveType.BOOLEAN]: BooleanType_1.BooleanType,
40
+ [exports.PrimitiveType.DATE]: DateType_1.DateType,
41
+ [exports.PrimitiveType.DATETIME]: DatetimeType_1.DatetimeType,
42
+ [exports.PrimitiveType.GEO_TRACK]: GeoTrackType_1.GeoTrackType,
43
+ [exports.PrimitiveType.INTEGER]: parser_type_system_1.IntegerType,
44
+ [exports.PrimitiveType.LOCATION]: LocationType_1.LocationType,
45
+ [exports.PrimitiveType.MULTIPLE_CHOICE_INTEGER]: MultipleChoiceIntegerType_1.MultipleChoiceIntegerType,
46
+ [exports.PrimitiveType.MULTIPLE_CHOICE]: MultipleChoiceType_1.MultipleChoiceType,
47
+ [exports.PrimitiveType.NUMBER]: parser_type_system_1.NumberType,
48
+ [exports.PrimitiveType.SINGLE_CHOICE_INTEGER]: SingleChoiceIntegerType_1.SingleChoiceIntegerType,
49
+ [exports.PrimitiveType.SINGLE_CHOICE]: SingleChoiceType_1.SingleChoiceType,
50
+ [exports.PrimitiveType.TEXT]: TextType_1.TextType,
51
+ [exports.PrimitiveType.SIGNATURE]: SignatureType_1.SignatureType,
52
+ [exports.PrimitiveType.PHOTO]: PhotoType_1.PhotoType
53
+ };
54
+ //# sourceMappingURL=PrimitiveTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimitiveTypes.js","sourceRoot":"","sources":["../../../src/types/primitives/PrimitiveTypes.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAC9D,yCAAsC;AACtC,+CAA4C;AAC5C,iDAA8C;AAC9C,iDAA8C;AAC9C,yDAAsD;AACtD,uEAAoE;AACpE,6DAA0D;AAC1D,2EAAwE;AACxE,wEAA0E;AAC1E,yCAAsC;AACtC,iDAA8C;AAC9C,uDAAoD;AACpD,+DAA4D;AAE/C,QAAA,aAAa,GAAG;IAC3B,UAAU,EAAE,+BAAc,CAAC,IAAI;IAC/B,OAAO,EAAE,yBAAW,CAAC,IAAI;IACzB,IAAI,EAAE,mBAAQ,CAAC,IAAI;IACnB,QAAQ,EAAE,2BAAY,CAAC,IAAI;IAC3B,SAAS,EAAE,2BAAY,CAAC,IAAI;IAC5B,OAAO,EAAE,gCAAW,CAAC,IAAI;IACzB,QAAQ,EAAE,2BAAY,CAAC,IAAI;IAC3B,uBAAuB,EAAE,qDAAyB,CAAC,IAAI;IACvD,eAAe,EAAE,uCAAkB,CAAC,IAAI;IACxC,MAAM,EAAE,+BAAU,CAAC,IAAI;IACvB,qBAAqB,EAAE,iDAAuB,CAAC,IAAI;IACnD,aAAa,EAAE,mCAAgB,CAAC,IAAI;IACpC,IAAI,EAAE,mBAAQ,CAAC,IAAI;IACnB,KAAK,EAAE,qBAAS,CAAC,QAAQ;IACzB,SAAS,EAAE,6BAAa,CAAC,QAAQ;CACzB,CAAC;AAGX,iCAAiC;AACjC,uEAAuE;AAC1D,QAAA,gBAAgB,GAAG;IAC9B,CAAC,QAAA,aAAa,CAAC,UAAU,CAAC,EAAE,+BAAc;IAC1C,CAAC,QAAA,aAAa,CAAC,OAAO,CAAC,EAAE,yBAAW;IACpC,CAAC,QAAA,aAAa,CAAC,IAAI,CAAC,EAAE,mBAAQ;IAC9B,CAAC,QAAA,aAAa,CAAC,QAAQ,CAAC,EAAE,2BAAY;IACtC,CAAC,QAAA,aAAa,CAAC,SAAS,CAAC,EAAE,2BAAY;IACvC,CAAC,QAAA,aAAa,CAAC,OAAO,CAAC,EAAE,gCAAW;IACpC,CAAC,QAAA,aAAa,CAAC,QAAQ,CAAC,EAAE,2BAAY;IACtC,CAAC,QAAA,aAAa,CAAC,uBAAuB,CAAC,EAAE,qDAAyB;IAClE,CAAC,QAAA,aAAa,CAAC,eAAe,CAAC,EAAE,uCAAkB;IACnD,CAAC,QAAA,aAAa,CAAC,MAAM,CAAC,EAAE,+BAAU;IAClC,CAAC,QAAA,aAAa,CAAC,qBAAqB,CAAC,EAAE,iDAAuB;IAC9D,CAAC,QAAA,aAAa,CAAC,aAAa,CAAC,EAAE,mCAAgB;IAC/C,CAAC,QAAA,aAAa,CAAC,IAAI,CAAC,EAAE,mBAAQ;IAC9B,CAAC,QAAA,aAAa,CAAC,SAAS,CAAC,EAAE,6BAAa;IACxC,CAAC,QAAA,aAAa,CAAC,KAAK,CAAC,EAAE,qBAAS;CACxB,CAAC","sourcesContent":["import { AttachmentType } from './attachments/AttachmentType';\nimport { TextType } from './TextType';\nimport { BooleanType } from './BooleanType';\nimport { LocationType } from './LocationType';\nimport { GeoTrackType } from './GeoTrackType';\nimport { SingleChoiceType } from './SingleChoiceType';\nimport { SingleChoiceIntegerType } from './SingleChoiceIntegerType';\nimport { MultipleChoiceType } from './MultipleChoiceType';\nimport { MultipleChoiceIntegerType } from './MultipleChoiceIntegerType';\nimport { IntegerType, NumberType } from '@ja-platform/parser-type-system';\nimport { DateType } from './DateType';\nimport { DatetimeType } from './DatetimeType';\nimport { PhotoType } from './attachments/PhotoType';\nimport { SignatureType } from './attachments/SignatureType';\n\nexport const PrimitiveType = {\n ATTACHMENT: AttachmentType.TYPE,\n BOOLEAN: BooleanType.TYPE,\n DATE: DateType.TYPE,\n DATETIME: DatetimeType.TYPE,\n GEO_TRACK: GeoTrackType.TYPE,\n INTEGER: IntegerType.TYPE,\n LOCATION: LocationType.TYPE,\n MULTIPLE_CHOICE_INTEGER: MultipleChoiceIntegerType.TYPE,\n MULTIPLE_CHOICE: MultipleChoiceType.TYPE,\n NUMBER: NumberType.TYPE,\n SINGLE_CHOICE_INTEGER: SingleChoiceIntegerType.TYPE,\n SINGLE_CHOICE: SingleChoiceType.TYPE,\n TEXT: TextType.TYPE,\n PHOTO: PhotoType.SUB_TYPE,\n SIGNATURE: SignatureType.SUB_TYPE\n} as const;\nexport type PrimitiveType = typeof PrimitiveType;\n\n// Collection of primitive types.\n// Each type is a constructor creating a default instance of that type.\nexport const PrimitiveTypeMap = {\n [PrimitiveType.ATTACHMENT]: AttachmentType,\n [PrimitiveType.BOOLEAN]: BooleanType,\n [PrimitiveType.DATE]: DateType,\n [PrimitiveType.DATETIME]: DatetimeType,\n [PrimitiveType.GEO_TRACK]: GeoTrackType,\n [PrimitiveType.INTEGER]: IntegerType,\n [PrimitiveType.LOCATION]: LocationType,\n [PrimitiveType.MULTIPLE_CHOICE_INTEGER]: MultipleChoiceIntegerType,\n [PrimitiveType.MULTIPLE_CHOICE]: MultipleChoiceType,\n [PrimitiveType.NUMBER]: NumberType,\n [PrimitiveType.SINGLE_CHOICE_INTEGER]: SingleChoiceIntegerType,\n [PrimitiveType.SINGLE_CHOICE]: SingleChoiceType,\n [PrimitiveType.TEXT]: TextType,\n [PrimitiveType.SIGNATURE]: SignatureType,\n [PrimitiveType.PHOTO]: PhotoType\n} as const;\n\nexport type PrimitiveTypeMap = typeof PrimitiveTypeMap;\n\n// Collection of primitive type names\nexport type PrimitiveTypeName = keyof typeof PrimitiveTypeMap;\n\nexport type PrimitiveTypeInstance = InstanceType<PrimitiveTypeMap[PrimitiveTypeName]>;\n"]}
@@ -35,4 +35,4 @@ class SingleChoiceIntegerType extends ChoiceType_1.ChoiceType {
35
35
  }
36
36
  exports.SingleChoiceIntegerType = SingleChoiceIntegerType;
37
37
  SingleChoiceIntegerType.TYPE = 'single-choice-integer';
38
- //# sourceMappingURL=SingleChoiceInteger.js.map
38
+ //# sourceMappingURL=SingleChoiceIntegerType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleChoiceIntegerType.js","sourceRoot":"","sources":["../../../src/types/primitives/SingleChoiceIntegerType.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,6CAA0C;AAE1C,6BAAqC,SAAQ,uBAAU;IAGrD;QACE,KAAK,CAAC,uBAAuB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,eAAe,CAAC,MAAgB;QAC9B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAED,EAAE,CAAC,KAAU;QACX,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,KAAU;QACd,IAAI,MAAM,GAAW,IAAI,CAAC;QAC1B,IAAI,OAAO,KAAK,IAAI,QAAQ,EAAE,CAAC;YAC7B,MAAM,GAAG,KAAK,CAAC;QACjB,CAAC;aAAM,IAAI,uBAAU,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1C,sCAAsC;YACtC,MAAM,GAAG,KAAK,CAAC,KAAe,CAAC;QACjC,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,4BAA4B,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACN,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;CACF;;AA/BiB,4BAAI,GAAG,uBAAuB,CAAC","sourcesContent":["import { EnumOption } from '../EnumOption';\nimport { ChoiceType } from './ChoiceType';\n\nexport class SingleChoiceIntegerType extends ChoiceType {\n static readonly TYPE = 'single-choice-integer';\n\n constructor() {\n super(SingleChoiceIntegerType.TYPE, { multiple: false });\n }\n\n setOptionLabels(labels: string[]) {\n this.options = {};\n for (let i = 0; i < labels.length; i++) {\n this.addOption(i, labels[i], i);\n }\n }\n\n is(value: any): boolean {\n return typeof value === 'number' && this.options[value] != null;\n }\n\n parse(value: any) {\n let option: number = null;\n if (typeof value == 'number') {\n option = value;\n } else if (EnumOption.isInstanceOf(value)) {\n // We convert enums to a plain integer\n option = value.value as number;\n }\n if (this.options[option] == null) {\n throw new Error(value + ' is not a valid enum value');\n } else {\n return option;\n }\n }\n}\n"]}
@@ -9,4 +9,4 @@ class SingleChoiceType extends ChoiceType_1.ChoiceType {
9
9
  }
10
10
  exports.SingleChoiceType = SingleChoiceType;
11
11
  SingleChoiceType.TYPE = 'single-choice';
12
- //# sourceMappingURL=SingleChoice.js.map
12
+ //# sourceMappingURL=SingleChoiceType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleChoiceType.js","sourceRoot":"","sources":["../../../src/types/primitives/SingleChoiceType.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,sBAA8B,SAAQ,uBAAU;IAG9C;QACE,KAAK,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACpD,CAAC;CACF;;AALiB,qBAAI,GAAG,eAAe,CAAC","sourcesContent":["import { ChoiceType } from './ChoiceType';\n\nexport class SingleChoiceType extends ChoiceType {\n static readonly TYPE = 'single-choice';\n\n constructor() {\n super(SingleChoiceType.TYPE, { multiple: false });\n }\n}\n"]}
@@ -19,4 +19,4 @@ class TextType extends parser_type_system_1.TextType {
19
19
  }
20
20
  exports.TextType = TextType;
21
21
  TextType.TYPE = 'text';
22
- //# sourceMappingURL=Text.js.map
22
+ //# sourceMappingURL=TextType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextType.js","sourceRoot":"","sources":["../../../src/types/primitives/TextType.ts"],"names":[],"mappings":";;;AAAA,wEAAkF;AAElF,cAAsB,SAAQ,6BAAa;IAGzC,MAAM,CAAC,YAAY,CAAC,IAAU;QAC5B,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,MAAK,QAAQ,CAAC,IAAI,CAAC;IAC3C,CAAC;IAKD,MAAM;QACJ,MAAM,IAAI,GAAG,EAAS,CAAC;QACvB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACxB,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;;AAnBiB,aAAI,GAAG,MAAM,CAAC","sourcesContent":["import { Type, TextType as ValueTextType } from '@ja-platform/parser-type-system';\n\nexport class TextType extends ValueTextType {\n static readonly TYPE = 'text';\n\n static isInstanceOf(type: Type): type is TextType {\n return type?._typeName === TextType.TYPE;\n }\n\n spec?: string;\n subType?: string;\n\n toJSON() {\n const json = {} as any;\n if (this.spec != null) {\n json.spec = this.spec;\n }\n if (this.subType != null) {\n json.subType = this.subType;\n }\n return json;\n }\n}\n"]}
@@ -13,4 +13,4 @@ class AttachmentType extends parser_type_system_1.Type {
13
13
  }
14
14
  exports.AttachmentType = AttachmentType;
15
15
  AttachmentType.TYPE = 'attachment';
16
- //# sourceMappingURL=Attachment.js.map
16
+ //# sourceMappingURL=AttachmentType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachmentType.js","sourceRoot":"","sources":["../../../../src/types/primitives/attachments/AttachmentType.ts"],"names":[],"mappings":";;;AAAA,wEAAuD;AAEvD,oBAA4B,SAAQ,yBAAI;IAItC,MAAM,CAAC,YAAY,CAAC,IAAU;QAC5B,OAAO,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC,IAAI,CAAC;IAC3C,CAAC;IAKD;QACE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAXpB,cAAS,GAAG,YAAY,CAAC;IAYlC,CAAC;CACF;;AAZiB,mBAAI,GAAG,YAAY,AAAf,CAAgB","sourcesContent":["import { Type } from '@ja-platform/parser-type-system';\n\nexport class AttachmentType extends Type {\n readonly _typeName = 'attachment';\n static readonly TYPE = 'attachment';\n\n static isInstanceOf(type: Type): type is AttachmentType {\n return type.name === AttachmentType.TYPE;\n }\n\n media?: string;\n autoDownload?: boolean;\n\n constructor() {\n super(AttachmentType.TYPE);\n }\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PhotoType = void 0;
4
- const Attachment_1 = require("./Attachment");
5
- class PhotoType extends Attachment_1.AttachmentType {
4
+ const AttachmentType_1 = require("./AttachmentType");
5
+ class PhotoType extends AttachmentType_1.AttachmentType {
6
6
  constructor() {
7
7
  super();
8
8
  this.media = 'image/jpeg';
@@ -13,4 +13,4 @@ class PhotoType extends Attachment_1.AttachmentType {
13
13
  }
14
14
  exports.PhotoType = PhotoType;
15
15
  PhotoType.SUB_TYPE = 'photo';
16
- //# sourceMappingURL=Photo.js.map
16
+ //# sourceMappingURL=PhotoType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhotoType.js","sourceRoot":"","sources":["../../../../src/types/primitives/attachments/PhotoType.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAElD,eAAuB,SAAQ,+BAAc;IAG3C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC;IAC5B,CAAC;IAED,SAAS;QACP,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC5B,CAAC;CACF;;AAViB,kBAAQ,GAAG,OAAO,CAAC","sourcesContent":["import { AttachmentType } from './AttachmentType';\n\nexport class PhotoType extends AttachmentType {\n static readonly SUB_TYPE = 'photo';\n\n constructor() {\n super();\n this.media = 'image/jpeg';\n }\n\n stringify(): string {\n return PhotoType.SUB_TYPE;\n }\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SignatureType = void 0;
4
- const Attachment_1 = require("./Attachment");
5
- class SignatureType extends Attachment_1.AttachmentType {
4
+ const AttachmentType_1 = require("./AttachmentType");
5
+ class SignatureType extends AttachmentType_1.AttachmentType {
6
6
  constructor() {
7
7
  super();
8
8
  this.media = 'image/svg+xml';
@@ -13,4 +13,4 @@ class SignatureType extends Attachment_1.AttachmentType {
13
13
  }
14
14
  exports.SignatureType = SignatureType;
15
15
  SignatureType.SUB_TYPE = 'signature';
16
- //# sourceMappingURL=Signature.js.map
16
+ //# sourceMappingURL=SignatureType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignatureType.js","sourceRoot":"","sources":["../../../../src/types/primitives/attachments/SignatureType.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAElD,mBAA2B,SAAQ,+BAAc;IAG/C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC;IAC/B,CAAC;IAED,SAAS;QACP,OAAO,aAAa,CAAC,QAAQ,CAAC;IAChC,CAAC;CACF;;AAViB,sBAAQ,GAAG,WAAW,CAAC","sourcesContent":["import { AttachmentType } from './AttachmentType';\n\nexport class SignatureType extends AttachmentType {\n static readonly SUB_TYPE = 'signature';\n\n constructor() {\n super();\n this.media = 'image/svg+xml';\n }\n\n stringify(): string {\n return SignatureType.SUB_TYPE;\n }\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": "^22.19.0 || ^24.11.0 || >=26.0.0"
5
5
  },
6
- "version": "0.0.0-dev-20261021195551",
6
+ "version": "0.0.0-dev-20261021212654",
7
7
  "description": "JourneyApps Platform resolved schema models and types",
8
8
  "main": "./dist/index.js",
9
9
  "typings": "./dist/@types/index.d.ts",
@@ -11,8 +11,8 @@
11
11
  "dist"
12
12
  ],
13
13
  "dependencies": {
14
- "@ja-platform/parser-expressions": "^0.0.0-dev-20261021195551",
15
- "@ja-platform/parser-type-system": "^0.0.0-dev-20261021195551",
14
+ "@ja-platform/parser-expressions": "0.0.0-dev-20261021212654",
15
+ "@ja-platform/parser-type-system": "0.0.0-dev-20261021212654",
16
16
  "moment": "^2.31.0"
17
17
  },
18
18
  "devDependencies": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"Boolean.js","sourceRoot":"","sources":["../../../src/types/primitives/Boolean.ts"],"names":[],"mappings":";;;AAAA,wEAAkF;AAClF,6CAA2C;AAE3C,iBAAyB,SAAQ,IAAA,wBAAW,EAAC,gCAAgB,CAAC;CAAG","sourcesContent":["import { BooleanType as ValueBooleanType } from '@ja-platform/parser-type-system';\nimport { withChoices } from './ChoiceType';\n\nexport class BooleanType extends withChoices(ValueBooleanType) {}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Date.js","sourceRoot":"","sources":["../../../src/types/primitives/Date.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAoC;AACpC,2CAA2C;AAC3C,oDAA4B;AAC5B,wEAAuD;AAEvD,cAAsB,SAAQ,yBAAI;IAKhC,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AC,KAAK,CAAC,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,eAAe,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,KAAK,YAAY,IAAI,EAAE,CAAC;gBAC1B,sBAAsB;gBACtB,OAAO,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;YACzB,CAAC;iBAAM,IAAI,SAAG,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC5B,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,gBAAgB,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;IACH,CAAC;CACF;;AAxDQ,uBAAc,GAAG,aAAa,AAAhB,CAAiB;AAEtB,aAAI,GAAG,MAAM,AAAT,CAAU","sourcesContent":["import { Day } from '../../day/Day';\nimport { pureDate } from '../../day/utils';\nimport moment from 'moment';\nimport { Type } from '@ja-platform/parser-type-system';\n\nexport class DateType extends Type {\n static DEFAULT_FORMAT = 'MMMM D YYYY';\n readonly _typeName = 'date';\n static readonly TYPE = 'date';\n\n static isInstanceOf(type: Type | null): type is DateType {\n return type?._typeName === DateType.TYPE;\n }\n isDay?: boolean;\n\n constructor() {\n super(DateType.TYPE);\n }\n\n // Return either {} or {isDay: true}.\n // For consistency, we never return {isDay: undefined} or {isDay: false}.\n toJSON(): any {\n const json: { isDay?: boolean } = super.toJSON();\n if (this.isDay) {\n json.isDay = true;\n }\n return json;\n }\n format(value: any, format?: string) {\n // Works for Date and Day objects.\n if (Day.isDay(value)) {\n value = value.toDate();\n }\n const d = moment(value).utc();\n return d.format(format ?? DateType.DEFAULT_FORMAT);\n }\n\n is(value: any): boolean {\n return this.isDay ? Day.isDay(value) : value instanceof Date;\n }\n\n parse(value: any) {\n if (this.isDay) {\n if (Day.isDay(value)) {\n return value;\n } else if (value instanceof Date) {\n // Convert from local timezone\n return new Day(value);\n } else {\n throw new Error(value + ' is not a Day');\n }\n } else {\n if (value instanceof Date) {\n // Assume UTC timezone\n return pureDate(value);\n } else if (Day.isDay(value)) {\n return value.toDate();\n } else {\n throw new Error(value + ' is not a Date');\n }\n }\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Datetime.js","sourceRoot":"","sources":["../../../src/types/primitives/Datetime.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,wEAAuD;AAEvD,kBAA0B,SAAQ,yBAAI;IAIpC;QACE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IACD,MAAM,CAAC,KAAU,EAAE,MAAe;QAChC,OAAO,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,YAAY,CAAC,cAAc,CAAC,CAAC;IACrE,CAAC;IAED,EAAE,CAAC,KAAU;QACX,OAAO,KAAK,YAAY,IAAI,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,KAAU;QACd,IAAI,KAAK,YAAY,IAAI,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC;QACf,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,gBAAgB,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;CACF;;AArBQ,2BAAc,GAAG,oBAAoB,CAAC;AAC7B,iBAAI,GAAG,UAAU,CAAC","sourcesContent":["import moment from 'moment';\nimport { Type } from '@ja-platform/parser-type-system';\n\nexport class DatetimeType extends Type {\n static DEFAULT_FORMAT = 'MMMM D YYYY h:mm A';\n static readonly TYPE = 'datetime';\n\n constructor() {\n super(DatetimeType.TYPE);\n }\n format(value: any, format?: string): string {\n return moment(value).format(format ?? DatetimeType.DEFAULT_FORMAT);\n }\n\n is(value: any): boolean {\n return value instanceof Date;\n }\n\n parse(value: any): any {\n if (value instanceof Date) {\n return value;\n } else {\n throw new Error(value + ' is not a Date');\n }\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GeoTrack.js","sourceRoot":"","sources":["../../../src/types/primitives/GeoTrack.ts"],"names":[],"mappings":";;;AAAA,wEAAuD;AAEvD,kBAA0B,SAAQ,yBAAI;IAGpC;QACE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;;AALiB,iBAAI,GAAG,OAAO,CAAC","sourcesContent":["import { Type } from '@ja-platform/parser-type-system';\n\nexport class GeoTrackType extends Type {\n static readonly TYPE = 'track';\n\n constructor() {\n super(GeoTrackType.TYPE);\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Location.js","sourceRoot":"","sources":["../../../src/types/primitives/Location.ts"],"names":[],"mappings":";;;AAAA,wEAAmE;AACnE,iCAAkC;AAElC,kBAA0B,SAAQ,+BAAU;IAG1C;QACE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,QAAQ,CAAC,IAAY;QACnB,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,qBAAqB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YACrG,CAAC,CAAC,IAAI,eAAQ,EAAE;YAChB,CAAC,CAAC,IAAI,CAAC;IACX,CAAC;CACF;;AAXiB,iBAAI,GAAG,UAAU,CAAC","sourcesContent":["import { ObjectType, Type } from '@ja-platform/parser-type-system';\nimport { TextType } from './Text';\n\nexport class LocationType extends ObjectType {\n static readonly TYPE = 'location';\n\n constructor() {\n super(LocationType.TYPE);\n }\n\n getField(name: string): Type | null {\n return ['latitude', 'longitude', 'altitude', 'horizontal_accuracy', 'vertical_accuracy'].includes(name)\n ? new TextType()\n : null;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultipleChoice.js","sourceRoot":"","sources":["../../../src/types/primitives/MultipleChoice.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,wBAAgC,SAAQ,uBAAU;IAGhD;QACE,KAAK,CAAC,kBAAkB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;CACF;;AALiB,uBAAI,GAAG,iBAAiB,CAAC","sourcesContent":["import { ChoiceType } from './ChoiceType';\n\nexport class MultipleChoiceType extends ChoiceType {\n static readonly TYPE = 'multiple-choice';\n\n constructor() {\n super(MultipleChoiceType.TYPE, { multiple: true });\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultipleChoiceInteger.js","sourceRoot":"","sources":["../../../src/types/primitives/MultipleChoiceInteger.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,+BAAuC,SAAQ,uBAAU;IAGvD;QACE,KAAK,CAAC,yBAAyB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,eAAe,CAAC,MAAgB;QAC9B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAED,EAAE,CAAC,KAAU;QACX,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;IACnF,CAAC;IAED,KAAK,CAAC,KAAU;QACd,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,kBAAkB,CAAC,CAAC;QAC9C,CAAC;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACvB,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACnC,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,wBAAwB,CAAC,CAAC;YACpD,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;;AAhCiB,8BAAI,GAAG,yBAAyB,CAAC","sourcesContent":["import { ChoiceType } from './ChoiceType';\n\nexport class MultipleChoiceIntegerType extends ChoiceType {\n static readonly TYPE = 'multiple-choice-integer';\n\n constructor() {\n super(MultipleChoiceIntegerType.TYPE, { multiple: true });\n }\n\n setOptionLabels(labels: string[]) {\n this.options = {};\n for (let i = 0; i < labels.length; i++) {\n this.addOption(i, labels[i], i);\n }\n }\n\n is(value: any): boolean {\n return Array.isArray(value) && value.every((item) => this.options[item] != null);\n }\n\n parse(value: any) {\n if (!(value instanceof Array)) {\n throw new Error(value + ' is not an array');\n }\n\n for (let i = 0; i < value.length; i++) {\n const index = value[i];\n const option = this.options[index];\n if (option == null) {\n throw new Error(index + ' is not a valid option');\n }\n }\n\n return value;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SingleChoice.js","sourceRoot":"","sources":["../../../src/types/primitives/SingleChoice.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,sBAA8B,SAAQ,uBAAU;IAG9C;QACE,KAAK,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACpD,CAAC;CACF;;AALiB,qBAAI,GAAG,eAAe,CAAC","sourcesContent":["import { ChoiceType } from './ChoiceType';\n\nexport class SingleChoiceType extends ChoiceType {\n static readonly TYPE = 'single-choice';\n\n constructor() {\n super(SingleChoiceType.TYPE, { multiple: false });\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SingleChoiceInteger.js","sourceRoot":"","sources":["../../../src/types/primitives/SingleChoiceInteger.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,6CAA0C;AAE1C,6BAAqC,SAAQ,uBAAU;IAGrD;QACE,KAAK,CAAC,uBAAuB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,eAAe,CAAC,MAAgB;QAC9B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAED,EAAE,CAAC,KAAU;QACX,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,KAAU;QACd,IAAI,MAAM,GAAW,IAAI,CAAC;QAC1B,IAAI,OAAO,KAAK,IAAI,QAAQ,EAAE,CAAC;YAC7B,MAAM,GAAG,KAAK,CAAC;QACjB,CAAC;aAAM,IAAI,uBAAU,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1C,sCAAsC;YACtC,MAAM,GAAG,KAAK,CAAC,KAAe,CAAC;QACjC,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,KAAK,GAAG,4BAA4B,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACN,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;CACF;;AA/BiB,4BAAI,GAAG,uBAAuB,CAAC","sourcesContent":["import { EnumOption } from '../EnumOption';\nimport { ChoiceType } from './ChoiceType';\n\nexport class SingleChoiceIntegerType extends ChoiceType {\n static readonly TYPE = 'single-choice-integer';\n\n constructor() {\n super(SingleChoiceIntegerType.TYPE, { multiple: false });\n }\n\n setOptionLabels(labels: string[]) {\n this.options = {};\n for (let i = 0; i < labels.length; i++) {\n this.addOption(i, labels[i], i);\n }\n }\n\n is(value: any): boolean {\n return typeof value === 'number' && this.options[value] != null;\n }\n\n parse(value: any) {\n let option: number = null;\n if (typeof value == 'number') {\n option = value;\n } else if (EnumOption.isInstanceOf(value)) {\n // We convert enums to a plain integer\n option = value.value as number;\n }\n if (this.options[option] == null) {\n throw new Error(value + ' is not a valid enum value');\n } else {\n return option;\n }\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/types/primitives/Text.ts"],"names":[],"mappings":";;;AAAA,wEAAkF;AAElF,cAAsB,SAAQ,6BAAa;IAGzC,MAAM,CAAC,YAAY,CAAC,IAAU;QAC5B,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,MAAK,QAAQ,CAAC,IAAI,CAAC;IAC3C,CAAC;IAKD,MAAM;QACJ,MAAM,IAAI,GAAG,EAAS,CAAC;QACvB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACxB,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;;AAnBiB,aAAI,GAAG,MAAM,CAAC","sourcesContent":["import { Type, TextType as ValueTextType } from '@ja-platform/parser-type-system';\n\nexport class TextType extends ValueTextType {\n static readonly TYPE = 'text';\n\n static isInstanceOf(type: Type): type is TextType {\n return type?._typeName === TextType.TYPE;\n }\n\n spec?: string;\n subType?: string;\n\n toJSON() {\n const json = {} as any;\n if (this.spec != null) {\n json.spec = this.spec;\n }\n if (this.subType != null) {\n json.subType = this.subType;\n }\n return json;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Attachment.js","sourceRoot":"","sources":["../../../../src/types/primitives/attachments/Attachment.ts"],"names":[],"mappings":";;;AAAA,wEAAuD;AAEvD,oBAA4B,SAAQ,yBAAI;IAItC,MAAM,CAAC,YAAY,CAAC,IAAU;QAC5B,OAAO,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC,IAAI,CAAC;IAC3C,CAAC;IAKD;QACE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAXpB,cAAS,GAAG,YAAY,CAAC;IAYlC,CAAC;CACF;;AAZiB,mBAAI,GAAG,YAAY,AAAf,CAAgB","sourcesContent":["import { Type } from '@ja-platform/parser-type-system';\n\nexport class AttachmentType extends Type {\n readonly _typeName = 'attachment';\n static readonly TYPE = 'attachment';\n\n static isInstanceOf(type: Type): type is AttachmentType {\n return type.name === AttachmentType.TYPE;\n }\n\n media?: string;\n autoDownload?: boolean;\n\n constructor() {\n super(AttachmentType.TYPE);\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Photo.js","sourceRoot":"","sources":["../../../../src/types/primitives/attachments/Photo.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAE9C,eAAuB,SAAQ,2BAAc;IAG3C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC;IAC5B,CAAC;IAED,SAAS;QACP,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC5B,CAAC;CACF;;AAViB,kBAAQ,GAAG,OAAO,CAAC","sourcesContent":["import { AttachmentType } from './Attachment';\n\nexport class PhotoType extends AttachmentType {\n static readonly SUB_TYPE = 'photo';\n\n constructor() {\n super();\n this.media = 'image/jpeg';\n }\n\n stringify(): string {\n return PhotoType.SUB_TYPE;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Signature.js","sourceRoot":"","sources":["../../../../src/types/primitives/attachments/Signature.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAE9C,mBAA2B,SAAQ,2BAAc;IAG/C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC;IAC/B,CAAC;IAED,SAAS;QACP,OAAO,aAAa,CAAC,QAAQ,CAAC;IAChC,CAAC;CACF;;AAViB,sBAAQ,GAAG,WAAW,CAAC","sourcesContent":["import { AttachmentType } from './Attachment';\n\nexport class SignatureType extends AttachmentType {\n static readonly SUB_TYPE = 'signature';\n\n constructor() {\n super();\n this.media = 'image/svg+xml';\n }\n\n stringify(): string {\n return SignatureType.SUB_TYPE;\n }\n}\n"]}
@@ -1,85 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.NumberType = exports.IntegerType = exports.PrimitiveTypeMap = exports.PrimitiveType = void 0;
18
- const Attachment_1 = require("./attachments/Attachment");
19
- const Text_1 = require("./Text");
20
- const Boolean_1 = require("./Boolean");
21
- const Location_1 = require("./Location");
22
- const GeoTrack_1 = require("./GeoTrack");
23
- const SingleChoice_1 = require("./SingleChoice");
24
- const SingleChoiceInteger_1 = require("./SingleChoiceInteger");
25
- const MultipleChoice_1 = require("./MultipleChoice");
26
- const MultipleChoiceInteger_1 = require("./MultipleChoiceInteger");
27
- const parser_type_system_1 = require("@ja-platform/parser-type-system");
28
- const Date_1 = require("./Date");
29
- const Datetime_1 = require("./Datetime");
30
- const Photo_1 = require("./attachments/Photo");
31
- const Signature_1 = require("./attachments/Signature");
32
- exports.PrimitiveType = {
33
- ATTACHMENT: Attachment_1.AttachmentType.TYPE,
34
- BOOLEAN: Boolean_1.BooleanType.TYPE,
35
- DATE: Date_1.DateType.TYPE,
36
- DATETIME: Datetime_1.DatetimeType.TYPE,
37
- GEO_TRACK: GeoTrack_1.GeoTrackType.TYPE,
38
- INTEGER: parser_type_system_1.IntegerType.TYPE,
39
- LOCATION: Location_1.LocationType.TYPE,
40
- MULTIPLE_CHOICE_INTEGER: MultipleChoiceInteger_1.MultipleChoiceIntegerType.TYPE,
41
- MULTIPLE_CHOICE: MultipleChoice_1.MultipleChoiceType.TYPE,
42
- NUMBER: parser_type_system_1.NumberType.TYPE,
43
- SINGLE_CHOICE_INTEGER: SingleChoiceInteger_1.SingleChoiceIntegerType.TYPE,
44
- SINGLE_CHOICE: SingleChoice_1.SingleChoiceType.TYPE,
45
- TEXT: Text_1.TextType.TYPE,
46
- PHOTO: Photo_1.PhotoType.SUB_TYPE,
47
- SIGNATURE: Signature_1.SignatureType.SUB_TYPE
48
- };
49
- // Collection of primitive types.
50
- // Each type is a constructor creating a default instance of that type.
51
- exports.PrimitiveTypeMap = {
52
- [exports.PrimitiveType.ATTACHMENT]: Attachment_1.AttachmentType,
53
- [exports.PrimitiveType.BOOLEAN]: Boolean_1.BooleanType,
54
- [exports.PrimitiveType.DATE]: Date_1.DateType,
55
- [exports.PrimitiveType.DATETIME]: Datetime_1.DatetimeType,
56
- [exports.PrimitiveType.GEO_TRACK]: GeoTrack_1.GeoTrackType,
57
- [exports.PrimitiveType.INTEGER]: parser_type_system_1.IntegerType,
58
- [exports.PrimitiveType.LOCATION]: Location_1.LocationType,
59
- [exports.PrimitiveType.MULTIPLE_CHOICE_INTEGER]: MultipleChoiceInteger_1.MultipleChoiceIntegerType,
60
- [exports.PrimitiveType.MULTIPLE_CHOICE]: MultipleChoice_1.MultipleChoiceType,
61
- [exports.PrimitiveType.NUMBER]: parser_type_system_1.NumberType,
62
- [exports.PrimitiveType.SINGLE_CHOICE_INTEGER]: SingleChoiceInteger_1.SingleChoiceIntegerType,
63
- [exports.PrimitiveType.SINGLE_CHOICE]: SingleChoice_1.SingleChoiceType,
64
- [exports.PrimitiveType.TEXT]: Text_1.TextType,
65
- [exports.PrimitiveType.SIGNATURE]: Signature_1.SignatureType,
66
- [exports.PrimitiveType.PHOTO]: Photo_1.PhotoType
67
- };
68
- __exportStar(require("./Boolean"), exports);
69
- __exportStar(require("./Date"), exports);
70
- __exportStar(require("./Datetime"), exports);
71
- var parser_type_system_2 = require("@ja-platform/parser-type-system");
72
- Object.defineProperty(exports, "IntegerType", { enumerable: true, get: function () { return parser_type_system_2.IntegerType; } });
73
- Object.defineProperty(exports, "NumberType", { enumerable: true, get: function () { return parser_type_system_2.NumberType; } });
74
- __exportStar(require("./Text"), exports);
75
- __exportStar(require("./Location"), exports);
76
- __exportStar(require("./GeoTrack"), exports);
77
- __exportStar(require("./ChoiceType"), exports);
78
- __exportStar(require("./MultipleChoice"), exports);
79
- __exportStar(require("./MultipleChoiceInteger"), exports);
80
- __exportStar(require("./SingleChoice"), exports);
81
- __exportStar(require("./SingleChoiceInteger"), exports);
82
- __exportStar(require("./attachments/Attachment"), exports);
83
- __exportStar(require("./attachments/Photo"), exports);
84
- __exportStar(require("./attachments/Signature"), exports);
85
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/primitives/index.ts"],"names":[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,EAAE,gCAAW;IACpC,CAAC,QAAA,aAAa,CAAC,QAAQ,CAAC,EAAE,uBAAY;IACtC,CAAC,QAAA,aAAa,CAAC,uBAAuB,CAAC,EAAE,iDAAyB;IAClE,CAAC,QAAA,aAAa,CAAC,eAAe,CAAC,EAAE,mCAAkB;IACnD,CAAC,QAAA,aAAa,CAAC,MAAM,CAAC,EAAE,+BAAU;IAClC,CAAC,QAAA,aAAa,CAAC,qBAAqB,CAAC,EAAE,6CAAuB;IAC9D,CAAC,QAAA,aAAa,CAAC,aAAa,CAAC,EAAE,+BAAgB;IAC/C,CAAC,QAAA,aAAa,CAAC,IAAI,CAAC,EAAE,eAAQ;IAC9B,CAAC,QAAA,aAAa,CAAC,SAAS,CAAC,EAAE,yBAAa;IACxC,CAAC,QAAA,aAAa,CAAC,KAAK,CAAC,EAAE,iBAAS;CACxB,CAAC;AASX,4CAA0B;AAC1B,yCAAuB;AACvB,6CAA2B;AAC3B,sEAA0E;AAAjE,iHAAA,WAAW,OAAA;AAAE,gHAAA,UAAU,OAAA;AAChC,yCAAuB;AACvB,6CAA2B;AAC3B,6CAA2B;AAE3B,+CAA6B;AAC7B,mDAAiC;AACjC,0DAAwC;AACxC,iDAA+B;AAC/B,wDAAsC;AAEtC,2DAAyC;AACzC,sDAAoC;AACpC,0DAAwC","sourcesContent":["import { AttachmentType } from './attachments/Attachment';\nimport { TextType } from './Text';\nimport { BooleanType } from './Boolean';\nimport { LocationType } from './Location';\nimport { GeoTrackType } from './GeoTrack';\nimport { SingleChoiceType } from './SingleChoice';\nimport { SingleChoiceIntegerType } from './SingleChoiceInteger';\nimport { MultipleChoiceType } from './MultipleChoice';\nimport { MultipleChoiceIntegerType } from './MultipleChoiceInteger';\nimport { IntegerType, NumberType } from '@ja-platform/parser-type-system';\nimport { DateType } from './Date';\nimport { DatetimeType } from './Datetime';\nimport { PhotoType } from './attachments/Photo';\nimport { SignatureType } from './attachments/Signature';\n\nexport const PrimitiveType = {\n ATTACHMENT: AttachmentType.TYPE,\n BOOLEAN: BooleanType.TYPE,\n DATE: DateType.TYPE,\n DATETIME: DatetimeType.TYPE,\n GEO_TRACK: GeoTrackType.TYPE,\n INTEGER: IntegerType.TYPE,\n LOCATION: LocationType.TYPE,\n MULTIPLE_CHOICE_INTEGER: MultipleChoiceIntegerType.TYPE,\n MULTIPLE_CHOICE: MultipleChoiceType.TYPE,\n NUMBER: NumberType.TYPE,\n SINGLE_CHOICE_INTEGER: SingleChoiceIntegerType.TYPE,\n SINGLE_CHOICE: SingleChoiceType.TYPE,\n TEXT: TextType.TYPE,\n PHOTO: PhotoType.SUB_TYPE,\n SIGNATURE: SignatureType.SUB_TYPE\n} as const;\nexport type PrimitiveType = typeof PrimitiveType;\n\n// Collection of primitive types.\n// Each type is a constructor creating a default instance of that type.\nexport const PrimitiveTypeMap = {\n [PrimitiveType.ATTACHMENT]: AttachmentType,\n [PrimitiveType.BOOLEAN]: BooleanType,\n [PrimitiveType.DATE]: DateType,\n [PrimitiveType.DATETIME]: DatetimeType,\n [PrimitiveType.GEO_TRACK]: GeoTrackType,\n [PrimitiveType.INTEGER]: IntegerType,\n [PrimitiveType.LOCATION]: LocationType,\n [PrimitiveType.MULTIPLE_CHOICE_INTEGER]: MultipleChoiceIntegerType,\n [PrimitiveType.MULTIPLE_CHOICE]: MultipleChoiceType,\n [PrimitiveType.NUMBER]: NumberType,\n [PrimitiveType.SINGLE_CHOICE_INTEGER]: SingleChoiceIntegerType,\n [PrimitiveType.SINGLE_CHOICE]: SingleChoiceType,\n [PrimitiveType.TEXT]: TextType,\n [PrimitiveType.SIGNATURE]: SignatureType,\n [PrimitiveType.PHOTO]: PhotoType\n} as const;\n\nexport type PrimitiveTypeMap = typeof PrimitiveTypeMap;\n\n// Collection of primitive type names\nexport type PrimitiveTypeName = keyof typeof PrimitiveTypeMap;\n\nexport type PrimitiveTypeInstance = InstanceType<PrimitiveTypeMap[PrimitiveTypeName]>;\n\nexport * from './Boolean';\nexport * from './Date';\nexport * from './Datetime';\nexport { IntegerType, NumberType } from '@ja-platform/parser-type-system';\nexport * from './Text';\nexport * from './Location';\nexport * from './GeoTrack';\n\nexport * from './ChoiceType';\nexport * from './MultipleChoice';\nexport * from './MultipleChoiceInteger';\nexport * from './SingleChoice';\nexport * from './SingleChoiceInteger';\n\nexport * from './attachments/Attachment';\nexport * from './attachments/Photo';\nexport * from './attachments/Signature';\n"]}