@earbug/db-models 0.0.32 → 0.0.33

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.
@@ -9,10 +9,15 @@ export interface RadioShowMediaAttributes {
9
9
  approved?: boolean;
10
10
  id: string;
11
11
  createDate: Date;
12
+ description?: string;
13
+ cropInstructions?: string;
14
+ deleted?: boolean;
15
+ sourceS3Key?: string;
16
+ isAppRecorded?: boolean;
12
17
  }
13
18
  export type RadioShowMediaPk = "id";
14
19
  export type RadioShowMediaId = RadioShowMedia[RadioShowMediaPk];
15
- export type RadioShowMediaOptionalAttributes = "originalMediaType" | "s3VideoUrl" | "approved" | "id" | "createDate";
20
+ export type RadioShowMediaOptionalAttributes = "originalMediaType" | "s3VideoUrl" | "approved" | "id" | "createDate" | "description" | "cropInstructions" | "deleted" | "sourceS3Key" | "isAppRecorded";
16
21
  export type RadioShowMediaCreationAttributes = Optional<RadioShowMediaAttributes, RadioShowMediaOptionalAttributes>;
17
22
  export declare class RadioShowMedia extends Model<RadioShowMediaAttributes, RadioShowMediaCreationAttributes> implements RadioShowMediaAttributes {
18
23
  radioShowId: string;
@@ -22,6 +27,11 @@ export declare class RadioShowMedia extends Model<RadioShowMediaAttributes, Radi
22
27
  approved?: boolean;
23
28
  id: string;
24
29
  createDate: Date;
30
+ description?: string;
31
+ cropInstructions?: string;
32
+ deleted?: boolean;
33
+ sourceS3Key?: string;
34
+ isAppRecorded?: boolean;
25
35
  radioShow: RadioShow;
26
36
  getRadioShow: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
27
37
  setRadioShow: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
@@ -68,6 +68,29 @@ class RadioShowMedia extends sequelize_1.Model {
68
68
  allowNull: false,
69
69
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
70
70
  field: 'create_date'
71
+ },
72
+ description: {
73
+ type: sequelize_1.DataTypes.TEXT,
74
+ allowNull: true
75
+ },
76
+ cropInstructions: {
77
+ type: sequelize_1.DataTypes.TEXT,
78
+ allowNull: true,
79
+ field: 'crop_instructions'
80
+ },
81
+ deleted: {
82
+ type: sequelize_1.DataTypes.BOOLEAN,
83
+ allowNull: true
84
+ },
85
+ sourceS3Key: {
86
+ type: sequelize_1.DataTypes.TEXT,
87
+ allowNull: true,
88
+ field: 'source_s3_key'
89
+ },
90
+ isAppRecorded: {
91
+ type: sequelize_1.DataTypes.BOOLEAN,
92
+ allowNull: true,
93
+ field: 'is_app_recorded'
71
94
  }
72
95
  }, {
73
96
  sequelize,
@@ -10,10 +10,11 @@ export interface RadioShowPlacementAttributes {
10
10
  startTime?: string;
11
11
  endTime?: string;
12
12
  id: string;
13
+ deleted?: boolean;
13
14
  }
14
15
  export type RadioShowPlacementPk = "id";
15
16
  export type RadioShowPlacementId = RadioShowPlacement[RadioShowPlacementPk];
16
- export type RadioShowPlacementOptionalAttributes = "canonTrackId" | "radioShowMediaId" | "startTime" | "endTime" | "id";
17
+ export type RadioShowPlacementOptionalAttributes = "canonTrackId" | "radioShowMediaId" | "startTime" | "endTime" | "id" | "deleted";
17
18
  export type RadioShowPlacementCreationAttributes = Optional<RadioShowPlacementAttributes, RadioShowPlacementOptionalAttributes>;
18
19
  export declare class RadioShowPlacement extends Model<RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes> implements RadioShowPlacementAttributes {
19
20
  radioShowId: string;
@@ -23,6 +24,7 @@ export declare class RadioShowPlacement extends Model<RadioShowPlacementAttribut
23
24
  startTime?: string;
24
25
  endTime?: string;
25
26
  id: string;
27
+ deleted?: boolean;
26
28
  canonTrack: CanonTrack;
27
29
  getCanonTrack: Sequelize.BelongsToGetAssociationMixin<CanonTrack>;
28
30
  setCanonTrack: Sequelize.BelongsToSetAssociationMixin<CanonTrack, CanonTrackId>;
@@ -48,6 +48,10 @@ class RadioShowPlacement extends sequelize_1.Model {
48
48
  allowNull: false,
49
49
  defaultValue: sequelize_1.DataTypes.UUIDV4,
50
50
  primaryKey: true
51
+ },
52
+ deleted: {
53
+ type: sequelize_1.DataTypes.BOOLEAN,
54
+ allowNull: true
51
55
  }
52
56
  }, {
53
57
  sequelize,
@@ -10,11 +10,16 @@ export interface RadioShowMediaAttributes {
10
10
  approved?: boolean;
11
11
  id: string;
12
12
  createDate: Date;
13
+ description?: string;
14
+ cropInstructions?: string;
15
+ deleted?: boolean;
16
+ sourceS3Key?: string;
17
+ isAppRecorded?: boolean;
13
18
  }
14
19
 
15
20
  export type RadioShowMediaPk = "id";
16
21
  export type RadioShowMediaId = RadioShowMedia[RadioShowMediaPk];
17
- export type RadioShowMediaOptionalAttributes = "originalMediaType" | "s3VideoUrl" | "approved" | "id" | "createDate";
22
+ export type RadioShowMediaOptionalAttributes = "originalMediaType" | "s3VideoUrl" | "approved" | "id" | "createDate" | "description" | "cropInstructions" | "deleted" | "sourceS3Key" | "isAppRecorded";
18
23
  export type RadioShowMediaCreationAttributes = Optional<RadioShowMediaAttributes, RadioShowMediaOptionalAttributes>;
19
24
 
20
25
  export class RadioShowMedia extends Model<RadioShowMediaAttributes, RadioShowMediaCreationAttributes> implements RadioShowMediaAttributes {
@@ -25,6 +30,11 @@ export class RadioShowMedia extends Model<RadioShowMediaAttributes, RadioShowMed
25
30
  approved?: boolean;
26
31
  id!: string;
27
32
  createDate!: Date;
33
+ description?: string;
34
+ cropInstructions?: string;
35
+ deleted?: boolean;
36
+ sourceS3Key?: string;
37
+ isAppRecorded?: boolean;
28
38
 
29
39
  // RadioShowMedia belongsTo RadioShow via radioShowId
30
40
  radioShow!: RadioShow;
@@ -73,6 +83,29 @@ export class RadioShowMedia extends Model<RadioShowMediaAttributes, RadioShowMed
73
83
  allowNull: false,
74
84
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
75
85
  field: 'create_date'
86
+ },
87
+ description: {
88
+ type: DataTypes.TEXT,
89
+ allowNull: true
90
+ },
91
+ cropInstructions: {
92
+ type: DataTypes.TEXT,
93
+ allowNull: true,
94
+ field: 'crop_instructions'
95
+ },
96
+ deleted: {
97
+ type: DataTypes.BOOLEAN,
98
+ allowNull: true
99
+ },
100
+ sourceS3Key: {
101
+ type: DataTypes.TEXT,
102
+ allowNull: true,
103
+ field: 'source_s3_key'
104
+ },
105
+ isAppRecorded: {
106
+ type: DataTypes.BOOLEAN,
107
+ allowNull: true,
108
+ field: 'is_app_recorded'
76
109
  }
77
110
  }, {
78
111
  sequelize,
@@ -11,11 +11,12 @@ export interface RadioShowPlacementAttributes {
11
11
  startTime?: string;
12
12
  endTime?: string;
13
13
  id: string;
14
+ deleted?: boolean;
14
15
  }
15
16
 
16
17
  export type RadioShowPlacementPk = "id";
17
18
  export type RadioShowPlacementId = RadioShowPlacement[RadioShowPlacementPk];
18
- export type RadioShowPlacementOptionalAttributes = "canonTrackId" | "radioShowMediaId" | "startTime" | "endTime" | "id";
19
+ export type RadioShowPlacementOptionalAttributes = "canonTrackId" | "radioShowMediaId" | "startTime" | "endTime" | "id" | "deleted";
19
20
  export type RadioShowPlacementCreationAttributes = Optional<RadioShowPlacementAttributes, RadioShowPlacementOptionalAttributes>;
20
21
 
21
22
  export class RadioShowPlacement extends Model<RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes> implements RadioShowPlacementAttributes {
@@ -26,6 +27,7 @@ export class RadioShowPlacement extends Model<RadioShowPlacementAttributes, Radi
26
27
  startTime?: string;
27
28
  endTime?: string;
28
29
  id!: string;
30
+ deleted?: boolean;
29
31
 
30
32
  // RadioShowPlacement belongsTo CanonTrack via canonTrackId
31
33
  canonTrack!: CanonTrack;
@@ -83,6 +85,10 @@ export class RadioShowPlacement extends Model<RadioShowPlacementAttributes, Radi
83
85
  allowNull: false,
84
86
  defaultValue: DataTypes.UUIDV4,
85
87
  primaryKey: true
88
+ },
89
+ deleted: {
90
+ type: DataTypes.BOOLEAN,
91
+ allowNull: true
86
92
  }
87
93
  }, {
88
94
  sequelize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earbug/db-models",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {