@headspace/protos-events 0.0.22 → 0.1.0-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/lib/index.d.ts +0 -510
- package/lib/index.js +0 -1244
- package/package.json +2 -9
- package/README.md +0 -15
- package/connected.proto +0 -7
- package/sleep.proto +0 -19
- package/user.proto +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headspace/protos-events",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0-0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -14,13 +14,6 @@
|
|
|
14
14
|
"protobufjs": "^6.8.6"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"babel-core": "^6.26.3",
|
|
18
|
-
"babel-jest": "^23.6.0",
|
|
19
|
-
"jest": "^23.6.0",
|
|
20
|
-
"jest-junit": "^5.1.0",
|
|
21
|
-
"ts-jest": "^23.10.0-beta.4",
|
|
22
|
-
"tslint": "^5.11.0",
|
|
23
17
|
"typescript": "^3.0.1"
|
|
24
|
-
}
|
|
25
|
-
"gitHead": "e3221c558e390dd6d07b0a18beb13595c4963559"
|
|
18
|
+
}
|
|
26
19
|
}
|
package/README.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# @headspace/protos-events
|
|
2
|
-
|
|
3
|
-
The transportation format used for the SNS publishing clients and the SQS subscribing clients. It is protobuf based for type safety and ergonomics.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
`yarn add @headspace/protos-events`
|
|
7
|
-
|
|
8
|
-
## Getting started
|
|
9
|
-
|
|
10
|
-
Add a proto in the format of service name (i.e. auth.proto) and then add the [messages](https://developers.google.com/protocol-buffers/docs/encoding#structure).
|
|
11
|
-
|
|
12
|
-
## Examples
|
|
13
|
-
|
|
14
|
-
### user.proto
|
|
15
|
-
This proto is for the [user service](https://github.com/headspacemeditation/hs-user-service) is used to notify any subscribers to the `UserPasswordUpdated` message that a user's password has been updated.
|
package/connected.proto
DELETED
package/sleep.proto
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
message SleepcastEpisodeCompleted {
|
|
4
|
-
uint64 timestamp = 1;
|
|
5
|
-
uint32 sleepcastId = 2;
|
|
6
|
-
string userId = 3;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
message FirstSleepcastPlayDateSet {
|
|
10
|
-
uint64 timestamp = 1;
|
|
11
|
-
string userId = 2;
|
|
12
|
-
uint64 firstPlayTimestamp = 3;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
message NumSleepcastPlaysSet {
|
|
16
|
-
uint64 timestamp = 1;
|
|
17
|
-
string userId = 2;
|
|
18
|
-
uint32 numPlays = 3;
|
|
19
|
-
}
|