@aldiokta/protocgen 1.0.25 → 1.0.26
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/package.json +1 -1
- package/prisca/v1/core/workflow/workflow_pb.js +319 -211
package/package.json
CHANGED
|
@@ -45,6 +45,7 @@ goog.exportSymbol('proto.UpdateWorkflowResponse', null, global);
|
|
|
45
45
|
goog.exportSymbol('proto.Workflow', null, global);
|
|
46
46
|
goog.exportSymbol('proto.WorkflowCondition', null, global);
|
|
47
47
|
goog.exportSymbol('proto.WorkflowCriteria', null, global);
|
|
48
|
+
goog.exportSymbol('proto.WorkflowDeadline', null, global);
|
|
48
49
|
goog.exportSymbol('proto.WorkflowSteps', null, global);
|
|
49
50
|
goog.exportSymbol('proto.WorkflowStepsRecipients', null, global);
|
|
50
51
|
/**
|
|
@@ -131,6 +132,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
131
132
|
*/
|
|
132
133
|
proto.WorkflowSteps.displayName = 'proto.WorkflowSteps';
|
|
133
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Generated by JsPbCodeGenerator.
|
|
137
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
138
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
139
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
140
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
141
|
+
* valid.
|
|
142
|
+
* @extends {jspb.Message}
|
|
143
|
+
* @constructor
|
|
144
|
+
*/
|
|
145
|
+
proto.WorkflowDeadline = function(opt_data) {
|
|
146
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
147
|
+
};
|
|
148
|
+
goog.inherits(proto.WorkflowDeadline, jspb.Message);
|
|
149
|
+
if (goog.DEBUG && !COMPILED) {
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
* @override
|
|
153
|
+
*/
|
|
154
|
+
proto.WorkflowDeadline.displayName = 'proto.WorkflowDeadline';
|
|
155
|
+
}
|
|
134
156
|
/**
|
|
135
157
|
* Generated by JsPbCodeGenerator.
|
|
136
158
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1762,7 +1784,7 @@ proto.WorkflowCriteria.prototype.setUpdatedAt = function(value) {
|
|
|
1762
1784
|
* @private {!Array<number>}
|
|
1763
1785
|
* @const
|
|
1764
1786
|
*/
|
|
1765
|
-
proto.WorkflowSteps.repeatedFields_ = [
|
|
1787
|
+
proto.WorkflowSteps.repeatedFields_ = [13,16,17];
|
|
1766
1788
|
|
|
1767
1789
|
|
|
1768
1790
|
|
|
@@ -1807,12 +1829,10 @@ requiredAction: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
|
1807
1829
|
redefineTaskTitle: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
1808
1830
|
workflowRefId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
1809
1831
|
isCompletedBy: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
createdAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
1815
|
-
updatedAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
1832
|
+
deadlinesList: jspb.Message.toObjectList(msg.getDeadlinesList(),
|
|
1833
|
+
proto.WorkflowDeadline.toObject, includeInstance),
|
|
1834
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
1835
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
1816
1836
|
workflowConditionList: jspb.Message.toObjectList(msg.getWorkflowConditionList(),
|
|
1817
1837
|
proto.WorkflowCondition.toObject, includeInstance),
|
|
1818
1838
|
workflowStepsRecipientsList: jspb.Message.toObjectList(msg.getWorkflowStepsRecipientsList(),
|
|
@@ -1902,35 +1922,24 @@ proto.WorkflowSteps.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1902
1922
|
msg.setIsCompletedBy(value);
|
|
1903
1923
|
break;
|
|
1904
1924
|
case 13:
|
|
1905
|
-
var value =
|
|
1906
|
-
|
|
1925
|
+
var value = new proto.WorkflowDeadline;
|
|
1926
|
+
reader.readMessage(value,proto.WorkflowDeadline.deserializeBinaryFromReader);
|
|
1927
|
+
msg.addDeadlines(value);
|
|
1907
1928
|
break;
|
|
1908
1929
|
case 14:
|
|
1909
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1910
|
-
msg.setDeadlineUnit(value);
|
|
1911
|
-
break;
|
|
1912
|
-
case 15:
|
|
1913
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
1914
|
-
msg.setDeadlineUnitCounter(value);
|
|
1915
|
-
break;
|
|
1916
|
-
case 16:
|
|
1917
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1918
|
-
msg.setDeadlineEffect(value);
|
|
1919
|
-
break;
|
|
1920
|
-
case 17:
|
|
1921
1930
|
var value = /** @type {string} */ (reader.readString());
|
|
1922
1931
|
msg.setCreatedAt(value);
|
|
1923
1932
|
break;
|
|
1924
|
-
case
|
|
1933
|
+
case 15:
|
|
1925
1934
|
var value = /** @type {string} */ (reader.readString());
|
|
1926
1935
|
msg.setUpdatedAt(value);
|
|
1927
1936
|
break;
|
|
1928
|
-
case
|
|
1937
|
+
case 16:
|
|
1929
1938
|
var value = new proto.WorkflowCondition;
|
|
1930
1939
|
reader.readMessage(value,proto.WorkflowCondition.deserializeBinaryFromReader);
|
|
1931
1940
|
msg.addWorkflowCondition(value);
|
|
1932
1941
|
break;
|
|
1933
|
-
case
|
|
1942
|
+
case 17:
|
|
1934
1943
|
var value = new proto.WorkflowStepsRecipients;
|
|
1935
1944
|
reader.readMessage(value,proto.WorkflowStepsRecipients.deserializeBinaryFromReader);
|
|
1936
1945
|
msg.addWorkflowStepsRecipients(value);
|
|
@@ -2048,52 +2057,32 @@ proto.WorkflowSteps.serializeBinaryToWriter = function(message, writer) {
|
|
|
2048
2057
|
f
|
|
2049
2058
|
);
|
|
2050
2059
|
}
|
|
2051
|
-
f = message.
|
|
2060
|
+
f = message.getDeadlinesList();
|
|
2052
2061
|
if (f.length > 0) {
|
|
2053
|
-
writer.
|
|
2062
|
+
writer.writeRepeatedMessage(
|
|
2054
2063
|
13,
|
|
2055
|
-
f
|
|
2056
|
-
|
|
2057
|
-
}
|
|
2058
|
-
f = message.getDeadlineUnit();
|
|
2059
|
-
if (f.length > 0) {
|
|
2060
|
-
writer.writeString(
|
|
2061
|
-
14,
|
|
2062
|
-
f
|
|
2063
|
-
);
|
|
2064
|
-
}
|
|
2065
|
-
f = message.getDeadlineUnitCounter();
|
|
2066
|
-
if (f !== 0) {
|
|
2067
|
-
writer.writeInt64(
|
|
2068
|
-
15,
|
|
2069
|
-
f
|
|
2070
|
-
);
|
|
2071
|
-
}
|
|
2072
|
-
f = message.getDeadlineEffect();
|
|
2073
|
-
if (f.length > 0) {
|
|
2074
|
-
writer.writeString(
|
|
2075
|
-
16,
|
|
2076
|
-
f
|
|
2064
|
+
f,
|
|
2065
|
+
proto.WorkflowDeadline.serializeBinaryToWriter
|
|
2077
2066
|
);
|
|
2078
2067
|
}
|
|
2079
2068
|
f = message.getCreatedAt();
|
|
2080
2069
|
if (f.length > 0) {
|
|
2081
2070
|
writer.writeString(
|
|
2082
|
-
|
|
2071
|
+
14,
|
|
2083
2072
|
f
|
|
2084
2073
|
);
|
|
2085
2074
|
}
|
|
2086
2075
|
f = message.getUpdatedAt();
|
|
2087
2076
|
if (f.length > 0) {
|
|
2088
2077
|
writer.writeString(
|
|
2089
|
-
|
|
2078
|
+
15,
|
|
2090
2079
|
f
|
|
2091
2080
|
);
|
|
2092
2081
|
}
|
|
2093
2082
|
f = message.getWorkflowConditionList();
|
|
2094
2083
|
if (f.length > 0) {
|
|
2095
2084
|
writer.writeRepeatedMessage(
|
|
2096
|
-
|
|
2085
|
+
16,
|
|
2097
2086
|
f,
|
|
2098
2087
|
proto.WorkflowCondition.serializeBinaryToWriter
|
|
2099
2088
|
);
|
|
@@ -2101,7 +2090,7 @@ proto.WorkflowSteps.serializeBinaryToWriter = function(message, writer) {
|
|
|
2101
2090
|
f = message.getWorkflowStepsRecipientsList();
|
|
2102
2091
|
if (f.length > 0) {
|
|
2103
2092
|
writer.writeRepeatedMessage(
|
|
2104
|
-
|
|
2093
|
+
17,
|
|
2105
2094
|
f,
|
|
2106
2095
|
proto.WorkflowStepsRecipients.serializeBinaryToWriter
|
|
2107
2096
|
);
|
|
@@ -2326,83 +2315,49 @@ proto.WorkflowSteps.prototype.setIsCompletedBy = function(value) {
|
|
|
2326
2315
|
|
|
2327
2316
|
|
|
2328
2317
|
/**
|
|
2329
|
-
*
|
|
2330
|
-
* @return {
|
|
2318
|
+
* repeated WorkflowDeadline deadlines = 13;
|
|
2319
|
+
* @return {!Array<!proto.WorkflowDeadline>}
|
|
2331
2320
|
*/
|
|
2332
|
-
proto.WorkflowSteps.prototype.
|
|
2333
|
-
return /** @type
|
|
2321
|
+
proto.WorkflowSteps.prototype.getDeadlinesList = function() {
|
|
2322
|
+
return /** @type{!Array<!proto.WorkflowDeadline>} */ (
|
|
2323
|
+
jspb.Message.getRepeatedWrapperField(this, proto.WorkflowDeadline, 13));
|
|
2334
2324
|
};
|
|
2335
2325
|
|
|
2336
2326
|
|
|
2337
2327
|
/**
|
|
2338
|
-
* @param {
|
|
2328
|
+
* @param {!Array<!proto.WorkflowDeadline>} value
|
|
2339
2329
|
* @return {!proto.WorkflowSteps} returns this
|
|
2340
|
-
|
|
2341
|
-
proto.WorkflowSteps.prototype.
|
|
2342
|
-
return jspb.Message.
|
|
2343
|
-
};
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
/**
|
|
2347
|
-
* optional string deadline_unit = 14;
|
|
2348
|
-
* @return {string}
|
|
2349
|
-
*/
|
|
2350
|
-
proto.WorkflowSteps.prototype.getDeadlineUnit = function() {
|
|
2351
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
2352
|
-
};
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
/**
|
|
2356
|
-
* @param {string} value
|
|
2357
|
-
* @return {!proto.WorkflowSteps} returns this
|
|
2358
|
-
*/
|
|
2359
|
-
proto.WorkflowSteps.prototype.setDeadlineUnit = function(value) {
|
|
2360
|
-
return jspb.Message.setProto3StringField(this, 14, value);
|
|
2361
|
-
};
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
/**
|
|
2365
|
-
* optional int64 deadline_unit_counter = 15;
|
|
2366
|
-
* @return {number}
|
|
2367
|
-
*/
|
|
2368
|
-
proto.WorkflowSteps.prototype.getDeadlineUnitCounter = function() {
|
|
2369
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
2370
|
-
};
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
/**
|
|
2374
|
-
* @param {number} value
|
|
2375
|
-
* @return {!proto.WorkflowSteps} returns this
|
|
2376
|
-
*/
|
|
2377
|
-
proto.WorkflowSteps.prototype.setDeadlineUnitCounter = function(value) {
|
|
2378
|
-
return jspb.Message.setProto3IntField(this, 15, value);
|
|
2330
|
+
*/
|
|
2331
|
+
proto.WorkflowSteps.prototype.setDeadlinesList = function(value) {
|
|
2332
|
+
return jspb.Message.setRepeatedWrapperField(this, 13, value);
|
|
2379
2333
|
};
|
|
2380
2334
|
|
|
2381
2335
|
|
|
2382
2336
|
/**
|
|
2383
|
-
*
|
|
2384
|
-
* @
|
|
2337
|
+
* @param {!proto.WorkflowDeadline=} opt_value
|
|
2338
|
+
* @param {number=} opt_index
|
|
2339
|
+
* @return {!proto.WorkflowDeadline}
|
|
2385
2340
|
*/
|
|
2386
|
-
proto.WorkflowSteps.prototype.
|
|
2387
|
-
return
|
|
2341
|
+
proto.WorkflowSteps.prototype.addDeadlines = function(opt_value, opt_index) {
|
|
2342
|
+
return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.WorkflowDeadline, opt_index);
|
|
2388
2343
|
};
|
|
2389
2344
|
|
|
2390
2345
|
|
|
2391
2346
|
/**
|
|
2392
|
-
*
|
|
2347
|
+
* Clears the list making it empty but non-null.
|
|
2393
2348
|
* @return {!proto.WorkflowSteps} returns this
|
|
2394
2349
|
*/
|
|
2395
|
-
proto.WorkflowSteps.prototype.
|
|
2396
|
-
return
|
|
2350
|
+
proto.WorkflowSteps.prototype.clearDeadlinesList = function() {
|
|
2351
|
+
return this.setDeadlinesList([]);
|
|
2397
2352
|
};
|
|
2398
2353
|
|
|
2399
2354
|
|
|
2400
2355
|
/**
|
|
2401
|
-
* optional string created_at =
|
|
2356
|
+
* optional string created_at = 14;
|
|
2402
2357
|
* @return {string}
|
|
2403
2358
|
*/
|
|
2404
2359
|
proto.WorkflowSteps.prototype.getCreatedAt = function() {
|
|
2405
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
2360
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
2406
2361
|
};
|
|
2407
2362
|
|
|
2408
2363
|
|
|
@@ -2411,16 +2366,16 @@ proto.WorkflowSteps.prototype.getCreatedAt = function() {
|
|
|
2411
2366
|
* @return {!proto.WorkflowSteps} returns this
|
|
2412
2367
|
*/
|
|
2413
2368
|
proto.WorkflowSteps.prototype.setCreatedAt = function(value) {
|
|
2414
|
-
return jspb.Message.setProto3StringField(this,
|
|
2369
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
2415
2370
|
};
|
|
2416
2371
|
|
|
2417
2372
|
|
|
2418
2373
|
/**
|
|
2419
|
-
* optional string updated_at =
|
|
2374
|
+
* optional string updated_at = 15;
|
|
2420
2375
|
* @return {string}
|
|
2421
2376
|
*/
|
|
2422
2377
|
proto.WorkflowSteps.prototype.getUpdatedAt = function() {
|
|
2423
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
2378
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
2424
2379
|
};
|
|
2425
2380
|
|
|
2426
2381
|
|
|
@@ -2429,17 +2384,17 @@ proto.WorkflowSteps.prototype.getUpdatedAt = function() {
|
|
|
2429
2384
|
* @return {!proto.WorkflowSteps} returns this
|
|
2430
2385
|
*/
|
|
2431
2386
|
proto.WorkflowSteps.prototype.setUpdatedAt = function(value) {
|
|
2432
|
-
return jspb.Message.setProto3StringField(this,
|
|
2387
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
2433
2388
|
};
|
|
2434
2389
|
|
|
2435
2390
|
|
|
2436
2391
|
/**
|
|
2437
|
-
* repeated WorkflowCondition workflow_condition =
|
|
2392
|
+
* repeated WorkflowCondition workflow_condition = 16;
|
|
2438
2393
|
* @return {!Array<!proto.WorkflowCondition>}
|
|
2439
2394
|
*/
|
|
2440
2395
|
proto.WorkflowSteps.prototype.getWorkflowConditionList = function() {
|
|
2441
2396
|
return /** @type{!Array<!proto.WorkflowCondition>} */ (
|
|
2442
|
-
jspb.Message.getRepeatedWrapperField(this, proto.WorkflowCondition,
|
|
2397
|
+
jspb.Message.getRepeatedWrapperField(this, proto.WorkflowCondition, 16));
|
|
2443
2398
|
};
|
|
2444
2399
|
|
|
2445
2400
|
|
|
@@ -2448,7 +2403,7 @@ proto.WorkflowSteps.prototype.getWorkflowConditionList = function() {
|
|
|
2448
2403
|
* @return {!proto.WorkflowSteps} returns this
|
|
2449
2404
|
*/
|
|
2450
2405
|
proto.WorkflowSteps.prototype.setWorkflowConditionList = function(value) {
|
|
2451
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
2406
|
+
return jspb.Message.setRepeatedWrapperField(this, 16, value);
|
|
2452
2407
|
};
|
|
2453
2408
|
|
|
2454
2409
|
|
|
@@ -2458,7 +2413,7 @@ proto.WorkflowSteps.prototype.setWorkflowConditionList = function(value) {
|
|
|
2458
2413
|
* @return {!proto.WorkflowCondition}
|
|
2459
2414
|
*/
|
|
2460
2415
|
proto.WorkflowSteps.prototype.addWorkflowCondition = function(opt_value, opt_index) {
|
|
2461
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
2416
|
+
return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.WorkflowCondition, opt_index);
|
|
2462
2417
|
};
|
|
2463
2418
|
|
|
2464
2419
|
|
|
@@ -2472,12 +2427,12 @@ proto.WorkflowSteps.prototype.clearWorkflowConditionList = function() {
|
|
|
2472
2427
|
|
|
2473
2428
|
|
|
2474
2429
|
/**
|
|
2475
|
-
* repeated WorkflowStepsRecipients workflow_steps_recipients =
|
|
2430
|
+
* repeated WorkflowStepsRecipients workflow_steps_recipients = 17;
|
|
2476
2431
|
* @return {!Array<!proto.WorkflowStepsRecipients>}
|
|
2477
2432
|
*/
|
|
2478
2433
|
proto.WorkflowSteps.prototype.getWorkflowStepsRecipientsList = function() {
|
|
2479
2434
|
return /** @type{!Array<!proto.WorkflowStepsRecipients>} */ (
|
|
2480
|
-
jspb.Message.getRepeatedWrapperField(this, proto.WorkflowStepsRecipients,
|
|
2435
|
+
jspb.Message.getRepeatedWrapperField(this, proto.WorkflowStepsRecipients, 17));
|
|
2481
2436
|
};
|
|
2482
2437
|
|
|
2483
2438
|
|
|
@@ -2486,7 +2441,7 @@ proto.WorkflowSteps.prototype.getWorkflowStepsRecipientsList = function() {
|
|
|
2486
2441
|
* @return {!proto.WorkflowSteps} returns this
|
|
2487
2442
|
*/
|
|
2488
2443
|
proto.WorkflowSteps.prototype.setWorkflowStepsRecipientsList = function(value) {
|
|
2489
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
2444
|
+
return jspb.Message.setRepeatedWrapperField(this, 17, value);
|
|
2490
2445
|
};
|
|
2491
2446
|
|
|
2492
2447
|
|
|
@@ -2496,7 +2451,7 @@ proto.WorkflowSteps.prototype.setWorkflowStepsRecipientsList = function(value) {
|
|
|
2496
2451
|
* @return {!proto.WorkflowStepsRecipients}
|
|
2497
2452
|
*/
|
|
2498
2453
|
proto.WorkflowSteps.prototype.addWorkflowStepsRecipients = function(opt_value, opt_index) {
|
|
2499
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
2454
|
+
return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.WorkflowStepsRecipients, opt_index);
|
|
2500
2455
|
};
|
|
2501
2456
|
|
|
2502
2457
|
|
|
@@ -2512,6 +2467,226 @@ proto.WorkflowSteps.prototype.clearWorkflowStepsRecipientsList = function() {
|
|
|
2512
2467
|
|
|
2513
2468
|
|
|
2514
2469
|
|
|
2470
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2471
|
+
/**
|
|
2472
|
+
* Creates an object representation of this proto.
|
|
2473
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2474
|
+
* Optional fields that are not set will be set to undefined.
|
|
2475
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2476
|
+
* For the list of reserved names please see:
|
|
2477
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2478
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2479
|
+
* JSPB instance for transitional soy proto support:
|
|
2480
|
+
* http://goto/soy-param-migration
|
|
2481
|
+
* @return {!Object}
|
|
2482
|
+
*/
|
|
2483
|
+
proto.WorkflowDeadline.prototype.toObject = function(opt_includeInstance) {
|
|
2484
|
+
return proto.WorkflowDeadline.toObject(opt_includeInstance, this);
|
|
2485
|
+
};
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
/**
|
|
2489
|
+
* Static version of the {@see toObject} method.
|
|
2490
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2491
|
+
* the JSPB instance for transitional soy proto support:
|
|
2492
|
+
* http://goto/soy-param-migration
|
|
2493
|
+
* @param {!proto.WorkflowDeadline} msg The msg instance to transform.
|
|
2494
|
+
* @return {!Object}
|
|
2495
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2496
|
+
*/
|
|
2497
|
+
proto.WorkflowDeadline.toObject = function(includeInstance, msg) {
|
|
2498
|
+
var f, obj = {
|
|
2499
|
+
deadlineContext: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
2500
|
+
deadlineUnit: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
2501
|
+
deadlineUnitCounter: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
2502
|
+
deadlineEffect: jspb.Message.getFieldWithDefault(msg, 16, "")
|
|
2503
|
+
};
|
|
2504
|
+
|
|
2505
|
+
if (includeInstance) {
|
|
2506
|
+
obj.$jspbMessageInstance = msg;
|
|
2507
|
+
}
|
|
2508
|
+
return obj;
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2515
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2516
|
+
* @return {!proto.WorkflowDeadline}
|
|
2517
|
+
*/
|
|
2518
|
+
proto.WorkflowDeadline.deserializeBinary = function(bytes) {
|
|
2519
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2520
|
+
var msg = new proto.WorkflowDeadline;
|
|
2521
|
+
return proto.WorkflowDeadline.deserializeBinaryFromReader(msg, reader);
|
|
2522
|
+
};
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2527
|
+
* given reader into the given message object.
|
|
2528
|
+
* @param {!proto.WorkflowDeadline} msg The message object to deserialize into.
|
|
2529
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2530
|
+
* @return {!proto.WorkflowDeadline}
|
|
2531
|
+
*/
|
|
2532
|
+
proto.WorkflowDeadline.deserializeBinaryFromReader = function(msg, reader) {
|
|
2533
|
+
while (reader.nextField()) {
|
|
2534
|
+
if (reader.isEndGroup()) {
|
|
2535
|
+
break;
|
|
2536
|
+
}
|
|
2537
|
+
var field = reader.getFieldNumber();
|
|
2538
|
+
switch (field) {
|
|
2539
|
+
case 13:
|
|
2540
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2541
|
+
msg.setDeadlineContext(value);
|
|
2542
|
+
break;
|
|
2543
|
+
case 14:
|
|
2544
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2545
|
+
msg.setDeadlineUnit(value);
|
|
2546
|
+
break;
|
|
2547
|
+
case 15:
|
|
2548
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2549
|
+
msg.setDeadlineUnitCounter(value);
|
|
2550
|
+
break;
|
|
2551
|
+
case 16:
|
|
2552
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2553
|
+
msg.setDeadlineEffect(value);
|
|
2554
|
+
break;
|
|
2555
|
+
default:
|
|
2556
|
+
reader.skipField();
|
|
2557
|
+
break;
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
return msg;
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2566
|
+
* @return {!Uint8Array}
|
|
2567
|
+
*/
|
|
2568
|
+
proto.WorkflowDeadline.prototype.serializeBinary = function() {
|
|
2569
|
+
var writer = new jspb.BinaryWriter();
|
|
2570
|
+
proto.WorkflowDeadline.serializeBinaryToWriter(this, writer);
|
|
2571
|
+
return writer.getResultBuffer();
|
|
2572
|
+
};
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2577
|
+
* format), writing to the given BinaryWriter.
|
|
2578
|
+
* @param {!proto.WorkflowDeadline} message
|
|
2579
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2580
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2581
|
+
*/
|
|
2582
|
+
proto.WorkflowDeadline.serializeBinaryToWriter = function(message, writer) {
|
|
2583
|
+
var f = undefined;
|
|
2584
|
+
f = message.getDeadlineContext();
|
|
2585
|
+
if (f.length > 0) {
|
|
2586
|
+
writer.writeString(
|
|
2587
|
+
13,
|
|
2588
|
+
f
|
|
2589
|
+
);
|
|
2590
|
+
}
|
|
2591
|
+
f = message.getDeadlineUnit();
|
|
2592
|
+
if (f.length > 0) {
|
|
2593
|
+
writer.writeString(
|
|
2594
|
+
14,
|
|
2595
|
+
f
|
|
2596
|
+
);
|
|
2597
|
+
}
|
|
2598
|
+
f = message.getDeadlineUnitCounter();
|
|
2599
|
+
if (f !== 0) {
|
|
2600
|
+
writer.writeInt64(
|
|
2601
|
+
15,
|
|
2602
|
+
f
|
|
2603
|
+
);
|
|
2604
|
+
}
|
|
2605
|
+
f = message.getDeadlineEffect();
|
|
2606
|
+
if (f.length > 0) {
|
|
2607
|
+
writer.writeString(
|
|
2608
|
+
16,
|
|
2609
|
+
f
|
|
2610
|
+
);
|
|
2611
|
+
}
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
|
|
2615
|
+
/**
|
|
2616
|
+
* optional string deadline_context = 13;
|
|
2617
|
+
* @return {string}
|
|
2618
|
+
*/
|
|
2619
|
+
proto.WorkflowDeadline.prototype.getDeadlineContext = function() {
|
|
2620
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
2621
|
+
};
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
/**
|
|
2625
|
+
* @param {string} value
|
|
2626
|
+
* @return {!proto.WorkflowDeadline} returns this
|
|
2627
|
+
*/
|
|
2628
|
+
proto.WorkflowDeadline.prototype.setDeadlineContext = function(value) {
|
|
2629
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
2630
|
+
};
|
|
2631
|
+
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* optional string deadline_unit = 14;
|
|
2635
|
+
* @return {string}
|
|
2636
|
+
*/
|
|
2637
|
+
proto.WorkflowDeadline.prototype.getDeadlineUnit = function() {
|
|
2638
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
|
|
2642
|
+
/**
|
|
2643
|
+
* @param {string} value
|
|
2644
|
+
* @return {!proto.WorkflowDeadline} returns this
|
|
2645
|
+
*/
|
|
2646
|
+
proto.WorkflowDeadline.prototype.setDeadlineUnit = function(value) {
|
|
2647
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
/**
|
|
2652
|
+
* optional int64 deadline_unit_counter = 15;
|
|
2653
|
+
* @return {number}
|
|
2654
|
+
*/
|
|
2655
|
+
proto.WorkflowDeadline.prototype.getDeadlineUnitCounter = function() {
|
|
2656
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
2657
|
+
};
|
|
2658
|
+
|
|
2659
|
+
|
|
2660
|
+
/**
|
|
2661
|
+
* @param {number} value
|
|
2662
|
+
* @return {!proto.WorkflowDeadline} returns this
|
|
2663
|
+
*/
|
|
2664
|
+
proto.WorkflowDeadline.prototype.setDeadlineUnitCounter = function(value) {
|
|
2665
|
+
return jspb.Message.setProto3IntField(this, 15, value);
|
|
2666
|
+
};
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* optional string deadline_effect = 16;
|
|
2671
|
+
* @return {string}
|
|
2672
|
+
*/
|
|
2673
|
+
proto.WorkflowDeadline.prototype.getDeadlineEffect = function() {
|
|
2674
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
|
|
2675
|
+
};
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
/**
|
|
2679
|
+
* @param {string} value
|
|
2680
|
+
* @return {!proto.WorkflowDeadline} returns this
|
|
2681
|
+
*/
|
|
2682
|
+
proto.WorkflowDeadline.prototype.setDeadlineEffect = function(value) {
|
|
2683
|
+
return jspb.Message.setProto3StringField(this, 16, value);
|
|
2684
|
+
};
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
|
|
2515
2690
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2516
2691
|
/**
|
|
2517
2692
|
* Creates an object representation of this proto.
|
|
@@ -3766,7 +3941,7 @@ proto.BaseWorkflowCriteriaRequest.prototype.setOperator = function(value) {
|
|
|
3766
3941
|
* @private {!Array<number>}
|
|
3767
3942
|
* @const
|
|
3768
3943
|
*/
|
|
3769
|
-
proto.BaseWorkflowStepsRequest.repeatedFields_ = [14,15];
|
|
3944
|
+
proto.BaseWorkflowStepsRequest.repeatedFields_ = [10,14,15];
|
|
3770
3945
|
|
|
3771
3946
|
|
|
3772
3947
|
|
|
@@ -3808,10 +3983,8 @@ actionResult: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
|
3808
3983
|
requiredAction: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3809
3984
|
redefineTaskTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
3810
3985
|
isCompletedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
deadlineUnitCounter: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
3814
|
-
deadlineEffect: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
3986
|
+
deadlinesList: jspb.Message.toObjectList(msg.getDeadlinesList(),
|
|
3987
|
+
proto.WorkflowDeadline.toObject, includeInstance),
|
|
3815
3988
|
workflowConditionList: jspb.Message.toObjectList(msg.getWorkflowConditionList(),
|
|
3816
3989
|
proto.BaseWorkflowConditionRequest.toObject, includeInstance),
|
|
3817
3990
|
workflowStepsRecipientsList: jspb.Message.toObjectList(msg.getWorkflowStepsRecipientsList(),
|
|
@@ -3889,20 +4062,9 @@ proto.BaseWorkflowStepsRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
3889
4062
|
msg.setIsCompletedBy(value);
|
|
3890
4063
|
break;
|
|
3891
4064
|
case 10:
|
|
3892
|
-
var value =
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
case 11:
|
|
3896
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3897
|
-
msg.setDeadlineUnit(value);
|
|
3898
|
-
break;
|
|
3899
|
-
case 12:
|
|
3900
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
3901
|
-
msg.setDeadlineUnitCounter(value);
|
|
3902
|
-
break;
|
|
3903
|
-
case 13:
|
|
3904
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3905
|
-
msg.setDeadlineEffect(value);
|
|
4065
|
+
var value = new proto.WorkflowDeadline;
|
|
4066
|
+
reader.readMessage(value,proto.WorkflowDeadline.deserializeBinaryFromReader);
|
|
4067
|
+
msg.addDeadlines(value);
|
|
3906
4068
|
break;
|
|
3907
4069
|
case 14:
|
|
3908
4070
|
var value = new proto.BaseWorkflowConditionRequest;
|
|
@@ -4006,32 +4168,12 @@ proto.BaseWorkflowStepsRequest.serializeBinaryToWriter = function(message, write
|
|
|
4006
4168
|
f
|
|
4007
4169
|
);
|
|
4008
4170
|
}
|
|
4009
|
-
f = message.
|
|
4171
|
+
f = message.getDeadlinesList();
|
|
4010
4172
|
if (f.length > 0) {
|
|
4011
|
-
writer.
|
|
4173
|
+
writer.writeRepeatedMessage(
|
|
4012
4174
|
10,
|
|
4013
|
-
f
|
|
4014
|
-
|
|
4015
|
-
}
|
|
4016
|
-
f = message.getDeadlineUnit();
|
|
4017
|
-
if (f.length > 0) {
|
|
4018
|
-
writer.writeString(
|
|
4019
|
-
11,
|
|
4020
|
-
f
|
|
4021
|
-
);
|
|
4022
|
-
}
|
|
4023
|
-
f = message.getDeadlineUnitCounter();
|
|
4024
|
-
if (f !== 0) {
|
|
4025
|
-
writer.writeInt64(
|
|
4026
|
-
12,
|
|
4027
|
-
f
|
|
4028
|
-
);
|
|
4029
|
-
}
|
|
4030
|
-
f = message.getDeadlineEffect();
|
|
4031
|
-
if (f.length > 0) {
|
|
4032
|
-
writer.writeString(
|
|
4033
|
-
13,
|
|
4034
|
-
f
|
|
4175
|
+
f,
|
|
4176
|
+
proto.WorkflowDeadline.serializeBinaryToWriter
|
|
4035
4177
|
);
|
|
4036
4178
|
}
|
|
4037
4179
|
f = message.getWorkflowConditionList();
|
|
@@ -4216,74 +4358,40 @@ proto.BaseWorkflowStepsRequest.prototype.setIsCompletedBy = function(value) {
|
|
|
4216
4358
|
|
|
4217
4359
|
|
|
4218
4360
|
/**
|
|
4219
|
-
*
|
|
4220
|
-
* @return {
|
|
4221
|
-
*/
|
|
4222
|
-
proto.BaseWorkflowStepsRequest.prototype.getDeadlineContext = function() {
|
|
4223
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
4224
|
-
};
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
/**
|
|
4228
|
-
* @param {string} value
|
|
4229
|
-
* @return {!proto.BaseWorkflowStepsRequest} returns this
|
|
4230
|
-
*/
|
|
4231
|
-
proto.BaseWorkflowStepsRequest.prototype.setDeadlineContext = function(value) {
|
|
4232
|
-
return jspb.Message.setProto3StringField(this, 10, value);
|
|
4233
|
-
};
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
/**
|
|
4237
|
-
* optional string deadline_unit = 11;
|
|
4238
|
-
* @return {string}
|
|
4239
|
-
*/
|
|
4240
|
-
proto.BaseWorkflowStepsRequest.prototype.getDeadlineUnit = function() {
|
|
4241
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
4242
|
-
};
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
/**
|
|
4246
|
-
* @param {string} value
|
|
4247
|
-
* @return {!proto.BaseWorkflowStepsRequest} returns this
|
|
4248
|
-
*/
|
|
4249
|
-
proto.BaseWorkflowStepsRequest.prototype.setDeadlineUnit = function(value) {
|
|
4250
|
-
return jspb.Message.setProto3StringField(this, 11, value);
|
|
4251
|
-
};
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
/**
|
|
4255
|
-
* optional int64 deadline_unit_counter = 12;
|
|
4256
|
-
* @return {number}
|
|
4361
|
+
* repeated WorkflowDeadline deadlines = 10;
|
|
4362
|
+
* @return {!Array<!proto.WorkflowDeadline>}
|
|
4257
4363
|
*/
|
|
4258
|
-
proto.BaseWorkflowStepsRequest.prototype.
|
|
4259
|
-
return /** @type
|
|
4364
|
+
proto.BaseWorkflowStepsRequest.prototype.getDeadlinesList = function() {
|
|
4365
|
+
return /** @type{!Array<!proto.WorkflowDeadline>} */ (
|
|
4366
|
+
jspb.Message.getRepeatedWrapperField(this, proto.WorkflowDeadline, 10));
|
|
4260
4367
|
};
|
|
4261
4368
|
|
|
4262
4369
|
|
|
4263
4370
|
/**
|
|
4264
|
-
* @param {
|
|
4371
|
+
* @param {!Array<!proto.WorkflowDeadline>} value
|
|
4265
4372
|
* @return {!proto.BaseWorkflowStepsRequest} returns this
|
|
4266
|
-
|
|
4267
|
-
proto.BaseWorkflowStepsRequest.prototype.
|
|
4268
|
-
return jspb.Message.
|
|
4373
|
+
*/
|
|
4374
|
+
proto.BaseWorkflowStepsRequest.prototype.setDeadlinesList = function(value) {
|
|
4375
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
|
4269
4376
|
};
|
|
4270
4377
|
|
|
4271
4378
|
|
|
4272
4379
|
/**
|
|
4273
|
-
*
|
|
4274
|
-
* @
|
|
4380
|
+
* @param {!proto.WorkflowDeadline=} opt_value
|
|
4381
|
+
* @param {number=} opt_index
|
|
4382
|
+
* @return {!proto.WorkflowDeadline}
|
|
4275
4383
|
*/
|
|
4276
|
-
proto.BaseWorkflowStepsRequest.prototype.
|
|
4277
|
-
return
|
|
4384
|
+
proto.BaseWorkflowStepsRequest.prototype.addDeadlines = function(opt_value, opt_index) {
|
|
4385
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.WorkflowDeadline, opt_index);
|
|
4278
4386
|
};
|
|
4279
4387
|
|
|
4280
4388
|
|
|
4281
4389
|
/**
|
|
4282
|
-
*
|
|
4390
|
+
* Clears the list making it empty but non-null.
|
|
4283
4391
|
* @return {!proto.BaseWorkflowStepsRequest} returns this
|
|
4284
4392
|
*/
|
|
4285
|
-
proto.BaseWorkflowStepsRequest.prototype.
|
|
4286
|
-
return
|
|
4393
|
+
proto.BaseWorkflowStepsRequest.prototype.clearDeadlinesList = function() {
|
|
4394
|
+
return this.setDeadlinesList([]);
|
|
4287
4395
|
};
|
|
4288
4396
|
|
|
4289
4397
|
|