@ptkl/sdk 1.7.0 → 1.7.1
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.0.9.js +2 -3
- package/dist/package.json +1 -1
- package/dist/v0.9/index.cjs.js +2 -3
- package/dist/v0.9/index.esm.js +2 -3
- package/package.json +1 -1
package/dist/index.0.9.js
CHANGED
|
@@ -142,7 +142,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
142
142
|
* )
|
|
143
143
|
**/
|
|
144
144
|
async find(filters, opts) {
|
|
145
|
-
const {
|
|
145
|
+
const { buildTTL = -1, locale = "en_US", } = opts !== null && opts !== void 0 ? opts : {};
|
|
146
146
|
let payload = {
|
|
147
147
|
context: filters,
|
|
148
148
|
ref: this.ref,
|
|
@@ -191,8 +191,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
191
191
|
return await this.client.get(`${this.getComponentPath()}/models`, {
|
|
192
192
|
params: params,
|
|
193
193
|
headers: {
|
|
194
|
-
'X-
|
|
195
|
-
'X-Build-Ttl': buildttl,
|
|
194
|
+
'X-Build-Ttl': buildTTL,
|
|
196
195
|
'Accept-Language': locale
|
|
197
196
|
}
|
|
198
197
|
});
|
package/dist/package.json
CHANGED
package/dist/v0.9/index.cjs.js
CHANGED
|
@@ -19110,7 +19110,7 @@ class Component extends PlatformBaseClient {
|
|
|
19110
19110
|
* )
|
|
19111
19111
|
**/
|
|
19112
19112
|
async find(filters, opts) {
|
|
19113
|
-
const {
|
|
19113
|
+
const { buildTTL = -1, locale = "en_US", } = opts !== null && opts !== void 0 ? opts : {};
|
|
19114
19114
|
let payload = {
|
|
19115
19115
|
context: filters,
|
|
19116
19116
|
ref: this.ref,
|
|
@@ -19159,8 +19159,7 @@ class Component extends PlatformBaseClient {
|
|
|
19159
19159
|
return await this.client.get(`${this.getComponentPath()}/models`, {
|
|
19160
19160
|
params: params,
|
|
19161
19161
|
headers: {
|
|
19162
|
-
'X-
|
|
19163
|
-
'X-Build-Ttl': buildttl,
|
|
19162
|
+
'X-Build-Ttl': buildTTL,
|
|
19164
19163
|
'Accept-Language': locale
|
|
19165
19164
|
}
|
|
19166
19165
|
});
|
package/dist/v0.9/index.esm.js
CHANGED
|
@@ -141,7 +141,7 @@ class Component extends PlatformBaseClient {
|
|
|
141
141
|
* )
|
|
142
142
|
**/
|
|
143
143
|
async find(filters, opts) {
|
|
144
|
-
const {
|
|
144
|
+
const { buildTTL = -1, locale = "en_US", } = opts !== null && opts !== void 0 ? opts : {};
|
|
145
145
|
let payload = {
|
|
146
146
|
context: filters,
|
|
147
147
|
ref: this.ref,
|
|
@@ -190,8 +190,7 @@ class Component extends PlatformBaseClient {
|
|
|
190
190
|
return await this.client.get(`${this.getComponentPath()}/models`, {
|
|
191
191
|
params: params,
|
|
192
192
|
headers: {
|
|
193
|
-
'X-
|
|
194
|
-
'X-Build-Ttl': buildttl,
|
|
193
|
+
'X-Build-Ttl': buildTTL,
|
|
195
194
|
'Accept-Language': locale
|
|
196
195
|
}
|
|
197
196
|
});
|