@ricado/api-client 2.3.22 → 2.3.23

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.
package/lib/index.d.ts CHANGED
@@ -1575,7 +1575,7 @@ declare module '@ricado/api-client/Controllers/TokenController' {
1575
1575
  * The user must have an account that has been created on RICADO. A valid Email Address and Password will be required.
1576
1576
  *
1577
1577
  * **API Key Authentication**
1578
- * A valid API Key and API Secret will be required. These can be created in the RICADO Developers App at developers.ricado.co.nz.
1578
+ * A valid API Key and API Secret will be required. These can be created in the RICADO Admin App at admin.ricado.co.nz.
1579
1579
  *
1580
1580
  * @static
1581
1581
  * @public
@@ -4338,6 +4338,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
4338
4338
  export { RejectBinWeightController };
4339
4339
  export { ShiftController };
4340
4340
  export { ShiftFocusMeetingController };
4341
+ export { ShiftGrowerChangeMeetingController };
4341
4342
  export { ShiftHourlyEntryController };
4342
4343
  export { ShiftQualitySummaryController };
4343
4344
  export { ShiftSummaryReportController };
@@ -4376,6 +4377,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
4376
4377
  import RejectBinWeightController from "@ricado/api-client/Controllers/Packhouse/Site/RejectBinWeightController";
4377
4378
  import ShiftController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftController";
4378
4379
  import ShiftFocusMeetingController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftFocusMeetingController";
4380
+ import ShiftGrowerChangeMeetingController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftGrowerChangeMeetingController";
4379
4381
  import ShiftHourlyEntryController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftHourlyEntryController";
4380
4382
  import ShiftQualitySummaryController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummaryController";
4381
4383
  import ShiftSummaryReportController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftSummaryReportController";
@@ -5952,6 +5954,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
5952
5954
  export { RejectBinScaleModel };
5953
5955
  export { RejectBinWeightModel };
5954
5956
  export { ShiftFocusMeetingModel };
5957
+ export { ShiftGrowerChangeMeetingModel };
5955
5958
  export { ShiftHourlyEntryModel };
5956
5959
  export { ShiftModel };
5957
5960
  export { ShiftQualitySummaryModel };
@@ -5990,6 +5993,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
5990
5993
  import RejectBinScaleModel from "@ricado/api-client/Models/Packhouse/Site/RejectBinScaleModel";
5991
5994
  import RejectBinWeightModel from "@ricado/api-client/Models/Packhouse/Site/RejectBinWeightModel";
5992
5995
  import ShiftFocusMeetingModel from "@ricado/api-client/Models/Packhouse/Site/ShiftFocusMeetingModel";
5996
+ import ShiftGrowerChangeMeetingModel from "@ricado/api-client/Models/Packhouse/Site/ShiftGrowerChangeMeetingModel";
5993
5997
  import ShiftHourlyEntryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftHourlyEntryModel";
5994
5998
  import ShiftModel from "@ricado/api-client/Models/Packhouse/Site/ShiftModel";
5995
5999
  import ShiftQualitySummaryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryModel";
@@ -17242,6 +17246,302 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftFocusMeetingC
17242
17246
  import ShiftFocusMeetingModel from "@ricado/api-client/Models/Packhouse/Site/ShiftFocusMeetingModel";
17243
17247
  }
17244
17248
 
17249
+ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftGrowerChangeMeetingController' {
17250
+ export default ShiftGrowerChangeMeetingController;
17251
+ /**
17252
+ * Controller Class for Shift Grower Change Meetings
17253
+ *
17254
+ * @class
17255
+ */
17256
+ class ShiftGrowerChangeMeetingController {
17257
+ /**
17258
+ * Retrieve a Shift Grower Change Meeting [GET /packhouse/sites/{siteId}/shift-grower-change-meetings/{id}]
17259
+ *
17260
+ * @static
17261
+ * @public
17262
+ * @param {number} siteId The Site ID
17263
+ * @param {string} id The Shift Grower Change Meeting ID
17264
+ * @return {Promise<ShiftGrowerChangeMeetingModel>}
17265
+ */
17266
+ static getOne(siteId: number, id: string): Promise<ShiftGrowerChangeMeetingModel>;
17267
+ /**
17268
+ * Update a Shift Grower Change Meeting [PATCH /packhouse/sites/{siteId}/shift-grower-change-meetings/{id}]
17269
+ *
17270
+ * @static
17271
+ * @public
17272
+ * @param {number} siteId The Site ID
17273
+ * @param {string} id The Shift Grower Change Meeting ID
17274
+ * @param {ShiftGrowerChangeMeetingController.UpdateData} updateData The Shift Grower Change Meeting Update Data
17275
+ * @return {Promise<ShiftGrowerChangeMeetingModel>}
17276
+ */
17277
+ static update(siteId: number, id: string, updateData: ShiftGrowerChangeMeetingController.UpdateData): Promise<ShiftGrowerChangeMeetingModel>;
17278
+ /**
17279
+ * Delete a Shift Grower Change Meeting [DELETE /packhouse/sites/{siteId}/shift-grower-change-meetings/{id}]
17280
+ *
17281
+ * @static
17282
+ * @public
17283
+ * @param {number} siteId The Site ID
17284
+ * @param {string} id The Shift Grower Change Meeting ID
17285
+ * @return {Promise<boolean>}
17286
+ */
17287
+ static delete(siteId: number, id: string): Promise<boolean>;
17288
+ /**
17289
+ * Retrieve Comments [GET /packhouse/sites/{siteId}/shift-grower-change-meetings/{id}/comments]
17290
+ *
17291
+ * Retrieves Comments for a Shift Grower Change Meeting
17292
+ *
17293
+ * @static
17294
+ * @public
17295
+ * @param {number} siteId The Site ID
17296
+ * @param {string} id The Shift Grower Change Meeting ID
17297
+ * @return {Promise<Array<ShiftGrowerChangeMeetingController.CommentItem>>}
17298
+ */
17299
+ static getComments(siteId: number, id: string): Promise<Array<ShiftGrowerChangeMeetingController.CommentItem>>;
17300
+ /**
17301
+ * Create a Comment [POST /packhouse/sites/{siteId}/shift-grower-change-meetings/{id}/comments]
17302
+ *
17303
+ * Create a Comment for a Shift Grower Change Meeting
17304
+ *
17305
+ * @static
17306
+ * @public
17307
+ * @param {number} siteId The Site ID
17308
+ * @param {string} id The Shift Grower Change Meeting ID
17309
+ * @param {string} content The Content of the New Comment
17310
+ * @return {Promise<ShiftGrowerChangeMeetingController.CommentItem>}
17311
+ */
17312
+ static createComment(siteId: number, id: string, content: string): Promise<ShiftGrowerChangeMeetingController.CommentItem>;
17313
+ /**
17314
+ * Retrieve a Comment [GET /packhouse/sites/{siteId}/shift-grower-change-meetings/{id}/comments/{commentId}]
17315
+ *
17316
+ * Retrieves Comments for a Shift Grower Change Meeting
17317
+ *
17318
+ * @static
17319
+ * @public
17320
+ * @param {number} siteId The Site ID
17321
+ * @param {string} id The Shift Grower Change Meeting ID
17322
+ * @param {string} commentId The Comment ID
17323
+ * @return {Promise<ShiftGrowerChangeMeetingController.CommentItem>}
17324
+ */
17325
+ static getOneComment(siteId: number, id: string, commentId: string): Promise<ShiftGrowerChangeMeetingController.CommentItem>;
17326
+ /**
17327
+ * Update a Comment [PATCH /packhouse/sites/{siteId}/shift-grower-change-meetings/{id}/comments/{commentId}]
17328
+ *
17329
+ * Update a Comment for a Shift Grower Change Meeting
17330
+ *
17331
+ * @static
17332
+ * @public
17333
+ * @param {number} siteId The Site ID
17334
+ * @param {string} id The Shift Grower Change Meeting ID
17335
+ * @param {string} commentId The Comment ID
17336
+ * @param {string} content The Updated Content for the Comment
17337
+ * @return {Promise<ShiftGrowerChangeMeetingController.CommentItem>}
17338
+ */
17339
+ static updateOneComment(siteId: number, id: string, commentId: string, content: string): Promise<ShiftGrowerChangeMeetingController.CommentItem>;
17340
+ /**
17341
+ * Delete a Comment [DELETE /packhouse/sites/{siteId}/shift-grower-change-meetings/{id}/comments/{commentId}]
17342
+ *
17343
+ * Delete a Comment for a Shift Grower Change Meeting
17344
+ *
17345
+ * @static
17346
+ * @public
17347
+ * @param {number} siteId The Site ID
17348
+ * @param {string} id The Shift Grower Change Meeting ID
17349
+ * @param {string} commentId The Comment ID
17350
+ * @return {Promise<boolean>}
17351
+ */
17352
+ static deleteOneComment(siteId: number, id: string, commentId: string): Promise<boolean>;
17353
+ /**
17354
+ * List all Shift Grower Change Meetings [GET /packhouse/sites/{siteId}/shift-grower-change-meetings]
17355
+ *
17356
+ * @static
17357
+ * @public
17358
+ * @param {number} siteId The Site ID
17359
+ * @param {ShiftGrowerChangeMeetingController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
17360
+ * @return {Promise<ShiftGrowerChangeMeetingModel[]>}
17361
+ */
17362
+ static getAll(siteId: number, queryParameters?: ShiftGrowerChangeMeetingController.GetAllQueryParameters | undefined): Promise<ShiftGrowerChangeMeetingModel[]>;
17363
+ /**
17364
+ * Create a Shift Grower Change Meeting [POST /packhouse/sites/{siteId}/shift-grower-change-meetings]
17365
+ *
17366
+ * @static
17367
+ * @public
17368
+ * @param {number} siteId The Site ID
17369
+ * @param {ShiftGrowerChangeMeetingController.CreateData} createData The Shift Grower Change Meeting Create Data
17370
+ * @return {Promise<ShiftGrowerChangeMeetingModel>}
17371
+ */
17372
+ static create(siteId: number, createData: ShiftGrowerChangeMeetingController.CreateData): Promise<ShiftGrowerChangeMeetingModel>;
17373
+ }
17374
+ namespace ShiftGrowerChangeMeetingController {
17375
+ /**
17376
+ * The Optional Query Parameters for the getAll Function
17377
+ */
17378
+ export type GetAllQueryParameters = {
17379
+ /**
17380
+ * The Packing Line ID this Grower Change Meeting is associated with
17381
+ */
17382
+ packingLineId?: string;
17383
+ /**
17384
+ * The Shift ID this Grower Change Meeting is asssociated with
17385
+ */
17386
+ shiftId?: string;
17387
+ /**
17388
+ * The Packrun ID this Grower Change Meeting relates to
17389
+ */
17390
+ packrunId?: string;
17391
+ /**
17392
+ * Filter by the Timestamp when Grower Change Meetings were Created. Results Greater than or Equal to Timestamp
17393
+ */
17394
+ createdTimestampBegin?: Date;
17395
+ /**
17396
+ * Filter by the Timestamp when Grower Change Meetings were Created. Results Less than or Equal to Timestamp
17397
+ */
17398
+ createdTimestampEnd?: Date;
17399
+ /**
17400
+ * Filter by the Timestamp when Grower Change Meetings were Scheduled to Begin. Results Greater than or Equal to Timestamp
17401
+ */
17402
+ scheduledTimestampBegin?: Date;
17403
+ /**
17404
+ * Filter by the Timestamp when Grower Change Meetings were Scheduled to Begin. Results Less than or Equal to Timestamp
17405
+ */
17406
+ scheduledTimestampEnd?: Date;
17407
+ /**
17408
+ * Filter by the Timestamp when Grower Change Meetings were Started. Results Greater than or Equal to Timestamp
17409
+ */
17410
+ startTimestampBegin?: Date;
17411
+ /**
17412
+ * Filter by the Timestamp when Grower Change Meetings were Started. Results Less than or Equal to Timestamp
17413
+ */
17414
+ startTimestampEnd?: Date;
17415
+ /**
17416
+ * Filter by the Timestamp when Grower Change Meetings were Completed. Results Greater than or Equal to Timestamp
17417
+ */
17418
+ finishTimestampBegin?: Date;
17419
+ /**
17420
+ * Filter by the Timestamp when Grower Change Meetings were Completed. Results Less than or Equal to Timestamp
17421
+ */
17422
+ finishTimestampEnd?: Date;
17423
+ /**
17424
+ * Filter by the Timestamp when Grower Change Meetings were last Updated. Results Greater than or Equal to Timestamp
17425
+ */
17426
+ updateTimestampBegin?: Date;
17427
+ /**
17428
+ * Filter by the Timestamp when Grower Change Meetings were last Updated. Results Less than or Equal to Timestamp
17429
+ */
17430
+ updateTimestampEnd?: Date;
17431
+ };
17432
+ /**
17433
+ * The Create Data for a Shift Grower Change Meeting
17434
+ */
17435
+ export type CreateData = {
17436
+ /**
17437
+ * The Packing Line ID this Grower Change Meeting is associated with
17438
+ */
17439
+ packingLineId: string;
17440
+ /**
17441
+ * The Shift ID this Grower Change Meeting is asssociated with
17442
+ */
17443
+ shiftId?: string;
17444
+ /**
17445
+ * When this Grower Change Meeting was Created
17446
+ */
17447
+ createdTimestamp?: Date;
17448
+ /**
17449
+ * When this Grower Change Meeting is Scheduled to Begin
17450
+ */
17451
+ scheduledTimestamp?: Date;
17452
+ /**
17453
+ * When this Grower Change Meeting was Started
17454
+ */
17455
+ startTimestamp?: Date | null;
17456
+ /**
17457
+ * When this Grower Change Meeting was Completed
17458
+ */
17459
+ finishTimestamp?: Date | null;
17460
+ /**
17461
+ * The Packrun ID this Grower Change Meeting relates to
17462
+ */
17463
+ packrunId: string;
17464
+ /**
17465
+ * An Optional Rating between 1 and 10 on how Useful the Grower Change Meeting was
17466
+ */
17467
+ usefulRating?: number | null;
17468
+ };
17469
+ /**
17470
+ * The Update Data for a Shift Grower Change Meeting
17471
+ */
17472
+ export type UpdateData = {
17473
+ /**
17474
+ * The Packing Line ID this Grower Change Meeting is associated with
17475
+ */
17476
+ packingLineId?: string;
17477
+ /**
17478
+ * When this Grower Change Meeting was Created
17479
+ */
17480
+ createdTimestamp?: Date;
17481
+ /**
17482
+ * When this Grower Change Meeting is Scheduled to Begin
17483
+ */
17484
+ scheduledTimestamp?: Date;
17485
+ /**
17486
+ * When this Grower Change Meeting was Started
17487
+ */
17488
+ startTimestamp?: Date | null;
17489
+ /**
17490
+ * When this Grower Change Meeting was Completed
17491
+ */
17492
+ finishTimestamp?: Date | null;
17493
+ /**
17494
+ * The Packrun ID this Grower Change Meeting relates to
17495
+ */
17496
+ packrunId?: string;
17497
+ /**
17498
+ * An Optional Rating between 1 and 10 on how Useful the Grower Change Meeting was
17499
+ */
17500
+ usefulRating?: number | null;
17501
+ };
17502
+ /**
17503
+ * A **UserAccount** Type
17504
+ */
17505
+ export type UserAccount = {
17506
+ /**
17507
+ * The User Account ID
17508
+ */
17509
+ id: string | null;
17510
+ /**
17511
+ * The User's First Name
17512
+ */
17513
+ firstName: string | null;
17514
+ /**
17515
+ * The User's Last Name
17516
+ */
17517
+ lastName: string | null;
17518
+ };
17519
+ /**
17520
+ * A **CommentItem** Type
17521
+ */
17522
+ export type CommentItem = {
17523
+ /**
17524
+ * The Comment ID
17525
+ */
17526
+ id: string;
17527
+ userAccount: UserAccount;
17528
+ /**
17529
+ * The Content of the Comment
17530
+ */
17531
+ content: string | null;
17532
+ /**
17533
+ * When the Comment was Created
17534
+ */
17535
+ createdTimestamp: Date | null;
17536
+ /**
17537
+ * When the Comment was last Updated
17538
+ */
17539
+ updatedTimestamp: Date | null;
17540
+ };
17541
+ }
17542
+ import ShiftGrowerChangeMeetingModel from "@ricado/api-client/Models/Packhouse/Site/ShiftGrowerChangeMeetingModel";
17543
+ }
17544
+
17245
17545
  declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftHourlyEntryController' {
17246
17546
  export default ShiftHourlyEntryController;
17247
17547
  /**
@@ -23865,6 +24165,130 @@ declare module '@ricado/api-client/Models/Packhouse/Site/ShiftFocusMeetingModel'
23865
24165
  import BaseModel from "@ricado/api-client/Models/BaseModel";
23866
24166
  }
23867
24167
 
24168
+ declare module '@ricado/api-client/Models/Packhouse/Site/ShiftGrowerChangeMeetingModel' {
24169
+ export default ShiftGrowerChangeMeetingModel;
24170
+ /**
24171
+ * Model Class for a Shift Grower Change Meeting
24172
+ *
24173
+ * @class
24174
+ * @hideconstructor
24175
+ * @extends BaseModel
24176
+ */
24177
+ class ShiftGrowerChangeMeetingModel extends BaseModel {
24178
+ /**
24179
+ * Create a new **ShiftGrowerChangeMeetingModel** from a JSON Object or JSON String
24180
+ *
24181
+ * @static
24182
+ * @public
24183
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
24184
+ * @param {number} siteId The Site ID associated with this Shift Grower Change Meeting
24185
+ * @return {ShiftGrowerChangeMeetingModel}
24186
+ */
24187
+ static fromJSON(json: {
24188
+ [x: string]: any;
24189
+ } | string, siteId: number): ShiftGrowerChangeMeetingModel;
24190
+ /**
24191
+ * ShiftGrowerChangeMeetingModel Constructor
24192
+ *
24193
+ * @protected
24194
+ * @param {number} siteId The Site ID associated with this Shift Grower Change Meeting
24195
+ */
24196
+ protected constructor();
24197
+ /**
24198
+ * The Shift Grower Change Meeting ID
24199
+ *
24200
+ * @type {string}
24201
+ * @public
24202
+ */
24203
+ id: string;
24204
+ /**
24205
+ * The Packing Line ID this Grower Change Meeting is associated with
24206
+ *
24207
+ * @type {string}
24208
+ * @public
24209
+ */
24210
+ packingLineId: string;
24211
+ /**
24212
+ * The Shift ID this Grower Change Meeting is asssociated with
24213
+ *
24214
+ * @type {string}
24215
+ * @public
24216
+ */
24217
+ shiftId: string;
24218
+ /**
24219
+ * When this Grower Change Meeting was Created
24220
+ *
24221
+ * @type {Date}
24222
+ * @public
24223
+ */
24224
+ createdTimestamp: Date;
24225
+ /**
24226
+ * When this Grower Change Meeting is Scheduled to Begin
24227
+ *
24228
+ * @type {Date}
24229
+ * @public
24230
+ */
24231
+ scheduledTimestamp: Date;
24232
+ /**
24233
+ * When this Grower Change Meeting was Started
24234
+ *
24235
+ * @type {?Date}
24236
+ * @public
24237
+ */
24238
+ startTimestamp: Date | null;
24239
+ /**
24240
+ * When this Grower Change Meeting was Completed
24241
+ *
24242
+ * @type {?Date}
24243
+ * @public
24244
+ */
24245
+ finishTimestamp: Date | null;
24246
+ /**
24247
+ * The Packrun ID this Grower Change Meeting relates to
24248
+ *
24249
+ * @type {string}
24250
+ * @public
24251
+ */
24252
+ packrunId: string;
24253
+ /**
24254
+ * An Optional Rating between 1 and 10 on how Useful the Grower Change Meeting was
24255
+ *
24256
+ * @type {?number}
24257
+ * @public
24258
+ */
24259
+ usefulRating: number | null;
24260
+ /**
24261
+ * The Status of this Grower Change Meeting
24262
+ *
24263
+ * @type {string}
24264
+ * @public
24265
+ */
24266
+ status: string;
24267
+ /**
24268
+ * Whether the Shift Grower Change Meeting has been deleted
24269
+ *
24270
+ * @type {boolean}
24271
+ * @public
24272
+ */
24273
+ deleted: boolean;
24274
+ /**
24275
+ * When the Shift Grower Change Meeting was last updated
24276
+ *
24277
+ * @type {Date}
24278
+ * @public
24279
+ */
24280
+ updateTimestamp: Date;
24281
+ /**
24282
+ * The Site ID associated with this Shift Grower Change Meeting
24283
+ *
24284
+ * @type {number}
24285
+ * @public
24286
+ */
24287
+ siteId: number;
24288
+ }
24289
+ import BaseModel from "@ricado/api-client/Models/BaseModel";
24290
+ }
24291
+
23868
24292
  declare module '@ricado/api-client/Models/Packhouse/Site/ShiftHourlyEntryModel' {
23869
24293
  export default ShiftHourlyEntryModel;
23870
24294
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.3.22",
3
+ "version": "2.3.23",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"