Comparing version 5.10.2 to 5.10.3
@@ -82,4 +82,5 @@ "use strict"; | ||
jsonKey: 'job_status_id', | ||
readOnly: true, | ||
}), metadata: attributes_1.default.Object({ | ||
modelKey: 'metadata', | ||
}) }); |
@@ -70,2 +70,3 @@ import RestfulModel, { SaveCallback } from './restful-model'; | ||
source?: string; | ||
jobStatusId?: string; | ||
save(params?: {} | SaveCallback, callback?: SaveCallback): Promise<this>; | ||
@@ -72,0 +73,0 @@ getPicture(params?: { |
@@ -245,2 +245,6 @@ "use strict"; | ||
modelKey: 'source', | ||
}), jobStatusId: attributes_1.default.String({ | ||
modelKey: 'jobStatusId', | ||
jsonKey: 'job_status_id', | ||
readOnly: true, | ||
}) }); |
@@ -5,2 +5,3 @@ import RestfulModel, { SaveCallback } from './restful-model'; | ||
name?: string; | ||
jobStatusId?: string; | ||
saveRequestBody(): { | ||
@@ -7,0 +8,0 @@ [key: string]: any; |
@@ -58,2 +58,6 @@ "use strict"; | ||
jsonKey: 'display_name', | ||
}), jobStatusId: attributes_1.default.String({ | ||
modelKey: 'jobStatusId', | ||
jsonKey: 'job_status_id', | ||
readOnly: true, | ||
}) }); | ||
@@ -60,0 +64,0 @@ var Label = /** @class */ (function (_super) { |
import RestfulModel from './restful-model'; | ||
import Message from './message'; | ||
export default class JobStatus extends RestfulModel { | ||
@@ -7,2 +8,4 @@ action?: string; | ||
status?: string; | ||
originalData?: Message; | ||
isSuccessful(): boolean; | ||
} |
@@ -37,2 +37,6 @@ "use strict"; | ||
} | ||
// Returns the status of a job as a boolean | ||
JobStatus.prototype.isSuccessful = function () { | ||
return this.status === 'successful'; | ||
}; | ||
return JobStatus; | ||
@@ -44,10 +48,18 @@ }(restful_model_1.default)); | ||
modelKey: 'action', | ||
readOnly: true, | ||
}), createdAt: attributes_1.default.DateTime({ | ||
modelKey: 'createdAt', | ||
jsonKey: 'created_at', | ||
readOnly: true, | ||
}), jobStatusId: attributes_1.default.String({ | ||
modelKey: 'jobStatusId', | ||
jsonKey: 'job_status_id', | ||
readOnly: true, | ||
}), status: attributes_1.default.String({ | ||
modelKey: 'status', | ||
readOnly: true, | ||
}), originalData: attributes_1.default.Object({ | ||
modelKey: 'originalData', | ||
jsonKey: 'original_data', | ||
readOnly: true, | ||
}) }); |
@@ -28,2 +28,3 @@ import RestfulModel, { SaveCallback } from './restful-model'; | ||
failures?: any; | ||
jobStatusId?: string; | ||
participants(): EmailParticipant[]; | ||
@@ -30,0 +31,0 @@ fileIds(): (string | undefined)[]; |
@@ -157,2 +157,6 @@ "use strict"; | ||
modelKey: 'headers', | ||
}), jobStatusId: attributes_1.default.String({ | ||
modelKey: 'jobStatusId', | ||
jsonKey: 'job_status_id', | ||
readOnly: true, | ||
}) }); |
@@ -35,2 +35,3 @@ import NylasConnection from './nylas-connection'; | ||
state?: string; | ||
provider?: string; | ||
scopes?: string[]; | ||
@@ -37,0 +38,0 @@ }): string; |
@@ -173,2 +173,5 @@ "use strict"; | ||
} | ||
if (options.provider != null) { | ||
url += "&provider=" + options.provider; | ||
} | ||
return url; | ||
@@ -175,0 +178,0 @@ }; |
{ | ||
"name": "nylas", | ||
"version": "5.10.2", | ||
"version": "5.10.3", | ||
"description": "A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.", | ||
@@ -5,0 +5,0 @@ "main": "lib/nylas.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
244742
6186