@nascentdigital/funnel-cms 4.4.10 → 4.4.13
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/PageClient.d.ts
CHANGED
|
@@ -121,14 +121,6 @@ export declare namespace PageClient {
|
|
|
121
121
|
}
|
|
122
122
|
export {};
|
|
123
123
|
}
|
|
124
|
-
type Update = {
|
|
125
|
-
id: Schema.Page.Id;
|
|
126
|
-
slug?: string;
|
|
127
|
-
publication?: number | null;
|
|
128
|
-
errors: boolean;
|
|
129
|
-
updatedOn: number;
|
|
130
|
-
updates: ReadonlyArray<Schema.Page.Update>;
|
|
131
|
-
};
|
|
132
124
|
namespace GetOverview {
|
|
133
125
|
type Args = Query.ByBrandAndRegion;
|
|
134
126
|
type Result = {
|
|
@@ -207,8 +199,18 @@ export declare namespace PageClient {
|
|
|
207
199
|
type Result = Schema.Page.Data.AsLink;
|
|
208
200
|
}
|
|
209
201
|
namespace Update {
|
|
210
|
-
type Args =
|
|
211
|
-
|
|
202
|
+
type Args = {
|
|
203
|
+
id: Schema.Page.Id;
|
|
204
|
+
slug?: string;
|
|
205
|
+
publication?: number | null;
|
|
206
|
+
errors: boolean;
|
|
207
|
+
updatedOn: number;
|
|
208
|
+
updates: ReadonlyArray<Schema.Page.Update>;
|
|
209
|
+
};
|
|
210
|
+
type Result = {
|
|
211
|
+
updatedOn: number;
|
|
212
|
+
page?: Schema.Page.Data;
|
|
213
|
+
};
|
|
212
214
|
}
|
|
213
215
|
namespace Replace {
|
|
214
216
|
type Args = {
|
|
@@ -626,6 +626,8 @@ class StrapiPageClient {
|
|
|
626
626
|
data: JSON.stringify(args)
|
|
627
627
|
});
|
|
628
628
|
console.debug('[StrapiPageClient/update] custom update result: ', data);
|
|
629
|
+
// stop processing
|
|
630
|
+
return data;
|
|
629
631
|
}
|
|
630
632
|
// resolve current user (or throw)
|
|
631
633
|
const { id: pageId, slug: pageSlug, publication: pagePublication, errors, updates } = args;
|
|
@@ -702,7 +704,10 @@ class StrapiPageClient {
|
|
|
702
704
|
provider.changeSets.update(changeSet.toData())
|
|
703
705
|
.catch(console.error);
|
|
704
706
|
// return page
|
|
705
|
-
return
|
|
707
|
+
return {
|
|
708
|
+
updatedOn: page.updatedOn,
|
|
709
|
+
page
|
|
710
|
+
};
|
|
706
711
|
}
|
|
707
712
|
async replace({ page, version, skipSync = false }) {
|
|
708
713
|
console.debug(`[StrapiPageClient/replace] replacing page`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nascentdigital/funnel-cms",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.13",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/nascentdigital/funnel.git",
|
|
6
6
|
"directory": "libs/cms"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"ts-jest": "^29",
|
|
42
42
|
"type-fest": "^4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "af6ff70daf556e824442ce09959ecff07b43c47c"
|
|
45
45
|
}
|