@bunnyapp/api-client 3.0.0 → 3.2.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/dist/generated/graphql.d.ts +1442 -307
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/helpers/tenant-by-code.d.ts.map +1 -1
- package/dist/helpers/tenant-by-code.js +0 -7
- package/dist/helpers/tenant-by-code.js.map +1 -1
- package/dist/webhooks.d.ts +2 -1
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +1 -1
- package/dist/webhooks.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant-by-code.d.ts","sourceRoot":"","sources":["../../src/helpers/tenant-by-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAU,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"tenant-by-code.d.ts","sourceRoot":"","sources":["../../src/helpers/tenant-by-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAU,MAAM,kBAAkB,CAAC;AA+CjD;;;;GAIG;AACH,wBAA8B,eAAe,CAC3C,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC,CAcnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant-by-code.js","sourceRoot":"","sources":["../../src/helpers/tenant-by-code.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"tenant-by-code.js","sourceRoot":"","sources":["../../src/helpers/tenant-by-code.ts"],"names":[],"mappings":";;AAqDA,kCAiBC;AAnED,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CZ,CAAC;AAEH;;;;GAIG;AACY,KAAK,UAAU,eAAe,CAE3C,IAAY;;IAEZ,MAAM,SAAS,GAAG;QAChB,IAAI;KACL,CAAC;IAEF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAEzB,KAAK,EAAE,SAAS,CAAC,CAAC;IAErB,IAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,0CAAE,MAAM,CAAC;AAC3B,CAAC"}
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Buffer } from 'buffer';
|
|
1
2
|
declare class Webhooks {
|
|
2
3
|
private signingToken;
|
|
3
4
|
constructor(signingToken?: string | null);
|
|
4
|
-
validate(signature: string, payload:
|
|
5
|
+
validate(signature: string, payload: string | Buffer, signingToken?: string | null): boolean;
|
|
5
6
|
}
|
|
6
7
|
export default Webhooks;
|
|
7
8
|
//# sourceMappingURL=webhooks.d.ts.map
|
package/dist/webhooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,cAAM,QAAQ;IACZ,OAAO,CAAC,YAAY,CAAgB;gBAExB,YAAY,GAAE,MAAM,GAAG,IAAW;IAI9C,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO;CAsBnG;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/webhooks.js
CHANGED
|
@@ -16,7 +16,7 @@ class Webhooks {
|
|
|
16
16
|
}
|
|
17
17
|
const payloadSignature = crypto_1.default
|
|
18
18
|
.createHmac('sha1', key)
|
|
19
|
-
.update(
|
|
19
|
+
.update(payload)
|
|
20
20
|
.digest('hex');
|
|
21
21
|
const ps = buffer_1.Buffer.from(payloadSignature, 'hex');
|
|
22
22
|
const s = buffer_1.Buffer.from(signature, 'hex');
|
package/dist/webhooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,mCAAgC;AAEhC,MAAM,QAAQ;IAGZ,YAAY,eAA8B,IAAI;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED,QAAQ,CAAC,SAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,mCAAgC;AAEhC,MAAM,QAAQ;IAGZ,YAAY,eAA8B,IAAI;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED,QAAQ,CAAC,SAAiB,EAAE,OAAwB,EAAE,eAA8B,IAAI;QACtF,MAAM,GAAG,GAAG,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC;QAE9C,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,MAAM,gBAAgB,GAAG,gBAAM;aAC5B,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC;aACvB,MAAM,CAAC,OAAO,CAAC;aACf,MAAM,CAAC,KAAK,CAAC,CAAC;QAEjB,MAAM,EAAE,GAAG,eAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QAChD,MAAM,CAAC,GAAG,eAAM,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAExC,uDAAuD;QACvD,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;YAC3B,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,gBAAM,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACvC,CAAC;CACF;AAED,kBAAe,QAAQ,CAAC"}
|