@shipeasy/devtools-core 1.0.0 → 1.1.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.
package/dist/api.d.mts CHANGED
@@ -1,7 +1,9 @@
1
- import { o as ProjectRecord, G as GateRecord, C as ConfigRecord, E as ExperimentRecord, U as UniverseRecord, m as ProfileRecord, g as DraftRecord, K as KeyRecord, c as BugRecord, B as BugDetail, O as OpsItemDetail, h as FeatureRequestRecord, F as FeatureRequestDetail, a as AttachmentUploadResult } from './types-D0sroUDD.mjs';
2
- import { C as CreateBugRequestInput, a as CreateFeatureRequestRequestInput } from './zod.gen-DTKpgw-T.mjs';
3
- import 'zod';
1
+ import { o as ProjectRecord, G as GateRecord, C as ConfigRecord, E as ExperimentRecord, U as UniverseRecord, m as ProfileRecord, g as DraftRecord, K as KeyRecord, c as BugRecord, B as BugDetail, O as OpsItemDetail, h as FeatureRequestRecord, F as FeatureRequestDetail, a as AttachmentUploadResult } from './types-CxDUzTNE.mjs';
2
+ import { z } from 'zod';
3
+ import { z as zCreateBugRequest, b as zCreateFeatureRequestRequest } from './zod.gen-DDBVM1nI.mjs';
4
4
 
5
+ type CreateBugInput = z.input<typeof zCreateBugRequest>;
6
+ type CreateFeatureRequestInput = z.input<typeof zCreateFeatureRequestRequest>;
5
7
  /** Thrown when an admin request returns 401. Distinct from generic `Error`
6
8
  * so callers can branch on it without string-matching. */
7
9
  declare class AuthError extends Error {
@@ -86,7 +88,7 @@ declare class DevtoolsClient {
86
88
  upsertKeys(profileId: string, keys: Array<{
87
89
  key: string;
88
90
  value: string;
89
- }>, chunk?: string): Promise<void>;
91
+ }>): Promise<void>;
90
92
  /** Drop every cached `keys(profileId?)` response. We don't track which
91
93
  * profile a single key write affects, so be safe and clear them all. */
92
94
  private invalidateKeysCache;
@@ -105,7 +107,7 @@ declare class DevtoolsClient {
105
107
  status?: BugRecord["status"];
106
108
  priority?: BugRecord["priority"];
107
109
  }): Promise<void>;
108
- createBug(input: Omit<CreateBugRequestInput, "type">): Promise<{
110
+ createBug(input: Omit<CreateBugInput, "type">): Promise<{
109
111
  id: string;
110
112
  }>;
111
113
  updateBug(id: string, patch: {
@@ -118,7 +120,7 @@ declare class DevtoolsClient {
118
120
  }): Promise<void>;
119
121
  featureRequests(): Promise<FeatureRequestRecord[]>;
120
122
  featureRequest(id: string): Promise<FeatureRequestDetail>;
121
- createFeatureRequest(input: Omit<CreateFeatureRequestRequestInput, "type">): Promise<{
123
+ createFeatureRequest(input: Omit<CreateFeatureRequestInput, "type">): Promise<{
122
124
  id: string;
123
125
  }>;
124
126
  updateFeatureRequest(id: string, patch: {
package/dist/api.d.ts CHANGED
@@ -1,7 +1,9 @@
1
- import { o as ProjectRecord, G as GateRecord, C as ConfigRecord, E as ExperimentRecord, U as UniverseRecord, m as ProfileRecord, g as DraftRecord, K as KeyRecord, c as BugRecord, B as BugDetail, O as OpsItemDetail, h as FeatureRequestRecord, F as FeatureRequestDetail, a as AttachmentUploadResult } from './types-D0sroUDD.js';
2
- import { C as CreateBugRequestInput, a as CreateFeatureRequestRequestInput } from './zod.gen-DTKpgw-T.js';
3
- import 'zod';
1
+ import { o as ProjectRecord, G as GateRecord, C as ConfigRecord, E as ExperimentRecord, U as UniverseRecord, m as ProfileRecord, g as DraftRecord, K as KeyRecord, c as BugRecord, B as BugDetail, O as OpsItemDetail, h as FeatureRequestRecord, F as FeatureRequestDetail, a as AttachmentUploadResult } from './types-CxDUzTNE.js';
2
+ import { z } from 'zod';
3
+ import { z as zCreateBugRequest, b as zCreateFeatureRequestRequest } from './zod.gen-DDBVM1nI.js';
4
4
 
5
+ type CreateBugInput = z.input<typeof zCreateBugRequest>;
6
+ type CreateFeatureRequestInput = z.input<typeof zCreateFeatureRequestRequest>;
5
7
  /** Thrown when an admin request returns 401. Distinct from generic `Error`
6
8
  * so callers can branch on it without string-matching. */
7
9
  declare class AuthError extends Error {
@@ -86,7 +88,7 @@ declare class DevtoolsClient {
86
88
  upsertKeys(profileId: string, keys: Array<{
87
89
  key: string;
88
90
  value: string;
89
- }>, chunk?: string): Promise<void>;
91
+ }>): Promise<void>;
90
92
  /** Drop every cached `keys(profileId?)` response. We don't track which
91
93
  * profile a single key write affects, so be safe and clear them all. */
92
94
  private invalidateKeysCache;
@@ -105,7 +107,7 @@ declare class DevtoolsClient {
105
107
  status?: BugRecord["status"];
106
108
  priority?: BugRecord["priority"];
107
109
  }): Promise<void>;
108
- createBug(input: Omit<CreateBugRequestInput, "type">): Promise<{
110
+ createBug(input: Omit<CreateBugInput, "type">): Promise<{
109
111
  id: string;
110
112
  }>;
111
113
  updateBug(id: string, patch: {
@@ -118,7 +120,7 @@ declare class DevtoolsClient {
118
120
  }): Promise<void>;
119
121
  featureRequests(): Promise<FeatureRequestRecord[]>;
120
122
  featureRequest(id: string): Promise<FeatureRequestDetail>;
121
- createFeatureRequest(input: Omit<CreateFeatureRequestRequestInput, "type">): Promise<{
123
+ createFeatureRequest(input: Omit<CreateFeatureRequestInput, "type">): Promise<{
122
124
  id: string;
123
125
  }>;
124
126
  updateFeatureRequest(id: string, patch: {
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkYQHCUZGPjs = require('./chunk-YQHCUZGP.js');
4
+ var _chunkASXJAFDBjs = require('./chunk-ASXJAFDB.js');
5
5
  require('./chunk-KPO3R7ND.js');
6
6
  require('./chunk-I2KLQ2HA.js');
7
7
 
8
8
 
9
9
 
10
- exports.AuthError = _chunkYQHCUZGPjs.AuthError; exports.DevtoolsClient = _chunkYQHCUZGPjs.DevtoolsClient;
10
+ exports.AuthError = _chunkASXJAFDBjs.AuthError; exports.DevtoolsClient = _chunkASXJAFDBjs.DevtoolsClient;
package/dist/api.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AuthError,
3
3
  DevtoolsClient
4
- } from "./chunk-LZDNBMH6.mjs";
4
+ } from "./chunk-2OCBQ2OL.mjs";
5
5
  import "./chunk-RH6X24HG.mjs";
6
6
  import "./chunk-U5DDQYSF.mjs";
7
7
  export {
package/dist/auth.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { f as DevtoolsSession } from './types-D0sroUDD.mjs';
1
+ import { f as DevtoolsSession } from './types-CxDUzTNE.mjs';
2
2
 
3
3
  /** Thrown when the user dismisses the auth browser without completing login. */
4
4
  declare class LoginCancelled extends Error {
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { f as DevtoolsSession } from './types-D0sroUDD.js';
1
+ import { f as DevtoolsSession } from './types-CxDUzTNE.js';
2
2
 
3
3
  /** Thrown when the user dismisses the auth browser without completing login. */
4
4
  declare class LoginCancelled extends Error {
@@ -1208,8 +1208,8 @@ var DevtoolsClient = class {
1208
1208
  );
1209
1209
  this.invalidateKeysCache();
1210
1210
  }
1211
- async upsertKeys(profileId, keys, chunk = "default") {
1212
- await this.rawSend("PUT", `/api/admin/i18n/keys`, { profile_id: profileId, chunk, keys });
1211
+ async upsertKeys(profileId, keys) {
1212
+ await this.rawSend("PUT", `/api/admin/i18n/keys`, { profile_id: profileId, keys });
1213
1213
  this.invalidateKeysCache();
1214
1214
  }
1215
1215
  /** Drop every cached `keys(profileId?)` response. We don't track which
@@ -1208,8 +1208,8 @@ var DevtoolsClient = (_class3 = class {
1208
1208
  );
1209
1209
  this.invalidateKeysCache();
1210
1210
  }
1211
- async upsertKeys(profileId, keys, chunk = "default") {
1212
- await this.rawSend("PUT", `/api/admin/i18n/keys`, { profile_id: profileId, chunk, keys });
1211
+ async upsertKeys(profileId, keys) {
1212
+ await this.rawSend("PUT", `/api/admin/i18n/keys`, { profile_id: profileId, keys });
1213
1213
  this.invalidateKeysCache();
1214
1214
  }
1215
1215
  /** Drop every cached `keys(profileId?)` response. We don't track which