@smplkit/sdk 3.0.81 → 3.0.82
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 +20 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +20 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18574,6 +18574,14 @@ var Environment = class {
|
|
|
18574
18574
|
name;
|
|
18575
18575
|
/** Whether this is a STANDARD or AD_HOC environment. */
|
|
18576
18576
|
classification;
|
|
18577
|
+
/**
|
|
18578
|
+
* Whether per-environment resource values can be written against this
|
|
18579
|
+
* environment. Unmanaged environments are view-only — existing values
|
|
18580
|
+
* render for comparison but no new values can be set. Managed
|
|
18581
|
+
* environments count toward the account's `platform.managed_environments`
|
|
18582
|
+
* quota.
|
|
18583
|
+
*/
|
|
18584
|
+
managed;
|
|
18577
18585
|
/** When the environment was created. */
|
|
18578
18586
|
createdAt;
|
|
18579
18587
|
/** When the environment was last updated. */
|
|
@@ -18589,6 +18597,7 @@ var Environment = class {
|
|
|
18589
18597
|
this.name = fields.name;
|
|
18590
18598
|
this._color = coerceColor(fields.color ?? null);
|
|
18591
18599
|
this.classification = fields.classification;
|
|
18600
|
+
this.managed = fields.managed ?? true;
|
|
18592
18601
|
this.createdAt = fields.createdAt ?? null;
|
|
18593
18602
|
this.updatedAt = fields.updatedAt ?? null;
|
|
18594
18603
|
}
|
|
@@ -18625,11 +18634,12 @@ var Environment = class {
|
|
|
18625
18634
|
this.name = other.name;
|
|
18626
18635
|
this._color = other._color;
|
|
18627
18636
|
this.classification = other.classification;
|
|
18637
|
+
this.managed = other.managed;
|
|
18628
18638
|
this.createdAt = other.createdAt;
|
|
18629
18639
|
this.updatedAt = other.updatedAt;
|
|
18630
18640
|
}
|
|
18631
18641
|
toString() {
|
|
18632
|
-
return `Environment(id=${this.id}, name=${this.name}, classification=${this.classification})`;
|
|
18642
|
+
return `Environment(id=${this.id}, name=${this.name}, classification=${this.classification}, managed=${this.managed})`;
|
|
18633
18643
|
}
|
|
18634
18644
|
};
|
|
18635
18645
|
var ContextType = class {
|
|
@@ -19872,10 +19882,9 @@ function loggerToBody(logger) {
|
|
|
19872
19882
|
if (logger.level !== null) attrs.level = logger.level;
|
|
19873
19883
|
if (logger.group !== null) attrs.group = logger.group;
|
|
19874
19884
|
if (logger.managed !== null) attrs.managed = logger.managed;
|
|
19875
|
-
|
|
19876
|
-
|
|
19877
|
-
|
|
19878
|
-
}
|
|
19885
|
+
attrs.environments = loggerEnvironmentsToWire(
|
|
19886
|
+
logger._environmentsDirect
|
|
19887
|
+
);
|
|
19879
19888
|
return {
|
|
19880
19889
|
data: { id: logger.id, type: "logger", attributes: attrs }
|
|
19881
19890
|
};
|
|
@@ -20721,6 +20730,7 @@ function envFromResource(resource, client) {
|
|
|
20721
20730
|
name: attrs.name ?? "",
|
|
20722
20731
|
color,
|
|
20723
20732
|
classification: attrs.classification === "AD_HOC" ? "AD_HOC" /* AD_HOC */ : "STANDARD" /* STANDARD */,
|
|
20733
|
+
managed: typeof attrs.managed === "boolean" ? attrs.managed : false,
|
|
20724
20734
|
createdAt: attrs.created_at ?? null,
|
|
20725
20735
|
updatedAt: attrs.updated_at ?? null
|
|
20726
20736
|
});
|
|
@@ -20772,6 +20782,7 @@ var EnvironmentsClient = class {
|
|
|
20772
20782
|
name: options.name,
|
|
20773
20783
|
color: coerceColor(options.color ?? null),
|
|
20774
20784
|
classification: options.classification ?? "STANDARD" /* STANDARD */,
|
|
20785
|
+
managed: options.managed ?? true,
|
|
20775
20786
|
createdAt: null,
|
|
20776
20787
|
updatedAt: null
|
|
20777
20788
|
});
|
|
@@ -20837,7 +20848,8 @@ var EnvironmentsClient = class {
|
|
|
20837
20848
|
attributes: {
|
|
20838
20849
|
name: env.name,
|
|
20839
20850
|
color: env.color === null ? null : env.color.hex,
|
|
20840
|
-
classification: env.classification
|
|
20851
|
+
classification: env.classification,
|
|
20852
|
+
managed: env.managed
|
|
20841
20853
|
}
|
|
20842
20854
|
}
|
|
20843
20855
|
};
|
|
@@ -20862,7 +20874,8 @@ var EnvironmentsClient = class {
|
|
|
20862
20874
|
attributes: {
|
|
20863
20875
|
name: env.name,
|
|
20864
20876
|
color: env.color === null ? null : env.color.hex,
|
|
20865
|
-
classification: env.classification
|
|
20877
|
+
classification: env.classification,
|
|
20878
|
+
managed: env.managed
|
|
20866
20879
|
}
|
|
20867
20880
|
}
|
|
20868
20881
|
};
|