@deadair/sdk 0.54.0 → 0.56.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.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/personas/personas.client.d.ts +7 -3
- package/dist/personas/personas.client.d.ts.map +1 -1
- package/dist/personas/types/personas.types.d.ts +164 -153
- package/dist/personas/types/personas.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2560,8 +2560,9 @@ var PersonasClient = class {
|
|
|
2560
2560
|
* @name Preview persona import
|
|
2561
2561
|
* @description Reads a file and reports what importing it would create, rewrite and skip. Writes nothing
|
|
2562
2562
|
*/
|
|
2563
|
-
async previewPersonaImport(body) {
|
|
2564
|
-
const
|
|
2563
|
+
async previewPersonaImport(body, query) {
|
|
2564
|
+
const qs = buildQueryString(query);
|
|
2565
|
+
const result = await this.fetch(`/personas/import/preview${qs}`, {
|
|
2565
2566
|
method: "POST",
|
|
2566
2567
|
headers: {
|
|
2567
2568
|
"Content-Type": "application/json"
|
|
@@ -2572,10 +2573,11 @@ var PersonasClient = class {
|
|
|
2572
2573
|
}
|
|
2573
2574
|
/**
|
|
2574
2575
|
* @name Import personas
|
|
2575
|
-
* @description Writes a file into this station
|
|
2576
|
+
* @description Writes a file into this station: creates what is new, rewrites only the characters named in `replace`, and answers with what it did
|
|
2576
2577
|
*/
|
|
2577
|
-
async importPersonas(body) {
|
|
2578
|
-
const
|
|
2578
|
+
async importPersonas(body, query) {
|
|
2579
|
+
const qs = buildQueryString(query);
|
|
2580
|
+
const result = await this.fetch(`/personas/import${qs}`, {
|
|
2579
2581
|
method: "POST",
|
|
2580
2582
|
headers: {
|
|
2581
2583
|
"Content-Type": "application/json"
|