@flowselections/floriday-authenticatie-module 1.0.88 → 1.0.89
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-lib/integrations/supabase/types.d.ts +253 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/customer-sticker-fields.d.ts +5 -0
- package/dist-lib/lib/customer-sticker-fields.d.ts.map +1 -1
- package/dist-lib/lib/customer-sticker-fields.js +7 -0
- package/dist-lib/lib/floriday-stickers.functions.js +2 -2
- package/dist-lib/lib/module-version.d.ts +1 -1
- package/dist-lib/lib/module-version.js +1 -1
- package/package.json +1 -1
|
@@ -5,4 +5,9 @@ export interface CustomerStickerFields {
|
|
|
5
5
|
should_be_printed: boolean | null;
|
|
6
6
|
}
|
|
7
7
|
export declare function customerStickerFields(item: any): CustomerStickerFields;
|
|
8
|
+
/**
|
|
9
|
+
* Pad voor GET /customer-stickers/{stickerId}. `duplicatePagesBasedOnNumberOfCopies`
|
|
10
|
+
* is verplicht in 2026v1; altijd false — de Logistiek Engine print het aantal zelf.
|
|
11
|
+
*/
|
|
12
|
+
export declare function customerStickerPdfPath(apiVersion: string, stickerId: string): string;
|
|
8
13
|
//# sourceMappingURL=customer-sticker-fields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-sticker-fields.d.ts","sourceRoot":"","sources":["../../src/lib/customer-sticker-fields.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC;CACnC;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAStE"}
|
|
1
|
+
{"version":3,"file":"customer-sticker-fields.d.ts","sourceRoot":"","sources":["../../src/lib/customer-sticker-fields.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC;CACnC;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAStE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEpF"}
|
|
@@ -14,3 +14,10 @@ export function customerStickerFields(item) {
|
|
|
14
14
|
should_be_printed: typeof spb === "boolean" ? spb : null,
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Pad voor GET /customer-stickers/{stickerId}. `duplicatePagesBasedOnNumberOfCopies`
|
|
19
|
+
* is verplicht in 2026v1; altijd false — de Logistiek Engine print het aantal zelf.
|
|
20
|
+
*/
|
|
21
|
+
export function customerStickerPdfPath(apiVersion, stickerId) {
|
|
22
|
+
return `/${apiVersion}/customer-stickers/${encodeURIComponent(stickerId)}?duplicatePagesBasedOnNumberOfCopies=false`;
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { customerStickerFields } from "./customer-sticker-fields.js";
|
|
1
|
+
import { customerStickerFields, customerStickerPdfPath } from "./customer-sticker-fields.js";
|
|
2
2
|
import { storeVersionedDocument } from "./document-version.js";
|
|
3
3
|
// ============================================================================
|
|
4
4
|
// Floriday customer stickers — lazy PDF fetch + storage cache
|
|
@@ -53,7 +53,7 @@ async function fetchStickerToStorage(supabase, env, connectionId, stickerId) {
|
|
|
53
53
|
}
|
|
54
54
|
// 2) Miss → PDF ophalen bij Floriday. De API levert óf een binaire PDF,
|
|
55
55
|
// óf een JSON-object met base64-data. We ondersteunen beide.
|
|
56
|
-
const path =
|
|
56
|
+
const path = customerStickerPdfPath(SUPPLIERS_API_VERSION, stickerId);
|
|
57
57
|
const res = await florydayFetch(supabase, env, path, {
|
|
58
58
|
cache: "no-store",
|
|
59
59
|
headers: { Accept: "application/pdf, application/json" },
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const MODULE_VERSION = "1.0.
|
|
1
|
+
export declare const MODULE_VERSION = "1.0.89";
|
|
2
2
|
//# sourceMappingURL=module-version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// GEGENEREERD door scripts/write-module-version.mjs uit package.json — niet handmatig wijzigen.
|
|
2
|
-
export const MODULE_VERSION = "1.0.
|
|
2
|
+
export const MODULE_VERSION = "1.0.89";
|