@deliverart/sdk-js-integration-diagnostics 2.48.1 → 2.48.2-dev.20261103123000
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/README.md +4 -0
- package/dist/index.cjs +132 -3
- package/dist/index.d.cts +128 -35
- package/dist/index.d.ts +128 -35
- package/dist/index.js +128 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -296,3 +296,7 @@ Kitchen access preparation failures use `kitchen_access_setup_failed` and the
|
|
|
296
296
|
copy explains exhausted setup attempts without asserting a technical root cause
|
|
297
297
|
or live device connectivity. Public evidence must never contain credential
|
|
298
298
|
values. Unknown codes continue to use the common safe fallback.
|
|
299
|
+
|
|
300
|
+
## Remote investigations
|
|
301
|
+
|
|
302
|
+
Problem details optionally expose `remoteVerification`: queued/running/completed/superseded state, request/check timestamps, freshness, and bounded typed checks. `VerifyDiagnosticProblem` queues supported read-only investigations; existing clients and unsupported errors retain local verification. Remote checks describe current observations, never historical causation, successful order delivery, or automatic recovery. Use `describeRemoteDiagnosticCheck` for Italian/English explanations. Unknown check codes must remain explicitly unsupported.
|
package/dist/index.cjs
CHANGED
|
@@ -50,6 +50,7 @@ __export(index_exports, {
|
|
|
50
50
|
describeDiagnosticResourcePath: () => describeDiagnosticResourcePath,
|
|
51
51
|
describeDiagnosticScope: () => describeDiagnosticScope,
|
|
52
52
|
describeLocalDiagnostic: () => describeLocalDiagnostic,
|
|
53
|
+
describeRemoteDiagnosticCheck: () => describeRemoteDiagnosticCheck,
|
|
53
54
|
describeVerification: () => describeVerification,
|
|
54
55
|
diagnosticAffectedOperationSchema: () => diagnosticAffectedOperationSchema,
|
|
55
56
|
diagnosticAssistanceEventSchema: () => diagnosticAssistanceEventSchema,
|
|
@@ -100,7 +101,9 @@ __export(index_exports, {
|
|
|
100
101
|
diagnosticSourceSchema: () => diagnosticSourceSchema,
|
|
101
102
|
diagnosticVerificationSchema: () => diagnosticVerificationSchema,
|
|
102
103
|
eligibleDiagnosticSelection: () => eligibleDiagnosticSelection,
|
|
103
|
-
readableDiagnosticFindingSchema: () => readableDiagnosticFindingSchema
|
|
104
|
+
readableDiagnosticFindingSchema: () => readableDiagnosticFindingSchema,
|
|
105
|
+
remoteDiagnosticCheckSchema: () => remoteDiagnosticCheckSchema,
|
|
106
|
+
remoteDiagnosticVerificationSchema: () => remoteDiagnosticVerificationSchema
|
|
104
107
|
});
|
|
105
108
|
module.exports = __toCommonJS(index_exports);
|
|
106
109
|
|
|
@@ -172,6 +175,18 @@ var diagnosticVerificationSchema = import_zod.z.object({
|
|
|
172
175
|
fresh: import_zod.z.boolean(),
|
|
173
176
|
findings: import_zod.z.array(diagnosticFindingSchema).max(100).optional()
|
|
174
177
|
});
|
|
178
|
+
var remoteDiagnosticCheckSchema = import_zod.z.object({
|
|
179
|
+
code: diagnosticCodeSchema,
|
|
180
|
+
outcome: import_zod.z.enum(["pass", "fail", "unknown"])
|
|
181
|
+
}).strict();
|
|
182
|
+
var remoteDiagnosticVerificationSchema = import_zod.z.object({
|
|
183
|
+
scope: import_zod.z.literal("remote"),
|
|
184
|
+
state: import_zod.z.enum(["queued", "running", "completed", "superseded"]),
|
|
185
|
+
requestedAt: diagnosticDateSchema,
|
|
186
|
+
checkedAt: diagnosticDateSchema.nullable(),
|
|
187
|
+
fresh: import_zod.z.boolean(),
|
|
188
|
+
checks: import_zod.z.array(remoteDiagnosticCheckSchema).max(30)
|
|
189
|
+
});
|
|
175
190
|
|
|
176
191
|
// src/action-availability.ts
|
|
177
192
|
var recovery = import_zod2.z.discriminatedUnion("eligible", [
|
|
@@ -1927,7 +1942,8 @@ var diagnosticProblemSchema = import_zod7.z.object({
|
|
|
1927
1942
|
page: import_zod7.z.number().int().positive(),
|
|
1928
1943
|
itemsPerPage: import_zod7.z.number().int().min(1).max(100),
|
|
1929
1944
|
hasNextPage: import_zod7.z.boolean(),
|
|
1930
|
-
verification: diagnosticVerificationSchema
|
|
1945
|
+
verification: diagnosticVerificationSchema,
|
|
1946
|
+
remoteVerification: remoteDiagnosticVerificationSchema.nullish()
|
|
1931
1947
|
});
|
|
1932
1948
|
var diagnosticProblemSummarySchema = import_zod7.z.object({
|
|
1933
1949
|
id: diagnosticIdSchema,
|
|
@@ -2126,6 +2142,116 @@ function describeDiagnosticRecoveryItem(item, locale) {
|
|
|
2126
2142
|
return { state, title, explanation };
|
|
2127
2143
|
}
|
|
2128
2144
|
|
|
2145
|
+
// src/remote-verification.ts
|
|
2146
|
+
var labels3 = {
|
|
2147
|
+
product_found: ["Il prodotto esiste in Cassa in Cloud", "The product exists in Cassa in Cloud"],
|
|
2148
|
+
product_sales_point: [
|
|
2149
|
+
"Il prodotto appartiene al punto vendita",
|
|
2150
|
+
"The product belongs to this sales point"
|
|
2151
|
+
],
|
|
2152
|
+
variant_found: [
|
|
2153
|
+
"La variante rifiutata esiste nel prodotto",
|
|
2154
|
+
"The rejected variant exists in the product"
|
|
2155
|
+
],
|
|
2156
|
+
sale_enabled: ["Il prodotto \xE8 abilitato alla vendita", "The product is enabled for sale"],
|
|
2157
|
+
ecommerce_enabled: ["Il canale ecommerce \xE8 abilitato", "The ecommerce channel is enabled"],
|
|
2158
|
+
risto_enabled: ["Il canale ristorazione \xE8 abilitato", "The restaurant channel is enabled"],
|
|
2159
|
+
stock_positive: ["La giacenza attuale \xE8 positiva", "Current stock is positive"],
|
|
2160
|
+
stock_non_positive: [
|
|
2161
|
+
"Giacenza attuale pari a zero o negativa: non prova da sola il blocco della vendita",
|
|
2162
|
+
"Current stock is zero or negative: this alone does not prove sales are blocked"
|
|
2163
|
+
],
|
|
2164
|
+
stock_not_managed: [
|
|
2165
|
+
"Il magazzino non \xE8 gestito per questa variante",
|
|
2166
|
+
"Stock is not managed for this variant"
|
|
2167
|
+
],
|
|
2168
|
+
stock_quantity_unavailable: [
|
|
2169
|
+
"La quantit\xE0 di magazzino non \xE8 disponibile",
|
|
2170
|
+
"Stock quantity is unavailable"
|
|
2171
|
+
],
|
|
2172
|
+
stock_unavailable: [
|
|
2173
|
+
"Giacenza non verificabile o risposta non univoca",
|
|
2174
|
+
"Stock cannot be verified or the response is ambiguous"
|
|
2175
|
+
],
|
|
2176
|
+
rejected_sku_unavailable: [
|
|
2177
|
+
"Lo SKU rifiutato non \xE8 presente nella registrazione",
|
|
2178
|
+
"The rejected SKU was not recorded"
|
|
2179
|
+
],
|
|
2180
|
+
rejected_sku_mapping_missing: [
|
|
2181
|
+
"Lo SKU rifiutato non ha un mapping attuale: il collegamento potrebbe essere cambiato",
|
|
2182
|
+
"The rejected SKU has no current mapping: the mapping may have changed"
|
|
2183
|
+
],
|
|
2184
|
+
rejected_sku_mapping_ambiguous: [
|
|
2185
|
+
"Lo SKU rifiutato corrisponde a pi\xF9 prodotti: verifica il mapping",
|
|
2186
|
+
"The rejected SKU matches multiple products: check the mapping"
|
|
2187
|
+
],
|
|
2188
|
+
remote_access_denied: [
|
|
2189
|
+
"Cassa in Cloud non consente questa lettura",
|
|
2190
|
+
"Cassa in Cloud does not allow this read"
|
|
2191
|
+
],
|
|
2192
|
+
remote_product_unavailable: [
|
|
2193
|
+
"Dettaglio prodotto non verificabile: servizio remoto non disponibile",
|
|
2194
|
+
"Product details cannot be verified: remote service unavailable"
|
|
2195
|
+
],
|
|
2196
|
+
remote_check_unavailable: [
|
|
2197
|
+
"Verifica remota non completata: riprova pi\xF9 tardi",
|
|
2198
|
+
"Remote verification could not complete: try again later"
|
|
2199
|
+
],
|
|
2200
|
+
integration_unavailable: [
|
|
2201
|
+
"Integrazione non pi\xF9 disponibile",
|
|
2202
|
+
"Integration is no longer available"
|
|
2203
|
+
],
|
|
2204
|
+
source_changed: [
|
|
2205
|
+
"Il tentativo o la sua evidenza sono cambiati: aggiorna la pagina",
|
|
2206
|
+
"The attempt or its evidence changed: refresh the page"
|
|
2207
|
+
],
|
|
2208
|
+
dispatch_unavailable: [
|
|
2209
|
+
"Impossibile accodare la verifica: riprova pi\xF9 tardi",
|
|
2210
|
+
"Could not queue verification: try again later"
|
|
2211
|
+
],
|
|
2212
|
+
resolver_unsupported: [
|
|
2213
|
+
"Verifica remota non disponibile per questo errore",
|
|
2214
|
+
"Remote verification is unavailable for this error"
|
|
2215
|
+
],
|
|
2216
|
+
source_unsupported: [
|
|
2217
|
+
"Verifica remota non disponibile per questa operazione",
|
|
2218
|
+
"Remote verification is unavailable for this operation"
|
|
2219
|
+
]
|
|
2220
|
+
};
|
|
2221
|
+
var failures2 = {
|
|
2222
|
+
product_found: [
|
|
2223
|
+
"Il prodotto collegato non \xE8 leggibile: Cassa in Cloud restituisce 404",
|
|
2224
|
+
"The mapped product cannot be read: Cassa in Cloud returned 404"
|
|
2225
|
+
],
|
|
2226
|
+
product_sales_point: [
|
|
2227
|
+
"Il prodotto \xE8 associato a un altro punto vendita",
|
|
2228
|
+
"The product belongs to another sales point"
|
|
2229
|
+
],
|
|
2230
|
+
variant_found: [
|
|
2231
|
+
"La variante rifiutata non esiste pi\xF9 nel prodotto",
|
|
2232
|
+
"The rejected variant no longer exists in the product"
|
|
2233
|
+
],
|
|
2234
|
+
sale_enabled: ["Il prodotto \xE8 disabilitato per la vendita", "The product is disabled for sale"]
|
|
2235
|
+
};
|
|
2236
|
+
var inconclusive = {
|
|
2237
|
+
ecommerce_enabled: [
|
|
2238
|
+
"Il canale ecommerce \xE8 disabilitato: verificare se \xE8 richiesto per questo invio",
|
|
2239
|
+
"The ecommerce channel is disabled: verify whether this delivery requires it"
|
|
2240
|
+
],
|
|
2241
|
+
risto_enabled: [
|
|
2242
|
+
"Il canale ristorazione \xE8 disabilitato: verificare se \xE8 richiesto per questo invio",
|
|
2243
|
+
"The restaurant channel is disabled: verify whether this delivery requires it"
|
|
2244
|
+
],
|
|
2245
|
+
variant_found: [
|
|
2246
|
+
"La presenza della variante non \xE8 univoca nella risposta remota",
|
|
2247
|
+
"Variant presence is ambiguous in the remote response"
|
|
2248
|
+
]
|
|
2249
|
+
};
|
|
2250
|
+
function describeRemoteDiagnosticCheck(check, locale) {
|
|
2251
|
+
const entry = (check.outcome === "fail" ? failures2[check.code] : check.outcome === "unknown" ? inconclusive[check.code] : void 0) ?? labels3[check.code];
|
|
2252
|
+
return entry?.[locale === "it" ? 0 : 1] ?? (locale === "it" ? "Controllo non riconosciuto: richiedi assistenza" : "Unrecognized check: contact support");
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2129
2255
|
// src/requests/CloseDiagnosticOperation.ts
|
|
2130
2256
|
var import_sdk_js_core = require("@deliverart/sdk-js-core");
|
|
2131
2257
|
var CloseDiagnosticOperation = class extends import_sdk_js_core.AbstractApiRequest {
|
|
@@ -2630,6 +2756,7 @@ function eligibleDiagnosticSelection(input, preview) {
|
|
|
2630
2756
|
describeDiagnosticResourcePath,
|
|
2631
2757
|
describeDiagnosticScope,
|
|
2632
2758
|
describeLocalDiagnostic,
|
|
2759
|
+
describeRemoteDiagnosticCheck,
|
|
2633
2760
|
describeVerification,
|
|
2634
2761
|
diagnosticAffectedOperationSchema,
|
|
2635
2762
|
diagnosticAssistanceEventSchema,
|
|
@@ -2680,5 +2807,7 @@ function eligibleDiagnosticSelection(input, preview) {
|
|
|
2680
2807
|
diagnosticSourceSchema,
|
|
2681
2808
|
diagnosticVerificationSchema,
|
|
2682
2809
|
eligibleDiagnosticSelection,
|
|
2683
|
-
readableDiagnosticFindingSchema
|
|
2810
|
+
readableDiagnosticFindingSchema,
|
|
2811
|
+
remoteDiagnosticCheckSchema,
|
|
2812
|
+
remoteDiagnosticVerificationSchema
|
|
2684
2813
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -154,6 +154,37 @@ declare const diagnosticVerificationSchema: z.ZodObject<{
|
|
|
154
154
|
type DiagnosticFinding = z.infer<typeof diagnosticFindingSchema>;
|
|
155
155
|
type DiagnosticResource = z.infer<typeof diagnosticResourceSchema>;
|
|
156
156
|
type DiagnosticVerification = z.infer<typeof diagnosticVerificationSchema>;
|
|
157
|
+
/** Current remote observations; these never assert historical causation or order delivery. */
|
|
158
|
+
declare const remoteDiagnosticCheckSchema: z.ZodObject<{
|
|
159
|
+
code: z.ZodString;
|
|
160
|
+
outcome: z.ZodEnum<{
|
|
161
|
+
unknown: "unknown";
|
|
162
|
+
pass: "pass";
|
|
163
|
+
fail: "fail";
|
|
164
|
+
}>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
declare const remoteDiagnosticVerificationSchema: z.ZodObject<{
|
|
167
|
+
scope: z.ZodLiteral<"remote">;
|
|
168
|
+
state: z.ZodEnum<{
|
|
169
|
+
superseded: "superseded";
|
|
170
|
+
queued: "queued";
|
|
171
|
+
running: "running";
|
|
172
|
+
completed: "completed";
|
|
173
|
+
}>;
|
|
174
|
+
requestedAt: z.ZodISODateTime;
|
|
175
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
176
|
+
fresh: z.ZodBoolean;
|
|
177
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
178
|
+
code: z.ZodString;
|
|
179
|
+
outcome: z.ZodEnum<{
|
|
180
|
+
unknown: "unknown";
|
|
181
|
+
pass: "pass";
|
|
182
|
+
fail: "fail";
|
|
183
|
+
}>;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
type RemoteDiagnosticVerification = z.infer<typeof remoteDiagnosticVerificationSchema>;
|
|
187
|
+
type RemoteDiagnosticCheck = z.infer<typeof remoteDiagnosticCheckSchema>;
|
|
157
188
|
|
|
158
189
|
type DiagnosticLocale = 'it' | 'en';
|
|
159
190
|
type Explanation = {
|
|
@@ -234,10 +265,10 @@ declare const diagnosticAssistanceSummarySchema: z.ZodObject<{
|
|
|
234
265
|
id: z.ZodString;
|
|
235
266
|
problemId: z.ZodString;
|
|
236
267
|
state: z.ZodEnum<{
|
|
268
|
+
completed: "completed";
|
|
237
269
|
requested: "requested";
|
|
238
270
|
assigned: "assigned";
|
|
239
271
|
waiting_for_customer: "waiting_for_customer";
|
|
240
|
-
completed: "completed";
|
|
241
272
|
}>;
|
|
242
273
|
revision: z.ZodNumber;
|
|
243
274
|
assigned: z.ZodBoolean;
|
|
@@ -266,10 +297,10 @@ declare const diagnosticAssistanceSchema: z.ZodObject<{
|
|
|
266
297
|
id: z.ZodString;
|
|
267
298
|
problemId: z.ZodString;
|
|
268
299
|
state: z.ZodEnum<{
|
|
300
|
+
completed: "completed";
|
|
269
301
|
requested: "requested";
|
|
270
302
|
assigned: "assigned";
|
|
271
303
|
waiting_for_customer: "waiting_for_customer";
|
|
272
|
-
completed: "completed";
|
|
273
304
|
}>;
|
|
274
305
|
revision: z.ZodNumber;
|
|
275
306
|
assigned: z.ZodBoolean;
|
|
@@ -304,10 +335,10 @@ declare const diagnosticAssistanceHistorySchema: z.ZodObject<{
|
|
|
304
335
|
id: z.ZodString;
|
|
305
336
|
problemId: z.ZodString;
|
|
306
337
|
state: z.ZodEnum<{
|
|
338
|
+
completed: "completed";
|
|
307
339
|
requested: "requested";
|
|
308
340
|
assigned: "assigned";
|
|
309
341
|
waiting_for_customer: "waiting_for_customer";
|
|
310
|
-
completed: "completed";
|
|
311
342
|
}>;
|
|
312
343
|
revision: z.ZodNumber;
|
|
313
344
|
assigned: z.ZodBoolean;
|
|
@@ -343,17 +374,17 @@ type DiagnosticAssistanceSummary = z.infer<typeof diagnosticAssistanceSummarySch
|
|
|
343
374
|
type DiagnosticAssistanceInternal = z.infer<typeof diagnosticAssistanceInternalSchema>;
|
|
344
375
|
type DiagnosticAssistanceUpdateInput = z.input<typeof diagnosticAssistanceUpdateInputSchema>;
|
|
345
376
|
declare const diagnosticAssistanceQueueItemSchema: z.ZodObject<{
|
|
346
|
-
revision: z.ZodNumber;
|
|
347
|
-
id: z.ZodString;
|
|
348
|
-
problemId: z.ZodString;
|
|
349
|
-
createdAt: z.ZodISODateTime;
|
|
350
|
-
updatedAt: z.ZodISODateTime;
|
|
351
377
|
state: z.ZodEnum<{
|
|
378
|
+
completed: "completed";
|
|
352
379
|
requested: "requested";
|
|
353
380
|
assigned: "assigned";
|
|
354
381
|
waiting_for_customer: "waiting_for_customer";
|
|
355
|
-
completed: "completed";
|
|
356
382
|
}>;
|
|
383
|
+
revision: z.ZodNumber;
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
problemId: z.ZodString;
|
|
386
|
+
createdAt: z.ZodISODateTime;
|
|
387
|
+
updatedAt: z.ZodISODateTime;
|
|
357
388
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
358
389
|
pointOfSaleId: z.ZodString;
|
|
359
390
|
integrationId: z.ZodString;
|
|
@@ -389,8 +420,8 @@ declare const diagnosticAttemptSchema: z.ZodObject<{
|
|
|
389
420
|
}>;
|
|
390
421
|
phase: z.ZodEnum<{
|
|
391
422
|
unknown: "unknown";
|
|
392
|
-
availability_sync: "availability_sync";
|
|
393
423
|
completed: "completed";
|
|
424
|
+
availability_sync: "availability_sync";
|
|
394
425
|
eligibility: "eligibility";
|
|
395
426
|
catalog_preparation: "catalog_preparation";
|
|
396
427
|
payload_validation: "payload_validation";
|
|
@@ -432,8 +463,8 @@ declare const diagnosticAttemptHistorySchema: z.ZodObject<{
|
|
|
432
463
|
}>;
|
|
433
464
|
phase: z.ZodEnum<{
|
|
434
465
|
unknown: "unknown";
|
|
435
|
-
availability_sync: "availability_sync";
|
|
436
466
|
completed: "completed";
|
|
467
|
+
availability_sync: "availability_sync";
|
|
437
468
|
eligibility: "eligibility";
|
|
438
469
|
catalog_preparation: "catalog_preparation";
|
|
439
470
|
payload_validation: "payload_validation";
|
|
@@ -1090,6 +1121,26 @@ declare const diagnosticProblemSchema: z.ZodObject<{
|
|
|
1090
1121
|
classifierVersion: z.ZodNumber;
|
|
1091
1122
|
}, z.core.$strip>>>;
|
|
1092
1123
|
}, z.core.$strip>;
|
|
1124
|
+
remoteVerification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1125
|
+
scope: z.ZodLiteral<"remote">;
|
|
1126
|
+
state: z.ZodEnum<{
|
|
1127
|
+
superseded: "superseded";
|
|
1128
|
+
queued: "queued";
|
|
1129
|
+
running: "running";
|
|
1130
|
+
completed: "completed";
|
|
1131
|
+
}>;
|
|
1132
|
+
requestedAt: z.ZodISODateTime;
|
|
1133
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1134
|
+
fresh: z.ZodBoolean;
|
|
1135
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1136
|
+
code: z.ZodString;
|
|
1137
|
+
outcome: z.ZodEnum<{
|
|
1138
|
+
unknown: "unknown";
|
|
1139
|
+
pass: "pass";
|
|
1140
|
+
fail: "fail";
|
|
1141
|
+
}>;
|
|
1142
|
+
}, z.core.$strict>>;
|
|
1143
|
+
}, z.core.$strip>>>;
|
|
1093
1144
|
}, z.core.$strip>;
|
|
1094
1145
|
declare const diagnosticProblemSummarySchema: z.ZodObject<{
|
|
1095
1146
|
id: z.ZodString;
|
|
@@ -1412,10 +1463,10 @@ declare const diagnosticRecoveryRequestSchema: z.ZodObject<{
|
|
|
1412
1463
|
operationId: z.ZodString;
|
|
1413
1464
|
expectedRevision: z.ZodNumber;
|
|
1414
1465
|
status: z.ZodEnum<{
|
|
1466
|
+
queued: "queued";
|
|
1415
1467
|
running: "running";
|
|
1416
1468
|
failed: "failed";
|
|
1417
1469
|
unavailable: "unavailable";
|
|
1418
|
-
queued: "queued";
|
|
1419
1470
|
submitted: "submitted";
|
|
1420
1471
|
rejected: "rejected";
|
|
1421
1472
|
}>;
|
|
@@ -1485,6 +1536,8 @@ declare function describeDiagnosticRecoveryItem(item: {
|
|
|
1485
1536
|
explanation: string;
|
|
1486
1537
|
};
|
|
1487
1538
|
|
|
1539
|
+
declare function describeRemoteDiagnosticCheck(check: RemoteDiagnosticCheck, locale: DiagnosticLocale): string;
|
|
1540
|
+
|
|
1488
1541
|
declare class CloseDiagnosticOperation extends AbstractApiRequest<typeof diagnosticManualClosureInputSchema, typeof diagnosticOperationSchema> {
|
|
1489
1542
|
private readonly operationId;
|
|
1490
1543
|
readonly method: "POST";
|
|
@@ -1575,10 +1628,10 @@ declare class GetDiagnosticAssistanceDetails extends AbstractApiRequest<typeof e
|
|
|
1575
1628
|
id: z.ZodString;
|
|
1576
1629
|
problemId: z.ZodString;
|
|
1577
1630
|
state: z.ZodEnum<{
|
|
1631
|
+
completed: "completed";
|
|
1578
1632
|
requested: "requested";
|
|
1579
1633
|
assigned: "assigned";
|
|
1580
1634
|
waiting_for_customer: "waiting_for_customer";
|
|
1581
|
-
completed: "completed";
|
|
1582
1635
|
}>;
|
|
1583
1636
|
revision: z.ZodNumber;
|
|
1584
1637
|
assigned: z.ZodBoolean;
|
|
@@ -1631,10 +1684,10 @@ declare class GetDiagnosticAssistanceHistory extends AbstractApiRequest<typeof e
|
|
|
1631
1684
|
id: z.ZodString;
|
|
1632
1685
|
problemId: z.ZodString;
|
|
1633
1686
|
state: z.ZodEnum<{
|
|
1687
|
+
completed: "completed";
|
|
1634
1688
|
requested: "requested";
|
|
1635
1689
|
assigned: "assigned";
|
|
1636
1690
|
waiting_for_customer: "waiting_for_customer";
|
|
1637
|
-
completed: "completed";
|
|
1638
1691
|
}>;
|
|
1639
1692
|
revision: z.ZodNumber;
|
|
1640
1693
|
assigned: z.ZodBoolean;
|
|
@@ -1699,10 +1752,10 @@ declare const diagnosticAssistanceQueueQuerySchema: z.ZodObject<{
|
|
|
1699
1752
|
page: z.ZodOptional<z.ZodNumber>;
|
|
1700
1753
|
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
1701
1754
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1755
|
+
completed: "completed";
|
|
1702
1756
|
requested: "requested";
|
|
1703
1757
|
assigned: "assigned";
|
|
1704
1758
|
waiting_for_customer: "waiting_for_customer";
|
|
1705
|
-
completed: "completed";
|
|
1706
1759
|
open: "open";
|
|
1707
1760
|
all: "all";
|
|
1708
1761
|
}>>;
|
|
@@ -1721,17 +1774,17 @@ declare class GetDiagnosticAssistanceQueue extends AbstractApiRequest<typeof emp
|
|
|
1721
1774
|
readonly inputSchema: z.ZodUndefined;
|
|
1722
1775
|
readonly outputSchema: z.ZodObject<{
|
|
1723
1776
|
data: z.ZodArray<z.ZodObject<{
|
|
1724
|
-
revision: z.ZodNumber;
|
|
1725
|
-
id: z.ZodString;
|
|
1726
|
-
problemId: z.ZodString;
|
|
1727
|
-
createdAt: z.ZodISODateTime;
|
|
1728
|
-
updatedAt: z.ZodISODateTime;
|
|
1729
1777
|
state: z.ZodEnum<{
|
|
1778
|
+
completed: "completed";
|
|
1730
1779
|
requested: "requested";
|
|
1731
1780
|
assigned: "assigned";
|
|
1732
1781
|
waiting_for_customer: "waiting_for_customer";
|
|
1733
|
-
completed: "completed";
|
|
1734
1782
|
}>;
|
|
1783
|
+
revision: z.ZodNumber;
|
|
1784
|
+
id: z.ZodString;
|
|
1785
|
+
problemId: z.ZodString;
|
|
1786
|
+
createdAt: z.ZodISODateTime;
|
|
1787
|
+
updatedAt: z.ZodISODateTime;
|
|
1735
1788
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1736
1789
|
pointOfSaleId: z.ZodString;
|
|
1737
1790
|
integrationId: z.ZodString;
|
|
@@ -1748,17 +1801,17 @@ declare class GetDiagnosticAssistanceQueue extends AbstractApiRequest<typeof emp
|
|
|
1748
1801
|
}, z.core.$strip>;
|
|
1749
1802
|
}, z.core.$strip>;
|
|
1750
1803
|
readonly listItemSchema: z.ZodObject<{
|
|
1751
|
-
revision: z.ZodNumber;
|
|
1752
|
-
id: z.ZodString;
|
|
1753
|
-
problemId: z.ZodString;
|
|
1754
|
-
createdAt: z.ZodISODateTime;
|
|
1755
|
-
updatedAt: z.ZodISODateTime;
|
|
1756
1804
|
state: z.ZodEnum<{
|
|
1805
|
+
completed: "completed";
|
|
1757
1806
|
requested: "requested";
|
|
1758
1807
|
assigned: "assigned";
|
|
1759
1808
|
waiting_for_customer: "waiting_for_customer";
|
|
1760
|
-
completed: "completed";
|
|
1761
1809
|
}>;
|
|
1810
|
+
revision: z.ZodNumber;
|
|
1811
|
+
id: z.ZodString;
|
|
1812
|
+
problemId: z.ZodString;
|
|
1813
|
+
createdAt: z.ZodISODateTime;
|
|
1814
|
+
updatedAt: z.ZodISODateTime;
|
|
1762
1815
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1763
1816
|
pointOfSaleId: z.ZodString;
|
|
1764
1817
|
integrationId: z.ZodString;
|
|
@@ -1770,10 +1823,10 @@ declare class GetDiagnosticAssistanceQueue extends AbstractApiRequest<typeof emp
|
|
|
1770
1823
|
page: z.ZodOptional<z.ZodNumber>;
|
|
1771
1824
|
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
1772
1825
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1826
|
+
completed: "completed";
|
|
1773
1827
|
requested: "requested";
|
|
1774
1828
|
assigned: "assigned";
|
|
1775
1829
|
waiting_for_customer: "waiting_for_customer";
|
|
1776
|
-
completed: "completed";
|
|
1777
1830
|
open: "open";
|
|
1778
1831
|
all: "all";
|
|
1779
1832
|
}>>;
|
|
@@ -1833,8 +1886,8 @@ declare class GetDiagnosticAttemptHistory extends AbstractApiRequest<typeof empt
|
|
|
1833
1886
|
}>;
|
|
1834
1887
|
phase: z.ZodEnum<{
|
|
1835
1888
|
unknown: "unknown";
|
|
1836
|
-
availability_sync: "availability_sync";
|
|
1837
1889
|
completed: "completed";
|
|
1890
|
+
availability_sync: "availability_sync";
|
|
1838
1891
|
eligibility: "eligibility";
|
|
1839
1892
|
catalog_preparation: "catalog_preparation";
|
|
1840
1893
|
payload_validation: "payload_validation";
|
|
@@ -2266,6 +2319,26 @@ declare class GetDiagnosticProblemDetails extends AbstractApiRequest<typeof empt
|
|
|
2266
2319
|
classifierVersion: z.ZodNumber;
|
|
2267
2320
|
}, z.core.$strip>>>;
|
|
2268
2321
|
}, z.core.$strip>;
|
|
2322
|
+
remoteVerification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2323
|
+
scope: z.ZodLiteral<"remote">;
|
|
2324
|
+
state: z.ZodEnum<{
|
|
2325
|
+
superseded: "superseded";
|
|
2326
|
+
queued: "queued";
|
|
2327
|
+
running: "running";
|
|
2328
|
+
completed: "completed";
|
|
2329
|
+
}>;
|
|
2330
|
+
requestedAt: z.ZodISODateTime;
|
|
2331
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2332
|
+
fresh: z.ZodBoolean;
|
|
2333
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
2334
|
+
code: z.ZodString;
|
|
2335
|
+
outcome: z.ZodEnum<{
|
|
2336
|
+
unknown: "unknown";
|
|
2337
|
+
pass: "pass";
|
|
2338
|
+
fail: "fail";
|
|
2339
|
+
}>;
|
|
2340
|
+
}, z.core.$strict>>;
|
|
2341
|
+
}, z.core.$strip>>>;
|
|
2269
2342
|
}, z.core.$strip>;
|
|
2270
2343
|
readonly querySchema: z.ZodObject<{
|
|
2271
2344
|
page: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2895,10 +2968,10 @@ declare class GetDiagnosticRecoveryRequestDetails extends AbstractApiRequest<typ
|
|
|
2895
2968
|
operationId: z.ZodString;
|
|
2896
2969
|
expectedRevision: z.ZodNumber;
|
|
2897
2970
|
status: z.ZodEnum<{
|
|
2971
|
+
queued: "queued";
|
|
2898
2972
|
running: "running";
|
|
2899
2973
|
failed: "failed";
|
|
2900
2974
|
unavailable: "unavailable";
|
|
2901
|
-
queued: "queued";
|
|
2902
2975
|
submitted: "submitted";
|
|
2903
2976
|
rejected: "rejected";
|
|
2904
2977
|
}>;
|
|
@@ -3016,10 +3089,10 @@ declare class ReplyDiagnosticAssistance extends AbstractApiRequest<typeof diagno
|
|
|
3016
3089
|
id: z.ZodString;
|
|
3017
3090
|
problemId: z.ZodString;
|
|
3018
3091
|
state: z.ZodEnum<{
|
|
3092
|
+
completed: "completed";
|
|
3019
3093
|
requested: "requested";
|
|
3020
3094
|
assigned: "assigned";
|
|
3021
3095
|
waiting_for_customer: "waiting_for_customer";
|
|
3022
|
-
completed: "completed";
|
|
3023
3096
|
}>;
|
|
3024
3097
|
revision: z.ZodNumber;
|
|
3025
3098
|
assigned: z.ZodBoolean;
|
|
@@ -3068,10 +3141,10 @@ declare class RequestDiagnosticAssistance extends AbstractApiRequest<typeof diag
|
|
|
3068
3141
|
id: z.ZodString;
|
|
3069
3142
|
problemId: z.ZodString;
|
|
3070
3143
|
state: z.ZodEnum<{
|
|
3144
|
+
completed: "completed";
|
|
3071
3145
|
requested: "requested";
|
|
3072
3146
|
assigned: "assigned";
|
|
3073
3147
|
waiting_for_customer: "waiting_for_customer";
|
|
3074
|
-
completed: "completed";
|
|
3075
3148
|
}>;
|
|
3076
3149
|
revision: z.ZodNumber;
|
|
3077
3150
|
assigned: z.ZodBoolean;
|
|
@@ -3128,10 +3201,10 @@ declare class RequestDiagnosticRecovery extends AbstractApiRequest<typeof diagno
|
|
|
3128
3201
|
operationId: z.ZodString;
|
|
3129
3202
|
expectedRevision: z.ZodNumber;
|
|
3130
3203
|
status: z.ZodEnum<{
|
|
3204
|
+
queued: "queued";
|
|
3131
3205
|
running: "running";
|
|
3132
3206
|
failed: "failed";
|
|
3133
3207
|
unavailable: "unavailable";
|
|
3134
|
-
queued: "queued";
|
|
3135
3208
|
submitted: "submitted";
|
|
3136
3209
|
rejected: "rejected";
|
|
3137
3210
|
}>;
|
|
@@ -3222,10 +3295,10 @@ declare class UpdateDiagnosticAssistance extends AbstractApiRequest<typeof diagn
|
|
|
3222
3295
|
id: z.ZodString;
|
|
3223
3296
|
problemId: z.ZodString;
|
|
3224
3297
|
state: z.ZodEnum<{
|
|
3298
|
+
completed: "completed";
|
|
3225
3299
|
requested: "requested";
|
|
3226
3300
|
assigned: "assigned";
|
|
3227
3301
|
waiting_for_customer: "waiting_for_customer";
|
|
3228
|
-
completed: "completed";
|
|
3229
3302
|
}>;
|
|
3230
3303
|
revision: z.ZodNumber;
|
|
3231
3304
|
assigned: z.ZodBoolean;
|
|
@@ -3545,6 +3618,26 @@ declare class VerifyDiagnosticProblem extends AbstractApiRequest<typeof emptyInp
|
|
|
3545
3618
|
classifierVersion: z.ZodNumber;
|
|
3546
3619
|
}, z.core.$strip>>>;
|
|
3547
3620
|
}, z.core.$strip>;
|
|
3621
|
+
remoteVerification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3622
|
+
scope: z.ZodLiteral<"remote">;
|
|
3623
|
+
state: z.ZodEnum<{
|
|
3624
|
+
superseded: "superseded";
|
|
3625
|
+
queued: "queued";
|
|
3626
|
+
running: "running";
|
|
3627
|
+
completed: "completed";
|
|
3628
|
+
}>;
|
|
3629
|
+
requestedAt: z.ZodISODateTime;
|
|
3630
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
3631
|
+
fresh: z.ZodBoolean;
|
|
3632
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
3633
|
+
code: z.ZodString;
|
|
3634
|
+
outcome: z.ZodEnum<{
|
|
3635
|
+
unknown: "unknown";
|
|
3636
|
+
pass: "pass";
|
|
3637
|
+
fail: "fail";
|
|
3638
|
+
}>;
|
|
3639
|
+
}, z.core.$strict>>;
|
|
3640
|
+
}, z.core.$strip>>>;
|
|
3548
3641
|
}, z.core.$strip>;
|
|
3549
3642
|
readonly querySchema: undefined;
|
|
3550
3643
|
readonly headersSchema: undefined;
|
|
@@ -3564,4 +3657,4 @@ declare function eligibleDiagnosticSelection(input: DiagnosticRecoveryInput, pre
|
|
|
3564
3657
|
/** Display only known provider brands; never echo arbitrary source metadata. */
|
|
3565
3658
|
declare function diagnosticServiceName(service: string | null | undefined): string | null;
|
|
3566
3659
|
|
|
3567
|
-
export { CloseDiagnosticOperation, type DiagnosticAffectedOperation, type DiagnosticAssistance, type DiagnosticAssistanceInternal, type DiagnosticAssistanceQueueItem, type DiagnosticAssistanceSummary, type DiagnosticAssistanceUpdateInput, type DiagnosticAttempt, type DiagnosticAttemptHistory, type DiagnosticFinding, type DiagnosticLocale, type DiagnosticOperationActions, type DiagnosticOperationContext, type DiagnosticOverview, type DiagnosticProblem, type DiagnosticProblemQueueItem, type DiagnosticProblemSummary, type DiagnosticRecoveryHistoryItem, type DiagnosticRecoveryInput, type DiagnosticRecoveryPreview, type DiagnosticRecoveryRequest, type DiagnosticResource, type DiagnosticVerification, GetDiagnosticAssistanceDetails, GetDiagnosticAssistanceHistory, GetDiagnosticAssistanceInternal, GetDiagnosticAssistanceQueue, GetDiagnosticAttemptHistory, GetDiagnosticOperationDetails, GetDiagnosticOverview, GetDiagnosticProblemDetails, GetDiagnosticProblemQueue, GetDiagnosticProblems, GetDiagnosticRecoveryHistory, GetDiagnosticRecoveryRequestDetails, PreviewDiagnosticRecovery, type RecoveryReceiptState, ReplyDiagnosticAssistance, RequestDiagnosticAssistance, RequestDiagnosticRecovery, UpdateDiagnosticAssistance, VerifyDiagnosticProblem, canCloseDiagnosticOperation, canSelectDiagnosticOperation, describeDiagnostic, describeDiagnosticActionAvailability, describeDiagnosticAttempt, describeDiagnosticOperation, describeDiagnosticRecovery, describeDiagnosticRecoveryItem, describeDiagnosticResourcePath, describeDiagnosticScope, describeLocalDiagnostic, describeVerification, diagnosticAffectedOperationSchema, diagnosticAssistanceEventSchema, diagnosticAssistanceHistorySchema, diagnosticAssistanceInternalSchema, diagnosticAssistanceQuerySchema, diagnosticAssistanceQueueItemSchema, diagnosticAssistanceQueueQuerySchema, diagnosticAssistanceReplyInputSchema, diagnosticAssistanceRequestInputSchema, diagnosticAssistanceSchema, diagnosticAssistanceSummarySchema, diagnosticAssistanceUpdateInputSchema, diagnosticAttemptHistoryQuerySchema, diagnosticAttemptHistorySchema, diagnosticAttemptSchema, diagnosticAttentionSchema, diagnosticCodeSchema, diagnosticDateSchema, diagnosticFindingSchema, diagnosticIdSchema, diagnosticInvalidationRevision, diagnosticInvalidationSchema, diagnosticManualClosureInputSchema, diagnosticOperationActionsSchema, diagnosticOperationContextSchema, diagnosticOperationSchema, diagnosticOverviewSchema, diagnosticProblemPageQuerySchema, diagnosticProblemQueueItemSchema, diagnosticProblemQueueQuerySchema, diagnosticProblemQueueSchema, diagnosticProblemSchema, diagnosticProblemSummarySchema, diagnosticProblemsQuerySchema, diagnosticRecoveryActionSchema, diagnosticRecoveryHistoryItemSchema, diagnosticRecoveryHistoryQuerySchema, diagnosticRecoveryInputSchema, diagnosticRecoveryPreviewSchema, diagnosticRecoveryRequestSchema, diagnosticRecoveryStateSchema, diagnosticRecoverySummarySchema, diagnosticResourceName, diagnosticResourceSchema, diagnosticSelection, diagnosticServiceName, diagnosticSourceSchema, diagnosticVerificationSchema, eligibleDiagnosticSelection, readableDiagnosticFindingSchema };
|
|
3660
|
+
export { CloseDiagnosticOperation, type DiagnosticAffectedOperation, type DiagnosticAssistance, type DiagnosticAssistanceInternal, type DiagnosticAssistanceQueueItem, type DiagnosticAssistanceSummary, type DiagnosticAssistanceUpdateInput, type DiagnosticAttempt, type DiagnosticAttemptHistory, type DiagnosticFinding, type DiagnosticLocale, type DiagnosticOperationActions, type DiagnosticOperationContext, type DiagnosticOverview, type DiagnosticProblem, type DiagnosticProblemQueueItem, type DiagnosticProblemSummary, type DiagnosticRecoveryHistoryItem, type DiagnosticRecoveryInput, type DiagnosticRecoveryPreview, type DiagnosticRecoveryRequest, type DiagnosticResource, type DiagnosticVerification, GetDiagnosticAssistanceDetails, GetDiagnosticAssistanceHistory, GetDiagnosticAssistanceInternal, GetDiagnosticAssistanceQueue, GetDiagnosticAttemptHistory, GetDiagnosticOperationDetails, GetDiagnosticOverview, GetDiagnosticProblemDetails, GetDiagnosticProblemQueue, GetDiagnosticProblems, GetDiagnosticRecoveryHistory, GetDiagnosticRecoveryRequestDetails, PreviewDiagnosticRecovery, type RecoveryReceiptState, type RemoteDiagnosticCheck, type RemoteDiagnosticVerification, ReplyDiagnosticAssistance, RequestDiagnosticAssistance, RequestDiagnosticRecovery, UpdateDiagnosticAssistance, VerifyDiagnosticProblem, canCloseDiagnosticOperation, canSelectDiagnosticOperation, describeDiagnostic, describeDiagnosticActionAvailability, describeDiagnosticAttempt, describeDiagnosticOperation, describeDiagnosticRecovery, describeDiagnosticRecoveryItem, describeDiagnosticResourcePath, describeDiagnosticScope, describeLocalDiagnostic, describeRemoteDiagnosticCheck, describeVerification, diagnosticAffectedOperationSchema, diagnosticAssistanceEventSchema, diagnosticAssistanceHistorySchema, diagnosticAssistanceInternalSchema, diagnosticAssistanceQuerySchema, diagnosticAssistanceQueueItemSchema, diagnosticAssistanceQueueQuerySchema, diagnosticAssistanceReplyInputSchema, diagnosticAssistanceRequestInputSchema, diagnosticAssistanceSchema, diagnosticAssistanceSummarySchema, diagnosticAssistanceUpdateInputSchema, diagnosticAttemptHistoryQuerySchema, diagnosticAttemptHistorySchema, diagnosticAttemptSchema, diagnosticAttentionSchema, diagnosticCodeSchema, diagnosticDateSchema, diagnosticFindingSchema, diagnosticIdSchema, diagnosticInvalidationRevision, diagnosticInvalidationSchema, diagnosticManualClosureInputSchema, diagnosticOperationActionsSchema, diagnosticOperationContextSchema, diagnosticOperationSchema, diagnosticOverviewSchema, diagnosticProblemPageQuerySchema, diagnosticProblemQueueItemSchema, diagnosticProblemQueueQuerySchema, diagnosticProblemQueueSchema, diagnosticProblemSchema, diagnosticProblemSummarySchema, diagnosticProblemsQuerySchema, diagnosticRecoveryActionSchema, diagnosticRecoveryHistoryItemSchema, diagnosticRecoveryHistoryQuerySchema, diagnosticRecoveryInputSchema, diagnosticRecoveryPreviewSchema, diagnosticRecoveryRequestSchema, diagnosticRecoveryStateSchema, diagnosticRecoverySummarySchema, diagnosticResourceName, diagnosticResourceSchema, diagnosticSelection, diagnosticServiceName, diagnosticSourceSchema, diagnosticVerificationSchema, eligibleDiagnosticSelection, readableDiagnosticFindingSchema, remoteDiagnosticCheckSchema, remoteDiagnosticVerificationSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -154,6 +154,37 @@ declare const diagnosticVerificationSchema: z.ZodObject<{
|
|
|
154
154
|
type DiagnosticFinding = z.infer<typeof diagnosticFindingSchema>;
|
|
155
155
|
type DiagnosticResource = z.infer<typeof diagnosticResourceSchema>;
|
|
156
156
|
type DiagnosticVerification = z.infer<typeof diagnosticVerificationSchema>;
|
|
157
|
+
/** Current remote observations; these never assert historical causation or order delivery. */
|
|
158
|
+
declare const remoteDiagnosticCheckSchema: z.ZodObject<{
|
|
159
|
+
code: z.ZodString;
|
|
160
|
+
outcome: z.ZodEnum<{
|
|
161
|
+
unknown: "unknown";
|
|
162
|
+
pass: "pass";
|
|
163
|
+
fail: "fail";
|
|
164
|
+
}>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
declare const remoteDiagnosticVerificationSchema: z.ZodObject<{
|
|
167
|
+
scope: z.ZodLiteral<"remote">;
|
|
168
|
+
state: z.ZodEnum<{
|
|
169
|
+
superseded: "superseded";
|
|
170
|
+
queued: "queued";
|
|
171
|
+
running: "running";
|
|
172
|
+
completed: "completed";
|
|
173
|
+
}>;
|
|
174
|
+
requestedAt: z.ZodISODateTime;
|
|
175
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
176
|
+
fresh: z.ZodBoolean;
|
|
177
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
178
|
+
code: z.ZodString;
|
|
179
|
+
outcome: z.ZodEnum<{
|
|
180
|
+
unknown: "unknown";
|
|
181
|
+
pass: "pass";
|
|
182
|
+
fail: "fail";
|
|
183
|
+
}>;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
type RemoteDiagnosticVerification = z.infer<typeof remoteDiagnosticVerificationSchema>;
|
|
187
|
+
type RemoteDiagnosticCheck = z.infer<typeof remoteDiagnosticCheckSchema>;
|
|
157
188
|
|
|
158
189
|
type DiagnosticLocale = 'it' | 'en';
|
|
159
190
|
type Explanation = {
|
|
@@ -234,10 +265,10 @@ declare const diagnosticAssistanceSummarySchema: z.ZodObject<{
|
|
|
234
265
|
id: z.ZodString;
|
|
235
266
|
problemId: z.ZodString;
|
|
236
267
|
state: z.ZodEnum<{
|
|
268
|
+
completed: "completed";
|
|
237
269
|
requested: "requested";
|
|
238
270
|
assigned: "assigned";
|
|
239
271
|
waiting_for_customer: "waiting_for_customer";
|
|
240
|
-
completed: "completed";
|
|
241
272
|
}>;
|
|
242
273
|
revision: z.ZodNumber;
|
|
243
274
|
assigned: z.ZodBoolean;
|
|
@@ -266,10 +297,10 @@ declare const diagnosticAssistanceSchema: z.ZodObject<{
|
|
|
266
297
|
id: z.ZodString;
|
|
267
298
|
problemId: z.ZodString;
|
|
268
299
|
state: z.ZodEnum<{
|
|
300
|
+
completed: "completed";
|
|
269
301
|
requested: "requested";
|
|
270
302
|
assigned: "assigned";
|
|
271
303
|
waiting_for_customer: "waiting_for_customer";
|
|
272
|
-
completed: "completed";
|
|
273
304
|
}>;
|
|
274
305
|
revision: z.ZodNumber;
|
|
275
306
|
assigned: z.ZodBoolean;
|
|
@@ -304,10 +335,10 @@ declare const diagnosticAssistanceHistorySchema: z.ZodObject<{
|
|
|
304
335
|
id: z.ZodString;
|
|
305
336
|
problemId: z.ZodString;
|
|
306
337
|
state: z.ZodEnum<{
|
|
338
|
+
completed: "completed";
|
|
307
339
|
requested: "requested";
|
|
308
340
|
assigned: "assigned";
|
|
309
341
|
waiting_for_customer: "waiting_for_customer";
|
|
310
|
-
completed: "completed";
|
|
311
342
|
}>;
|
|
312
343
|
revision: z.ZodNumber;
|
|
313
344
|
assigned: z.ZodBoolean;
|
|
@@ -343,17 +374,17 @@ type DiagnosticAssistanceSummary = z.infer<typeof diagnosticAssistanceSummarySch
|
|
|
343
374
|
type DiagnosticAssistanceInternal = z.infer<typeof diagnosticAssistanceInternalSchema>;
|
|
344
375
|
type DiagnosticAssistanceUpdateInput = z.input<typeof diagnosticAssistanceUpdateInputSchema>;
|
|
345
376
|
declare const diagnosticAssistanceQueueItemSchema: z.ZodObject<{
|
|
346
|
-
revision: z.ZodNumber;
|
|
347
|
-
id: z.ZodString;
|
|
348
|
-
problemId: z.ZodString;
|
|
349
|
-
createdAt: z.ZodISODateTime;
|
|
350
|
-
updatedAt: z.ZodISODateTime;
|
|
351
377
|
state: z.ZodEnum<{
|
|
378
|
+
completed: "completed";
|
|
352
379
|
requested: "requested";
|
|
353
380
|
assigned: "assigned";
|
|
354
381
|
waiting_for_customer: "waiting_for_customer";
|
|
355
|
-
completed: "completed";
|
|
356
382
|
}>;
|
|
383
|
+
revision: z.ZodNumber;
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
problemId: z.ZodString;
|
|
386
|
+
createdAt: z.ZodISODateTime;
|
|
387
|
+
updatedAt: z.ZodISODateTime;
|
|
357
388
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
358
389
|
pointOfSaleId: z.ZodString;
|
|
359
390
|
integrationId: z.ZodString;
|
|
@@ -389,8 +420,8 @@ declare const diagnosticAttemptSchema: z.ZodObject<{
|
|
|
389
420
|
}>;
|
|
390
421
|
phase: z.ZodEnum<{
|
|
391
422
|
unknown: "unknown";
|
|
392
|
-
availability_sync: "availability_sync";
|
|
393
423
|
completed: "completed";
|
|
424
|
+
availability_sync: "availability_sync";
|
|
394
425
|
eligibility: "eligibility";
|
|
395
426
|
catalog_preparation: "catalog_preparation";
|
|
396
427
|
payload_validation: "payload_validation";
|
|
@@ -432,8 +463,8 @@ declare const diagnosticAttemptHistorySchema: z.ZodObject<{
|
|
|
432
463
|
}>;
|
|
433
464
|
phase: z.ZodEnum<{
|
|
434
465
|
unknown: "unknown";
|
|
435
|
-
availability_sync: "availability_sync";
|
|
436
466
|
completed: "completed";
|
|
467
|
+
availability_sync: "availability_sync";
|
|
437
468
|
eligibility: "eligibility";
|
|
438
469
|
catalog_preparation: "catalog_preparation";
|
|
439
470
|
payload_validation: "payload_validation";
|
|
@@ -1090,6 +1121,26 @@ declare const diagnosticProblemSchema: z.ZodObject<{
|
|
|
1090
1121
|
classifierVersion: z.ZodNumber;
|
|
1091
1122
|
}, z.core.$strip>>>;
|
|
1092
1123
|
}, z.core.$strip>;
|
|
1124
|
+
remoteVerification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1125
|
+
scope: z.ZodLiteral<"remote">;
|
|
1126
|
+
state: z.ZodEnum<{
|
|
1127
|
+
superseded: "superseded";
|
|
1128
|
+
queued: "queued";
|
|
1129
|
+
running: "running";
|
|
1130
|
+
completed: "completed";
|
|
1131
|
+
}>;
|
|
1132
|
+
requestedAt: z.ZodISODateTime;
|
|
1133
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1134
|
+
fresh: z.ZodBoolean;
|
|
1135
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1136
|
+
code: z.ZodString;
|
|
1137
|
+
outcome: z.ZodEnum<{
|
|
1138
|
+
unknown: "unknown";
|
|
1139
|
+
pass: "pass";
|
|
1140
|
+
fail: "fail";
|
|
1141
|
+
}>;
|
|
1142
|
+
}, z.core.$strict>>;
|
|
1143
|
+
}, z.core.$strip>>>;
|
|
1093
1144
|
}, z.core.$strip>;
|
|
1094
1145
|
declare const diagnosticProblemSummarySchema: z.ZodObject<{
|
|
1095
1146
|
id: z.ZodString;
|
|
@@ -1412,10 +1463,10 @@ declare const diagnosticRecoveryRequestSchema: z.ZodObject<{
|
|
|
1412
1463
|
operationId: z.ZodString;
|
|
1413
1464
|
expectedRevision: z.ZodNumber;
|
|
1414
1465
|
status: z.ZodEnum<{
|
|
1466
|
+
queued: "queued";
|
|
1415
1467
|
running: "running";
|
|
1416
1468
|
failed: "failed";
|
|
1417
1469
|
unavailable: "unavailable";
|
|
1418
|
-
queued: "queued";
|
|
1419
1470
|
submitted: "submitted";
|
|
1420
1471
|
rejected: "rejected";
|
|
1421
1472
|
}>;
|
|
@@ -1485,6 +1536,8 @@ declare function describeDiagnosticRecoveryItem(item: {
|
|
|
1485
1536
|
explanation: string;
|
|
1486
1537
|
};
|
|
1487
1538
|
|
|
1539
|
+
declare function describeRemoteDiagnosticCheck(check: RemoteDiagnosticCheck, locale: DiagnosticLocale): string;
|
|
1540
|
+
|
|
1488
1541
|
declare class CloseDiagnosticOperation extends AbstractApiRequest<typeof diagnosticManualClosureInputSchema, typeof diagnosticOperationSchema> {
|
|
1489
1542
|
private readonly operationId;
|
|
1490
1543
|
readonly method: "POST";
|
|
@@ -1575,10 +1628,10 @@ declare class GetDiagnosticAssistanceDetails extends AbstractApiRequest<typeof e
|
|
|
1575
1628
|
id: z.ZodString;
|
|
1576
1629
|
problemId: z.ZodString;
|
|
1577
1630
|
state: z.ZodEnum<{
|
|
1631
|
+
completed: "completed";
|
|
1578
1632
|
requested: "requested";
|
|
1579
1633
|
assigned: "assigned";
|
|
1580
1634
|
waiting_for_customer: "waiting_for_customer";
|
|
1581
|
-
completed: "completed";
|
|
1582
1635
|
}>;
|
|
1583
1636
|
revision: z.ZodNumber;
|
|
1584
1637
|
assigned: z.ZodBoolean;
|
|
@@ -1631,10 +1684,10 @@ declare class GetDiagnosticAssistanceHistory extends AbstractApiRequest<typeof e
|
|
|
1631
1684
|
id: z.ZodString;
|
|
1632
1685
|
problemId: z.ZodString;
|
|
1633
1686
|
state: z.ZodEnum<{
|
|
1687
|
+
completed: "completed";
|
|
1634
1688
|
requested: "requested";
|
|
1635
1689
|
assigned: "assigned";
|
|
1636
1690
|
waiting_for_customer: "waiting_for_customer";
|
|
1637
|
-
completed: "completed";
|
|
1638
1691
|
}>;
|
|
1639
1692
|
revision: z.ZodNumber;
|
|
1640
1693
|
assigned: z.ZodBoolean;
|
|
@@ -1699,10 +1752,10 @@ declare const diagnosticAssistanceQueueQuerySchema: z.ZodObject<{
|
|
|
1699
1752
|
page: z.ZodOptional<z.ZodNumber>;
|
|
1700
1753
|
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
1701
1754
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1755
|
+
completed: "completed";
|
|
1702
1756
|
requested: "requested";
|
|
1703
1757
|
assigned: "assigned";
|
|
1704
1758
|
waiting_for_customer: "waiting_for_customer";
|
|
1705
|
-
completed: "completed";
|
|
1706
1759
|
open: "open";
|
|
1707
1760
|
all: "all";
|
|
1708
1761
|
}>>;
|
|
@@ -1721,17 +1774,17 @@ declare class GetDiagnosticAssistanceQueue extends AbstractApiRequest<typeof emp
|
|
|
1721
1774
|
readonly inputSchema: z.ZodUndefined;
|
|
1722
1775
|
readonly outputSchema: z.ZodObject<{
|
|
1723
1776
|
data: z.ZodArray<z.ZodObject<{
|
|
1724
|
-
revision: z.ZodNumber;
|
|
1725
|
-
id: z.ZodString;
|
|
1726
|
-
problemId: z.ZodString;
|
|
1727
|
-
createdAt: z.ZodISODateTime;
|
|
1728
|
-
updatedAt: z.ZodISODateTime;
|
|
1729
1777
|
state: z.ZodEnum<{
|
|
1778
|
+
completed: "completed";
|
|
1730
1779
|
requested: "requested";
|
|
1731
1780
|
assigned: "assigned";
|
|
1732
1781
|
waiting_for_customer: "waiting_for_customer";
|
|
1733
|
-
completed: "completed";
|
|
1734
1782
|
}>;
|
|
1783
|
+
revision: z.ZodNumber;
|
|
1784
|
+
id: z.ZodString;
|
|
1785
|
+
problemId: z.ZodString;
|
|
1786
|
+
createdAt: z.ZodISODateTime;
|
|
1787
|
+
updatedAt: z.ZodISODateTime;
|
|
1735
1788
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1736
1789
|
pointOfSaleId: z.ZodString;
|
|
1737
1790
|
integrationId: z.ZodString;
|
|
@@ -1748,17 +1801,17 @@ declare class GetDiagnosticAssistanceQueue extends AbstractApiRequest<typeof emp
|
|
|
1748
1801
|
}, z.core.$strip>;
|
|
1749
1802
|
}, z.core.$strip>;
|
|
1750
1803
|
readonly listItemSchema: z.ZodObject<{
|
|
1751
|
-
revision: z.ZodNumber;
|
|
1752
|
-
id: z.ZodString;
|
|
1753
|
-
problemId: z.ZodString;
|
|
1754
|
-
createdAt: z.ZodISODateTime;
|
|
1755
|
-
updatedAt: z.ZodISODateTime;
|
|
1756
1804
|
state: z.ZodEnum<{
|
|
1805
|
+
completed: "completed";
|
|
1757
1806
|
requested: "requested";
|
|
1758
1807
|
assigned: "assigned";
|
|
1759
1808
|
waiting_for_customer: "waiting_for_customer";
|
|
1760
|
-
completed: "completed";
|
|
1761
1809
|
}>;
|
|
1810
|
+
revision: z.ZodNumber;
|
|
1811
|
+
id: z.ZodString;
|
|
1812
|
+
problemId: z.ZodString;
|
|
1813
|
+
createdAt: z.ZodISODateTime;
|
|
1814
|
+
updatedAt: z.ZodISODateTime;
|
|
1762
1815
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1763
1816
|
pointOfSaleId: z.ZodString;
|
|
1764
1817
|
integrationId: z.ZodString;
|
|
@@ -1770,10 +1823,10 @@ declare class GetDiagnosticAssistanceQueue extends AbstractApiRequest<typeof emp
|
|
|
1770
1823
|
page: z.ZodOptional<z.ZodNumber>;
|
|
1771
1824
|
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
1772
1825
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1826
|
+
completed: "completed";
|
|
1773
1827
|
requested: "requested";
|
|
1774
1828
|
assigned: "assigned";
|
|
1775
1829
|
waiting_for_customer: "waiting_for_customer";
|
|
1776
|
-
completed: "completed";
|
|
1777
1830
|
open: "open";
|
|
1778
1831
|
all: "all";
|
|
1779
1832
|
}>>;
|
|
@@ -1833,8 +1886,8 @@ declare class GetDiagnosticAttemptHistory extends AbstractApiRequest<typeof empt
|
|
|
1833
1886
|
}>;
|
|
1834
1887
|
phase: z.ZodEnum<{
|
|
1835
1888
|
unknown: "unknown";
|
|
1836
|
-
availability_sync: "availability_sync";
|
|
1837
1889
|
completed: "completed";
|
|
1890
|
+
availability_sync: "availability_sync";
|
|
1838
1891
|
eligibility: "eligibility";
|
|
1839
1892
|
catalog_preparation: "catalog_preparation";
|
|
1840
1893
|
payload_validation: "payload_validation";
|
|
@@ -2266,6 +2319,26 @@ declare class GetDiagnosticProblemDetails extends AbstractApiRequest<typeof empt
|
|
|
2266
2319
|
classifierVersion: z.ZodNumber;
|
|
2267
2320
|
}, z.core.$strip>>>;
|
|
2268
2321
|
}, z.core.$strip>;
|
|
2322
|
+
remoteVerification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2323
|
+
scope: z.ZodLiteral<"remote">;
|
|
2324
|
+
state: z.ZodEnum<{
|
|
2325
|
+
superseded: "superseded";
|
|
2326
|
+
queued: "queued";
|
|
2327
|
+
running: "running";
|
|
2328
|
+
completed: "completed";
|
|
2329
|
+
}>;
|
|
2330
|
+
requestedAt: z.ZodISODateTime;
|
|
2331
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2332
|
+
fresh: z.ZodBoolean;
|
|
2333
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
2334
|
+
code: z.ZodString;
|
|
2335
|
+
outcome: z.ZodEnum<{
|
|
2336
|
+
unknown: "unknown";
|
|
2337
|
+
pass: "pass";
|
|
2338
|
+
fail: "fail";
|
|
2339
|
+
}>;
|
|
2340
|
+
}, z.core.$strict>>;
|
|
2341
|
+
}, z.core.$strip>>>;
|
|
2269
2342
|
}, z.core.$strip>;
|
|
2270
2343
|
readonly querySchema: z.ZodObject<{
|
|
2271
2344
|
page: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2895,10 +2968,10 @@ declare class GetDiagnosticRecoveryRequestDetails extends AbstractApiRequest<typ
|
|
|
2895
2968
|
operationId: z.ZodString;
|
|
2896
2969
|
expectedRevision: z.ZodNumber;
|
|
2897
2970
|
status: z.ZodEnum<{
|
|
2971
|
+
queued: "queued";
|
|
2898
2972
|
running: "running";
|
|
2899
2973
|
failed: "failed";
|
|
2900
2974
|
unavailable: "unavailable";
|
|
2901
|
-
queued: "queued";
|
|
2902
2975
|
submitted: "submitted";
|
|
2903
2976
|
rejected: "rejected";
|
|
2904
2977
|
}>;
|
|
@@ -3016,10 +3089,10 @@ declare class ReplyDiagnosticAssistance extends AbstractApiRequest<typeof diagno
|
|
|
3016
3089
|
id: z.ZodString;
|
|
3017
3090
|
problemId: z.ZodString;
|
|
3018
3091
|
state: z.ZodEnum<{
|
|
3092
|
+
completed: "completed";
|
|
3019
3093
|
requested: "requested";
|
|
3020
3094
|
assigned: "assigned";
|
|
3021
3095
|
waiting_for_customer: "waiting_for_customer";
|
|
3022
|
-
completed: "completed";
|
|
3023
3096
|
}>;
|
|
3024
3097
|
revision: z.ZodNumber;
|
|
3025
3098
|
assigned: z.ZodBoolean;
|
|
@@ -3068,10 +3141,10 @@ declare class RequestDiagnosticAssistance extends AbstractApiRequest<typeof diag
|
|
|
3068
3141
|
id: z.ZodString;
|
|
3069
3142
|
problemId: z.ZodString;
|
|
3070
3143
|
state: z.ZodEnum<{
|
|
3144
|
+
completed: "completed";
|
|
3071
3145
|
requested: "requested";
|
|
3072
3146
|
assigned: "assigned";
|
|
3073
3147
|
waiting_for_customer: "waiting_for_customer";
|
|
3074
|
-
completed: "completed";
|
|
3075
3148
|
}>;
|
|
3076
3149
|
revision: z.ZodNumber;
|
|
3077
3150
|
assigned: z.ZodBoolean;
|
|
@@ -3128,10 +3201,10 @@ declare class RequestDiagnosticRecovery extends AbstractApiRequest<typeof diagno
|
|
|
3128
3201
|
operationId: z.ZodString;
|
|
3129
3202
|
expectedRevision: z.ZodNumber;
|
|
3130
3203
|
status: z.ZodEnum<{
|
|
3204
|
+
queued: "queued";
|
|
3131
3205
|
running: "running";
|
|
3132
3206
|
failed: "failed";
|
|
3133
3207
|
unavailable: "unavailable";
|
|
3134
|
-
queued: "queued";
|
|
3135
3208
|
submitted: "submitted";
|
|
3136
3209
|
rejected: "rejected";
|
|
3137
3210
|
}>;
|
|
@@ -3222,10 +3295,10 @@ declare class UpdateDiagnosticAssistance extends AbstractApiRequest<typeof diagn
|
|
|
3222
3295
|
id: z.ZodString;
|
|
3223
3296
|
problemId: z.ZodString;
|
|
3224
3297
|
state: z.ZodEnum<{
|
|
3298
|
+
completed: "completed";
|
|
3225
3299
|
requested: "requested";
|
|
3226
3300
|
assigned: "assigned";
|
|
3227
3301
|
waiting_for_customer: "waiting_for_customer";
|
|
3228
|
-
completed: "completed";
|
|
3229
3302
|
}>;
|
|
3230
3303
|
revision: z.ZodNumber;
|
|
3231
3304
|
assigned: z.ZodBoolean;
|
|
@@ -3545,6 +3618,26 @@ declare class VerifyDiagnosticProblem extends AbstractApiRequest<typeof emptyInp
|
|
|
3545
3618
|
classifierVersion: z.ZodNumber;
|
|
3546
3619
|
}, z.core.$strip>>>;
|
|
3547
3620
|
}, z.core.$strip>;
|
|
3621
|
+
remoteVerification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3622
|
+
scope: z.ZodLiteral<"remote">;
|
|
3623
|
+
state: z.ZodEnum<{
|
|
3624
|
+
superseded: "superseded";
|
|
3625
|
+
queued: "queued";
|
|
3626
|
+
running: "running";
|
|
3627
|
+
completed: "completed";
|
|
3628
|
+
}>;
|
|
3629
|
+
requestedAt: z.ZodISODateTime;
|
|
3630
|
+
checkedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
3631
|
+
fresh: z.ZodBoolean;
|
|
3632
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
3633
|
+
code: z.ZodString;
|
|
3634
|
+
outcome: z.ZodEnum<{
|
|
3635
|
+
unknown: "unknown";
|
|
3636
|
+
pass: "pass";
|
|
3637
|
+
fail: "fail";
|
|
3638
|
+
}>;
|
|
3639
|
+
}, z.core.$strict>>;
|
|
3640
|
+
}, z.core.$strip>>>;
|
|
3548
3641
|
}, z.core.$strip>;
|
|
3549
3642
|
readonly querySchema: undefined;
|
|
3550
3643
|
readonly headersSchema: undefined;
|
|
@@ -3564,4 +3657,4 @@ declare function eligibleDiagnosticSelection(input: DiagnosticRecoveryInput, pre
|
|
|
3564
3657
|
/** Display only known provider brands; never echo arbitrary source metadata. */
|
|
3565
3658
|
declare function diagnosticServiceName(service: string | null | undefined): string | null;
|
|
3566
3659
|
|
|
3567
|
-
export { CloseDiagnosticOperation, type DiagnosticAffectedOperation, type DiagnosticAssistance, type DiagnosticAssistanceInternal, type DiagnosticAssistanceQueueItem, type DiagnosticAssistanceSummary, type DiagnosticAssistanceUpdateInput, type DiagnosticAttempt, type DiagnosticAttemptHistory, type DiagnosticFinding, type DiagnosticLocale, type DiagnosticOperationActions, type DiagnosticOperationContext, type DiagnosticOverview, type DiagnosticProblem, type DiagnosticProblemQueueItem, type DiagnosticProblemSummary, type DiagnosticRecoveryHistoryItem, type DiagnosticRecoveryInput, type DiagnosticRecoveryPreview, type DiagnosticRecoveryRequest, type DiagnosticResource, type DiagnosticVerification, GetDiagnosticAssistanceDetails, GetDiagnosticAssistanceHistory, GetDiagnosticAssistanceInternal, GetDiagnosticAssistanceQueue, GetDiagnosticAttemptHistory, GetDiagnosticOperationDetails, GetDiagnosticOverview, GetDiagnosticProblemDetails, GetDiagnosticProblemQueue, GetDiagnosticProblems, GetDiagnosticRecoveryHistory, GetDiagnosticRecoveryRequestDetails, PreviewDiagnosticRecovery, type RecoveryReceiptState, ReplyDiagnosticAssistance, RequestDiagnosticAssistance, RequestDiagnosticRecovery, UpdateDiagnosticAssistance, VerifyDiagnosticProblem, canCloseDiagnosticOperation, canSelectDiagnosticOperation, describeDiagnostic, describeDiagnosticActionAvailability, describeDiagnosticAttempt, describeDiagnosticOperation, describeDiagnosticRecovery, describeDiagnosticRecoveryItem, describeDiagnosticResourcePath, describeDiagnosticScope, describeLocalDiagnostic, describeVerification, diagnosticAffectedOperationSchema, diagnosticAssistanceEventSchema, diagnosticAssistanceHistorySchema, diagnosticAssistanceInternalSchema, diagnosticAssistanceQuerySchema, diagnosticAssistanceQueueItemSchema, diagnosticAssistanceQueueQuerySchema, diagnosticAssistanceReplyInputSchema, diagnosticAssistanceRequestInputSchema, diagnosticAssistanceSchema, diagnosticAssistanceSummarySchema, diagnosticAssistanceUpdateInputSchema, diagnosticAttemptHistoryQuerySchema, diagnosticAttemptHistorySchema, diagnosticAttemptSchema, diagnosticAttentionSchema, diagnosticCodeSchema, diagnosticDateSchema, diagnosticFindingSchema, diagnosticIdSchema, diagnosticInvalidationRevision, diagnosticInvalidationSchema, diagnosticManualClosureInputSchema, diagnosticOperationActionsSchema, diagnosticOperationContextSchema, diagnosticOperationSchema, diagnosticOverviewSchema, diagnosticProblemPageQuerySchema, diagnosticProblemQueueItemSchema, diagnosticProblemQueueQuerySchema, diagnosticProblemQueueSchema, diagnosticProblemSchema, diagnosticProblemSummarySchema, diagnosticProblemsQuerySchema, diagnosticRecoveryActionSchema, diagnosticRecoveryHistoryItemSchema, diagnosticRecoveryHistoryQuerySchema, diagnosticRecoveryInputSchema, diagnosticRecoveryPreviewSchema, diagnosticRecoveryRequestSchema, diagnosticRecoveryStateSchema, diagnosticRecoverySummarySchema, diagnosticResourceName, diagnosticResourceSchema, diagnosticSelection, diagnosticServiceName, diagnosticSourceSchema, diagnosticVerificationSchema, eligibleDiagnosticSelection, readableDiagnosticFindingSchema };
|
|
3660
|
+
export { CloseDiagnosticOperation, type DiagnosticAffectedOperation, type DiagnosticAssistance, type DiagnosticAssistanceInternal, type DiagnosticAssistanceQueueItem, type DiagnosticAssistanceSummary, type DiagnosticAssistanceUpdateInput, type DiagnosticAttempt, type DiagnosticAttemptHistory, type DiagnosticFinding, type DiagnosticLocale, type DiagnosticOperationActions, type DiagnosticOperationContext, type DiagnosticOverview, type DiagnosticProblem, type DiagnosticProblemQueueItem, type DiagnosticProblemSummary, type DiagnosticRecoveryHistoryItem, type DiagnosticRecoveryInput, type DiagnosticRecoveryPreview, type DiagnosticRecoveryRequest, type DiagnosticResource, type DiagnosticVerification, GetDiagnosticAssistanceDetails, GetDiagnosticAssistanceHistory, GetDiagnosticAssistanceInternal, GetDiagnosticAssistanceQueue, GetDiagnosticAttemptHistory, GetDiagnosticOperationDetails, GetDiagnosticOverview, GetDiagnosticProblemDetails, GetDiagnosticProblemQueue, GetDiagnosticProblems, GetDiagnosticRecoveryHistory, GetDiagnosticRecoveryRequestDetails, PreviewDiagnosticRecovery, type RecoveryReceiptState, type RemoteDiagnosticCheck, type RemoteDiagnosticVerification, ReplyDiagnosticAssistance, RequestDiagnosticAssistance, RequestDiagnosticRecovery, UpdateDiagnosticAssistance, VerifyDiagnosticProblem, canCloseDiagnosticOperation, canSelectDiagnosticOperation, describeDiagnostic, describeDiagnosticActionAvailability, describeDiagnosticAttempt, describeDiagnosticOperation, describeDiagnosticRecovery, describeDiagnosticRecoveryItem, describeDiagnosticResourcePath, describeDiagnosticScope, describeLocalDiagnostic, describeRemoteDiagnosticCheck, describeVerification, diagnosticAffectedOperationSchema, diagnosticAssistanceEventSchema, diagnosticAssistanceHistorySchema, diagnosticAssistanceInternalSchema, diagnosticAssistanceQuerySchema, diagnosticAssistanceQueueItemSchema, diagnosticAssistanceQueueQuerySchema, diagnosticAssistanceReplyInputSchema, diagnosticAssistanceRequestInputSchema, diagnosticAssistanceSchema, diagnosticAssistanceSummarySchema, diagnosticAssistanceUpdateInputSchema, diagnosticAttemptHistoryQuerySchema, diagnosticAttemptHistorySchema, diagnosticAttemptSchema, diagnosticAttentionSchema, diagnosticCodeSchema, diagnosticDateSchema, diagnosticFindingSchema, diagnosticIdSchema, diagnosticInvalidationRevision, diagnosticInvalidationSchema, diagnosticManualClosureInputSchema, diagnosticOperationActionsSchema, diagnosticOperationContextSchema, diagnosticOperationSchema, diagnosticOverviewSchema, diagnosticProblemPageQuerySchema, diagnosticProblemQueueItemSchema, diagnosticProblemQueueQuerySchema, diagnosticProblemQueueSchema, diagnosticProblemSchema, diagnosticProblemSummarySchema, diagnosticProblemsQuerySchema, diagnosticRecoveryActionSchema, diagnosticRecoveryHistoryItemSchema, diagnosticRecoveryHistoryQuerySchema, diagnosticRecoveryInputSchema, diagnosticRecoveryPreviewSchema, diagnosticRecoveryRequestSchema, diagnosticRecoveryStateSchema, diagnosticRecoverySummarySchema, diagnosticResourceName, diagnosticResourceSchema, diagnosticSelection, diagnosticServiceName, diagnosticSourceSchema, diagnosticVerificationSchema, eligibleDiagnosticSelection, readableDiagnosticFindingSchema, remoteDiagnosticCheckSchema, remoteDiagnosticVerificationSchema };
|
package/dist/index.js
CHANGED
|
@@ -66,6 +66,18 @@ var diagnosticVerificationSchema = z.object({
|
|
|
66
66
|
fresh: z.boolean(),
|
|
67
67
|
findings: z.array(diagnosticFindingSchema).max(100).optional()
|
|
68
68
|
});
|
|
69
|
+
var remoteDiagnosticCheckSchema = z.object({
|
|
70
|
+
code: diagnosticCodeSchema,
|
|
71
|
+
outcome: z.enum(["pass", "fail", "unknown"])
|
|
72
|
+
}).strict();
|
|
73
|
+
var remoteDiagnosticVerificationSchema = z.object({
|
|
74
|
+
scope: z.literal("remote"),
|
|
75
|
+
state: z.enum(["queued", "running", "completed", "superseded"]),
|
|
76
|
+
requestedAt: diagnosticDateSchema,
|
|
77
|
+
checkedAt: diagnosticDateSchema.nullable(),
|
|
78
|
+
fresh: z.boolean(),
|
|
79
|
+
checks: z.array(remoteDiagnosticCheckSchema).max(30)
|
|
80
|
+
});
|
|
69
81
|
|
|
70
82
|
// src/action-availability.ts
|
|
71
83
|
var recovery = z2.discriminatedUnion("eligible", [
|
|
@@ -1821,7 +1833,8 @@ var diagnosticProblemSchema = z7.object({
|
|
|
1821
1833
|
page: z7.number().int().positive(),
|
|
1822
1834
|
itemsPerPage: z7.number().int().min(1).max(100),
|
|
1823
1835
|
hasNextPage: z7.boolean(),
|
|
1824
|
-
verification: diagnosticVerificationSchema
|
|
1836
|
+
verification: diagnosticVerificationSchema,
|
|
1837
|
+
remoteVerification: remoteDiagnosticVerificationSchema.nullish()
|
|
1825
1838
|
});
|
|
1826
1839
|
var diagnosticProblemSummarySchema = z7.object({
|
|
1827
1840
|
id: diagnosticIdSchema,
|
|
@@ -2020,6 +2033,116 @@ function describeDiagnosticRecoveryItem(item, locale) {
|
|
|
2020
2033
|
return { state, title, explanation };
|
|
2021
2034
|
}
|
|
2022
2035
|
|
|
2036
|
+
// src/remote-verification.ts
|
|
2037
|
+
var labels3 = {
|
|
2038
|
+
product_found: ["Il prodotto esiste in Cassa in Cloud", "The product exists in Cassa in Cloud"],
|
|
2039
|
+
product_sales_point: [
|
|
2040
|
+
"Il prodotto appartiene al punto vendita",
|
|
2041
|
+
"The product belongs to this sales point"
|
|
2042
|
+
],
|
|
2043
|
+
variant_found: [
|
|
2044
|
+
"La variante rifiutata esiste nel prodotto",
|
|
2045
|
+
"The rejected variant exists in the product"
|
|
2046
|
+
],
|
|
2047
|
+
sale_enabled: ["Il prodotto \xE8 abilitato alla vendita", "The product is enabled for sale"],
|
|
2048
|
+
ecommerce_enabled: ["Il canale ecommerce \xE8 abilitato", "The ecommerce channel is enabled"],
|
|
2049
|
+
risto_enabled: ["Il canale ristorazione \xE8 abilitato", "The restaurant channel is enabled"],
|
|
2050
|
+
stock_positive: ["La giacenza attuale \xE8 positiva", "Current stock is positive"],
|
|
2051
|
+
stock_non_positive: [
|
|
2052
|
+
"Giacenza attuale pari a zero o negativa: non prova da sola il blocco della vendita",
|
|
2053
|
+
"Current stock is zero or negative: this alone does not prove sales are blocked"
|
|
2054
|
+
],
|
|
2055
|
+
stock_not_managed: [
|
|
2056
|
+
"Il magazzino non \xE8 gestito per questa variante",
|
|
2057
|
+
"Stock is not managed for this variant"
|
|
2058
|
+
],
|
|
2059
|
+
stock_quantity_unavailable: [
|
|
2060
|
+
"La quantit\xE0 di magazzino non \xE8 disponibile",
|
|
2061
|
+
"Stock quantity is unavailable"
|
|
2062
|
+
],
|
|
2063
|
+
stock_unavailable: [
|
|
2064
|
+
"Giacenza non verificabile o risposta non univoca",
|
|
2065
|
+
"Stock cannot be verified or the response is ambiguous"
|
|
2066
|
+
],
|
|
2067
|
+
rejected_sku_unavailable: [
|
|
2068
|
+
"Lo SKU rifiutato non \xE8 presente nella registrazione",
|
|
2069
|
+
"The rejected SKU was not recorded"
|
|
2070
|
+
],
|
|
2071
|
+
rejected_sku_mapping_missing: [
|
|
2072
|
+
"Lo SKU rifiutato non ha un mapping attuale: il collegamento potrebbe essere cambiato",
|
|
2073
|
+
"The rejected SKU has no current mapping: the mapping may have changed"
|
|
2074
|
+
],
|
|
2075
|
+
rejected_sku_mapping_ambiguous: [
|
|
2076
|
+
"Lo SKU rifiutato corrisponde a pi\xF9 prodotti: verifica il mapping",
|
|
2077
|
+
"The rejected SKU matches multiple products: check the mapping"
|
|
2078
|
+
],
|
|
2079
|
+
remote_access_denied: [
|
|
2080
|
+
"Cassa in Cloud non consente questa lettura",
|
|
2081
|
+
"Cassa in Cloud does not allow this read"
|
|
2082
|
+
],
|
|
2083
|
+
remote_product_unavailable: [
|
|
2084
|
+
"Dettaglio prodotto non verificabile: servizio remoto non disponibile",
|
|
2085
|
+
"Product details cannot be verified: remote service unavailable"
|
|
2086
|
+
],
|
|
2087
|
+
remote_check_unavailable: [
|
|
2088
|
+
"Verifica remota non completata: riprova pi\xF9 tardi",
|
|
2089
|
+
"Remote verification could not complete: try again later"
|
|
2090
|
+
],
|
|
2091
|
+
integration_unavailable: [
|
|
2092
|
+
"Integrazione non pi\xF9 disponibile",
|
|
2093
|
+
"Integration is no longer available"
|
|
2094
|
+
],
|
|
2095
|
+
source_changed: [
|
|
2096
|
+
"Il tentativo o la sua evidenza sono cambiati: aggiorna la pagina",
|
|
2097
|
+
"The attempt or its evidence changed: refresh the page"
|
|
2098
|
+
],
|
|
2099
|
+
dispatch_unavailable: [
|
|
2100
|
+
"Impossibile accodare la verifica: riprova pi\xF9 tardi",
|
|
2101
|
+
"Could not queue verification: try again later"
|
|
2102
|
+
],
|
|
2103
|
+
resolver_unsupported: [
|
|
2104
|
+
"Verifica remota non disponibile per questo errore",
|
|
2105
|
+
"Remote verification is unavailable for this error"
|
|
2106
|
+
],
|
|
2107
|
+
source_unsupported: [
|
|
2108
|
+
"Verifica remota non disponibile per questa operazione",
|
|
2109
|
+
"Remote verification is unavailable for this operation"
|
|
2110
|
+
]
|
|
2111
|
+
};
|
|
2112
|
+
var failures2 = {
|
|
2113
|
+
product_found: [
|
|
2114
|
+
"Il prodotto collegato non \xE8 leggibile: Cassa in Cloud restituisce 404",
|
|
2115
|
+
"The mapped product cannot be read: Cassa in Cloud returned 404"
|
|
2116
|
+
],
|
|
2117
|
+
product_sales_point: [
|
|
2118
|
+
"Il prodotto \xE8 associato a un altro punto vendita",
|
|
2119
|
+
"The product belongs to another sales point"
|
|
2120
|
+
],
|
|
2121
|
+
variant_found: [
|
|
2122
|
+
"La variante rifiutata non esiste pi\xF9 nel prodotto",
|
|
2123
|
+
"The rejected variant no longer exists in the product"
|
|
2124
|
+
],
|
|
2125
|
+
sale_enabled: ["Il prodotto \xE8 disabilitato per la vendita", "The product is disabled for sale"]
|
|
2126
|
+
};
|
|
2127
|
+
var inconclusive = {
|
|
2128
|
+
ecommerce_enabled: [
|
|
2129
|
+
"Il canale ecommerce \xE8 disabilitato: verificare se \xE8 richiesto per questo invio",
|
|
2130
|
+
"The ecommerce channel is disabled: verify whether this delivery requires it"
|
|
2131
|
+
],
|
|
2132
|
+
risto_enabled: [
|
|
2133
|
+
"Il canale ristorazione \xE8 disabilitato: verificare se \xE8 richiesto per questo invio",
|
|
2134
|
+
"The restaurant channel is disabled: verify whether this delivery requires it"
|
|
2135
|
+
],
|
|
2136
|
+
variant_found: [
|
|
2137
|
+
"La presenza della variante non \xE8 univoca nella risposta remota",
|
|
2138
|
+
"Variant presence is ambiguous in the remote response"
|
|
2139
|
+
]
|
|
2140
|
+
};
|
|
2141
|
+
function describeRemoteDiagnosticCheck(check, locale) {
|
|
2142
|
+
const entry = (check.outcome === "fail" ? failures2[check.code] : check.outcome === "unknown" ? inconclusive[check.code] : void 0) ?? labels3[check.code];
|
|
2143
|
+
return entry?.[locale === "it" ? 0 : 1] ?? (locale === "it" ? "Controllo non riconosciuto: richiedi assistenza" : "Unrecognized check: contact support");
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2023
2146
|
// src/requests/CloseDiagnosticOperation.ts
|
|
2024
2147
|
import { AbstractApiRequest } from "@deliverart/sdk-js-core";
|
|
2025
2148
|
var CloseDiagnosticOperation = class extends AbstractApiRequest {
|
|
@@ -2523,6 +2646,7 @@ export {
|
|
|
2523
2646
|
describeDiagnosticResourcePath,
|
|
2524
2647
|
describeDiagnosticScope,
|
|
2525
2648
|
describeLocalDiagnostic,
|
|
2649
|
+
describeRemoteDiagnosticCheck,
|
|
2526
2650
|
describeVerification,
|
|
2527
2651
|
diagnosticAffectedOperationSchema,
|
|
2528
2652
|
diagnosticAssistanceEventSchema,
|
|
@@ -2573,5 +2697,7 @@ export {
|
|
|
2573
2697
|
diagnosticSourceSchema,
|
|
2574
2698
|
diagnosticVerificationSchema,
|
|
2575
2699
|
eligibleDiagnosticSelection,
|
|
2576
|
-
readableDiagnosticFindingSchema
|
|
2700
|
+
readableDiagnosticFindingSchema,
|
|
2701
|
+
remoteDiagnosticCheckSchema,
|
|
2702
|
+
remoteDiagnosticVerificationSchema
|
|
2577
2703
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-integration-diagnostics",
|
|
3
3
|
"description": "Shared integration diagnostics, verification and explicit recovery contracts",
|
|
4
|
-
"version": "2.48.
|
|
4
|
+
"version": "2.48.2-dev.20261103123000",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|