@or-sdk/sku-builder 2.2.2-beta.4114.0 → 2.3.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.3.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/sku-builder@2.2.1...@or-sdk/sku-builder@2.3.0) (2026-04-28)
7
+
8
+
9
+ ### Features
10
+
11
+ * **sku-builder:** add WebSearch executable SKU handling ([eaecb08](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/eaecb089c1acf792e4a3dab11e0874381e01c161))
12
+
13
+
14
+
6
15
  ## [2.2.1](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/sku-builder@2.2.0...@or-sdk/sku-builder@2.2.1) (2026-04-22)
7
16
 
8
17
  **Note:** Version bump only for package @or-sdk/sku-builder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/sku-builder",
3
- "version": "2.2.2-beta.4114.0",
3
+ "version": "2.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -32,5 +32,6 @@
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
- }
35
+ },
36
+ "gitHead": "44b02340c87f23837d98b1f5468ef8c7fc883956"
36
37
  }
@@ -399,6 +399,41 @@ describe('Build SKU', () => {
399
399
  });
400
400
  });
401
401
 
402
+ it(`generate SKU for ${CategoryNamespace.EXECUTABLE_GENERAL}, WebSearch events`, async () => {
403
+ const data = [{
404
+ AccountId: '1E6E408B-D9DC-4CE7-AD87-05CA44183F38',
405
+ FlowId: 'B666B989-F449-4105-B3A5-1ED1BCB87465',
406
+ Provider: 'Brave',
407
+ Type: 'WebSearch',
408
+ ModelName: 'null',
409
+ Initiations: '26',
410
+ AudioDurationSec: null,
411
+ AudioDuration15Sec: null,
412
+ TokensPrimary: null,
413
+ TokensSecondary: null,
414
+ CharacterCount: '0',
415
+ }];
416
+
417
+ const results = await builder.makeSku(data, CategoryNamespace.EXECUTABLE_GENERAL);
418
+ assert.isArray(results);
419
+ expect(results).toHaveLength(1);
420
+ expect(results[0]).toMatchObject({
421
+ AccountId: '1E6E408B-D9DC-4CE7-AD87-05CA44183F38',
422
+ FlowId: 'B666B989-F449-4105-B3A5-1ED1BCB87465',
423
+ Provider: 'Brave',
424
+ Type: 'WebSearch',
425
+ ModelName: 'null',
426
+ Initiations: '26',
427
+ AudioDurationSec: null,
428
+ AudioDuration15Sec: null,
429
+ TokensPrimary: null,
430
+ TokensSecondary: null,
431
+ CharacterCount: '0',
432
+ SKU: 'EXE-WWW-BRV-PTK',
433
+ Amount: null,
434
+ });
435
+ });
436
+
402
437
  it(`generate SKU for ${CategoryNamespace.EXECUTABLE_LLM}, Druid LLM events`, async () => {
403
438
  const data = [{
404
439
  __time: 1740870000000,
@@ -3021,6 +3021,22 @@ export const mappingMock = [
3021
3021
  'sqlCode': 'Unknown',
3022
3022
  'metadata': {},
3023
3023
  },
3024
+ {
3025
+ 'id': 1657,
3026
+ 'groupId': 'provider',
3027
+ 'name': 'Brave',
3028
+ 'skuCode': 'BRV',
3029
+ 'sqlCode': 'Brave',
3030
+ 'metadata': {},
3031
+ },
3032
+ {
3033
+ 'id': 3111,
3034
+ 'groupId': 'executableServices',
3035
+ 'name': 'WebSearch',
3036
+ 'skuCode': 'WWW',
3037
+ 'sqlCode': 'WebSearch',
3038
+ 'metadata': {},
3039
+ },
3024
3040
  {
3025
3041
  'id': 1658,
3026
3042
  'groupId': 'provider',