@innspel/core 0.6.0 → 0.7.0

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,4 +1,4 @@
1
- import { U as Telemetry, W as TelemetryTelemetryBatch } from './typer-CK03lxOC.cjs';
1
+ import { U as Telemetry, W as TelemetryTelemetryBatch } from './typer-CZIalpLn.cjs';
2
2
 
3
3
  /**
4
4
  * Mottaket for målemodellen (M4.2, docs/maaling.md) — plattformens eget, aldri en
@@ -1,4 +1,4 @@
1
- import { U as Telemetry, W as TelemetryTelemetryBatch } from './typer-CK03lxOC.js';
1
+ import { U as Telemetry, W as TelemetryTelemetryBatch } from './typer-CZIalpLn.js';
2
2
 
3
3
  /**
4
4
  * Mottaket for målemodellen (M4.2, docs/maaling.md) — plattformens eget, aldri en
package/dist/telemetri.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createClient, createConfig, eventsSend, VERSJON } from './chunk-5QZNM2ZX.js';
1
+ import { createClient, createConfig, eventsSend, VERSJON } from './chunk-EDOTPUMZ.js';
2
2
 
3
3
  // src/telemetri.ts
4
4
  var MAKS_BUNT = 100;
@@ -11,7 +11,7 @@ type CommonCorrelation = {
11
11
  /**
12
12
  * Maskinlesbar feilkode. Klienten forgrener på denne, aldri på message. Meldingen navngir feltet som feilet, aldri innsendte verdier — den kan inneholde fritekst fra innsenderen.
13
13
  */
14
- type CommonErrorCode = 'validation_failed' | 'unknown_field' | 'text_too_short' | 'text_too_long' | 'correlation_invalid' | 'unauthenticated' | 'feedback_token_required' | 'feedback_token_invalid' | 'feedback_token_expired' | 'mfa_required' | 'insufficient_role' | 'insufficient_scope' | 'screenshots_disabled' | 'submission_not_found' | 'known_issue_not_found' | 'program_not_found' | 'invitation_invalid' | 'task_not_found' | 'follow_up_not_found' | 'participant_not_found' | 'subject_not_found' | 'attachment_not_found' | 'webhook_not_found' | 'delivery_not_found' | 'product_not_found' | 'key_not_found' | 'receipt_not_found' | 'report_not_found' | 'handoff_invalid' | 'invalid_status_transition' | 'reply_exists' | 'invitation_already_answered' | 'program_incomplete' | 'program_full' | 'task_already_completed' | 'follow_up_already_answered' | 'follow_up_not_answerable' | 'report_frozen' | 'webhook_not_verified' | 'attachment_already_uploaded' | 'reply_required' | 'reason_code_required' | 'template_unmodified' | 'fixed_in_required' | 'canonical_is_duplicate' | 'known_issue_conflict' | 'deadline_cannot_be_extended' | 'minors_present_conflict' | 'contacts_exceed_tenant_cap' | 'data_limitations_required' | 'attachment_too_large' | 'attachment_type_not_allowed' | 'rate_limited' | 'not_implemented';
14
+ type CommonErrorCode = 'validation_failed' | 'unknown_field' | 'text_too_short' | 'text_too_long' | 'correlation_invalid' | 'unauthenticated' | 'feedback_token_required' | 'feedback_token_invalid' | 'feedback_token_expired' | 'mfa_required' | 'insufficient_role' | 'insufficient_scope' | 'screenshots_disabled' | 'submission_not_found' | 'known_issue_not_found' | 'program_not_found' | 'invitation_invalid' | 'task_not_found' | 'follow_up_not_found' | 'participant_not_found' | 'subject_not_found' | 'attachment_not_found' | 'webhook_not_found' | 'delivery_not_found' | 'product_not_found' | 'key_not_found' | 'receipt_not_found' | 'report_not_found' | 'admin_user_not_found' | 'handoff_invalid' | 'invalid_status_transition' | 'reply_exists' | 'cannot_disable_self' | 'invitation_already_answered' | 'program_incomplete' | 'program_full' | 'task_already_completed' | 'follow_up_already_answered' | 'follow_up_not_answerable' | 'report_frozen' | 'webhook_not_verified' | 'attachment_already_uploaded' | 'reply_required' | 'reason_code_required' | 'template_unmodified' | 'fixed_in_required' | 'canonical_is_duplicate' | 'known_issue_conflict' | 'deadline_cannot_be_extended' | 'minors_present_conflict' | 'contacts_exceed_tenant_cap' | 'data_limitations_required' | 'attachment_too_large' | 'attachment_type_not_allowed' | 'rate_limited' | 'not_implemented';
15
15
  /**
16
16
  * Plattformen innsendingen kom fra. Lukket liste fra dag én, inkludert storskjerm — en verdi som legges til senere er en kontraktendring hos alle SDK-er (ideer/storskjerm-qr-handoff.md).
17
17
  */
@@ -248,6 +248,10 @@ type SubmissionsSubmissionStatusView = {
248
248
  * Om innsendingen har et vedlegg. Selve bildet returneres aldri her — det vises ikke i «mine innspill».
249
249
  */
250
250
  hasAttachment: boolean;
251
+ /**
252
+ * Vedlegget er fjernet av leietakeren. «Mine innspill» sier at bildet er fjernet — aldri hvorfor eller av hvem. hasAttachment er da false.
253
+ */
254
+ attachmentRemoved: boolean;
251
255
  createdAt: string;
252
256
  statusChangedAt: string;
253
257
  };
@@ -11,7 +11,7 @@ type CommonCorrelation = {
11
11
  /**
12
12
  * Maskinlesbar feilkode. Klienten forgrener på denne, aldri på message. Meldingen navngir feltet som feilet, aldri innsendte verdier — den kan inneholde fritekst fra innsenderen.
13
13
  */
14
- type CommonErrorCode = 'validation_failed' | 'unknown_field' | 'text_too_short' | 'text_too_long' | 'correlation_invalid' | 'unauthenticated' | 'feedback_token_required' | 'feedback_token_invalid' | 'feedback_token_expired' | 'mfa_required' | 'insufficient_role' | 'insufficient_scope' | 'screenshots_disabled' | 'submission_not_found' | 'known_issue_not_found' | 'program_not_found' | 'invitation_invalid' | 'task_not_found' | 'follow_up_not_found' | 'participant_not_found' | 'subject_not_found' | 'attachment_not_found' | 'webhook_not_found' | 'delivery_not_found' | 'product_not_found' | 'key_not_found' | 'receipt_not_found' | 'report_not_found' | 'handoff_invalid' | 'invalid_status_transition' | 'reply_exists' | 'invitation_already_answered' | 'program_incomplete' | 'program_full' | 'task_already_completed' | 'follow_up_already_answered' | 'follow_up_not_answerable' | 'report_frozen' | 'webhook_not_verified' | 'attachment_already_uploaded' | 'reply_required' | 'reason_code_required' | 'template_unmodified' | 'fixed_in_required' | 'canonical_is_duplicate' | 'known_issue_conflict' | 'deadline_cannot_be_extended' | 'minors_present_conflict' | 'contacts_exceed_tenant_cap' | 'data_limitations_required' | 'attachment_too_large' | 'attachment_type_not_allowed' | 'rate_limited' | 'not_implemented';
14
+ type CommonErrorCode = 'validation_failed' | 'unknown_field' | 'text_too_short' | 'text_too_long' | 'correlation_invalid' | 'unauthenticated' | 'feedback_token_required' | 'feedback_token_invalid' | 'feedback_token_expired' | 'mfa_required' | 'insufficient_role' | 'insufficient_scope' | 'screenshots_disabled' | 'submission_not_found' | 'known_issue_not_found' | 'program_not_found' | 'invitation_invalid' | 'task_not_found' | 'follow_up_not_found' | 'participant_not_found' | 'subject_not_found' | 'attachment_not_found' | 'webhook_not_found' | 'delivery_not_found' | 'product_not_found' | 'key_not_found' | 'receipt_not_found' | 'report_not_found' | 'admin_user_not_found' | 'handoff_invalid' | 'invalid_status_transition' | 'reply_exists' | 'cannot_disable_self' | 'invitation_already_answered' | 'program_incomplete' | 'program_full' | 'task_already_completed' | 'follow_up_already_answered' | 'follow_up_not_answerable' | 'report_frozen' | 'webhook_not_verified' | 'attachment_already_uploaded' | 'reply_required' | 'reason_code_required' | 'template_unmodified' | 'fixed_in_required' | 'canonical_is_duplicate' | 'known_issue_conflict' | 'deadline_cannot_be_extended' | 'minors_present_conflict' | 'contacts_exceed_tenant_cap' | 'data_limitations_required' | 'attachment_too_large' | 'attachment_type_not_allowed' | 'rate_limited' | 'not_implemented';
15
15
  /**
16
16
  * Plattformen innsendingen kom fra. Lukket liste fra dag én, inkludert storskjerm — en verdi som legges til senere er en kontraktendring hos alle SDK-er (ideer/storskjerm-qr-handoff.md).
17
17
  */
@@ -248,6 +248,10 @@ type SubmissionsSubmissionStatusView = {
248
248
  * Om innsendingen har et vedlegg. Selve bildet returneres aldri her — det vises ikke i «mine innspill».
249
249
  */
250
250
  hasAttachment: boolean;
251
+ /**
252
+ * Vedlegget er fjernet av leietakeren. «Mine innspill» sier at bildet er fjernet — aldri hvorfor eller av hvem. hasAttachment er da false.
253
+ */
254
+ attachmentRemoved: boolean;
251
255
  createdAt: string;
252
256
  statusChangedAt: string;
253
257
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innspel/core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Kjernen i Innspels SDK: innsending, kjente feil, offline-kø og mønstervarsel. Ren TypeScript uten runtime-avhengigheter.",
5
5
  "license": "MIT",
6
6
  "type": "module",