@learncard/network-brain-client 2.1.0 → 2.1.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @learncard/network-brain-client
2
2
 
3
+ ## 2.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`20d4585c3a2bc8c5eb4b0a628eb215be829000fa`](https://github.com/learningeconomy/LearnCard/commit/20d4585c3a2bc8c5eb4b0a628eb215be829000fa)]:
8
+ - @learncard/network-brain-service@3.2.2
9
+
10
+ ## 2.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`33237e836c52df41b491e570c437943a30189216`](https://github.com/learningeconomy/LearnCard/commit/33237e836c52df41b491e570c437943a30189216) Thanks [@TaylorBeeston](https://github.com/TaylorBeeston)! - Fix backwards compat for real
15
+
16
+ - Updated dependencies [[`33237e836c52df41b491e570c437943a30189216`](https://github.com/learningeconomy/LearnCard/commit/33237e836c52df41b491e570c437943a30189216)]:
17
+ - @learncard/network-brain-service@3.2.1
18
+
3
19
  ## 2.1.0
4
20
 
5
21
  ### Minor Changes
@@ -138,6 +138,7 @@ var require_helpers_cjs_development = __commonJS({
138
138
  LCNNotificationTypeEnumValidator: () => LCNNotificationTypeEnumValidator,
139
139
  LCNNotificationValidator: () => LCNNotificationValidator,
140
140
  LCNProfileConnectionStatusEnum: () => LCNProfileConnectionStatusEnum,
141
+ LCNProfileDisplayValidator: () => LCNProfileDisplayValidator,
141
142
  LCNProfileQueryValidator: () => LCNProfileQueryValidator,
142
143
  LCNProfileValidator: () => LCNProfileValidator,
143
144
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
@@ -3958,6 +3959,19 @@ var require_helpers_cjs_development = __commonJS({
3958
3959
  })
3959
3960
  );
3960
3961
  var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: RegExpValidator }));
3962
+ var LCNProfileDisplayValidator = mod.object({
3963
+ backgroundColor: mod.string().optional(),
3964
+ backgroundImage: mod.string().optional(),
3965
+ fadeBackgroundImage: mod.boolean().optional(),
3966
+ repeatBackgroundImage: mod.boolean().optional(),
3967
+ fontColor: mod.string().optional(),
3968
+ accentColor: mod.string().optional(),
3969
+ accentFontColor: mod.string().optional(),
3970
+ idBackgroundImage: mod.string().optional(),
3971
+ fadeIdBackgroundImage: mod.boolean().optional(),
3972
+ idBackgroundColor: mod.string().optional(),
3973
+ repeatIdBackgroundImage: mod.boolean().optional()
3974
+ });
3961
3975
  var LCNProfileValidator = mod.object({
3962
3976
  profileId: mod.string().min(3).max(40),
3963
3977
  displayName: mod.string().default(""),
@@ -3970,7 +3984,8 @@ var require_helpers_cjs_development = __commonJS({
3970
3984
  websiteLink: mod.string().optional(),
3971
3985
  isServiceProfile: mod.boolean().default(false).optional(),
3972
3986
  type: mod.string().optional(),
3973
- notificationsWebhook: mod.string().url().startsWith("http").optional()
3987
+ notificationsWebhook: mod.string().url().startsWith("http").optional(),
3988
+ display: LCNProfileDisplayValidator.optional()
3974
3989
  });
3975
3990
  var LCNProfileQueryValidator = mod.object({
3976
3991
  profileId: StringQuery,
@@ -4338,7 +4353,10 @@ var callbackLink = /* @__PURE__ */ __name((callback) => {
4338
4353
  var getClient = /* @__PURE__ */ __name(async (url, didAuthFunction) => {
4339
4354
  let challenges = [];
4340
4355
  const challengeRequester = (0, import_client.createTRPCProxyClient)({
4341
- transformer: import_helpers.RegExpTransformer,
4356
+ transformer: {
4357
+ input: import_helpers.RegExpTransformer,
4358
+ output: { serialize: (o) => o, deserialize: (o) => o }
4359
+ },
4342
4360
  links: [
4343
4361
  (0, import_client.httpBatchLink)({
4344
4362
  url,
@@ -4352,7 +4370,10 @@ var getClient = /* @__PURE__ */ __name(async (url, didAuthFunction) => {
4352
4370
  }, "getChallenges");
4353
4371
  challenges = await getChallenges();
4354
4372
  const trpc = (0, import_client.createTRPCProxyClient)({
4355
- transformer: import_helpers.RegExpTransformer,
4373
+ transformer: {
4374
+ input: import_helpers.RegExpTransformer,
4375
+ output: { serialize: (o) => o, deserialize: (o) => o }
4376
+ },
4356
4377
  links: [
4357
4378
  callbackLink(async () => {
4358
4379
  challenges = await getChallenges();