@smartytalent/api-client 0.1.33-dev.10 → 0.1.33-dev.12

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.
@@ -24,7 +24,7 @@ export interface ScheduleAttributesSchema {
24
24
  */
25
25
  name?: string;
26
26
  /**
27
- *
27
+ * Lifecycle. `pending` is armed and will fire. `fired`/`failed` are terminal. `cancelled` is terminal (hard cancel via DELETE). `paused` is pause-for-edit: EventBridge entry is removed but the row stays re-activatable by PATCH back to `pending` with a new `fireAt`.
28
28
  * @type {ScheduleAttributesSchemaStatusEnum}
29
29
  * @memberof ScheduleAttributesSchema
30
30
  */
@@ -34,7 +34,7 @@ export interface ScheduleAttributesSchema {
34
34
  * @type {Date}
35
35
  * @memberof ScheduleAttributesSchema
36
36
  */
37
- fireAt: Date;
37
+ fireAt?: Date;
38
38
  /**
39
39
  * Set by the dispatcher when the schedule actually fires.
40
40
  * @type {Date}
@@ -46,7 +46,7 @@ export interface ScheduleAttributesSchema {
46
46
  * @type {ScheduleTargetSchema}
47
47
  * @memberof ScheduleAttributesSchema
48
48
  */
49
- target: ScheduleTargetSchema;
49
+ target?: ScheduleTargetSchema;
50
50
  /**
51
51
  * Dispatcher's recorded result after firing (status, messageId, or error detail). Server-managed.
52
52
  * @type {object}
@@ -68,6 +68,7 @@ export declare const ScheduleAttributesSchemaStatusEnum: {
68
68
  readonly Fired: "fired";
69
69
  readonly Cancelled: "cancelled";
70
70
  readonly Failed: "failed";
71
+ readonly Paused: "paused";
71
72
  };
72
73
  export type ScheduleAttributesSchemaStatusEnum = typeof ScheduleAttributesSchemaStatusEnum[keyof typeof ScheduleAttributesSchemaStatusEnum];
73
74
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduleAttributesSchema.d.ts","sourceRoot":"","sources":["../../src/models/ScheduleAttributesSchema.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM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 Paused: 'paused'
32
33
  };
33
34
  /**
34
35
  * Check if a given object implements the ScheduleAttributesSchema interface.
35
36
  */
36
37
  function instanceOfScheduleAttributesSchema(value) {
37
- if (!('fireAt' in value) || value['fireAt'] === undefined)
38
- return false;
39
- if (!('target' in value) || value['target'] === undefined)
40
- return false;
41
38
  return true;
42
39
  }
43
40
  function ScheduleAttributesSchemaFromJSON(json) {
@@ -50,9 +47,9 @@ function ScheduleAttributesSchemaFromJSONTyped(json, ignoreDiscriminator) {
50
47
  return {
51
48
  'name': json['name'] == null ? undefined : json['name'],
52
49
  'status': json['status'] == null ? undefined : json['status'],
53
- 'fireAt': (new Date(json['fireAt'])),
50
+ 'fireAt': json['fireAt'] == null ? undefined : (new Date(json['fireAt'])),
54
51
  'firedAt': json['firedAt'] == null ? undefined : (new Date(json['firedAt'])),
55
- 'target': (0, ScheduleTargetSchema_1.ScheduleTargetSchemaFromJSON)(json['target']),
52
+ 'target': json['target'] == null ? undefined : (0, ScheduleTargetSchema_1.ScheduleTargetSchemaFromJSON)(json['target']),
56
53
  'result': json['result'] == null ? undefined : json['result'],
57
54
  'timestamps': json['timestamps'] == null ? undefined : (0, ResourceTimestampsSchema_1.ResourceTimestampsSchemaFromJSON)(json['timestamps']),
58
55
  };
@@ -67,7 +64,7 @@ function ScheduleAttributesSchemaToJSONTyped(value, ignoreDiscriminator = false)
67
64
  return {
68
65
  'name': value['name'],
69
66
  'status': value['status'],
70
- 'fireAt': value['fireAt'].toISOString(),
67
+ 'fireAt': value['fireAt'] == null ? value['fireAt'] : value['fireAt'].toISOString(),
71
68
  'firedAt': value['firedAt'] == null ? value['firedAt'] : value['firedAt'].toISOString(),
72
69
  'target': (0, ScheduleTargetSchema_1.ScheduleTargetSchemaToJSON)(value['target']),
73
70
  'result': value['result'],
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduleAttributesSchema.js","sourceRoot":"","sources":["../../src/models/ScheduleAttributesSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB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,KAAK,CAAC,QAAQ,CAAC;QACzB,YAAY,EAAE,IAAA,yDAA8B,EAAC,KAAK,CAAC,YAAY,CAAC,CAAC;KACpE,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/api-client",
3
- "version": "0.1.33-dev.10",
3
+ "version": "0.1.33-dev.12",
4
4
  "description": "TypeScript API client generated from SmartyTalent OpenAPI spec",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",