@sprucelabs/spruce-core-schemas 26.0.2 → 27.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -453,58 +453,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
453
453
  }
454
454
  type PersonLocationEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.PersonLocationSchema>;
455
455
  }
456
- export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
457
- /** Various sizes that a profile image comes in. */
458
- interface ProfileImage {
459
- /** 60x60. */
460
- 'profile60': string;
461
- /** 150x150. */
462
- 'profile150': string;
463
- /** 60x60. */
464
- 'profile60@2x': string;
465
- /** 150x150. */
466
- 'profile150@2x': string;
467
- }
468
- interface ProfileImageSchema extends SpruceSchema.Schema {
469
- id: 'profileImage';
470
- version: 'v2020_07_22';
471
- namespace: 'Spruce';
472
- name: 'Profile Image Sizes';
473
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
474
- description: 'Various sizes that a profile image comes in.';
475
- fields: {
476
- /** 60x60. */
477
- 'profile60': {
478
- label: '60x60';
479
- type: 'text';
480
- isRequired: true;
481
- options: undefined;
482
- };
483
- /** 150x150. */
484
- 'profile150': {
485
- label: '150x150';
486
- type: 'text';
487
- isRequired: true;
488
- options: undefined;
489
- };
490
- /** 60x60. */
491
- 'profile60@2x': {
492
- label: '60x60';
493
- type: 'text';
494
- isRequired: true;
495
- options: undefined;
496
- };
497
- /** 150x150. */
498
- 'profile150@2x': {
499
- label: '150x150';
500
- type: 'text';
501
- isRequired: true;
502
- options: undefined;
503
- };
504
- };
505
- }
506
- type ProfileImageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ProfileImageSchema>;
507
- }
508
456
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
509
457
  /** A human being. */
510
458
  interface Person {
@@ -518,8 +466,8 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
518
466
  'casualName': string;
519
467
  /** Phone. A number that can be texted */
520
468
  'phone'?: string | undefined | null;
521
- /** Profile photos. */
522
- 'profileImages'?: SpruceSchemas.Spruce.v2020_07_22.ProfileImage | undefined | null;
469
+ /** Avatar src. */
470
+ 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
523
471
  'dateCreated': SpruceSchema.DateTimeFieldValue;
524
472
  'dateScrambled'?: SpruceSchema.DateTimeFieldValue | undefined | null;
525
473
  }
@@ -568,12 +516,12 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
568
516
  hint: 'A number that can be texted';
569
517
  options: undefined;
570
518
  };
571
- /** Profile photos. */
572
- 'profileImages': {
573
- label: 'Profile photos';
574
- type: 'schema';
519
+ /** Avatar src. */
520
+ 'avatar': {
521
+ label: 'Avatar src';
522
+ type: 'image';
575
523
  options: {
576
- schema: SpruceSchemas.Spruce.v2020_07_22.ProfileImageSchema;
524
+ requiredSizes: ["*"];
577
525
  };
578
526
  };
579
527
  /** . */
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  const schema_1 = require("@sprucelabs/schema");
7
- const profileImage_schema_1 = __importDefault(require("./profileImage.schema"));
8
4
  const personSchema = {
9
5
  id: 'person',
10
6
  version: 'v2020_07_22',
@@ -50,11 +46,11 @@ const personSchema = {
50
46
  hint: 'A number that can be texted',
51
47
  options: undefined
52
48
  },
53
- /** Profile photos. */
54
- 'profileImages': {
55
- label: 'Profile photos',
56
- type: 'schema',
57
- options: { schema: profileImage_schema_1.default, }
49
+ /** Avatar src. */
50
+ 'avatar': {
51
+ label: 'Avatar src',
52
+ type: 'image',
53
+ options: { requiredSizes: ["*"], }
58
54
  },
59
55
  /** . */
60
56
  'dateCreated': {
@@ -453,58 +453,6 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
453
453
  }
454
454
  type PersonLocationEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.PersonLocationSchema>;
455
455
  }
456
- export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
457
- /** Various sizes that a profile image comes in. */
458
- interface ProfileImage {
459
- /** 60x60. */
460
- 'profile60': string;
461
- /** 150x150. */
462
- 'profile150': string;
463
- /** 60x60. */
464
- 'profile60@2x': string;
465
- /** 150x150. */
466
- 'profile150@2x': string;
467
- }
468
- interface ProfileImageSchema extends SpruceSchema.Schema {
469
- id: 'profileImage';
470
- version: 'v2020_07_22';
471
- namespace: 'Spruce';
472
- name: 'Profile Image Sizes';
473
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas';
474
- description: 'Various sizes that a profile image comes in.';
475
- fields: {
476
- /** 60x60. */
477
- 'profile60': {
478
- label: '60x60';
479
- type: 'text';
480
- isRequired: true;
481
- options: undefined;
482
- };
483
- /** 150x150. */
484
- 'profile150': {
485
- label: '150x150';
486
- type: 'text';
487
- isRequired: true;
488
- options: undefined;
489
- };
490
- /** 60x60. */
491
- 'profile60@2x': {
492
- label: '60x60';
493
- type: 'text';
494
- isRequired: true;
495
- options: undefined;
496
- };
497
- /** 150x150. */
498
- 'profile150@2x': {
499
- label: '150x150';
500
- type: 'text';
501
- isRequired: true;
502
- options: undefined;
503
- };
504
- };
505
- }
506
- type ProfileImageEntity = SchemaEntity<SpruceSchemas.Spruce.v2020_07_22.ProfileImageSchema>;
507
- }
508
456
  export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
509
457
  /** A human being. */
510
458
  interface Person {
@@ -518,8 +466,8 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
518
466
  'casualName': string;
519
467
  /** Phone. A number that can be texted */
520
468
  'phone'?: string | undefined | null;
521
- /** Profile photos. */
522
- 'profileImages'?: SpruceSchemas.Spruce.v2020_07_22.ProfileImage | undefined | null;
469
+ /** Avatar src. */
470
+ 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
523
471
  'dateCreated': SpruceSchema.DateTimeFieldValue;
524
472
  'dateScrambled'?: SpruceSchema.DateTimeFieldValue | undefined | null;
525
473
  }
@@ -568,12 +516,12 @@ export declare namespace SpruceSchemas.Spruce.v2020_07_22 {
568
516
  hint: 'A number that can be texted';
569
517
  options: undefined;
570
518
  };
571
- /** Profile photos. */
572
- 'profileImages': {
573
- label: 'Profile photos';
574
- type: 'schema';
519
+ /** Avatar src. */
520
+ 'avatar': {
521
+ label: 'Avatar src';
522
+ type: 'image';
575
523
  options: {
576
- schema: SpruceSchemas.Spruce.v2020_07_22.ProfileImageSchema;
524
+ requiredSizes: ["*"];
577
525
  };
578
526
  };
579
527
  /** . */
@@ -1,5 +1,4 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema';
2
- import profileImageSchema_v2020_07_22 from './profileImage.schema.js';
3
2
  const personSchema = {
4
3
  id: 'person',
5
4
  version: 'v2020_07_22',
@@ -45,11 +44,11 @@ const personSchema = {
45
44
  hint: 'A number that can be texted',
46
45
  options: undefined
47
46
  },
48
- /** Profile photos. */
49
- 'profileImages': {
50
- label: 'Profile photos',
51
- type: 'schema',
52
- options: { schema: profileImageSchema_v2020_07_22, }
47
+ /** Avatar src. */
48
+ 'avatar': {
49
+ label: 'Avatar src',
50
+ type: 'image',
51
+ options: { requiredSizes: ["*"], }
53
52
  },
54
53
  /** . */
55
54
  'dateCreated': {
@@ -1,6 +1,5 @@
1
1
  export * from "./.spruce/schemas/core.schemas.types";
2
2
  export { default as personSchema } from "./.spruce/schemas/spruce/v2020_07_22/person.schema";
3
- export { default as profileImageSchema } from "./.spruce/schemas/spruce/v2020_07_22/profileImage.schema";
4
3
  export { default as skillSchema } from "./.spruce/schemas/spruce/v2020_07_22/skill.schema";
5
4
  export { default as skillCreatorSchema } from "./.spruce/schemas/spruce/v2020_07_22/skillCreator.schema";
6
5
  export { default as locationSchema } from "./.spruce/schemas/spruce/v2020_07_22/location.schema";
@@ -1,6 +1,5 @@
1
1
  export * from './.spruce/schemas/core.schemas.types.js';
2
2
  export { default as personSchema } from './.spruce/schemas/spruce/v2020_07_22/person.schema.js';
3
- export { default as profileImageSchema } from './.spruce/schemas/spruce/v2020_07_22/profileImage.schema.js';
4
3
  export { default as skillSchema } from './.spruce/schemas/spruce/v2020_07_22/skill.schema.js';
5
4
  export { default as skillCreatorSchema } from './.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js';
6
5
  export { default as locationSchema } from './.spruce/schemas/spruce/v2020_07_22/location.schema.js';
@@ -30,37 +30,11 @@ declare const _default: {
30
30
  hint: string;
31
31
  isPrivate: true;
32
32
  };
33
- profileImages: {
33
+ avatar: {
34
34
  label: string;
35
- type: "schema";
35
+ type: "image";
36
36
  options: {
37
- schema: {
38
- id: string;
39
- name: string;
40
- description: string;
41
- fields: {
42
- profile60: {
43
- label: string;
44
- type: "text";
45
- isRequired: true;
46
- };
47
- profile150: {
48
- label: string;
49
- type: "text";
50
- isRequired: true;
51
- };
52
- 'profile60@2x': {
53
- label: string;
54
- type: "text";
55
- isRequired: true;
56
- };
57
- 'profile150@2x': {
58
- label: string;
59
- type: "text";
60
- isRequired: true;
61
- };
62
- };
63
- };
37
+ requiredSizes: "*"[];
64
38
  };
65
39
  };
66
40
  dateCreated: {
@@ -31,37 +31,11 @@ export default buildSchema({
31
31
  hint: 'A number that can be texted',
32
32
  isPrivate: true,
33
33
  },
34
- profileImages: {
35
- label: 'Profile photos',
36
- type: 'schema',
34
+ avatar: {
35
+ label: 'Avatar src',
36
+ type: 'image',
37
37
  options: {
38
- schema: {
39
- id: 'profileImage',
40
- name: 'Profile Image Sizes',
41
- description: 'Various sizes that a profile image comes in.',
42
- fields: {
43
- profile60: {
44
- label: '60x60',
45
- type: 'text',
46
- isRequired: true,
47
- },
48
- profile150: {
49
- label: '150x150',
50
- type: 'text',
51
- isRequired: true,
52
- },
53
- 'profile60@2x': {
54
- label: '60x60',
55
- type: 'text',
56
- isRequired: true,
57
- },
58
- 'profile150@2x': {
59
- label: '150x150',
60
- type: 'text',
61
- isRequired: true,
62
- },
63
- },
64
- },
38
+ requiredSizes: ['*'],
65
39
  },
66
40
  },
67
41
  dateCreated: {
package/build/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from "./.spruce/schemas/core.schemas.types";
2
2
  export { default as personSchema } from "./.spruce/schemas/spruce/v2020_07_22/person.schema";
3
- export { default as profileImageSchema } from "./.spruce/schemas/spruce/v2020_07_22/profileImage.schema";
4
3
  export { default as skillSchema } from "./.spruce/schemas/spruce/v2020_07_22/skill.schema";
5
4
  export { default as skillCreatorSchema } from "./.spruce/schemas/spruce/v2020_07_22/skillCreator.schema";
6
5
  export { default as locationSchema } from "./.spruce/schemas/spruce/v2020_07_22/location.schema";
package/build/index.js CHANGED
@@ -17,12 +17,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.fullMessageChoicesSchema = exports.sendMessageSchema = exports.messageTargetSchema = exports.messageSourceSchema = exports.messageSchema = exports.roleSchema = exports.personLocationSchema = exports.personOrganizationSchema = exports.organizationSchema = exports.locationSchema = exports.skillCreatorSchema = exports.skillSchema = exports.profileImageSchema = exports.personSchema = void 0;
20
+ exports.fullMessageChoicesSchema = exports.sendMessageSchema = exports.messageTargetSchema = exports.messageSourceSchema = exports.messageSchema = exports.roleSchema = exports.personLocationSchema = exports.personOrganizationSchema = exports.organizationSchema = exports.locationSchema = exports.skillCreatorSchema = exports.skillSchema = exports.personSchema = void 0;
21
21
  __exportStar(require("./.spruce/schemas/core.schemas.types"), exports);
22
22
  var person_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/person.schema");
23
23
  Object.defineProperty(exports, "personSchema", { enumerable: true, get: function () { return __importDefault(person_schema_1).default; } });
24
- var profileImage_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/profileImage.schema");
25
- Object.defineProperty(exports, "profileImageSchema", { enumerable: true, get: function () { return __importDefault(profileImage_schema_1).default; } });
26
24
  var skill_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/skill.schema");
27
25
  Object.defineProperty(exports, "skillSchema", { enumerable: true, get: function () { return __importDefault(skill_schema_1).default; } });
28
26
  var skillCreator_schema_1 = require("./.spruce/schemas/spruce/v2020_07_22/skillCreator.schema");
@@ -30,37 +30,11 @@ declare const _default: {
30
30
  hint: string;
31
31
  isPrivate: true;
32
32
  };
33
- profileImages: {
33
+ avatar: {
34
34
  label: string;
35
- type: "schema";
35
+ type: "image";
36
36
  options: {
37
- schema: {
38
- id: string;
39
- name: string;
40
- description: string;
41
- fields: {
42
- profile60: {
43
- label: string;
44
- type: "text";
45
- isRequired: true;
46
- };
47
- profile150: {
48
- label: string;
49
- type: "text";
50
- isRequired: true;
51
- };
52
- 'profile60@2x': {
53
- label: string;
54
- type: "text";
55
- isRequired: true;
56
- };
57
- 'profile150@2x': {
58
- label: string;
59
- type: "text";
60
- isRequired: true;
61
- };
62
- };
63
- };
37
+ requiredSizes: "*"[];
64
38
  };
65
39
  };
66
40
  dateCreated: {
@@ -33,37 +33,11 @@ exports.default = (0, schema_1.buildSchema)({
33
33
  hint: 'A number that can be texted',
34
34
  isPrivate: true,
35
35
  },
36
- profileImages: {
37
- label: 'Profile photos',
38
- type: 'schema',
36
+ avatar: {
37
+ label: 'Avatar src',
38
+ type: 'image',
39
39
  options: {
40
- schema: {
41
- id: 'profileImage',
42
- name: 'Profile Image Sizes',
43
- description: 'Various sizes that a profile image comes in.',
44
- fields: {
45
- profile60: {
46
- label: '60x60',
47
- type: 'text',
48
- isRequired: true,
49
- },
50
- profile150: {
51
- label: '150x150',
52
- type: 'text',
53
- isRequired: true,
54
- },
55
- 'profile60@2x': {
56
- label: '60x60',
57
- type: 'text',
58
- isRequired: true,
59
- },
60
- 'profile150@2x': {
61
- label: '150x150',
62
- type: 'text',
63
- isRequired: true,
64
- },
65
- },
66
- },
40
+ requiredSizes: ['*'],
67
41
  },
68
42
  },
69
43
  dateCreated: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "26.0.2",
6
+ "version": "27.0.0",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "tsconfig.json"
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../core.schemas.types';
2
- declare const profileImageSchema: SpruceSchemas.Spruce.v2020_07_22.ProfileImageSchema;
3
- export default profileImageSchema;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schema_1 = require("@sprucelabs/schema");
4
- const profileImageSchema = {
5
- id: 'profileImage',
6
- version: 'v2020_07_22',
7
- namespace: 'Spruce',
8
- name: 'Profile Image Sizes',
9
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
10
- description: 'Various sizes that a profile image comes in.',
11
- fields: {
12
- /** 60x60. */
13
- 'profile60': {
14
- label: '60x60',
15
- type: 'text',
16
- isRequired: true,
17
- options: undefined
18
- },
19
- /** 150x150. */
20
- 'profile150': {
21
- label: '150x150',
22
- type: 'text',
23
- isRequired: true,
24
- options: undefined
25
- },
26
- /** 60x60. */
27
- 'profile60@2x': {
28
- label: '60x60',
29
- type: 'text',
30
- isRequired: true,
31
- options: undefined
32
- },
33
- /** 150x150. */
34
- 'profile150@2x': {
35
- label: '150x150',
36
- type: 'text',
37
- isRequired: true,
38
- options: undefined
39
- },
40
- }
41
- };
42
- schema_1.SchemaRegistry.getInstance().trackSchema(profileImageSchema);
43
- exports.default = profileImageSchema;
@@ -1,3 +0,0 @@
1
- import { SpruceSchemas } from '../../core.schemas.types';
2
- declare const profileImageSchema: SpruceSchemas.Spruce.v2020_07_22.ProfileImageSchema;
3
- export default profileImageSchema;
@@ -1,41 +0,0 @@
1
- import { SchemaRegistry } from '@sprucelabs/schema';
2
- const profileImageSchema = {
3
- id: 'profileImage',
4
- version: 'v2020_07_22',
5
- namespace: 'Spruce',
6
- name: 'Profile Image Sizes',
7
- moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
8
- description: 'Various sizes that a profile image comes in.',
9
- fields: {
10
- /** 60x60. */
11
- 'profile60': {
12
- label: '60x60',
13
- type: 'text',
14
- isRequired: true,
15
- options: undefined
16
- },
17
- /** 150x150. */
18
- 'profile150': {
19
- label: '150x150',
20
- type: 'text',
21
- isRequired: true,
22
- options: undefined
23
- },
24
- /** 60x60. */
25
- 'profile60@2x': {
26
- label: '60x60',
27
- type: 'text',
28
- isRequired: true,
29
- options: undefined
30
- },
31
- /** 150x150. */
32
- 'profile150@2x': {
33
- label: '150x150',
34
- type: 'text',
35
- isRequired: true,
36
- options: undefined
37
- },
38
- }
39
- };
40
- SchemaRegistry.getInstance().trackSchema(profileImageSchema);
41
- export default profileImageSchema;