Skip to content

Commit 1ea7495

Browse files
chore: wip
1 parent 3159358 commit 1ea7495

File tree

18 files changed

+36
-36
lines changed

18 files changed

+36
-36
lines changed

storage/framework/core/orm/src/generate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,8 +869,8 @@ export async function generateModelString(
869869
private readonly hidden: Array<keyof ${modelName}JsonResponse> = ${hidden}
870870
private readonly fillable: Array<keyof ${modelName}JsonResponse> = ${fillable}
871871
private readonly guarded: Array<keyof ${modelName}JsonResponse> = ${guarded}
872-
protected attributes: Partial<${modelName}Type> = {}
873-
protected originalAttributes: Partial<${modelName}Type> = {}
872+
protected attributes: Partial<${modelName}JsonResponse> = {}
873+
protected originalAttributes: Partial<${modelName}JsonResponse> = {}
874874
${privateSoftDeletes}
875875
protected selectFromQuery: any
876876
protected withRelations: string[]

storage/framework/orm/src/models/AccessToken.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export class AccessTokenModel {
5555
private readonly hidden: Array<keyof AccessTokenJsonResponse> = []
5656
private readonly fillable: Array<keyof AccessTokenJsonResponse> = ['name', 'token', 'plain_text_token', 'abilities', 'uuid', 'team_id']
5757
private readonly guarded: Array<keyof AccessTokenJsonResponse> = []
58-
protected attributes: Partial<AccessTokenType> = {}
59-
protected originalAttributes: Partial<AccessTokenType> = {}
58+
protected attributes: Partial<AccessTokenJsonResponse> = {}
59+
protected originalAttributes: Partial<AccessTokenJsonResponse> = {}
6060

6161
protected selectFromQuery: any
6262
protected withRelations: string[]

storage/framework/orm/src/models/Activity.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export class ActivityModel {
5454
private readonly hidden: Array<keyof ActivityJsonResponse> = []
5555
private readonly fillable: Array<keyof ActivityJsonResponse> = ['title', 'description', 'address', 'latlng', 'info_source', 'were_detained', 'uuid']
5656
private readonly guarded: Array<keyof ActivityJsonResponse> = []
57-
protected attributes: Partial<ActivityType> = {}
58-
protected originalAttributes: Partial<ActivityType> = {}
57+
protected attributes: Partial<ActivityJsonResponse> = {}
58+
protected originalAttributes: Partial<ActivityJsonResponse> = {}
5959
private softDeletes = false
6060
protected selectFromQuery: any
6161
protected withRelations: string[]

storage/framework/orm/src/models/Deployment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export class DeploymentModel {
6060
private readonly hidden: Array<keyof DeploymentJsonResponse> = []
6161
private readonly fillable: Array<keyof DeploymentJsonResponse> = ['commit_sha', 'commit_message', 'branch', 'status', 'execution_time', 'deploy_script', 'terminal_output', 'uuid', 'user_id']
6262
private readonly guarded: Array<keyof DeploymentJsonResponse> = []
63-
protected attributes: Partial<DeploymentType> = {}
64-
protected originalAttributes: Partial<DeploymentType> = {}
63+
protected attributes: Partial<DeploymentJsonResponse> = {}
64+
protected originalAttributes: Partial<DeploymentJsonResponse> = {}
6565

6666
protected selectFromQuery: any
6767
protected withRelations: string[]

storage/framework/orm/src/models/Error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export class ErrorModel {
5151
private readonly hidden: Array<keyof ErrorJsonResponse> = []
5252
private readonly fillable: Array<keyof ErrorJsonResponse> = ['type', 'message', 'stack', 'status', 'additional_info', 'uuid']
5353
private readonly guarded: Array<keyof ErrorJsonResponse> = []
54-
protected attributes: Partial<ErrorType> = {}
55-
protected originalAttributes: Partial<ErrorType> = {}
54+
protected attributes: Partial<ErrorJsonResponse> = {}
55+
protected originalAttributes: Partial<ErrorJsonResponse> = {}
5656

5757
protected selectFromQuery: any
5858
protected withRelations: string[]

storage/framework/orm/src/models/FailedJob.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export class FailedJobModel {
5151
private readonly hidden: Array<keyof FailedJobJsonResponse> = []
5252
private readonly fillable: Array<keyof FailedJobJsonResponse> = ['connection', 'queue', 'payload', 'exception', 'failed_at', 'uuid']
5353
private readonly guarded: Array<keyof FailedJobJsonResponse> = []
54-
protected attributes: Partial<FailedJobType> = {}
55-
protected originalAttributes: Partial<FailedJobType> = {}
54+
protected attributes: Partial<FailedJobJsonResponse> = {}
55+
protected originalAttributes: Partial<FailedJobJsonResponse> = {}
5656

5757
protected selectFromQuery: any
5858
protected withRelations: string[]

storage/framework/orm/src/models/Job.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export class JobModel {
5151
private readonly hidden: Array<keyof JobJsonResponse> = []
5252
private readonly fillable: Array<keyof JobJsonResponse> = ['queue', 'payload', 'attempts', 'available_at', 'reserved_at', 'uuid']
5353
private readonly guarded: Array<keyof JobJsonResponse> = []
54-
protected attributes: Partial<JobType> = {}
55-
protected originalAttributes: Partial<JobType> = {}
54+
protected attributes: Partial<JobJsonResponse> = {}
55+
protected originalAttributes: Partial<JobJsonResponse> = {}
5656

5757
protected selectFromQuery: any
5858
protected withRelations: string[]

storage/framework/orm/src/models/PaymentMethod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export class PaymentMethodModel {
6565
private readonly hidden: Array<keyof PaymentMethodJsonResponse> = []
6666
private readonly fillable: Array<keyof PaymentMethodJsonResponse> = ['type', 'last_four', 'brand', 'exp_month', 'exp_year', 'is_default', 'provider_id', 'uuid', 'user_id']
6767
private readonly guarded: Array<keyof PaymentMethodJsonResponse> = []
68-
protected attributes: Partial<PaymentMethodType> = {}
69-
protected originalAttributes: Partial<PaymentMethodType> = {}
68+
protected attributes: Partial<PaymentMethodJsonResponse> = {}
69+
protected originalAttributes: Partial<PaymentMethodJsonResponse> = {}
7070

7171
protected selectFromQuery: any
7272
protected withRelations: string[]

storage/framework/orm/src/models/Post.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class PostModel {
5353
private readonly hidden: Array<keyof PostJsonResponse> = []
5454
private readonly fillable: Array<keyof PostJsonResponse> = ['title', 'body', 'uuid', 'user_id']
5555
private readonly guarded: Array<keyof PostJsonResponse> = []
56-
protected attributes: Partial<PostType> = {}
57-
protected originalAttributes: Partial<PostType> = {}
56+
protected attributes: Partial<PostJsonResponse> = {}
57+
protected originalAttributes: Partial<PostJsonResponse> = {}
5858

5959
protected selectFromQuery: any
6060
protected withRelations: string[]

storage/framework/orm/src/models/Product.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export class ProductModel {
5555
private readonly hidden: Array<keyof ProductJsonResponse> = []
5656
private readonly fillable: Array<keyof ProductJsonResponse> = ['name', 'description', 'key', 'unit_price', 'status', 'image', 'provider_id', 'uuid']
5757
private readonly guarded: Array<keyof ProductJsonResponse> = []
58-
protected attributes: Partial<ProductType> = {}
59-
protected originalAttributes: Partial<ProductType> = {}
58+
protected attributes: Partial<ProductJsonResponse> = {}
59+
protected originalAttributes: Partial<ProductJsonResponse> = {}
6060

6161
protected selectFromQuery: any
6262
protected withRelations: string[]

0 commit comments

Comments
 (0)