@zappie/sdk 0.3.0 → 0.4.0
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 +6 -0
- package/dist/debug.js +1 -1
- package/dist/index.js +1 -1
- package/dist/services/index.d.ts +3 -1
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @zappie/sdk
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b884697: `zappieSupportUrl(context)` in `@zappie/foundations` builds a WhatsApp link to Zappie support for a shopper with a problem such as a payment. Its message starts with "Hi Zappie support," and names the store, the branch when the store has more than one, the order and the page, as the classic storefront does. `ZAPPIE_SUPPORT_WHATSAPP` in `@zappie/sdk/services` is the number it opens.
|
|
8
|
+
|
|
3
9
|
## 0.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/debug.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { ZappieError, isZappieError } from "./errors.js";
|
|
|
10
10
|
export * from "./models.js";
|
|
11
11
|
import { format, money } from "./money.js";
|
|
12
12
|
import { RestTransport } from "./transport/rest.js";
|
|
13
|
-
var VERSION = true ? "0.
|
|
13
|
+
var VERSION = true ? "0.4.0" : "0.0.0-development";
|
|
14
14
|
export {
|
|
15
15
|
API_VERSION,
|
|
16
16
|
RestTransport,
|
package/dist/services/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ declare const checkoutUrl: (path: string, environment?: ZappieEnvironment) => st
|
|
|
16
16
|
* @returns The absolute app URL. A path that could leave the app throws a TypeError.
|
|
17
17
|
*/
|
|
18
18
|
declare const appUrl: (path: string, environment?: ZappieEnvironment) => string;
|
|
19
|
+
/** Zappie's support WhatsApp number, the same one the classic storefront opens. */
|
|
20
|
+
declare const ZAPPIE_SUPPORT_WHATSAPP = "15558956471";
|
|
19
21
|
|
|
20
|
-
export { appUrl, checkoutUrl };
|
|
22
|
+
export { ZAPPIE_SUPPORT_WHATSAPP, appUrl, checkoutUrl };
|
|
21
23
|
export type { ZappieEnvironment };
|
package/dist/services/index.js
CHANGED
|
@@ -17,7 +17,9 @@ var serviceUrl = (service, path, environment) => {
|
|
|
17
17
|
};
|
|
18
18
|
var checkoutUrl = (path, environment = "production") => serviceUrl("checkout", path, environment);
|
|
19
19
|
var appUrl = (path, environment = "production") => serviceUrl("app", path, environment);
|
|
20
|
+
var ZAPPIE_SUPPORT_WHATSAPP = "15558956471";
|
|
20
21
|
export {
|
|
22
|
+
ZAPPIE_SUPPORT_WHATSAPP,
|
|
21
23
|
appUrl,
|
|
22
24
|
checkoutUrl
|
|
23
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/services/index.ts"],
|
|
4
|
-
"mappings": ";AAIA,IAAM,UAAU;AAAA,EACd,UAAU;AAAA,IACR,YAAY;AAAA,IACZ,SAAS;AAAA,EACX;AAAA,EACA,KAAK;AAAA,IACH,YAAY;AAAA,IACZ,SAAS;AAAA,EACX;AACF;AAGA,IAAM,aAAa,CACjB,SACA,MACA,gBACW;AACX,MACG,gBAAgB,gBAAgB,gBAAgB,aACjD,CAAC,kCAAkC,KAAK,IAAI,GAC5C;AACA,UAAM,IAAI,UAAU,wCAAwC;AAAA,EAC9D;AACA,SAAO,QAAQ,OAAO,EAAE,WAAW,IAAI;AACzC;AASO,IAAM,cAAc,CACzB,MACA,cAAiC,iBACtB,WAAW,YAAY,MAAM,WAAW;AAS9C,IAAM,SAAS,CACpB,MACA,cAAiC,iBACtB,WAAW,OAAO,MAAM,WAAW;",
|
|
4
|
+
"mappings": ";AAIA,IAAM,UAAU;AAAA,EACd,UAAU;AAAA,IACR,YAAY;AAAA,IACZ,SAAS;AAAA,EACX;AAAA,EACA,KAAK;AAAA,IACH,YAAY;AAAA,IACZ,SAAS;AAAA,EACX;AACF;AAGA,IAAM,aAAa,CACjB,SACA,MACA,gBACW;AACX,MACG,gBAAgB,gBAAgB,gBAAgB,aACjD,CAAC,kCAAkC,KAAK,IAAI,GAC5C;AACA,UAAM,IAAI,UAAU,wCAAwC;AAAA,EAC9D;AACA,SAAO,QAAQ,OAAO,EAAE,WAAW,IAAI;AACzC;AASO,IAAM,cAAc,CACzB,MACA,cAAiC,iBACtB,WAAW,YAAY,MAAM,WAAW;AAS9C,IAAM,SAAS,CACpB,MACA,cAAiC,iBACtB,WAAW,OAAO,MAAM,WAAW;AAGzC,IAAM,0BAA0B;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|