@fluidframework/runtime-utils 2.0.0-internal.7.3.0 → 2.0.0-internal.7.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/api-extractor-lint.json +13 -0
  3. package/api-extractor.json +3 -3
  4. package/api-report/runtime-utils.api.md +30 -30
  5. package/dist/dataStoreHandleContextUtils.d.ts +1 -0
  6. package/dist/dataStoreHandleContextUtils.d.ts.map +1 -1
  7. package/dist/dataStoreHandleContextUtils.js +1 -0
  8. package/dist/dataStoreHandleContextUtils.js.map +1 -1
  9. package/dist/dataStoreHelpers.d.ts +19 -0
  10. package/dist/dataStoreHelpers.d.ts.map +1 -1
  11. package/dist/dataStoreHelpers.js +16 -0
  12. package/dist/dataStoreHelpers.js.map +1 -1
  13. package/dist/objectstoragepartition.d.ts +1 -0
  14. package/dist/objectstoragepartition.d.ts.map +1 -1
  15. package/dist/objectstoragepartition.js +1 -0
  16. package/dist/objectstoragepartition.js.map +1 -1
  17. package/dist/objectstorageutils.d.ts +6 -0
  18. package/dist/objectstorageutils.d.ts.map +1 -1
  19. package/dist/objectstorageutils.js +6 -0
  20. package/dist/objectstorageutils.js.map +1 -1
  21. package/dist/requestParser.d.ts +1 -0
  22. package/dist/requestParser.d.ts.map +1 -1
  23. package/dist/requestParser.js +1 -0
  24. package/dist/requestParser.js.map +1 -1
  25. package/dist/runtime-utils-alpha.d.ts +137 -0
  26. package/dist/runtime-utils-beta.d.ts +126 -0
  27. package/dist/runtime-utils-public.d.ts +126 -0
  28. package/dist/runtime-utils-untrimmed.d.ts +313 -0
  29. package/dist/runtimeFactoryHelper.d.ts +3 -0
  30. package/dist/runtimeFactoryHelper.d.ts.map +1 -1
  31. package/dist/runtimeFactoryHelper.js +3 -0
  32. package/dist/runtimeFactoryHelper.js.map +1 -1
  33. package/dist/summaryUtils.d.ts +29 -0
  34. package/dist/summaryUtils.d.ts.map +1 -1
  35. package/dist/summaryUtils.js +29 -0
  36. package/dist/summaryUtils.js.map +1 -1
  37. package/dist/unpackUsedRoutes.d.ts +2 -1
  38. package/dist/unpackUsedRoutes.d.ts.map +1 -1
  39. package/dist/unpackUsedRoutes.js +1 -0
  40. package/dist/unpackUsedRoutes.js.map +1 -1
  41. package/dist/utils.d.ts +6 -1
  42. package/dist/utils.d.ts.map +1 -1
  43. package/dist/utils.js +1 -0
  44. package/dist/utils.js.map +1 -1
  45. package/lib/dataStoreHandleContextUtils.d.ts +1 -0
  46. package/lib/dataStoreHandleContextUtils.d.ts.map +1 -1
  47. package/lib/dataStoreHandleContextUtils.js +1 -0
  48. package/lib/dataStoreHandleContextUtils.js.map +1 -1
  49. package/lib/dataStoreHelpers.d.ts +19 -0
  50. package/lib/dataStoreHelpers.d.ts.map +1 -1
  51. package/lib/dataStoreHelpers.js +16 -0
  52. package/lib/dataStoreHelpers.js.map +1 -1
  53. package/lib/objectstoragepartition.d.ts +1 -0
  54. package/lib/objectstoragepartition.d.ts.map +1 -1
  55. package/lib/objectstoragepartition.js +1 -0
  56. package/lib/objectstoragepartition.js.map +1 -1
  57. package/lib/objectstorageutils.d.ts +6 -0
  58. package/lib/objectstorageutils.d.ts.map +1 -1
  59. package/lib/objectstorageutils.js +6 -0
  60. package/lib/objectstorageutils.js.map +1 -1
  61. package/lib/requestParser.d.ts +1 -0
  62. package/lib/requestParser.d.ts.map +1 -1
  63. package/lib/requestParser.js +1 -0
  64. package/lib/requestParser.js.map +1 -1
  65. package/lib/runtime-utils-alpha.d.ts +137 -0
  66. package/lib/runtime-utils-beta.d.ts +126 -0
  67. package/lib/runtime-utils-public.d.ts +126 -0
  68. package/lib/runtime-utils-untrimmed.d.ts +313 -0
  69. package/lib/runtimeFactoryHelper.d.ts +3 -0
  70. package/lib/runtimeFactoryHelper.d.ts.map +1 -1
  71. package/lib/runtimeFactoryHelper.js +3 -0
  72. package/lib/runtimeFactoryHelper.js.map +1 -1
  73. package/lib/summaryUtils.d.ts +29 -0
  74. package/lib/summaryUtils.d.ts.map +1 -1
  75. package/lib/summaryUtils.js +29 -0
  76. package/lib/summaryUtils.js.map +1 -1
  77. package/lib/unpackUsedRoutes.d.ts +2 -1
  78. package/lib/unpackUsedRoutes.d.ts.map +1 -1
  79. package/lib/unpackUsedRoutes.js +1 -0
  80. package/lib/unpackUsedRoutes.js.map +1 -1
  81. package/lib/utils.d.ts +6 -1
  82. package/lib/utils.d.ts.map +1 -1
  83. package/lib/utils.js +1 -0
  84. package/lib/utils.js.map +1 -1
  85. package/package.json +35 -16
  86. package/src/dataStoreHandleContextUtils.ts +1 -0
  87. package/src/dataStoreHelpers.ts +19 -0
  88. package/src/objectstoragepartition.ts +1 -0
  89. package/src/objectstorageutils.ts +6 -0
  90. package/src/requestParser.ts +1 -0
  91. package/src/runtimeFactoryHelper.ts +3 -0
  92. package/src/summaryUtils.ts +29 -0
  93. package/src/unpackUsedRoutes.ts +2 -1
  94. package/src/utils.ts +6 -1
@@ -0,0 +1,137 @@
1
+ import { FluidObject } from '@fluidframework/core-interfaces';
2
+ import { IChannelStorageService } from '@fluidframework/datastore-definitions';
3
+ import { IContainerContext } from '@fluidframework/container-definitions';
4
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
5
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
6
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
7
+ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
8
+ import { IFluidRouter } from '@fluidframework/core-interfaces';
9
+ import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
10
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
11
+ import { IRequest } from '@fluidframework/core-interfaces';
12
+ import { IRequestHeader } from '@fluidframework/core-interfaces';
13
+ import { IResponse } from '@fluidframework/core-interfaces';
14
+ import { IRuntime } from '@fluidframework/container-definitions';
15
+ import { IRuntimeFactory } from '@fluidframework/container-definitions';
16
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
17
+ import { ISummarizeResult } from '@fluidframework/runtime-definitions';
18
+ import { ISummaryBlob } from '@fluidframework/protocol-definitions';
19
+ import { ISummaryStats } from '@fluidframework/runtime-definitions';
20
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
21
+ import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
22
+ import { ITelemetryContext } from '@fluidframework/runtime-definitions';
23
+ import { ITree } from '@fluidframework/protocol-definitions';
24
+ import { SummaryObject } from '@fluidframework/protocol-definitions';
25
+ import { SummaryType } from '@fluidframework/protocol-definitions';
26
+ import { TelemetryEventPropertyType } from '@fluidframework/core-interfaces';
27
+
28
+ /* Excluded from this release type: addBlobToSummary */
29
+
30
+ /* Excluded from this release type: addSummarizeResultToSummary */
31
+
32
+ /* Excluded from this release type: addTreeToSummary */
33
+
34
+ /* Excluded from this release type: calculateStats */
35
+
36
+ /* Excluded from this release type: convertSnapshotTreeToSummaryTree */
37
+
38
+ /* Excluded from this release type: convertSummaryTreeToITree */
39
+
40
+ /* Excluded from this release type: convertToSummaryTree */
41
+
42
+ /* Excluded from this release type: convertToSummaryTreeWithStats */
43
+
44
+ /* Excluded from this release type: create404Response */
45
+
46
+ /* Excluded from this release type: createDataStoreFactory */
47
+
48
+ /* Excluded from this release type: createResponseError */
49
+
50
+ /* Excluded from this release type: exceptionToResponse */
51
+
52
+ /* Excluded from this release type: Factory */
53
+
54
+ /* Excluded from this release type: GCDataBuilder */
55
+
56
+ /* Excluded from this release type: generateHandleContextPath */
57
+
58
+ /* Excluded from this release type: getBlobSize */
59
+
60
+ /* Excluded from this release type: getNormalizedObjectStoragePathParts */
61
+
62
+ /* Excluded from this release type: listBlobsAtTreePath */
63
+
64
+ /* Excluded from this release type: mergeStats */
65
+
66
+ /* Excluded from this release type: ObjectStoragePartition */
67
+
68
+ /* Excluded from this release type: ReadAndParseBlob */
69
+
70
+ /* Excluded from this release type: requestFluidObject */
71
+
72
+ /**
73
+ * The Request Parser takes an IRequest provides parsing and sub request creation
74
+ * @alpha
75
+ */
76
+ export declare class RequestParser implements IRequest {
77
+ private readonly request;
78
+ /**
79
+ * Splits the path of the url and decodes each path part
80
+ * @param url - the url to get path parts of
81
+ */
82
+ static getPathParts(url: string): readonly string[];
83
+ private requestPathParts;
84
+ readonly query: string;
85
+ static create(request: Readonly<IRequest>): RequestParser;
86
+ protected constructor(request: Readonly<IRequest>);
87
+ get url(): string;
88
+ get headers(): IRequestHeader | undefined;
89
+ /**
90
+ * Returns the decoded path parts of the request's url
91
+ */
92
+ get pathParts(): readonly string[];
93
+ /**
94
+ * Returns true if it's a terminating path, i.e. no more elements after `elements` entries and empty query.
95
+ * @param elements - number of elements in path
96
+ */
97
+ isLeaf(elements: number): boolean;
98
+ /**
99
+ * Creates a sub request starting at a specific path part of this request's url
100
+ * The sub request url always has a leading slash, and always include query params if original url has any
101
+ * e.g. original url is /a/b/?queryParams, createSubRequest(0) is /a/b/?queryParams
102
+ * createSubRequest(1) is /b/?queryParams
103
+ * createSubRequest(2) is /?queryParams
104
+ * createSubRequest(n) where n is bigger than parts length, e.g. 2, or n is less than 0 will throw an exception
105
+ *
106
+ * note: query params are not counted towards path parts.
107
+ *
108
+ * @param startingPathIndex - The index of the first path part of the sub request
109
+ */
110
+ createSubRequest(startingPathIndex: number): IRequest;
111
+ }
112
+
113
+ /* Excluded from this release type: responseToException */
114
+
115
+ /**
116
+ * @alpha
117
+ */
118
+ export declare abstract class RuntimeFactoryHelper<T = IContainerRuntime> implements IRuntimeFactory {
119
+ get IRuntimeFactory(): this;
120
+ instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
121
+ abstract preInitialize(context: IContainerContext, existing: boolean): Promise<IRuntime & T>;
122
+ instantiateFirstTime(_runtime: T): Promise<void>;
123
+ instantiateFromExisting(_runtime: T): Promise<void>;
124
+ hasInitialized(_runtime: T): Promise<void>;
125
+ }
126
+
127
+ /* Excluded from this release type: seqFromTree */
128
+
129
+ /* Excluded from this release type: SummaryTreeBuilder */
130
+
131
+ /* Excluded from this release type: TelemetryContext */
132
+
133
+ /* Excluded from this release type: unpackChildNodesUsedRoutes */
134
+
135
+ /* Excluded from this release type: utf8ByteLength */
136
+
137
+ export { }
@@ -0,0 +1,126 @@
1
+ import { FluidObject } from '@fluidframework/core-interfaces';
2
+ import { IChannelStorageService } from '@fluidframework/datastore-definitions';
3
+ import { IContainerContext } from '@fluidframework/container-definitions';
4
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
5
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
6
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
7
+ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
8
+ import { IFluidRouter } from '@fluidframework/core-interfaces';
9
+ import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
10
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
11
+ import { IRequest } from '@fluidframework/core-interfaces';
12
+ import { IRequestHeader } from '@fluidframework/core-interfaces';
13
+ import { IResponse } from '@fluidframework/core-interfaces';
14
+ import { IRuntime } from '@fluidframework/container-definitions';
15
+ import { IRuntimeFactory } from '@fluidframework/container-definitions';
16
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
17
+ import { ISummarizeResult } from '@fluidframework/runtime-definitions';
18
+ import { ISummaryBlob } from '@fluidframework/protocol-definitions';
19
+ import { ISummaryStats } from '@fluidframework/runtime-definitions';
20
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
21
+ import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
22
+ import { ITelemetryContext } from '@fluidframework/runtime-definitions';
23
+ import { ITree } from '@fluidframework/protocol-definitions';
24
+ import { SummaryObject } from '@fluidframework/protocol-definitions';
25
+ import { SummaryType } from '@fluidframework/protocol-definitions';
26
+ import { TelemetryEventPropertyType } from '@fluidframework/core-interfaces';
27
+
28
+ /* Excluded from this release type: addBlobToSummary */
29
+
30
+ /* Excluded from this release type: addSummarizeResultToSummary */
31
+
32
+ /* Excluded from this release type: addTreeToSummary */
33
+
34
+ /* Excluded from this release type: calculateStats */
35
+
36
+ /* Excluded from this release type: convertSnapshotTreeToSummaryTree */
37
+
38
+ /* Excluded from this release type: convertSummaryTreeToITree */
39
+
40
+ /* Excluded from this release type: convertToSummaryTree */
41
+
42
+ /* Excluded from this release type: convertToSummaryTreeWithStats */
43
+
44
+ /* Excluded from this release type: create404Response */
45
+
46
+ /* Excluded from this release type: createDataStoreFactory */
47
+
48
+ /* Excluded from this release type: createResponseError */
49
+
50
+ /* Excluded from this release type: exceptionToResponse */
51
+
52
+ /* Excluded from this release type: Factory */
53
+
54
+ /* Excluded from this release type: FluidObject */
55
+
56
+ /* Excluded from this release type: GCDataBuilder */
57
+
58
+ /* Excluded from this release type: generateHandleContextPath */
59
+
60
+ /* Excluded from this release type: getBlobSize */
61
+
62
+ /* Excluded from this release type: getNormalizedObjectStoragePathParts */
63
+
64
+ /* Excluded from this release type: IChannelStorageService */
65
+
66
+ /* Excluded from this release type: IContainerContext */
67
+
68
+ /* Excluded from this release type: IContainerRuntime */
69
+
70
+ /* Excluded from this release type: IFluidDataStoreFactory */
71
+
72
+ /* Excluded from this release type: IFluidDataStoreRegistry */
73
+
74
+ /* Excluded from this release type: IFluidHandleContext */
75
+
76
+ /* Excluded from this release type: IFluidRouter */
77
+
78
+ /* Excluded from this release type: IGarbageCollectionData */
79
+
80
+ /* Excluded from this release type: IProvideFluidDataStoreRegistry */
81
+
82
+ /* Excluded from this release type: IRequest */
83
+
84
+ /* Excluded from this release type: IResponse */
85
+
86
+ /* Excluded from this release type: IRuntime */
87
+
88
+ /* Excluded from this release type: IRuntimeFactory */
89
+
90
+ /* Excluded from this release type: ISummarizeResult */
91
+
92
+ /* Excluded from this release type: ISummaryStats */
93
+
94
+ /* Excluded from this release type: ISummaryTreeWithStats */
95
+
96
+ /* Excluded from this release type: ITelemetryContext */
97
+
98
+ /* Excluded from this release type: listBlobsAtTreePath */
99
+
100
+ /* Excluded from this release type: mergeStats */
101
+
102
+ /* Excluded from this release type: ObjectStoragePartition */
103
+
104
+ /* Excluded from this release type: ReadAndParseBlob */
105
+
106
+ /* Excluded from this release type: requestFluidObject */
107
+
108
+ /* Excluded from this release type: RequestParser */
109
+
110
+ /* Excluded from this release type: responseToException */
111
+
112
+ /* Excluded from this release type: RuntimeFactoryHelper */
113
+
114
+ /* Excluded from this release type: seqFromTree */
115
+
116
+ /* Excluded from this release type: SummaryTreeBuilder */
117
+
118
+ /* Excluded from this release type: TelemetryContext */
119
+
120
+ /* Excluded from this release type: TelemetryEventPropertyType */
121
+
122
+ /* Excluded from this release type: unpackChildNodesUsedRoutes */
123
+
124
+ /* Excluded from this release type: utf8ByteLength */
125
+
126
+ export { }
@@ -0,0 +1,126 @@
1
+ import { FluidObject } from '@fluidframework/core-interfaces';
2
+ import { IChannelStorageService } from '@fluidframework/datastore-definitions';
3
+ import { IContainerContext } from '@fluidframework/container-definitions';
4
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
5
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
6
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
7
+ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
8
+ import { IFluidRouter } from '@fluidframework/core-interfaces';
9
+ import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
10
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
11
+ import { IRequest } from '@fluidframework/core-interfaces';
12
+ import { IRequestHeader } from '@fluidframework/core-interfaces';
13
+ import { IResponse } from '@fluidframework/core-interfaces';
14
+ import { IRuntime } from '@fluidframework/container-definitions';
15
+ import { IRuntimeFactory } from '@fluidframework/container-definitions';
16
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
17
+ import { ISummarizeResult } from '@fluidframework/runtime-definitions';
18
+ import { ISummaryBlob } from '@fluidframework/protocol-definitions';
19
+ import { ISummaryStats } from '@fluidframework/runtime-definitions';
20
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
21
+ import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
22
+ import { ITelemetryContext } from '@fluidframework/runtime-definitions';
23
+ import { ITree } from '@fluidframework/protocol-definitions';
24
+ import { SummaryObject } from '@fluidframework/protocol-definitions';
25
+ import { SummaryType } from '@fluidframework/protocol-definitions';
26
+ import { TelemetryEventPropertyType } from '@fluidframework/core-interfaces';
27
+
28
+ /* Excluded from this release type: addBlobToSummary */
29
+
30
+ /* Excluded from this release type: addSummarizeResultToSummary */
31
+
32
+ /* Excluded from this release type: addTreeToSummary */
33
+
34
+ /* Excluded from this release type: calculateStats */
35
+
36
+ /* Excluded from this release type: convertSnapshotTreeToSummaryTree */
37
+
38
+ /* Excluded from this release type: convertSummaryTreeToITree */
39
+
40
+ /* Excluded from this release type: convertToSummaryTree */
41
+
42
+ /* Excluded from this release type: convertToSummaryTreeWithStats */
43
+
44
+ /* Excluded from this release type: create404Response */
45
+
46
+ /* Excluded from this release type: createDataStoreFactory */
47
+
48
+ /* Excluded from this release type: createResponseError */
49
+
50
+ /* Excluded from this release type: exceptionToResponse */
51
+
52
+ /* Excluded from this release type: Factory */
53
+
54
+ /* Excluded from this release type: FluidObject */
55
+
56
+ /* Excluded from this release type: GCDataBuilder */
57
+
58
+ /* Excluded from this release type: generateHandleContextPath */
59
+
60
+ /* Excluded from this release type: getBlobSize */
61
+
62
+ /* Excluded from this release type: getNormalizedObjectStoragePathParts */
63
+
64
+ /* Excluded from this release type: IChannelStorageService */
65
+
66
+ /* Excluded from this release type: IContainerContext */
67
+
68
+ /* Excluded from this release type: IContainerRuntime */
69
+
70
+ /* Excluded from this release type: IFluidDataStoreFactory */
71
+
72
+ /* Excluded from this release type: IFluidDataStoreRegistry */
73
+
74
+ /* Excluded from this release type: IFluidHandleContext */
75
+
76
+ /* Excluded from this release type: IFluidRouter */
77
+
78
+ /* Excluded from this release type: IGarbageCollectionData */
79
+
80
+ /* Excluded from this release type: IProvideFluidDataStoreRegistry */
81
+
82
+ /* Excluded from this release type: IRequest */
83
+
84
+ /* Excluded from this release type: IResponse */
85
+
86
+ /* Excluded from this release type: IRuntime */
87
+
88
+ /* Excluded from this release type: IRuntimeFactory */
89
+
90
+ /* Excluded from this release type: ISummarizeResult */
91
+
92
+ /* Excluded from this release type: ISummaryStats */
93
+
94
+ /* Excluded from this release type: ISummaryTreeWithStats */
95
+
96
+ /* Excluded from this release type: ITelemetryContext */
97
+
98
+ /* Excluded from this release type: listBlobsAtTreePath */
99
+
100
+ /* Excluded from this release type: mergeStats */
101
+
102
+ /* Excluded from this release type: ObjectStoragePartition */
103
+
104
+ /* Excluded from this release type: ReadAndParseBlob */
105
+
106
+ /* Excluded from this release type: requestFluidObject */
107
+
108
+ /* Excluded from this release type: RequestParser */
109
+
110
+ /* Excluded from this release type: responseToException */
111
+
112
+ /* Excluded from this release type: RuntimeFactoryHelper */
113
+
114
+ /* Excluded from this release type: seqFromTree */
115
+
116
+ /* Excluded from this release type: SummaryTreeBuilder */
117
+
118
+ /* Excluded from this release type: TelemetryContext */
119
+
120
+ /* Excluded from this release type: TelemetryEventPropertyType */
121
+
122
+ /* Excluded from this release type: unpackChildNodesUsedRoutes */
123
+
124
+ /* Excluded from this release type: utf8ByteLength */
125
+
126
+ export { }