@ricado/api-client 2.3.6 → 2.3.7
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/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinCardController.js +875 -0
- package/lib/Controllers/Packhouse/Site/index.js +3 -0
- package/lib/Models/Packhouse/Site/BinTipBinCardModel.js +235 -0
- package/lib/Models/Packhouse/Site/index.js +3 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +321 -0
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinCardController.js +1006 -0
- package/src/Controllers/Packhouse/Site/index.js +2 -0
- package/src/Models/Packhouse/Site/BinTipBinCardModel.js +215 -0
- package/src/Models/Packhouse/Site/index.js +2 -0
- package/src/PackageVersion.js +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @namespace Controllers.Packhouse.Site
|
|
9
9
|
*/
|
|
10
|
+
import BinTipBinCardController from './BinTipBinCardController';
|
|
10
11
|
import BinTipBinController from './BinTipBinController';
|
|
11
12
|
import BinTipWeightController from './BinTipWeightController';
|
|
12
13
|
import CompacSizerBatchController from './CompacSizerBatchController';
|
|
@@ -35,6 +36,7 @@ import SoftSortPackrunSummaryController from './SoftSortPackrunSummaryController
|
|
|
35
36
|
import VarietyController from './VarietyController';
|
|
36
37
|
|
|
37
38
|
const Site = {
|
|
39
|
+
BinTipBinCardController,
|
|
38
40
|
BinTipBinController,
|
|
39
41
|
BinTipWeightController,
|
|
40
42
|
CompacSizerBatchController,
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
3
|
+
*
|
|
4
|
+
* Do Not Edit this File Manually!
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Model Class for a Bin Tip Bin Card
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
* @extends BaseModel
|
|
15
|
+
*/
|
|
16
|
+
class BinTipBinCardModel extends BaseModel
|
|
17
|
+
{
|
|
18
|
+
/**
|
|
19
|
+
* BinTipBinCardModel Constructor
|
|
20
|
+
*
|
|
21
|
+
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Bin Card
|
|
23
|
+
*/
|
|
24
|
+
constructor(siteId)
|
|
25
|
+
{
|
|
26
|
+
super();
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The Bin Tip Bin Card ID
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
this.id = "";
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Bin Tip ID associated with this Bin Card
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
this.binTipId = "";
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Bin ID associated with this Bin Card
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
this.binTipBinId = "";
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* When this Bin Card was Created
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
this.createdTimestamp = new Date();
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* A Base64 Encoded Image of the Bin Card
|
|
62
|
+
*
|
|
63
|
+
* @type {?string}
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
this.image = null;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether the Bin Tip Bin Card has been deleted
|
|
70
|
+
*
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
this.deleted = false;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* When the Bin Tip Bin Card was last updated
|
|
78
|
+
*
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.updateTimestamp = new Date();
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The Site ID associated with this Bin Tip Bin Card
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.siteId = siteId;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Create a new **BinTipBinCardModel** from a JSON Object or JSON String
|
|
95
|
+
*
|
|
96
|
+
* @static
|
|
97
|
+
* @public
|
|
98
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
99
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Bin Card
|
|
100
|
+
* @return {BinTipBinCardModel}
|
|
101
|
+
*/
|
|
102
|
+
static fromJSON(json, siteId)
|
|
103
|
+
{
|
|
104
|
+
let model = new BinTipBinCardModel(siteId);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The JSON Object
|
|
108
|
+
*
|
|
109
|
+
* @type {Object<string, any>}
|
|
110
|
+
*/
|
|
111
|
+
let jsonObject = {};
|
|
112
|
+
|
|
113
|
+
if(typeof json === 'string')
|
|
114
|
+
{
|
|
115
|
+
jsonObject = JSON.parse(json);
|
|
116
|
+
}
|
|
117
|
+
else if(typeof json === 'object')
|
|
118
|
+
{
|
|
119
|
+
jsonObject = json;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if('id' in jsonObject)
|
|
123
|
+
{
|
|
124
|
+
model.id = (function(){
|
|
125
|
+
if(typeof jsonObject['id'] !== 'string')
|
|
126
|
+
{
|
|
127
|
+
return String(jsonObject['id']);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return jsonObject['id'];
|
|
131
|
+
}());
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if('binTipId' in jsonObject)
|
|
135
|
+
{
|
|
136
|
+
model.binTipId = (function(){
|
|
137
|
+
if(typeof jsonObject['binTipId'] !== 'string')
|
|
138
|
+
{
|
|
139
|
+
return String(jsonObject['binTipId']);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return jsonObject['binTipId'];
|
|
143
|
+
}());
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if('binTipBinId' in jsonObject)
|
|
147
|
+
{
|
|
148
|
+
model.binTipBinId = (function(){
|
|
149
|
+
if(typeof jsonObject['binTipBinId'] !== 'string')
|
|
150
|
+
{
|
|
151
|
+
return String(jsonObject['binTipBinId']);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return jsonObject['binTipBinId'];
|
|
155
|
+
}());
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if('createdTimestamp' in jsonObject)
|
|
159
|
+
{
|
|
160
|
+
model.createdTimestamp = (function(){
|
|
161
|
+
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
162
|
+
{
|
|
163
|
+
return new Date(String(jsonObject['createdTimestamp']));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return new Date(jsonObject['createdTimestamp']);
|
|
167
|
+
}());
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if('image' in jsonObject)
|
|
171
|
+
{
|
|
172
|
+
model.image = (function(){
|
|
173
|
+
if(jsonObject['image'] === null)
|
|
174
|
+
{
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if(typeof jsonObject['image'] !== 'string')
|
|
179
|
+
{
|
|
180
|
+
return String(jsonObject['image']);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return jsonObject['image'];
|
|
184
|
+
}());
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if('deleted' in jsonObject)
|
|
188
|
+
{
|
|
189
|
+
model.deleted = (function(){
|
|
190
|
+
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
191
|
+
{
|
|
192
|
+
return Boolean(jsonObject['deleted']);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return jsonObject['deleted'];
|
|
196
|
+
}());
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if('updateTimestamp' in jsonObject)
|
|
200
|
+
{
|
|
201
|
+
model.updateTimestamp = (function(){
|
|
202
|
+
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
203
|
+
{
|
|
204
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
208
|
+
}());
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return model;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export default BinTipBinCardModel;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @namespace Models.Packhouse.Site
|
|
9
9
|
*/
|
|
10
|
+
import BinTipBinCardModel from './BinTipBinCardModel';
|
|
10
11
|
import BinTipBinModel from './BinTipBinModel';
|
|
11
12
|
import BinTipWeightModel from './BinTipWeightModel';
|
|
12
13
|
import CompacSizerBatchModel from './CompacSizerBatchModel';
|
|
@@ -35,6 +36,7 @@ import SoftSortPackrunSummaryModel from './SoftSortPackrunSummaryModel';
|
|
|
35
36
|
import VarietyModel from './VarietyModel';
|
|
36
37
|
|
|
37
38
|
const Site = {
|
|
39
|
+
BinTipBinCardModel,
|
|
38
40
|
BinTipBinModel,
|
|
39
41
|
BinTipWeightModel,
|
|
40
42
|
CompacSizerBatchModel,
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '2.3.
|
|
2
|
+
export const version = '2.3.7';
|