@smplkit/sdk 1.7.3 → 1.8.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/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1210,6 +1210,8 @@ declare class Logger {
|
|
|
1210
1210
|
declare class LogGroup {
|
|
1211
1211
|
/** Unique identifier (slug), or `null` if unsaved. */
|
|
1212
1212
|
id: string | null;
|
|
1213
|
+
/** Human-readable key (slug), or `null` if not set. */
|
|
1214
|
+
key: string | null;
|
|
1213
1215
|
/** Human-readable display name. */
|
|
1214
1216
|
name: string;
|
|
1215
1217
|
/** Base log level, or null if inherited. */
|
|
@@ -1227,6 +1229,7 @@ declare class LogGroup {
|
|
|
1227
1229
|
/** @internal */
|
|
1228
1230
|
constructor(client: LoggingClient, fields: {
|
|
1229
1231
|
id: string | null;
|
|
1232
|
+
key: string | null;
|
|
1230
1233
|
name: string;
|
|
1231
1234
|
level: string | null;
|
|
1232
1235
|
group: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1210,6 +1210,8 @@ declare class Logger {
|
|
|
1210
1210
|
declare class LogGroup {
|
|
1211
1211
|
/** Unique identifier (slug), or `null` if unsaved. */
|
|
1212
1212
|
id: string | null;
|
|
1213
|
+
/** Human-readable key (slug), or `null` if not set. */
|
|
1214
|
+
key: string | null;
|
|
1213
1215
|
/** Human-readable display name. */
|
|
1214
1216
|
name: string;
|
|
1215
1217
|
/** Base log level, or null if inherited. */
|
|
@@ -1227,6 +1229,7 @@ declare class LogGroup {
|
|
|
1227
1229
|
/** @internal */
|
|
1228
1230
|
constructor(client: LoggingClient, fields: {
|
|
1229
1231
|
id: string | null;
|
|
1232
|
+
key: string | null;
|
|
1230
1233
|
name: string;
|
|
1231
1234
|
level: string | null;
|
|
1232
1235
|
group: string | null;
|
package/dist/index.js
CHANGED
|
@@ -18690,6 +18690,8 @@ var Logger = class {
|
|
|
18690
18690
|
var LogGroup = class {
|
|
18691
18691
|
/** Unique identifier (slug), or `null` if unsaved. */
|
|
18692
18692
|
id;
|
|
18693
|
+
/** Human-readable key (slug), or `null` if not set. */
|
|
18694
|
+
key;
|
|
18693
18695
|
/** Human-readable display name. */
|
|
18694
18696
|
name;
|
|
18695
18697
|
/** Base log level, or null if inherited. */
|
|
@@ -18708,6 +18710,7 @@ var LogGroup = class {
|
|
|
18708
18710
|
constructor(client, fields) {
|
|
18709
18711
|
this._client = client;
|
|
18710
18712
|
this.id = fields.id;
|
|
18713
|
+
this.key = fields.key;
|
|
18711
18714
|
this.name = fields.name;
|
|
18712
18715
|
this.level = fields.level;
|
|
18713
18716
|
this.group = fields.group;
|
|
@@ -18755,6 +18758,7 @@ var LogGroup = class {
|
|
|
18755
18758
|
/** @internal — copy all fields from another LogGroup instance. */
|
|
18756
18759
|
_apply(other) {
|
|
18757
18760
|
this.id = other.id;
|
|
18761
|
+
this.key = other.key;
|
|
18758
18762
|
this.name = other.name;
|
|
18759
18763
|
this.level = other.level;
|
|
18760
18764
|
this.group = other.group;
|
|
@@ -18976,6 +18980,7 @@ var LoggingClient = class {
|
|
|
18976
18980
|
_mgNewGroup(id, options) {
|
|
18977
18981
|
return new LogGroup(this, {
|
|
18978
18982
|
id,
|
|
18983
|
+
key: null,
|
|
18979
18984
|
name: options?.name ?? keyToDisplayName(id),
|
|
18980
18985
|
level: null,
|
|
18981
18986
|
group: options?.group ?? null,
|
|
@@ -19560,6 +19565,7 @@ var LoggingClient = class {
|
|
|
19560
19565
|
const attrs = resource.attributes;
|
|
19561
19566
|
return new LogGroup(this, {
|
|
19562
19567
|
id: resource.id ?? null,
|
|
19568
|
+
key: attrs.key ?? null,
|
|
19563
19569
|
name: attrs.name,
|
|
19564
19570
|
level: attrs.level ?? null,
|
|
19565
19571
|
group: attrs.parent_id ?? null,
|