khoros-aurora-sdk 26.2.0 → 26.2.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.
@@ -21,8 +21,12 @@ jobs:
21
21
  registry-url: https://registry.npmjs.org/
22
22
  - name: Publish to npm
23
23
  run: |
24
+ LATEST=$(npm view khoros-aurora-sdk dist-tags.latest)
24
25
  if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
25
- npm publish --access public --tag pre
26
+ tag=pre
27
+ elif npx semver -r ">$LATEST" $VERSION; then
28
+ tag=latest
26
29
  else
27
- npm publish --access public
30
+ tag=hotfix
28
31
  fi
32
+ npm publish --access public --tag $tag
package/build-hash.txt CHANGED
@@ -1 +1 @@
1
- dfcfbdc
1
+ b42ea22
@@ -79,6 +79,15 @@ type AiAnswerLog {
79
79
  "Citation coverage ratio (0.0-1.0) - citations used divided by citations provided."
80
80
  citationCoverage: Float
81
81
 
82
+ "Number of KB article citations provided to the LLM."
83
+ sourceKbCount: Int
84
+
85
+ "Number of blog article citations provided to the LLM."
86
+ sourceBlogCount: Int
87
+
88
+ "Number of forum reply citations provided to the LLM."
89
+ sourceForumCount: Int
90
+
82
91
  "Reasons why AI answer was not generated (can be multiple)."
83
92
  noAnswerReasons: [String!]
84
93
 
@@ -238,6 +238,9 @@ extend type Mutation {
238
238
 
239
239
  "Sets user close account setting on the community."
240
240
  setUserCloseAccountSettingsOnCommunity(settingsInput: UserCloseAccountSettingInput!): SetSettingsResult
241
+
242
+ "Reads current deployment config SSO field flags and saves them to DB as the required fields list. Returns the list of toggleable field names saved."
243
+ initializeSsoRegistrationFields: [String!]
241
244
  }
242
245
 
243
246
  interface UserEventModelEntity implements EventModelEntity & TypedEntity & Entity & Node {
@@ -1063,6 +1066,15 @@ input UserManagementSettingsInput {
1063
1066
 
1064
1067
  "Determine the host location for Community GuideLines"
1065
1068
  communityGuideLinesHostLocation: PolicyHostLocation
1069
+
1070
+ "Whether SSO registration completion is enforced (non-dismissible modal)"
1071
+ ssoRegistrationEnforced: Boolean
1072
+
1073
+ "Whether SSO registration field configuration is managed via admin panel instead of deployment config"
1074
+ ssoRegistrationAdminManaged: Boolean
1075
+
1076
+ "List of toggleable SSO registration field property names that are required"
1077
+ ssoRegistrationRequiredFields: [String!]
1066
1078
  }
1067
1079
 
1068
1080
  """
@@ -1925,6 +1937,15 @@ type UserManagementProperties {
1925
1937
 
1926
1938
  "Determine the host location for Community GuideLines"
1927
1939
  communityGuideLinesHostLocation: PolicyHostLocation
1940
+
1941
+ "Whether SSO registration completion is enforced (non-dismissible modal)"
1942
+ ssoRegistrationEnforced: Boolean
1943
+
1944
+ "Whether SSO registration field configuration is managed via admin panel instead of deployment config"
1945
+ ssoRegistrationAdminManaged: Boolean
1946
+
1947
+ "List of toggleable SSO registration field property names that are required"
1948
+ ssoRegistrationRequiredFields: [String!]
1928
1949
  }
1929
1950
 
1930
1951
  """
@@ -1984,6 +2005,15 @@ type UserManagementSettings implements Settings {
1984
2005
 
1985
2006
  "Determine the host location for Community GuideLines"
1986
2007
  communityGuideLinesHostLocation: StringSettingWithPossibleValues
2008
+
2009
+ "Whether SSO registration completion is enforced (non-dismissible modal)"
2010
+ ssoRegistrationEnforced: BooleanSetting
2011
+
2012
+ "Whether SSO registration field configuration is managed via admin panel instead of deployment config"
2013
+ ssoRegistrationAdminManaged: BooleanSetting
2014
+
2015
+ "List of toggleable SSO registration field property names that are required"
2016
+ ssoRegistrationRequiredFields: InheritableStringListSetting
1987
2017
  }
1988
2018
 
1989
2019
  """
@@ -1999,6 +2029,8 @@ extend type Community implements UserManagementAdministrative & UserManagementAp
1999
2029
  userManagementSettings: UserManagementSettings!
2000
2030
  "Properties related to the user management feature."
2001
2031
  userManagementProperties: UserManagementProperties! @anonAllowed
2032
+ "All available toggleable SSO registration fields that can be configured via the admin panel."
2033
+ availableSsoRegistrationFields: [SsoRegistrationFieldConfig!]
2002
2034
  }
2003
2035
 
2004
2036
  """
@@ -2313,3 +2345,13 @@ enum UserRepliesSortOrder {
2313
2345
  "Sort replies based on likes."
2314
2346
  LIKES
2315
2347
  }
2348
+
2349
+ """
2350
+ An SSO registration field that can be configured in the admin panel.
2351
+ """
2352
+ type SsoRegistrationFieldConfig {
2353
+ "The field property name (e.g. profileFirstName)"
2354
+ name: String!
2355
+ "Whether this field is always locked/required"
2356
+ locked: Boolean!
2357
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "khoros-aurora-sdk",
3
- "version": "26.2.0",
3
+ "version": "26.2.2",
4
4
  "author": "Khoros, LLC",
5
5
  "keywords": [
6
6
  "Khoros_Aurora_SDK",
@@ -28,7 +28,7 @@
28
28
  "gen": "node ./scripts/generateCli.js"
29
29
  },
30
30
  "dependencies": {
31
- "@apollo/client": "~3.11.10",
31
+ "@apollo/client": "3.11.10",
32
32
  "@babel/cli": "^7.0.0",
33
33
  "@babel/core": "^7.24.5",
34
34
  "@babel/plugin-transform-modules-commonjs": "^7.24.1",
@@ -44,15 +44,15 @@
44
44
  "@graphql-codegen/typescript-graphql-files-modules": "~3.0.0",
45
45
  "@graphql-codegen/typescript-operations": "~4.0.0",
46
46
  "@module-federation/nextjs-mf": "8.8.11",
47
+ "@types/color": "^3.0.2",
47
48
  "@types/express-serve-static-core": "~4.19.5",
49
+ "@types/inquirer": "^9.0.1",
48
50
  "@types/qs": "^6.9.15",
49
51
  "@types/range-parser": "^1.2.7",
50
52
  "@types/react": "^18.2.22",
51
53
  "@typescript-eslint/eslint-plugin": "~6.8.0",
52
54
  "@typescript-eslint/parser": "~6.8.0",
53
55
  "@typescript-eslint/typescript-estree": "~6.8.0",
54
- "@types/color": "^3.0.2",
55
- "@types/inquirer": "^9.0.1",
56
56
  "@urql/core": "^5.1.0",
57
57
  "accepts": "~1.3.8",
58
58
  "babel-plugin-import-graphql": "^2.8.1",
@@ -66,12 +66,9 @@
66
66
  "eslint": "~8.57.1",
67
67
  "eslint-config-airbnb": "~19.0.4",
68
68
  "eslint-config-airbnb-typescript": "~17.1.0",
69
- "eslint-config-next": "15.1.11",
70
69
  "eslint-config-prettier": "~9.0.0",
71
- "eslint-import-resolver-typescript": "3.8.1",
72
70
  "eslint-import-resolver-webpack": "~0.13.7",
73
71
  "eslint-plugin-file-progress": "~1.3.0",
74
- "eslint-plugin-import": "2.32.0",
75
72
  "eslint-plugin-jsx-a11y": "~6.7.1",
76
73
  "eslint-plugin-node": "~11.1.0",
77
74
  "eslint-plugin-promise": "~6.1.1",
@@ -81,8 +78,8 @@
81
78
  "eslint-stats": "~1.0.1",
82
79
  "exenv": "~1.2.2",
83
80
  "express": "^4.19.2",
84
- "findup-sync": "^5.0.0",
85
81
  "fetch-retry": "^6.0.0",
82
+ "findup-sync": "^5.0.0",
86
83
  "fs-extra": "^11.2.0",
87
84
  "glob": "^10.3.10",
88
85
  "graphql": "^15.5.1",
@@ -95,7 +92,6 @@
95
92
  "lint-staged": "~12.3.3",
96
93
  "mime-types": "^2.1.35",
97
94
  "minimatch": "^9.0.5",
98
- "next": "~15.1.11",
99
95
  "pino": "^9.6.0",
100
96
  "pino-pretty": "^13.0.0",
101
97
  "postcss-advanced-variables": "~3.0.1",
@@ -113,16 +109,18 @@
113
109
  "socket.io-client": "^4.7.5",
114
110
  "type-fest": "^4.26.1",
115
111
  "typescript": "^5.7.3",
116
- "webpack": "^5.95.0",
112
+ "webpack": "5.88.2",
117
113
  "yaml": "^2.8.0",
118
114
  "yargs": "^17.7.2"
119
115
  },
116
+ "peerDependencies": {
117
+ "eslint-import-resolver-typescript": "3.6.1",
118
+ "next": "~15.1.11",
119
+ "enhanced-resolve": "5.17.1"
120
+ },
120
121
  "engines": {
121
122
  "node": ">=18"
122
123
  },
123
- "overrides": {
124
- "eslint-import-resolver-typescript": "3.8.1"
125
- },
126
124
  "publishConfig": {
127
125
  "access": "public"
128
126
  }