From bfbb1cfd3ed1fe2a2b10d8976d2257f5cc98c42b Mon Sep 17 00:00:00 2001 From: Mike Audi Date: Tue, 3 Oct 2023 00:39:05 -0500 Subject: [PATCH 1/4] bump to capture 0.6.1 --- example/ios/App/Podfile.lock | 4 ++-- example/package-lock.json | 16 ++++++++-------- example/package.json | 2 +- package-lock.json | 14 +++++++------- package.json | 4 ++-- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/example/ios/App/Podfile.lock b/example/ios/App/Podfile.lock index 51e2a759..a0b430e8 100644 --- a/example/ios/App/Podfile.lock +++ b/example/ios/App/Podfile.lock @@ -4,7 +4,7 @@ PODS: - CapacitorCordova (5.4.1) - CapacitorPreferences (5.0.6): - Capacitor - - MytikiCaptureReceiptCapacitor (0.6.0): + - MytikiCaptureReceiptCapacitor (0.6.1): - Capacitor - MytikiTikiSdkCapacitor (0.3.1): - Capacitor @@ -32,7 +32,7 @@ SPEC CHECKSUMS: Capacitor: 4c0681b47eebeba1f902093d24149cf2f518393e CapacitorCordova: 1222fdd78bfd0d323cc22bf254eed1484fe6c92a CapacitorPreferences: f03954bcb0ff09c792909e46bff88e3183c16b10 - MytikiCaptureReceiptCapacitor: 1cdd272536280411e36d3c6e42d0c1cd7a5cff44 + MytikiCaptureReceiptCapacitor: 0c12303ca0416b7d3247ad89bfdc8c73cf8e0da0 MytikiTikiSdkCapacitor: 7fb71c6099dd3bba5c75ee7ec1dd30bd90c78c9c PODFILE CHECKSUM: f1577cba99d1d91b705cb25d5cc74e6dbaef78e1 diff --git a/example/package-lock.json b/example/package-lock.json index 9f8a660e..29124b30 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -13,7 +13,7 @@ "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.0", + "@mytiki/capture-receipt-capacitor": "^0.6.1", "@mytiki/receipt-capacitor": "file:../", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "uuid": "^9.0.0", @@ -40,12 +40,12 @@ } }, "..": { - "name": "@mytiki/tiki-receipt-capacitor", + "name": "@mytiki/receipt-capacitor", "version": "0.3.0", "license": "MIT", "dependencies": { "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.0", + "@mytiki/capture-receipt-capacitor": "^0.6.1", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue-markdown-render": "^2.0.1", @@ -65,7 +65,7 @@ "eslint": "^8.47.0", "eslint-plugin-vue": "^9.16.0", "path": "^0.12.7", - "rollup-plugin-typescript2": "^0.35.0", + "rollup-plugin-typescript2": "^0.36.0", "typedoc": "^0.25.0", "typescript": "^5.1.6", "vite": "^4.4.9", @@ -79,7 +79,7 @@ "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.0", + "@mytiki/capture-receipt-capacitor": "^0.6.1", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue3-touch-events": "^4.1.3" @@ -740,9 +740,9 @@ "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@mytiki/capture-receipt-capacitor": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@mytiki/capture-receipt-capacitor/-/capture-receipt-capacitor-0.6.0.tgz", - "integrity": "sha512-HnaaBvx9GjRr4lwb1tlieBDx25D1WFyXyi3yld7sNWQYijLEynVFJojKKWpp/y7xgiF7AiKK8NE6zy/k8i86CA==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@mytiki/capture-receipt-capacitor/-/capture-receipt-capacitor-0.6.1.tgz", + "integrity": "sha512-YZzvFzdjlSb46ndl9fiOjKwwQsvur6sw/reiWmlNiCoEPmv7rOqQN9ildXnsTIFDJeXxL6iDYllBl+sbRA6f8Q==", "dependencies": { "uuid": "^9.0.1" }, diff --git a/example/package.json b/example/package.json index 969ba81e..47741ba0 100644 --- a/example/package.json +++ b/example/package.json @@ -16,7 +16,7 @@ "@capacitor/android": "^5.3.0", "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", - "@mytiki/capture-receipt-capacitor": "^0.6.0", + "@mytiki/capture-receipt-capacitor": "^0.6.1", "@mytiki/receipt-capacitor": "file:../", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "@capacitor/preferences": "^5.0.6", diff --git a/package-lock.json b/package-lock.json index 72fc2f3d..c6db03e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { - "name": "@mytiki/tiki-receipt-capacitor", + "name": "@mytiki/receipt-capacitor", "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@mytiki/tiki-receipt-capacitor", + "name": "@mytiki/receipt-capacitor", "version": "0.3.0", "license": "MIT", "dependencies": { "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.0", + "@mytiki/capture-receipt-capacitor": "^0.6.1", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue-markdown-render": "^2.0.1", @@ -44,7 +44,7 @@ "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.0", + "@mytiki/capture-receipt-capacitor": "^0.6.1", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue3-touch-events": "^4.1.3" @@ -855,9 +855,9 @@ } }, "node_modules/@mytiki/capture-receipt-capacitor": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@mytiki/capture-receipt-capacitor/-/capture-receipt-capacitor-0.6.0.tgz", - "integrity": "sha512-HnaaBvx9GjRr4lwb1tlieBDx25D1WFyXyi3yld7sNWQYijLEynVFJojKKWpp/y7xgiF7AiKK8NE6zy/k8i86CA==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@mytiki/capture-receipt-capacitor/-/capture-receipt-capacitor-0.6.1.tgz", + "integrity": "sha512-YZzvFzdjlSb46ndl9fiOjKwwQsvur6sw/reiWmlNiCoEPmv7rOqQN9ildXnsTIFDJeXxL6iDYllBl+sbRA6f8Q==", "dependencies": { "uuid": "^9.0.1" }, diff --git a/package.json b/package.json index 070aaf77..4834a552 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ ], "dependencies": { "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.0", + "@mytiki/capture-receipt-capacitor": "^0.6.1", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue-markdown-render": "^2.0.1", @@ -75,7 +75,7 @@ "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.0", + "@mytiki/capture-receipt-capacitor": "^0.6.1", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue3-touch-events": "^4.1.3" From 8d369c7fc8e2fb306bcba32ba24807b28a7d037f Mon Sep 17 00:00:00 2001 From: Mike Audi Date: Tue, 3 Oct 2023 01:03:40 -0500 Subject: [PATCH 2/4] fix: temporarily remove the broken publish requires investigation on the backend. --- src/service/publish/index.ts | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/service/publish/index.ts b/src/service/publish/index.ts index 92e2f7dc..205b6df0 100644 --- a/src/service/publish/index.ts +++ b/src/service/publish/index.ts @@ -154,25 +154,24 @@ export class ServicePublish { return receipts; } - async publish(receipt: Receipt): Promise { + async publish(_receipt: Receipt): Promise { const license = await this.getLicense(); if (!license) throw Error("Publish requires a valid data license."); - - const jwt: Jwt = await this.plugin.token(); - const rsp = await fetch( - "https://ingest.mytiki.com/api/latest/microblink-receipt", - { - method: "POST", - headers: { - Authorization: `Bearer ${jwt.accessToken}`, - }, - body: JSON.stringify(receipt), - }, - ); - if (!rsp.ok) { - const body = await rsp.text(); - console.debug(`Unsupported receipt. Skipping. ${body}`); - } + const _jwt: Jwt = await this.plugin.token(); + // const rsp = await fetch( + // "https://ingest.mytiki.com/api/latest/microblink-receipt", + // { + // method: "POST", + // headers: { + // Authorization: `Bearer ${jwt.accessToken}`, + // }, + // body: JSON.stringify(receipt), + // }, + // ); + // if (!rsp.ok) { + // const body = await rsp.text(); + // console.debug(`Unsupported receipt. Skipping. ${body}`); + // } } async balance(): Promise { From 6c5c7b95f2e5b3522806de84e5ca2f298dc35e18 Mon Sep 17 00:00:00 2001 From: Mike Audi Date: Tue, 3 Oct 2023 01:23:00 -0500 Subject: [PATCH 3/4] fix: bump capture to 0.6.2 --- example/ios/App/Podfile.lock | 4 ++-- example/package-lock.json | 12 ++++++------ example/package.json | 2 +- package-lock.json | 10 +++++----- package.json | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/example/ios/App/Podfile.lock b/example/ios/App/Podfile.lock index a0b430e8..830319ef 100644 --- a/example/ios/App/Podfile.lock +++ b/example/ios/App/Podfile.lock @@ -4,7 +4,7 @@ PODS: - CapacitorCordova (5.4.1) - CapacitorPreferences (5.0.6): - Capacitor - - MytikiCaptureReceiptCapacitor (0.6.1): + - MytikiCaptureReceiptCapacitor (0.6.2): - Capacitor - MytikiTikiSdkCapacitor (0.3.1): - Capacitor @@ -32,7 +32,7 @@ SPEC CHECKSUMS: Capacitor: 4c0681b47eebeba1f902093d24149cf2f518393e CapacitorCordova: 1222fdd78bfd0d323cc22bf254eed1484fe6c92a CapacitorPreferences: f03954bcb0ff09c792909e46bff88e3183c16b10 - MytikiCaptureReceiptCapacitor: 0c12303ca0416b7d3247ad89bfdc8c73cf8e0da0 + MytikiCaptureReceiptCapacitor: aa1e9da282a17da9a47243037fafc640713fafac MytikiTikiSdkCapacitor: 7fb71c6099dd3bba5c75ee7ec1dd30bd90c78c9c PODFILE CHECKSUM: f1577cba99d1d91b705cb25d5cc74e6dbaef78e1 diff --git a/example/package-lock.json b/example/package-lock.json index 29124b30..b9131a39 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -13,7 +13,7 @@ "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.1", + "@mytiki/capture-receipt-capacitor": "^0.6.2", "@mytiki/receipt-capacitor": "file:../", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "uuid": "^9.0.0", @@ -45,7 +45,7 @@ "license": "MIT", "dependencies": { "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.1", + "@mytiki/capture-receipt-capacitor": "^0.6.2", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue-markdown-render": "^2.0.1", @@ -79,7 +79,7 @@ "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.1", + "@mytiki/capture-receipt-capacitor": "^0.6.2", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue3-touch-events": "^4.1.3" @@ -740,9 +740,9 @@ "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@mytiki/capture-receipt-capacitor": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/@mytiki/capture-receipt-capacitor/-/capture-receipt-capacitor-0.6.1.tgz", - "integrity": "sha512-YZzvFzdjlSb46ndl9fiOjKwwQsvur6sw/reiWmlNiCoEPmv7rOqQN9ildXnsTIFDJeXxL6iDYllBl+sbRA6f8Q==", + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/@mytiki/capture-receipt-capacitor/-/capture-receipt-capacitor-0.6.2.tgz", + "integrity": "sha512-Xo69ibBHFp9/Dbi3qPlzNi4Br17tY5QdcpouJFuPxEqJoo/m+Ew9x7wCOp9UiclmXF/Qfb0vk58sdRfYaBhOvA==", "dependencies": { "uuid": "^9.0.1" }, diff --git a/example/package.json b/example/package.json index 47741ba0..9740d7ab 100644 --- a/example/package.json +++ b/example/package.json @@ -16,7 +16,7 @@ "@capacitor/android": "^5.3.0", "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", - "@mytiki/capture-receipt-capacitor": "^0.6.1", + "@mytiki/capture-receipt-capacitor": "^0.6.2", "@mytiki/receipt-capacitor": "file:../", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "@capacitor/preferences": "^5.0.6", diff --git a/package-lock.json b/package-lock.json index c6db03e3..d337ce76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.1", + "@mytiki/capture-receipt-capacitor": "^0.6.2", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue-markdown-render": "^2.0.1", @@ -44,7 +44,7 @@ "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.1", + "@mytiki/capture-receipt-capacitor": "^0.6.2", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue3-touch-events": "^4.1.3" @@ -855,9 +855,9 @@ } }, "node_modules/@mytiki/capture-receipt-capacitor": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/@mytiki/capture-receipt-capacitor/-/capture-receipt-capacitor-0.6.1.tgz", - "integrity": "sha512-YZzvFzdjlSb46ndl9fiOjKwwQsvur6sw/reiWmlNiCoEPmv7rOqQN9ildXnsTIFDJeXxL6iDYllBl+sbRA6f8Q==", + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/@mytiki/capture-receipt-capacitor/-/capture-receipt-capacitor-0.6.2.tgz", + "integrity": "sha512-Xo69ibBHFp9/Dbi3qPlzNi4Br17tY5QdcpouJFuPxEqJoo/m+Ew9x7wCOp9UiclmXF/Qfb0vk58sdRfYaBhOvA==", "dependencies": { "uuid": "^9.0.1" }, diff --git a/package.json b/package.json index 4834a552..3a4d619d 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ ], "dependencies": { "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.1", + "@mytiki/capture-receipt-capacitor": "^0.6.2", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue-markdown-render": "^2.0.1", @@ -75,7 +75,7 @@ "@capacitor/core": "^5.4.1", "@capacitor/ios": "^5.4.1", "@capacitor/preferences": "^5.0.6", - "@mytiki/capture-receipt-capacitor": "^0.6.1", + "@mytiki/capture-receipt-capacitor": "^0.6.2", "@mytiki/tiki-sdk-capacitor": "^0.3.1", "vue": "^3.3.4", "vue3-touch-events": "^4.1.3" From 817e9f7b4ee10ce7f200e4521c7533623b83b773 Mon Sep 17 00:00:00 2001 From: GH Action Date: Tue, 3 Oct 2023 06:25:04 +0000 Subject: [PATCH 4/4] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3a4d619d..625eb8d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mytiki/receipt-capacitor", - "version": "0.3.0", + "version": "0.4.0", "description": "The TIKI Receipt library adds to your Vue.js + Capacitor mobile app a Data Reward program for your users to share their receipts in-exchange for loyalty points.", "author": "Tiki inc.", "license": "MIT",