@superdurable/connector-buffer 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +24 -2
- package/dex-connector.json +814 -0
- package/dist/chunk-Q62AX6CW.js +603 -0
- package/dist/connection-BmjeWE6m.d.ts +422 -0
- package/dist/index.d.ts +677 -0
- package/dist/index.js +1114 -0
- package/dist/mock.d.ts +243 -0
- package/dist/mock.js +590 -0
- package/package.json +59 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Super Durable
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Buffer TypeScript connector
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Install `@superdurable/connector-buffer@0.2.0`. The package requires
|
|
4
|
+
`@superdurable/connectors-sdk@0.12.0` and `@superdurable/dex>=1.28.0`.
|
|
5
|
+
|
|
6
|
+
| Resource | Step factories |
|
|
7
|
+
| --- | --- |
|
|
8
|
+
| Organization and channel | `newListOrganizationsStep`, `newListChannelsStep`, `newGetChannelStep` |
|
|
9
|
+
| Idea | `newCreateIdeaStep`, `newListIdeasStep` |
|
|
10
|
+
| Post | `newGetPostStep`, `newListPostsStep`, `newCreatePostStep`, `newCreateScheduledPostStep`, `newPublishPostNowStep`, `newEditPostStep`, `newDeletePostStep` |
|
|
11
|
+
|
|
12
|
+
Pass `endCursor` back as `after` when `hasNextPage` is true.
|
|
13
|
+
Idea and post creation use bounded dispatch and select `uncertain` when
|
|
14
|
+
Buffer may have processed all allowed sends. Set `maxSends` on a creation
|
|
15
|
+
Step to control its send cap. See the [operation contract](../README.md).
|
|
16
|
+
|
|
17
|
+
Supply all 12 operation bindings if you call `newConnectionWithOperations`
|
|
18
|
+
directly. The generated mocks supply manifest defaults.
|
|
19
|
+
|
|
20
|
+
Configure the private `buffer` connection and run the
|
|
21
|
+
[example Worker](examples/channel-read/README.md). Run `npm ci && npm run check`
|
|
22
|
+
for the package checks and Go-recorded conformance. With
|
|
23
|
+
`DEX_FLOW_SERVICE_ADDRESS` set to the gRPC address of a running `dexcli dev`,
|
|
24
|
+
run `npm run test:integration` for real Dex integration against
|
|
25
|
+
synthetic Buffer responses.
|