@temporalio/activity 1.11.0 → 1.11.2
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 +18 -6
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +18 -6
package/lib/index.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export interface Info {
|
|
|
113
113
|
*/
|
|
114
114
|
readonly activityNamespace: string;
|
|
115
115
|
/**
|
|
116
|
-
* Attempt number for this activity
|
|
116
|
+
* Attempt number for this activity. Starts at 1 and increments for every retry.
|
|
117
117
|
*/
|
|
118
118
|
readonly attempt: number;
|
|
119
119
|
/**
|
|
@@ -136,25 +136,37 @@ export interface Info {
|
|
|
136
136
|
*/
|
|
137
137
|
readonly workflowType: string;
|
|
138
138
|
/**
|
|
139
|
-
* Timestamp for when this Activity was scheduled
|
|
139
|
+
* Timestamp for when this Activity was first scheduled.
|
|
140
|
+
* For retries, this will have the timestamp of the first attempt.
|
|
141
|
+
* See {@link currentAttemptScheduledTimestampMs} for current attempt.
|
|
142
|
+
*
|
|
143
|
+
* @format number of milliseconds from epoch
|
|
140
144
|
*/
|
|
141
145
|
readonly scheduledTimestampMs: number;
|
|
142
146
|
/**
|
|
143
|
-
* Timeout for this Activity from schedule to close
|
|
147
|
+
* Timeout for this Activity from schedule to close.
|
|
148
|
+
*
|
|
149
|
+
* @format number of milliseconds
|
|
144
150
|
*/
|
|
145
151
|
readonly scheduleToCloseTimeoutMs: number;
|
|
146
152
|
/**
|
|
147
|
-
* Timeout for this Activity from start to close
|
|
153
|
+
* Timeout for this Activity from start to close.
|
|
154
|
+
*
|
|
155
|
+
* @format number of milliseconds
|
|
148
156
|
*/
|
|
149
157
|
readonly startToCloseTimeoutMs: number;
|
|
150
158
|
/**
|
|
151
|
-
* Timestamp for when the current attempt of this Activity was scheduled
|
|
159
|
+
* Timestamp for when the current attempt of this Activity was scheduled.
|
|
160
|
+
*
|
|
161
|
+
* @format number of milliseconds from epoch
|
|
152
162
|
*/
|
|
153
163
|
readonly currentAttemptScheduledTimestampMs: number;
|
|
154
164
|
/**
|
|
155
|
-
* Heartbeat timeout
|
|
165
|
+
* Heartbeat timeout.
|
|
156
166
|
* If this timeout is defined, the Activity must heartbeat before the timeout is reached.
|
|
157
167
|
* The Activity must **not** heartbeat in case this timeout is not defined.
|
|
168
|
+
*
|
|
169
|
+
* @format number of milliseconds
|
|
158
170
|
*/
|
|
159
171
|
readonly heartbeatTimeoutMs?: number;
|
|
160
172
|
/**
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;;;;;;;;;AAEH,uDAAqD;AAErD,sDAAyD;AACzD,sEAAiF;AAEjF,6CAM4B;AAH1B,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAIlB;;;;;;;;;;;;;;;;GAgBG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,KAAK;CAAG,CAAA;AAAnC,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,yCAA0B,EAAC,oBAAoB,CAAC;GACpC,kBAAkB,CAAiB;AAEhD,6EAA6E;AAC7E,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AACpF,IAAI,CAAE,UAAkB,CAAC,uBAAuB,CAAC,EAAE,CAAC;IACjD,UAAkB,CAAC,uBAAuB,CAAC,GAAG,IAAI,oCAAiB,EAAW,CAAC;AAClF,CAAC;AAEY,QAAA,iBAAiB,GAAgC,UAAkB,CAAC,uBAAuB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;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CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IACD,IAAI,CAAC,OAAe,EAAE,IAAkB;QACtC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;IACD,IAAI,CAAC,OAAe,EAAE,IAAkB;QACtC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;IACD,KAAK,CAAC,OAAe,EAAE,IAAkB;QACvC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;CACF,CAAC;AAEF;;;;;;;GAOG;AACH,SAAgB,KAAK,CAAC,EAAY;IAChC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AACrC,CAAC;AAFD,sBAEC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,SAAS,CAAC,OAAiB;IACzC,OAAO,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAFD,8BAEC;AAED;;;;;;;;GAQG;AACH,SAAgB,SAAS;IACvB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC;AACrC,CAAC;AAFD,8BAEC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB;IAChC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9C,CAAC;AAFD,gDAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/activity",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "Temporal.io SDK Activity sub-package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"author": "Temporal Technologies Inc. <sdk@temporal.io>",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@temporalio/common": "1.11.
|
|
16
|
+
"@temporalio/common": "1.11.2",
|
|
17
17
|
"abort-controller": "^3.0.0"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"src",
|
|
33
33
|
"lib"
|
|
34
34
|
],
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "e78b4f71236ccd3227e674bad68439e961fec639"
|
|
36
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -129,7 +129,7 @@ export interface Info {
|
|
|
129
129
|
*/
|
|
130
130
|
readonly activityNamespace: string;
|
|
131
131
|
/**
|
|
132
|
-
* Attempt number for this activity
|
|
132
|
+
* Attempt number for this activity. Starts at 1 and increments for every retry.
|
|
133
133
|
*/
|
|
134
134
|
readonly attempt: number;
|
|
135
135
|
/**
|
|
@@ -152,25 +152,37 @@ export interface Info {
|
|
|
152
152
|
*/
|
|
153
153
|
readonly workflowType: string;
|
|
154
154
|
/**
|
|
155
|
-
* Timestamp for when this Activity was scheduled
|
|
155
|
+
* Timestamp for when this Activity was first scheduled.
|
|
156
|
+
* For retries, this will have the timestamp of the first attempt.
|
|
157
|
+
* See {@link currentAttemptScheduledTimestampMs} for current attempt.
|
|
158
|
+
*
|
|
159
|
+
* @format number of milliseconds from epoch
|
|
156
160
|
*/
|
|
157
161
|
readonly scheduledTimestampMs: number;
|
|
158
162
|
/**
|
|
159
|
-
* Timeout for this Activity from schedule to close
|
|
163
|
+
* Timeout for this Activity from schedule to close.
|
|
164
|
+
*
|
|
165
|
+
* @format number of milliseconds
|
|
160
166
|
*/
|
|
161
167
|
readonly scheduleToCloseTimeoutMs: number;
|
|
162
168
|
/**
|
|
163
|
-
* Timeout for this Activity from start to close
|
|
169
|
+
* Timeout for this Activity from start to close.
|
|
170
|
+
*
|
|
171
|
+
* @format number of milliseconds
|
|
164
172
|
*/
|
|
165
173
|
readonly startToCloseTimeoutMs: number;
|
|
166
174
|
/**
|
|
167
|
-
* Timestamp for when the current attempt of this Activity was scheduled
|
|
175
|
+
* Timestamp for when the current attempt of this Activity was scheduled.
|
|
176
|
+
*
|
|
177
|
+
* @format number of milliseconds from epoch
|
|
168
178
|
*/
|
|
169
179
|
readonly currentAttemptScheduledTimestampMs: number;
|
|
170
180
|
/**
|
|
171
|
-
* Heartbeat timeout
|
|
181
|
+
* Heartbeat timeout.
|
|
172
182
|
* If this timeout is defined, the Activity must heartbeat before the timeout is reached.
|
|
173
183
|
* The Activity must **not** heartbeat in case this timeout is not defined.
|
|
184
|
+
*
|
|
185
|
+
* @format number of milliseconds
|
|
174
186
|
*/
|
|
175
187
|
readonly heartbeatTimeoutMs?: number;
|
|
176
188
|
/**
|