@nosana/types 0.1.12 → 0.1.18

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Jobs/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAwB/B,MAAM,CAAC,MAAM,qBAAqB,yvBA9BD,EAAE;;;qBAGV,EAAE;;;;;IAGf,CAAC;;AAEP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;04BARG,EAAG;;;;;;;;;;4CAgBW,CAAE,SAAQ,CAAE;;;;;QAOlC,CAAC;;;;;;;;;YAO+O,CAAC;;QAAoD,CAAC;IAAW,CAAC;;;;;QAA0J,CAAC;IAAW,CAAC;;AAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uNA7Btc,EAAG;;;;;;IAKhD,CAAC;;AAEP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAR+B,EAAE;;;yBAGV,EAAE;;;;;QAGf,CAAC;;IAEP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2GA7Btc,EAAG;;;;;;QAKhD,CAAC;;IAEP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsBsF,CAAC"}
@@ -121,7 +121,7 @@ export const jobSchemas = {
121
121
  }
122
122
  },
123
123
  {
124
- $ref: "#/components/schemas/Recordstringstringnumber"
124
+ $ref: "#/components/schemas/Recordstringstringnumber(stringnumber)"
125
125
  }
126
126
  ]
127
127
  }
@@ -142,6 +142,35 @@ export const jobSchemas = {
142
142
  ]
143
143
  }
144
144
  },
145
+ "Recordstringstringnumber(stringnumber)": {
146
+ type: "object",
147
+ properties: {},
148
+ required: [],
149
+ description: "Construct a type with a set of properties K of type T",
150
+ additionalProperties: {
151
+ oneOf: [
152
+ {
153
+ type: "string"
154
+ },
155
+ {
156
+ type: "number"
157
+ },
158
+ {
159
+ type: "array",
160
+ items: {
161
+ oneOf: [
162
+ {
163
+ type: "string"
164
+ },
165
+ {
166
+ type: "number"
167
+ }
168
+ ]
169
+ }
170
+ }
171
+ ]
172
+ }
173
+ },
145
174
  Global: {
146
175
  type: "object",
147
176
  properties: {
@@ -966,14 +995,32 @@ export const jobSchemas = {
966
995
  ]
967
996
  }
968
997
  },
998
+ error: {
999
+ type: "object",
1000
+ properties: {
1001
+ event: {
1002
+ type: "string"
1003
+ },
1004
+ message: {
1005
+ type: "string"
1006
+ },
1007
+ code: {
1008
+ type: "number"
1009
+ }
1010
+ },
1011
+ required: [
1012
+ "event",
1013
+ "message"
1014
+ ]
1015
+ },
969
1016
  diagnostics: {
970
1017
  type: "object",
971
1018
  properties: {
972
1019
  reason: {
973
- $ref: "#/components/schemas/Reason"
1020
+ $ref: "#/components/schemas/DiagnosticsReason"
974
1021
  },
975
1022
  state: {
976
- $ref: "#/components/schemas/State"
1023
+ $ref: "#/components/schemas/DiagnosticsState"
977
1024
  }
978
1025
  },
979
1026
  required: [
@@ -1011,7 +1058,7 @@ export const jobSchemas = {
1011
1058
  "timestamp"
1012
1059
  ]
1013
1060
  },
1014
- Reason: {
1061
+ DiagnosticsReason: {
1015
1062
  type: "object",
1016
1063
  properties: {
1017
1064
  hostShutDown: {
@@ -1020,17 +1067,20 @@ export const jobSchemas = {
1020
1067
  jobStopped: {
1021
1068
  type: "boolean"
1022
1069
  },
1023
- expired: {
1070
+ jobExpired: {
1024
1071
  type: "boolean"
1072
+ },
1073
+ reason: {
1074
+ type: "string"
1025
1075
  }
1026
1076
  },
1027
1077
  required: [
1028
1078
  "hostShutDown",
1029
1079
  "jobStopped",
1030
- "expired"
1080
+ "jobExpired"
1031
1081
  ]
1032
1082
  },
1033
- State: {
1083
+ DiagnosticsState: {
1034
1084
  type: "object",
1035
1085
  properties: {
1036
1086
  Status: {
@@ -1051,6 +1101,9 @@ export const jobSchemas = {
1051
1101
  Dead: {
1052
1102
  type: "boolean"
1053
1103
  },
1104
+ Pid: {
1105
+ type: "number"
1106
+ },
1054
1107
  ExitCode: {
1055
1108
  type: "number"
1056
1109
  },
@@ -1073,8 +1126,30 @@ export const jobSchemas = {
1073
1126
  type: "number"
1074
1127
  },
1075
1128
  Log: {
1076
- type: "string",
1077
- nullable: true
1129
+ type: "array",
1130
+ items: {
1131
+ type: "object",
1132
+ properties: {
1133
+ Start: {
1134
+ type: "string"
1135
+ },
1136
+ End: {
1137
+ type: "string"
1138
+ },
1139
+ ExitCode: {
1140
+ type: "number"
1141
+ },
1142
+ Output: {
1143
+ type: "string"
1144
+ }
1145
+ },
1146
+ required: [
1147
+ "Start",
1148
+ "End",
1149
+ "ExitCode",
1150
+ "Output"
1151
+ ]
1152
+ }
1078
1153
  }
1079
1154
  },
1080
1155
  required: [
@@ -1094,11 +1169,11 @@ export const jobSchemas = {
1094
1169
  "Restarting",
1095
1170
  "OOMKilled",
1096
1171
  "Dead",
1172
+ "Pid",
1097
1173
  "ExitCode",
1098
1174
  "Error",
1099
1175
  "StartedAt",
1100
1176
  "FinishedAt",
1101
- "Health",
1102
1177
  "RestartCount"
1103
1178
  ]
1104
1179
  },
@@ -1 +1 @@
1
- {"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/Schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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