@ceramicnetwork/common 2.6.1-rc.2 → 2.7.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.
Files changed (106) hide show
  1. package/README.md +0 -0
  2. package/lib/anchor-service.d.ts +0 -0
  3. package/lib/anchor-service.d.ts.map +0 -0
  4. package/lib/anchor-service.js +0 -0
  5. package/lib/anchor-service.js.map +0 -0
  6. package/lib/ceramic-api.d.ts +0 -0
  7. package/lib/ceramic-api.d.ts.map +0 -0
  8. package/lib/ceramic-api.js +0 -0
  9. package/lib/ceramic-api.js.map +0 -0
  10. package/lib/context.d.ts +0 -0
  11. package/lib/context.d.ts.map +0 -0
  12. package/lib/context.js +0 -0
  13. package/lib/context.js.map +0 -0
  14. package/lib/index-api.d.ts +16 -13
  15. package/lib/index-api.d.ts.map +1 -1
  16. package/lib/index-api.js +0 -0
  17. package/lib/index-api.js.map +0 -0
  18. package/lib/index.d.ts +0 -0
  19. package/lib/index.d.ts.map +0 -0
  20. package/lib/index.js +0 -0
  21. package/lib/index.js.map +0 -0
  22. package/lib/logger-base.d.ts +0 -0
  23. package/lib/logger-base.d.ts.map +0 -0
  24. package/lib/logger-base.js +0 -0
  25. package/lib/logger-base.js.map +0 -0
  26. package/lib/logger-provider-browser.d.ts +0 -0
  27. package/lib/logger-provider-browser.d.ts.map +0 -0
  28. package/lib/logger-provider-browser.js +0 -0
  29. package/lib/logger-provider-browser.js.map +0 -0
  30. package/lib/logger-provider.d.ts +0 -0
  31. package/lib/logger-provider.d.ts.map +0 -0
  32. package/lib/logger-provider.js +0 -0
  33. package/lib/logger-provider.js.map +0 -0
  34. package/lib/loggers-browser.d.ts +0 -0
  35. package/lib/loggers-browser.d.ts.map +0 -0
  36. package/lib/loggers-browser.js +0 -0
  37. package/lib/loggers-browser.js.map +0 -0
  38. package/lib/loggers.d.ts +0 -0
  39. package/lib/loggers.d.ts.map +0 -0
  40. package/lib/loggers.js +0 -0
  41. package/lib/loggers.js.map +0 -0
  42. package/lib/networks.d.ts +0 -0
  43. package/lib/networks.d.ts.map +0 -0
  44. package/lib/networks.js +0 -0
  45. package/lib/networks.js.map +0 -0
  46. package/lib/pinning.d.ts +0 -0
  47. package/lib/pinning.d.ts.map +0 -0
  48. package/lib/pinning.js +0 -0
  49. package/lib/pinning.js.map +0 -0
  50. package/lib/running-state-like.d.ts +0 -0
  51. package/lib/running-state-like.d.ts.map +0 -0
  52. package/lib/running-state-like.js +0 -0
  53. package/lib/running-state-like.js.map +0 -0
  54. package/lib/stream-state-subject.d.ts +0 -0
  55. package/lib/stream-state-subject.d.ts.map +0 -0
  56. package/lib/stream-state-subject.js +0 -0
  57. package/lib/stream-state-subject.js.map +0 -0
  58. package/lib/stream.d.ts +0 -0
  59. package/lib/stream.d.ts.map +0 -0
  60. package/lib/stream.js +0 -0
  61. package/lib/stream.js.map +0 -0
  62. package/lib/streamopts.d.ts +0 -0
  63. package/lib/streamopts.d.ts.map +0 -0
  64. package/lib/streamopts.js +0 -0
  65. package/lib/streamopts.js.map +0 -0
  66. package/lib/subscription-set.d.ts +0 -0
  67. package/lib/subscription-set.d.ts.map +0 -0
  68. package/lib/subscription-set.js +0 -0
  69. package/lib/subscription-set.js.map +0 -0
  70. package/lib/unreachable-case-error.d.ts +0 -0
  71. package/lib/unreachable-case-error.d.ts.map +0 -0
  72. package/lib/unreachable-case-error.js +0 -0
  73. package/lib/unreachable-case-error.js.map +0 -0
  74. package/lib/utils/abort-signal-utils.d.ts +0 -0
  75. package/lib/utils/abort-signal-utils.d.ts.map +0 -0
  76. package/lib/utils/abort-signal-utils.js +0 -0
  77. package/lib/utils/abort-signal-utils.js.map +0 -0
  78. package/lib/utils/accountid-utils.d.ts +0 -0
  79. package/lib/utils/accountid-utils.d.ts.map +0 -0
  80. package/lib/utils/accountid-utils.js +0 -0
  81. package/lib/utils/accountid-utils.js.map +0 -0
  82. package/lib/utils/cid-utils.d.ts +0 -0
  83. package/lib/utils/cid-utils.d.ts.map +0 -0
  84. package/lib/utils/cid-utils.js +0 -0
  85. package/lib/utils/cid-utils.js.map +0 -0
  86. package/lib/utils/http-utils.d.ts +0 -0
  87. package/lib/utils/http-utils.d.ts.map +0 -0
  88. package/lib/utils/http-utils.js +0 -0
  89. package/lib/utils/http-utils.js.map +0 -0
  90. package/lib/utils/signature_utils.d.ts +0 -0
  91. package/lib/utils/signature_utils.d.ts.map +0 -0
  92. package/lib/utils/signature_utils.js +0 -0
  93. package/lib/utils/signature_utils.js.map +0 -0
  94. package/lib/utils/stream-utils.d.ts +0 -0
  95. package/lib/utils/stream-utils.d.ts.map +0 -0
  96. package/lib/utils/stream-utils.js +0 -0
  97. package/lib/utils/stream-utils.js.map +0 -0
  98. package/lib/utils/test-utils.d.ts +0 -0
  99. package/lib/utils/test-utils.d.ts.map +0 -0
  100. package/lib/utils/test-utils.js +0 -0
  101. package/lib/utils/test-utils.js.map +0 -0
  102. package/lib/utils/uint8array-utils.d.ts +0 -0
  103. package/lib/utils/uint8array-utils.d.ts.map +0 -0
  104. package/lib/utils/uint8array-utils.js +0 -0
  105. package/lib/utils/uint8array-utils.js.map +0 -0
  106. package/package.json +4 -4
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/context.d.ts CHANGED
File without changes
File without changes
package/lib/context.js CHANGED
File without changes
File without changes
@@ -1,20 +1,23 @@
1
1
  import type { StreamID } from '@ceramicnetwork/streamid';
2
2
  import type { StreamState } from './stream.js';
3
- export interface ForwardPagination {
4
- readonly first: number;
5
- readonly after?: string;
6
- }
7
- export interface BackwardPagination {
8
- readonly last: number;
9
- readonly before?: string;
10
- }
3
+ export declare type ForwardPagination = {
4
+ first: number;
5
+ after?: string;
6
+ };
7
+ export declare type BackwardPagination = {
8
+ last: number;
9
+ before?: string;
10
+ };
11
11
  export declare type Pagination = ForwardPagination | BackwardPagination;
12
- export interface BaseQuery {
13
- readonly model: StreamID | string;
14
- readonly account?: string;
15
- }
12
+ export declare type BaseQuery = {
13
+ model: StreamID | string;
14
+ account?: string;
15
+ filter?: Record<string, string>;
16
+ };
17
+ export declare type PaginationQuery = BaseQuery & Pagination;
16
18
  export interface IndexApi {
17
- queryIndex(query: BaseQuery & Pagination): Promise<Page<StreamState | null>>;
19
+ count(query: BaseQuery): Promise<number>;
20
+ query(query: PaginationQuery): Promise<Page<StreamState | null>>;
18
21
  }
19
22
  export declare type Edge<T> = {
20
23
  cursor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index-api.d.ts","sourceRoot":"","sources":["../src/index-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAK9C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB;AAMD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB;AAMD,oBAAY,UAAU,GAAG,iBAAiB,GAAG,kBAAkB,CAAA;AAK/D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAAA;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B;AAOD,MAAM,WAAW,QAAQ;IACvB,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAA;CAC7E;AAED,oBAAY,IAAI,CAAC,CAAC,IAAI;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,CAAC,CAAA;CACR,CAAA;AAKD,MAAM,WAAW,IAAI,CAAC,CAAC;IACrB,QAAQ,CA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jE;AAED,oBAAY,IAAI,CAAC,CAAC,IAAI;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,CAAC,CAAA;CACR,CAAA;AAKD,MAAM,WAAW,IAAI,CAAC,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;CAC5B;AAKD,oBAAY,QAAQ,GAAG;IACrB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA"}
package/lib/index-api.js CHANGED
File without changes
File without changes
package/lib/index.d.ts CHANGED
File without changes
File without changes
package/lib/index.js CHANGED
File without changes
package/lib/index.js.map CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/loggers.d.ts CHANGED
File without changes
File without changes
package/lib/loggers.js CHANGED
File without changes
File without changes
package/lib/networks.d.ts CHANGED
File without changes
File without changes
package/lib/networks.js CHANGED
File without changes
File without changes
package/lib/pinning.d.ts CHANGED
File without changes
File without changes
package/lib/pinning.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/stream.d.ts CHANGED
File without changes
File without changes
package/lib/stream.js CHANGED
File without changes
package/lib/stream.js.map CHANGED
File without changes
File without changes
File without changes
package/lib/streamopts.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceramicnetwork/common",
3
- "version": "2.6.1-rc.2",
3
+ "version": "2.7.0",
4
4
  "description": "Ceramic common types and utilities",
5
5
  "keywords": [
6
6
  "ceramic",
@@ -36,10 +36,10 @@
36
36
  "clean": "npx rimraf ./lib"
37
37
  },
38
38
  "dependencies": {
39
- "@ceramicnetwork/streamid": "^2.3.4-rc.0",
39
+ "@ceramicnetwork/streamid": "^2.3.4",
40
40
  "@stablelib/random": "^1.0.1",
41
41
  "caip": "~1.1.0",
42
- "ceramic-cacao": "^1.1.1",
42
+ "ceramic-cacao": "^1.4.0",
43
43
  "cross-fetch": "^3.1.4",
44
44
  "flat": "^5.0.2",
45
45
  "it-first": "^1.0.7",
@@ -59,5 +59,5 @@
59
59
  "json-schema-to-typescript": "^10.1.5",
60
60
  "typescript-json-schema": "^0.52.0"
61
61
  },
62
- "gitHead": "84db0bef7be6ff4c1e6df302d3b887206c26148f"
62
+ "gitHead": "3631130f2d8d4999ee6d4ccd02c1f915241b50dc"
63
63
  }