@akinon/projectzero 1.126.7-v1-rc.3 → 1.126.7

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @akinon/projectzero
2
2
 
3
- ## 1.126.7-v1-rc.3
3
+ ## 1.126.7
4
4
 
5
5
  ## 1.126.6
6
6
 
@@ -1,39 +1,36 @@
1
1
  # projectzeronext
2
2
 
3
- ## 1.126.7-v1-rc.3
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [560e209]
8
- - Updated dependencies [d480941]
9
- - Updated dependencies [560e209]
10
- - Updated dependencies [182a639]
11
- - @akinon/pz-tamara-extension@1.126.7-v1-rc.3
12
- - @akinon/pz-masterpass-rest@1.126.7-v1-rc.3
13
- - @akinon/next@1.126.7-v1-rc.3
14
- - @akinon/pz-virtual-try-on@1.126.7-v1-rc.3
15
- - @akinon/pz-akifast@1.126.7-v1-rc.3
16
- - @akinon/pz-apple-pay@1.126.7-v1-rc.3
17
- - @akinon/pz-b2b@1.126.7-v1-rc.3
18
- - @akinon/pz-basket-gift-pack@1.126.7-v1-rc.3
19
- - @akinon/pz-bkm@1.126.7-v1-rc.3
20
- - @akinon/pz-checkout-gift-pack@1.126.7-v1-rc.3
21
- - @akinon/pz-click-collect@1.126.7-v1-rc.3
22
- - @akinon/pz-credit-payment@1.126.7-v1-rc.3
23
- - @akinon/pz-cybersource-uc@1.126.7-v1-rc.3
24
- - @akinon/pz-flow-payment@1.126.7-v1-rc.3
25
- - @akinon/pz-google-pay@1.126.7-v1-rc.3
26
- - @akinon/pz-gpay@1.126.7-v1-rc.3
27
- - @akinon/pz-haso@1.126.7-v1-rc.3
28
- - @akinon/pz-hepsipay@1.126.7-v1-rc.3
29
- - @akinon/pz-masterpass@1.126.7-v1-rc.3
30
- - @akinon/pz-multi-basket@1.126.7-v1-rc.3
31
- - @akinon/pz-one-click-checkout@1.126.7-v1-rc.3
32
- - @akinon/pz-otp@1.126.7-v1-rc.3
33
- - @akinon/pz-pay-on-delivery@1.126.7-v1-rc.3
34
- - @akinon/pz-saved-card@1.126.7-v1-rc.3
35
- - @akinon/pz-similar-products@1.126.7-v1-rc.3
36
- - @akinon/pz-tabby-extension@1.126.7-v1-rc.3
3
+ ## 1.126.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [5d23a0b]
8
+ - @akinon/pz-virtual-try-on@1.126.7
9
+ - @akinon/next@1.126.7
10
+ - @akinon/pz-akifast@1.126.7
11
+ - @akinon/pz-apple-pay@1.126.7
12
+ - @akinon/pz-b2b@1.126.7
13
+ - @akinon/pz-basket-gift-pack@1.126.7
14
+ - @akinon/pz-bkm@1.126.7
15
+ - @akinon/pz-checkout-gift-pack@1.126.7
16
+ - @akinon/pz-click-collect@1.126.7
17
+ - @akinon/pz-credit-payment@1.126.7
18
+ - @akinon/pz-cybersource-uc@1.126.7
19
+ - @akinon/pz-flow-payment@1.126.7
20
+ - @akinon/pz-google-pay@1.126.7
21
+ - @akinon/pz-gpay@1.126.7
22
+ - @akinon/pz-haso@1.126.7
23
+ - @akinon/pz-hepsipay@1.126.7
24
+ - @akinon/pz-masterpass@1.126.7
25
+ - @akinon/pz-masterpass-rest@1.126.7
26
+ - @akinon/pz-multi-basket@1.126.7
27
+ - @akinon/pz-one-click-checkout@1.126.7
28
+ - @akinon/pz-otp@1.126.7
29
+ - @akinon/pz-pay-on-delivery@1.126.7
30
+ - @akinon/pz-saved-card@1.126.7
31
+ - @akinon/pz-similar-products@1.126.7
32
+ - @akinon/pz-tabby-extension@1.126.7
33
+ - @akinon/pz-tamara-extension@1.126.7
37
34
 
38
35
  ## 1.126.6
39
36
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.126.7-v1-rc.3",
3
+ "version": "1.126.7",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,32 +24,32 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "1.126.7-v1-rc.3",
28
- "@akinon/pz-akifast": "1.126.7-v1-rc.3",
29
- "@akinon/pz-apple-pay": "1.126.7-v1-rc.3",
30
- "@akinon/pz-b2b": "1.126.7-v1-rc.3",
31
- "@akinon/pz-basket-gift-pack": "1.126.7-v1-rc.3",
32
- "@akinon/pz-bkm": "1.126.7-v1-rc.3",
33
- "@akinon/pz-checkout-gift-pack": "1.126.7-v1-rc.3",
34
- "@akinon/pz-click-collect": "1.126.7-v1-rc.3",
35
- "@akinon/pz-credit-payment": "1.126.7-v1-rc.3",
36
- "@akinon/pz-cybersource-uc": "1.126.7-v1-rc.3",
37
- "@akinon/pz-flow-payment": "1.126.7-v1-rc.3",
38
- "@akinon/pz-google-pay": "1.126.7-v1-rc.3",
39
- "@akinon/pz-gpay": "1.126.7-v1-rc.3",
40
- "@akinon/pz-haso": "1.126.7-v1-rc.3",
41
- "@akinon/pz-hepsipay": "1.126.7-v1-rc.3",
42
- "@akinon/pz-masterpass": "1.126.7-v1-rc.3",
43
- "@akinon/pz-masterpass-rest": "1.126.7-v1-rc.3",
44
- "@akinon/pz-multi-basket": "1.126.7-v1-rc.3",
45
- "@akinon/pz-one-click-checkout": "1.126.7-v1-rc.3",
46
- "@akinon/pz-otp": "1.126.7-v1-rc.3",
47
- "@akinon/pz-pay-on-delivery": "1.126.7-v1-rc.3",
48
- "@akinon/pz-saved-card": "1.126.7-v1-rc.3",
49
- "@akinon/pz-similar-products": "1.126.7-v1-rc.3",
50
- "@akinon/pz-tabby-extension": "1.126.7-v1-rc.3",
51
- "@akinon/pz-tamara-extension": "1.126.7-v1-rc.3",
52
- "@akinon/pz-virtual-try-on": "1.126.7-v1-rc.3",
27
+ "@akinon/next": "1.126.7",
28
+ "@akinon/pz-akifast": "1.126.7",
29
+ "@akinon/pz-apple-pay": "1.126.7",
30
+ "@akinon/pz-b2b": "1.126.7",
31
+ "@akinon/pz-basket-gift-pack": "1.126.7",
32
+ "@akinon/pz-bkm": "1.126.7",
33
+ "@akinon/pz-checkout-gift-pack": "1.126.7",
34
+ "@akinon/pz-click-collect": "1.126.7",
35
+ "@akinon/pz-credit-payment": "1.126.7",
36
+ "@akinon/pz-cybersource-uc": "1.126.7",
37
+ "@akinon/pz-flow-payment": "1.126.7",
38
+ "@akinon/pz-google-pay": "1.126.7",
39
+ "@akinon/pz-gpay": "1.126.7",
40
+ "@akinon/pz-haso": "1.126.7",
41
+ "@akinon/pz-hepsipay": "1.126.7",
42
+ "@akinon/pz-masterpass": "1.126.7",
43
+ "@akinon/pz-masterpass-rest": "1.126.7",
44
+ "@akinon/pz-multi-basket": "1.126.7",
45
+ "@akinon/pz-one-click-checkout": "1.126.7",
46
+ "@akinon/pz-otp": "1.126.7",
47
+ "@akinon/pz-pay-on-delivery": "1.126.7",
48
+ "@akinon/pz-saved-card": "1.126.7",
49
+ "@akinon/pz-similar-products": "1.126.7",
50
+ "@akinon/pz-tabby-extension": "1.126.7",
51
+ "@akinon/pz-tamara-extension": "1.126.7",
52
+ "@akinon/pz-virtual-try-on": "1.126.7",
53
53
  "@hookform/resolvers": "2.9.0",
54
54
  "@next/third-parties": "14.1.0",
55
55
  "@react-google-maps/api": "2.17.1",
@@ -72,7 +72,7 @@
72
72
  "yup": "0.32.11"
73
73
  },
74
74
  "devDependencies": {
75
- "@akinon/eslint-plugin-projectzero": "1.126.7-v1-rc.3",
75
+ "@akinon/eslint-plugin-projectzero": "1.126.7",
76
76
  "@semantic-release/changelog": "6.0.2",
77
77
  "@semantic-release/exec": "6.0.3",
78
78
  "@semantic-release/git": "10.0.1",
@@ -47,6 +47,7 @@
47
47
  "instructions": "Upload a clear photo of yourself for the best virtual try-on experience. Make sure you are facing the camera directly.",
48
48
  "try_on": "Try On",
49
49
  "virtual_cabin": "Virtual Cabin",
50
+ "usage_info": "Usage: {{used}}/{{limit}}",
50
51
  "upload_info": "Your photo is used solely for generating the virtual try-on and is not stored permanently.",
51
52
  "edit_photo": "Edit Photo",
52
53
  "processing": "Processing...",
@@ -97,7 +98,8 @@
97
98
  "change_photo": "Change",
98
99
  "starting": "Starting...",
99
100
  "will_start": "will start virtual try-on for",
100
- "products_count": "products"
101
+ "products_count": "products",
102
+ "limit_exceeded": "You have reached the try-on limit for this product."
101
103
  },
102
104
  "barcode_scanner": {
103
105
  "title": "Scan Barcode",
@@ -53,6 +53,7 @@
53
53
  "processing_message": "En iyi sonucu sunabilmek için fotoğrafınızı işliyoruz. Lütfen bekleyiniz.",
54
54
  "result_title": "Sanal Kabin Sonuç",
55
55
  "virtual_cabin": "Sanal Kabin",
56
+ "usage_info": "Kullanım: {{used}}/{{limit}}",
56
57
  "result_placeholder": "Sonucu görmek için fotoğrafınızı yükleyin",
57
58
  "error": "Sanal deneme başarısız oldu. Lütfen tekrar deneyin.",
58
59
  "error_message": "Modelin net bir şekilde göründüğü daha sade bir arka plana sahip görselle tekrar deneyin.",
@@ -99,7 +100,8 @@
99
100
  "change_photo": "Değiştir",
100
101
  "starting": "Başlatılıyor...",
101
102
  "will_start": "için sanal deneme başlatılacak",
102
- "products_count": "ürün"
103
+ "products_count": "ürün",
104
+ "limit_exceeded": "Bu ürün için deneme hakkınız doldu."
103
105
  },
104
106
  "barcode_scanner": {
105
107
  "title": "Barkodu Okut",
@@ -1 +1 @@
1
- export * from '@akinon/next/api/virtual-try-on';
1
+ export { GET, POST, PUT, OPTIONS } from '@akinon/next/api/virtual-try-on';
@@ -1 +1,19 @@
1
- export * from '@akinon/next/api/virtual-try-on';
1
+ import { getServerSession } from 'next-auth/next';
2
+ import type { Session } from 'next-auth';
3
+ import { createVirtualTryOnHandlers } from '@akinon/next/api/virtual-try-on';
4
+
5
+ // next-auth v4: session data lives on the JWT under `token.user`, so the
6
+ // session callback has to be re-applied when reading it outside the handler.
7
+ const auth = () =>
8
+ getServerSession({
9
+ callbacks: {
10
+ session: ({ session, token }) => {
11
+ session.user = token.user as Session['user'];
12
+ return session;
13
+ }
14
+ }
15
+ });
16
+
17
+ export const { GET, POST, PUT, OPTIONS } = createVirtualTryOnHandlers({
18
+ auth
19
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.126.7-v1-rc.3",
3
+ "version": "1.126.7",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {