cja-phoenix 0.14.24 → 0.14.25

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.
@@ -5723,24 +5723,24 @@ const t8 = async (e) => {
5723
5723
  ];
5724
5724
  }
5725
5725
  )
5726
- ), v8 = (e, t) => fetch(new URL("/core/apis/data/applyProductData", e), {
5727
- method: "PUT",
5728
- body: JSON.stringify(
5729
- Object.fromEntries(
5730
- Object.entries({
5731
- action: "OPEN_CHECKOUT",
5732
- category: t.category,
5733
- cggId: t.product.cggId,
5734
- apply: "apply",
5735
- journeyId: t.journeyId,
5736
- path: t.path,
5737
- position: t.index,
5738
- viewId: t.product.viewId,
5739
- providerCggId: t.product.provider.cggId
5740
- }).filter(([a, n]) => n != null)
5741
- )
5742
- )
5743
- });
5726
+ ), v8 = (e, t) => fetch(
5727
+ new URL(
5728
+ `/core/apis/data/applyProductData?${new URLSearchParams({
5729
+ action: "OPEN_CHECKOUT",
5730
+ category: t.category,
5731
+ cggId: t.product.cggId,
5732
+ apply: "apply",
5733
+ journeyId: t.journeyId || "",
5734
+ path: t.path,
5735
+ position: t.index.toString(),
5736
+ providerCggId: t.product.provider.cggId
5737
+ })}`,
5738
+ e
5739
+ ),
5740
+ {
5741
+ method: "POST"
5742
+ }
5743
+ );
5744
5744
  const Oe = (e, t) => {
5745
5745
  const a = e.__vccOpts || e;
5746
5746
  for (const [n, r] of t)
@@ -5,7 +5,6 @@ export declare const applyProductData: (origin: string, options: {
5
5
  path: string;
6
6
  product: {
7
7
  cggId: string;
8
- viewId: string;
9
8
  provider: {
10
9
  cggId: string;
11
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
- "version": "0.14.24",
3
+ "version": "0.14.25",
4
4
  "scripts": {
5
5
  "build:dev": "rimraf dist && vue-tsc && vite build -m development",
6
6
  "build:link": "rimraf dist && vue-tsc && vite build -m development && npm link",
@@ -7,28 +7,27 @@ export const applyProductData = (
7
7
  path: string;
8
8
  product: {
9
9
  cggId: string;
10
- viewId: string;
11
10
  provider: {
12
11
  cggId: string;
13
12
  };
14
13
  };
15
14
  }
16
15
  ) =>
17
- fetch(new URL("/core/apis/data/applyProductData", origin), {
18
- method: "PUT",
19
- body: JSON.stringify(
20
- Object.fromEntries(
21
- Object.entries({
22
- action: "OPEN_CHECKOUT",
23
- category: options.category,
24
- cggId: options.product.cggId,
25
- apply: "apply",
26
- journeyId: options.journeyId,
27
- path: options.path,
28
- position: options.index,
29
- viewId: options.product.viewId,
30
- providerCggId: options.product.provider.cggId,
31
- }).filter(([_, v]) => v != null)
32
- )
16
+ fetch(
17
+ new URL(
18
+ `/core/apis/data/applyProductData?${new URLSearchParams({
19
+ action: "OPEN_CHECKOUT",
20
+ category: options.category,
21
+ cggId: options.product.cggId,
22
+ apply: "apply",
23
+ journeyId: options.journeyId || "",
24
+ path: options.path,
25
+ position: options.index.toString(),
26
+ providerCggId: options.product.provider.cggId,
27
+ })}`,
28
+ origin
33
29
  ),
34
- });
30
+ {
31
+ method: "POST",
32
+ }
33
+ );