@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 +8 -6
- package/dist/api.d.ts +8 -6
- package/dist/api.js +2 -2
- package/dist/api.mjs +1 -1
- package/dist/auth.d.mts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/{chunk-LZDNBMH6.mjs → chunk-2OCBQ2OL.mjs} +2 -2
- package/dist/{chunk-YQHCUZGP.js → chunk-ASXJAFDB.js} +2 -2
- package/dist/{chunk-GUTBZI2O.js → chunk-EQXG5LAB.js} +1287 -433
- package/dist/{chunk-RANNOC72.js → chunk-FR73VSZ3.js} +5 -3
- package/dist/{chunk-WP2TWHG3.mjs → chunk-HZ57U4GY.mjs} +4 -2
- package/dist/{chunk-6SU5REDK.mjs → chunk-T44BKE47.mjs} +1287 -433
- package/dist/feedback-state.d.mts +1 -1
- package/dist/feedback-state.d.ts +1 -1
- package/dist/forms.d.mts +35 -9
- package/dist/forms.d.ts +35 -9
- package/dist/forms.js +2 -2
- package/dist/forms.mjs +1 -1
- package/dist/gate-flow.d.mts +1 -1
- package/dist/gate-flow.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/public-report.d.mts +8 -0
- package/dist/public-report.d.ts +8 -0
- package/dist/public-report.js +2 -2
- package/dist/public-report.mjs +1 -1
- package/dist/{types-D0sroUDD.d.mts → types-CxDUzTNE.d.mts} +1 -1
- package/dist/{types-D0sroUDD.d.ts → types-CxDUzTNE.d.ts} +1 -1
- package/dist/{zod.gen-DTKpgw-T.d.mts → zod.gen-DDBVM1nI.d.mts} +26 -0
- package/dist/{zod.gen-DTKpgw-T.d.ts → zod.gen-DDBVM1nI.d.ts} +26 -0
- package/package.json +1 -1
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-
|
|
2
|
-
import {
|
|
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
|
-
}
|
|
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<
|
|
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<
|
|
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-
|
|
2
|
-
import {
|
|
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
|
-
}
|
|
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<
|
|
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<
|
|
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
|
|
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 =
|
|
10
|
+
exports.AuthError = _chunkASXJAFDBjs.AuthError; exports.DevtoolsClient = _chunkASXJAFDBjs.DevtoolsClient;
|
package/dist/api.mjs
CHANGED
package/dist/auth.d.mts
CHANGED
package/dist/auth.d.ts
CHANGED
|
@@ -1208,8 +1208,8 @@ var DevtoolsClient = class {
|
|
|
1208
1208
|
);
|
|
1209
1209
|
this.invalidateKeysCache();
|
|
1210
1210
|
}
|
|
1211
|
-
async upsertKeys(profileId, keys
|
|
1212
|
-
await this.rawSend("PUT", `/api/admin/i18n/keys`, { profile_id: profileId,
|
|
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
|
|
1212
|
-
await this.rawSend("PUT", `/api/admin/i18n/keys`, { profile_id: profileId,
|
|
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
|