@azure/web-pubsub 1.0.0-beta.3 → 1.0.1-alpha.20220103.2
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/CHANGELOG.md +31 -0
- package/README.md +107 -33
- package/dist/index.js +1048 -233
- package/dist/index.js.map +1 -1
- package/dist-esm/samples-dev/directMessage.js +1 -1
- package/dist-esm/samples-dev/directMessage.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +3 -3
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +8 -8
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +6 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +368 -0
- package/dist-esm/src/generated/models/mappers.js.map +1 -0
- package/dist-esm/src/generated/models/parameters.js +105 -23
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/operations/healthApi.js +4 -3
- package/dist-esm/src/generated/operations/healthApi.js.map +1 -1
- package/dist-esm/src/generated/operations/webPubSub.js +315 -59
- package/dist-esm/src/generated/operations/webPubSub.js.map +1 -1
- package/dist-esm/src/generated/operationsInterfaces/webPubSub.js.map +1 -1
- package/dist-esm/src/groupClient.js +32 -21
- package/dist-esm/src/groupClient.js.map +1 -1
- package/dist-esm/src/hubClient.js +162 -107
- package/dist-esm/src/hubClient.js.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/logger.js +1 -1
- package/dist-esm/src/logger.js.map +1 -1
- package/dist-esm/src/parseConnectionString.js +3 -1
- package/dist-esm/src/parseConnectionString.js.map +1 -1
- package/dist-esm/src/reverseProxyPolicy.js +21 -0
- package/dist-esm/src/reverseProxyPolicy.js.map +1 -0
- package/dist-esm/src/tracing.js +1 -1
- package/dist-esm/src/tracing.js.map +1 -1
- package/dist-esm/src/utils.js +2 -0
- package/dist-esm/src/utils.js.map +1 -1
- package/dist-esm/src/webPubSubCredentialPolicy.js +2 -2
- package/dist-esm/src/webPubSubCredentialPolicy.js.map +1 -1
- package/dist-esm/test/conn.spec.js +2 -2
- package/dist-esm/test/conn.spec.js.map +1 -1
- package/dist-esm/test/groups.spec.js +14 -6
- package/dist-esm/test/groups.spec.js.map +1 -1
- package/dist-esm/test/hubs.spec.js +53 -10
- package/dist-esm/test/hubs.spec.js.map +1 -1
- package/dist-esm/test/integration.spec.js +128 -0
- package/dist-esm/test/integration.spec.js.map +1 -0
- package/dist-esm/test/testEnv.js +6 -2
- package/dist-esm/test/testEnv.js.map +1 -1
- package/package.json +32 -32
- package/types/web-pubsub.d.ts +165 -109
- package/dist-esm/src/normalizeOptions.js +0 -8
- package/dist-esm/src/normalizeOptions.js.map +0 -1
@@ -5,10 +5,10 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
export const
|
9
|
-
parameterPath: "
|
8
|
+
export const endpoint = {
|
9
|
+
parameterPath: "endpoint",
|
10
10
|
mapper: {
|
11
|
-
serializedName: "
|
11
|
+
serializedName: "Endpoint",
|
12
12
|
required: true,
|
13
13
|
type: {
|
14
14
|
name: "String"
|
@@ -19,7 +19,7 @@ export const $host = {
|
|
19
19
|
export const apiVersion = {
|
20
20
|
parameterPath: "apiVersion",
|
21
21
|
mapper: {
|
22
|
-
defaultValue: "2021-
|
22
|
+
defaultValue: "2021-10-01",
|
23
23
|
isConstant: true,
|
24
24
|
serializedName: "api-version",
|
25
25
|
type: {
|
@@ -27,6 +27,88 @@ export const apiVersion = {
|
|
27
27
|
}
|
28
28
|
}
|
29
29
|
};
|
30
|
+
export const accept = {
|
31
|
+
parameterPath: "accept",
|
32
|
+
mapper: {
|
33
|
+
defaultValue: "application/json, text/json",
|
34
|
+
isConstant: true,
|
35
|
+
serializedName: "Accept",
|
36
|
+
type: {
|
37
|
+
name: "String"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
};
|
41
|
+
export const hub = {
|
42
|
+
parameterPath: "hub",
|
43
|
+
mapper: {
|
44
|
+
constraints: {
|
45
|
+
Pattern: new RegExp("^[A-Za-z][A-Za-z0-9_`,.[\\]]{0,127}$")
|
46
|
+
},
|
47
|
+
serializedName: "hub",
|
48
|
+
required: true,
|
49
|
+
type: {
|
50
|
+
name: "String"
|
51
|
+
}
|
52
|
+
}
|
53
|
+
};
|
54
|
+
export const userId = {
|
55
|
+
parameterPath: ["options", "userId"],
|
56
|
+
mapper: {
|
57
|
+
serializedName: "userId",
|
58
|
+
type: {
|
59
|
+
name: "String"
|
60
|
+
}
|
61
|
+
}
|
62
|
+
};
|
63
|
+
export const roles = {
|
64
|
+
parameterPath: ["options", "roles"],
|
65
|
+
mapper: {
|
66
|
+
serializedName: "role",
|
67
|
+
type: {
|
68
|
+
name: "Sequence",
|
69
|
+
element: {
|
70
|
+
type: {
|
71
|
+
name: "String"
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
},
|
76
|
+
collectionFormat: "Multi"
|
77
|
+
};
|
78
|
+
export const expirationTimeInMinutes = {
|
79
|
+
parameterPath: ["options", "expirationTimeInMinutes"],
|
80
|
+
mapper: {
|
81
|
+
defaultValue: 60,
|
82
|
+
serializedName: "minutesToExpire",
|
83
|
+
type: {
|
84
|
+
name: "Number"
|
85
|
+
}
|
86
|
+
}
|
87
|
+
};
|
88
|
+
export const excluded = {
|
89
|
+
parameterPath: ["options", "excluded"],
|
90
|
+
mapper: {
|
91
|
+
serializedName: "excluded",
|
92
|
+
type: {
|
93
|
+
name: "Sequence",
|
94
|
+
element: {
|
95
|
+
type: {
|
96
|
+
name: "String"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
collectionFormat: "Multi"
|
102
|
+
};
|
103
|
+
export const reason = {
|
104
|
+
parameterPath: ["options", "reason"],
|
105
|
+
mapper: {
|
106
|
+
serializedName: "reason",
|
107
|
+
type: {
|
108
|
+
name: "String"
|
109
|
+
}
|
110
|
+
}
|
111
|
+
};
|
30
112
|
export const contentType = {
|
31
113
|
parameterPath: "contentType",
|
32
114
|
mapper: {
|
@@ -48,6 +130,17 @@ export const message = {
|
|
48
130
|
}
|
49
131
|
}
|
50
132
|
};
|
133
|
+
export const accept1 = {
|
134
|
+
parameterPath: "accept",
|
135
|
+
mapper: {
|
136
|
+
defaultValue: "application/json, text/json",
|
137
|
+
isConstant: true,
|
138
|
+
serializedName: "Accept",
|
139
|
+
type: {
|
140
|
+
name: "String"
|
141
|
+
}
|
142
|
+
}
|
143
|
+
};
|
51
144
|
export const contentType1 = {
|
52
145
|
parameterPath: "contentType",
|
53
146
|
mapper: {
|
@@ -69,21 +162,19 @@ export const message1 = {
|
|
69
162
|
}
|
70
163
|
}
|
71
164
|
};
|
72
|
-
export const
|
73
|
-
parameterPath: "
|
165
|
+
export const accept2 = {
|
166
|
+
parameterPath: "accept",
|
74
167
|
mapper: {
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
serializedName: "hub",
|
79
|
-
required: true,
|
168
|
+
defaultValue: "application/json, text/json",
|
169
|
+
isConstant: true,
|
170
|
+
serializedName: "Accept",
|
80
171
|
type: {
|
81
172
|
name: "String"
|
82
173
|
}
|
83
174
|
}
|
84
175
|
};
|
85
|
-
export const
|
86
|
-
parameterPath: ["options", "
|
176
|
+
export const excludedConnections = {
|
177
|
+
parameterPath: ["options", "excludedConnections"],
|
87
178
|
mapper: {
|
88
179
|
serializedName: "excluded",
|
89
180
|
type: {
|
@@ -110,15 +201,6 @@ export const connectionId = {
|
|
110
201
|
}
|
111
202
|
}
|
112
203
|
};
|
113
|
-
export const reason = {
|
114
|
-
parameterPath: ["options", "reason"],
|
115
|
-
mapper: {
|
116
|
-
serializedName: "reason",
|
117
|
-
type: {
|
118
|
-
name: "String"
|
119
|
-
}
|
120
|
-
}
|
121
|
-
};
|
122
204
|
export const group = {
|
123
205
|
parameterPath: "group",
|
124
206
|
mapper: {
|
@@ -133,7 +215,7 @@ export const group = {
|
|
133
215
|
}
|
134
216
|
}
|
135
217
|
};
|
136
|
-
export const
|
218
|
+
export const userId1 = {
|
137
219
|
parameterPath: "userId",
|
138
220
|
mapper: {
|
139
221
|
constraints: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,6BAA6B;QAC3C,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAA0B;IACxC,aAAa,EAAE,KAAK;IACpB,MAAM,EAAE;QACN,WAAW,EAAE;YACX,OAAO,EAAE,IAAI,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IAC/C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,cAAc,EAAE,YAAY;QAC5B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;IACxC,MAAM,EAAE;QACN,cAAc,EAAE,YAAY;QAC5B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationURLParameter,\n OperationQueryParameter,\n OperationParameter\n} from \"@azure/core-client\";\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"Endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-10-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json, text/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const hub: OperationURLParameter = {\n parameterPath: \"hub\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[A-Za-z][A-Za-z0-9_`,.[\\\\]]{0,127}$\")\n },\n serializedName: \"hub\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const userId: OperationQueryParameter = {\n parameterPath: [\"options\", \"userId\"],\n mapper: {\n serializedName: \"userId\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const roles: OperationQueryParameter = {\n parameterPath: [\"options\", \"roles\"],\n mapper: {\n serializedName: \"role\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"Multi\"\n};\n\nexport const expirationTimeInMinutes: OperationQueryParameter = {\n parameterPath: [\"options\", \"expirationTimeInMinutes\"],\n mapper: {\n defaultValue: 60,\n serializedName: \"minutesToExpire\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const excluded: OperationQueryParameter = {\n parameterPath: [\"options\", \"excluded\"],\n mapper: {\n serializedName: \"excluded\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"Multi\"\n};\n\nexport const reason: OperationQueryParameter = {\n parameterPath: [\"options\", \"reason\"],\n mapper: {\n serializedName: \"reason\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: \"contentType\",\n mapper: {\n serializedName: \"Content-Type\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"application/json\", \"application/octet-stream\"]\n }\n }\n};\n\nexport const message: OperationParameter = {\n parameterPath: \"message\",\n mapper: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"Stream\"\n }\n }\n};\n\nexport const accept1: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json, text/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: \"contentType\",\n mapper: {\n defaultValue: \"text/plain\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const message1: OperationParameter = {\n parameterPath: \"message\",\n mapper: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const accept2: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json, text/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const excludedConnections: OperationQueryParameter = {\n parameterPath: [\"options\", \"excludedConnections\"],\n mapper: {\n serializedName: \"excluded\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"Multi\"\n};\n\nexport const connectionId: OperationURLParameter = {\n parameterPath: \"connectionId\",\n mapper: {\n constraints: {\n MinLength: 1\n },\n serializedName: \"connectionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const group: OperationURLParameter = {\n parameterPath: \"group\",\n mapper: {\n constraints: {\n MaxLength: 1024,\n MinLength: 1\n },\n serializedName: \"group\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const userId1: OperationURLParameter = {\n parameterPath: \"userId\",\n mapper: {\n constraints: {\n MinLength: 1\n },\n serializedName: \"userId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const permission: OperationURLParameter = {\n parameterPath: \"permission\",\n mapper: {\n serializedName: \"permission\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const targetName: OperationQueryParameter = {\n parameterPath: [\"options\", \"targetName\"],\n mapper: {\n serializedName: \"targetName\",\n type: {\n name: \"String\"\n }\n }\n};\n"]}
|
@@ -6,8 +6,9 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
import * as coreClient from "@azure/core-client";
|
9
|
+
import * as Mappers from "../models/mappers";
|
9
10
|
import * as Parameters from "../models/parameters";
|
10
|
-
/** Class
|
11
|
+
/** Class containing HealthApi operations. */
|
11
12
|
export class HealthApiImpl {
|
12
13
|
/**
|
13
14
|
* Initialize a new instance of the class HealthApi class.
|
@@ -25,13 +26,13 @@ export class HealthApiImpl {
|
|
25
26
|
}
|
26
27
|
}
|
27
28
|
// Operation Specifications
|
28
|
-
const serializer = coreClient.createSerializer(
|
29
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
29
30
|
const getServiceStatusOperationSpec = {
|
30
31
|
path: "/api/health",
|
31
32
|
httpMethod: "HEAD",
|
32
33
|
responses: { 200: {}, default: {} },
|
33
34
|
queryParameters: [Parameters.apiVersion],
|
34
|
-
urlParameters: [Parameters
|
35
|
+
urlParameters: [Parameters.endpoint],
|
35
36
|
serializer
|
36
37
|
};
|
37
38
|
//# sourceMappingURL=healthApi.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"healthApi.js","sourceRoot":"","sources":["../../../../src/generated/operations/healthApi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAInD,
|
1
|
+
{"version":3,"file":"healthApi.js","sourceRoot":"","sources":["../../../../src/generated/operations/healthApi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAInD,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,OAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,6BAA6B,CAC9B,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,aAAa;IACnB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { HealthApi } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { GeneratedClientContext } from \"../generatedClientContext\";\nimport { HealthApiGetServiceStatusOptionalParams } from \"../models\";\n\n/** Class containing HealthApi operations. */\nexport class HealthApiImpl implements HealthApi {\n private readonly client: GeneratedClientContext;\n\n /**\n * Initialize a new instance of the class HealthApi class.\n * @param client Reference to the service client\n */\n constructor(client: GeneratedClientContext) {\n this.client = client;\n }\n\n /**\n * Get service health status.\n * @param options The options parameters.\n */\n getServiceStatus(\n options?: HealthApiGetServiceStatusOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { options },\n getServiceStatusOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getServiceStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/api/health\",\n httpMethod: \"HEAD\",\n responses: { 200: {}, default: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n serializer\n};\n"]}
|