@surfside/ads-core-client 0.1.21 → 0.1.23

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/README.md CHANGED
@@ -1,15 +1,15 @@
1
- # @surfside/ads-core-client
2
-
3
- To install dependencies:
4
-
5
- ```bash
6
- bun install
7
- ```
8
-
9
- To run:
10
-
11
- ```bash
12
- bun run src/index.ts
13
- ```
14
-
15
- This project was created using `bun init` in bun v1.2.10. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
1
+ # @surfside/ads-core-client
2
+
3
+ To install dependencies:
4
+
5
+ ```bash
6
+ bun install
7
+ ```
8
+
9
+ To run:
10
+
11
+ ```bash
12
+ bun run src/index.ts
13
+ ```
14
+
15
+ This project was created using `bun init` in bun v1.2.10. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SurfsideAdsCoreClientVersionInfo = void 0;
4
- exports.SurfsideAdsCoreClientVersionInfo = { buildBranch: 'master', buildHash: '204013e', buildVer: '0.1.20' };
4
+ exports.SurfsideAdsCoreClientVersionInfo = { buildBranch: 'hotfix-0.1.23', buildHash: 'f4f4536', buildVer: '0.1.23' };
5
5
  //# sourceMappingURL=BuildInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BuildInfo.js","sourceRoot":"src/","sources":["BuildInfo.ts"],"names":[],"mappings":";;;AAAa,QAAA,gCAAgC,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC"}
1
+ {"version":3,"file":"BuildInfo.js","sourceRoot":"src/","sources":["BuildInfo.ts"],"names":[],"mappings":";;;AAAa,QAAA,gCAAgC,GAAG,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /* ===== New Initialization functions ===== */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LoadSurfAdsClientSimple = exports.LoadSurfAdsClient = exports.CreateSurfAdsClient = exports.LoadSurfAdsClientDependencies = void 0;
5
+ const ads_core_1 = require("@surfside/ads-core");
6
+ const index_1 = require("./index");
7
+ /* Client has no unique dependencies right now */
8
+ const LoadSurfAdsClientDependencies = (config) => (0, ads_core_1.LoadSurfAdsCoreDependencies)(config);
9
+ exports.LoadSurfAdsClientDependencies = LoadSurfAdsClientDependencies;
10
+ const CreateSurfAdsClient = (config) => {
11
+ const adsCoreApiRes = (0, ads_core_1.CreateSurfAdsCore)(config);
12
+ if (!adsCoreApiRes.ok) {
13
+ return adsCoreApiRes;
14
+ }
15
+ const adsCoreApi = adsCoreApiRes.value;
16
+ const { requestBids, buildHybridCarouselFromInitialBid, buildSponsoredCarouselFromInitialBid, buildRecommendedCarousel, buildAllSponsoredProductCardResponses } = adsCoreApi;
17
+ const { windowInfo, logger, screen, navigator, configuration } = config;
18
+ const buildBannerResponse = index_1.BuildBannerResponse.bind(undefined, logger, windowInfo, configuration);
19
+ const buildVideoResponse = index_1.BuildVideoResponse.bind(undefined, logger, windowInfo, configuration);
20
+ const buildAllResponses = index_1.BuildAllResponses.bind(undefined, logger, buildBannerResponse, buildVideoResponse, adsCoreApi.buildAllSponsoredProductCardResponses);
21
+ const generateAllResponses = index_1.GenerateAllResponses.bind(undefined, logger, buildBannerResponse, buildVideoResponse, adsCoreApi.buildAllSponsoredProductCardResponses);
22
+ const buildDynamicResponse = index_1.BuildDynamicResponse.bind(undefined, logger, requestBids, buildBannerResponse, buildVideoResponse, buildHybridCarouselFromInitialBid, buildSponsoredCarouselFromInitialBid, buildRecommendedCarousel, buildAllSponsoredProductCardResponses);
23
+ return (0, ads_core_1.Ok)({
24
+ ...adsCoreApi,
25
+ buildBannerResponse,
26
+ buildVideoResponse,
27
+ buildAllResponses,
28
+ screenInfo: screen,
29
+ windowInfo,
30
+ navigator,
31
+ generateAllResponses,
32
+ buildDynamicResponse
33
+ });
34
+ };
35
+ exports.CreateSurfAdsClient = CreateSurfAdsClient;
36
+ const LoadSurfAdsClient = async (config) => {
37
+ const dependenciesRes = await (0, exports.LoadSurfAdsClientDependencies)(config);
38
+ if (!dependenciesRes.ok) {
39
+ return dependenciesRes;
40
+ }
41
+ const dependencies = dependenciesRes.value;
42
+ return (0, exports.CreateSurfAdsClient)({
43
+ ...config,
44
+ ...dependencies,
45
+ });
46
+ };
47
+ exports.LoadSurfAdsClient = LoadSurfAdsClient;
48
+ const LoadSurfAdsClientSimple = async (accountId, channelId, siteId, locationId, userId, logger, overrides) => {
49
+ const browserInfo = (0, ads_core_1.GetBrowserInfo)();
50
+ if (!browserInfo.ok) {
51
+ return browserInfo;
52
+ }
53
+ const { windowInfo, navigator, isMobile, screen } = browserInfo.value;
54
+ return await (0, exports.LoadSurfAdsClient)({
55
+ logger,
56
+ accountId,
57
+ channelId,
58
+ siteId,
59
+ locationId,
60
+ userId,
61
+ windowInfo,
62
+ navigator,
63
+ mobile: isMobile,
64
+ screen,
65
+ ip: undefined,
66
+ overrides
67
+ });
68
+ };
69
+ exports.LoadSurfAdsClientSimple = LoadSurfAdsClientSimple;
70
+ //# sourceMappingURL=Init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Init.js","sourceRoot":"../@surfside-ads-core-client/","sources":["Init.ts"],"names":[],"mappings":";AAAA,8CAA8C;;;AAE9C,iDAY4B;AAC5B,mCAOiB;AAgBjB,iDAAiD;AAC1C,MAAM,6BAA6B,GAAG,CACzC,MAAuC,EACA,EAAE,CACzC,IAAA,sCAA2B,EAAC,MAAM,CAAC,CAAC;AAH3B,QAAA,6BAA6B,iCAGF;AAEjC,MAAM,mBAAmB,GAAG,CAC/B,MAAmC,EACT,EAAE;IAC5B,MAAM,aAAa,GAAG,IAAA,4BAAiB,EAAC,MAAM,CAAC,CAAC;IAChD,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AM,iBAAiB,GAAG,KAAK,EAClC,MAAuC,EACR,EAAE;IACjC,MAAM,eAAe,GAAG,MAAM,IAAA,qCAA6B,EAAC,MAAM,CAAC,CAAC;IACpE,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC;QACtB,OAAO,eAAe,CAAC;IAC3B,CAAC;IACD,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC;IAE3C,OAAO,IAAA,2BAAmB,EAAC;QACvB,GAAG,MAAM;QACT,GAAG,YAAY;KAClB,CAAC,CAAC;AACP,CAAC,CAAC;AAbW,QAAA,iBAAiB,qBAa5B;AAEK,MAAM,uBAAuB,GAAG,KAAK,EACxC,SAAiB,EACjB,SAAiB,EACjB,MAAc,EACd,UAAkB,EAClB,MAAe,EACf,MAAgB,EAChB,SAGC,EAC8B,EAAE;IACjC,MAAM,WAAW,GAAG,IAAA,yBAAc,GAAE,CAAC;IACrC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC;QAClB,OAAO,WAAW,CAAC;IACvB,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC;IAEtE,OAAO,MAAM,IAAA,yBAAiB,EAC1B;QACI,MAAM;QACN,SAAS;QACT,SAAS;QACT,MAAM;QACN,UAAU;QACV,MAAM;QACN,UAAU;QACV,SAAS;QACT,MAAM,EAAE,QAAQ;QAChB,MAAM;QACN,EAAE,EAAE,SAAS;QACb,SAAS;KACZ,CACJ,CAAC;AACN,CAAC,CAAC;AAlCW,QAAA,uBAAuB,2BAkClC"}
@@ -1,2 +1,2 @@
1
- export const SurfsideAdsCoreClientVersionInfo = { buildBranch: 'master', buildHash: '204013e', buildVer: '0.1.20' };
1
+ export const SurfsideAdsCoreClientVersionInfo = { buildBranch: 'hotfix-0.1.23', buildHash: 'f4f4536', buildVer: '0.1.23' };
2
2
  //# sourceMappingURL=BuildInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BuildInfo.js","sourceRoot":"src/","sources":["BuildInfo.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC"}
1
+ {"version":3,"file":"BuildInfo.js","sourceRoot":"src/","sources":["BuildInfo.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC"}
@@ -0,0 +1,63 @@
1
+ /* ===== New Initialization functions ===== */
2
+ import { CreateSurfAdsCore, GetBrowserInfo, LoadSurfAdsCoreDependencies, Ok } from '@surfside/ads-core';
3
+ import { BuildAllResponses, BuildBannerResponse, BuildDynamicResponse, BuildVideoResponse, GenerateAllResponses } from './index';
4
+ /* Client has no unique dependencies right now */
5
+ export const LoadSurfAdsClientDependencies = (config) => LoadSurfAdsCoreDependencies(config);
6
+ export const CreateSurfAdsClient = (config) => {
7
+ const adsCoreApiRes = CreateSurfAdsCore(config);
8
+ if (!adsCoreApiRes.ok) {
9
+ return adsCoreApiRes;
10
+ }
11
+ const adsCoreApi = adsCoreApiRes.value;
12
+ const { requestBids, buildHybridCarouselFromInitialBid, buildSponsoredCarouselFromInitialBid, buildRecommendedCarousel, buildAllSponsoredProductCardResponses } = adsCoreApi;
13
+ const { windowInfo, logger, screen, navigator, configuration } = config;
14
+ const buildBannerResponse = BuildBannerResponse.bind(undefined, logger, windowInfo, configuration);
15
+ const buildVideoResponse = BuildVideoResponse.bind(undefined, logger, windowInfo, configuration);
16
+ const buildAllResponses = BuildAllResponses.bind(undefined, logger, buildBannerResponse, buildVideoResponse, adsCoreApi.buildAllSponsoredProductCardResponses);
17
+ const generateAllResponses = GenerateAllResponses.bind(undefined, logger, buildBannerResponse, buildVideoResponse, adsCoreApi.buildAllSponsoredProductCardResponses);
18
+ const buildDynamicResponse = BuildDynamicResponse.bind(undefined, logger, requestBids, buildBannerResponse, buildVideoResponse, buildHybridCarouselFromInitialBid, buildSponsoredCarouselFromInitialBid, buildRecommendedCarousel, buildAllSponsoredProductCardResponses);
19
+ return Ok({
20
+ ...adsCoreApi,
21
+ buildBannerResponse,
22
+ buildVideoResponse,
23
+ buildAllResponses,
24
+ screenInfo: screen,
25
+ windowInfo,
26
+ navigator,
27
+ generateAllResponses,
28
+ buildDynamicResponse
29
+ });
30
+ };
31
+ export const LoadSurfAdsClient = async (config) => {
32
+ const dependenciesRes = await LoadSurfAdsClientDependencies(config);
33
+ if (!dependenciesRes.ok) {
34
+ return dependenciesRes;
35
+ }
36
+ const dependencies = dependenciesRes.value;
37
+ return CreateSurfAdsClient({
38
+ ...config,
39
+ ...dependencies,
40
+ });
41
+ };
42
+ export const LoadSurfAdsClientSimple = async (accountId, channelId, siteId, locationId, userId, logger, overrides) => {
43
+ const browserInfo = GetBrowserInfo();
44
+ if (!browserInfo.ok) {
45
+ return browserInfo;
46
+ }
47
+ const { windowInfo, navigator, isMobile, screen } = browserInfo.value;
48
+ return await LoadSurfAdsClient({
49
+ logger,
50
+ accountId,
51
+ channelId,
52
+ siteId,
53
+ locationId,
54
+ userId,
55
+ windowInfo,
56
+ navigator,
57
+ mobile: isMobile,
58
+ screen,
59
+ ip: undefined,
60
+ overrides
61
+ });
62
+ };
63
+ //# sourceMappingURL=Init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Init.js","sourceRoot":"../@surfside-ads-core-client/","sources":["Init.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,OAAO,EAEH,iBAAiB,EACjB,cAAc,EAMd,2BAA2B,EAC3B,EAAE,EAEL,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EAEvB,MAAM,SAAS,CAAC;AA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oreConfiguration, type ISurfAdsCoreConfigurationOverrides, type ISurfAdsCoreDependencies, type Result } from '@surfside/ads-core';
2
+ import { type ISurfsideClientApi } from './index';
3
+ export interface ISurfAdsClientConfigurationOverrides extends ISurfAdsCoreConfigurationOverrides {
4
+ }
5
+ export interface ISurfAdsClientConfiguration extends ISurfAdsCoreConfiguration {
6
+ overrides?: {
7
+ services?: Partial<ISurfAdsClientConfigurationOverrides>;
8
+ };
9
+ }
10
+ export interface ISurfAdsClientDependencies extends ISurfAdsCoreDependencies {
11
+ }
12
+ export interface ILoadSurfAdsClientConfiguration extends ILoadSurfAdsCoreConfiguration {
13
+ overrides?: {
14
+ services?: Partial<ISurfAdsClientConfigurationOverrides>;
15
+ dependencies?: Partial<ISurfAdsClientDependencies>;
16
+ };
17
+ }
18
+ export declare const LoadSurfAdsClientDependencies: (config: ILoadSurfAdsClientConfiguration) => AsyncResult<ISurfAdsClientDependencies>;
19
+ export declare const CreateSurfAdsClient: (config: ISurfAdsClientConfiguration) => Result<ISurfsideClientApi>;
20
+ export declare const LoadSurfAdsClient: (config: ILoadSurfAdsClientConfiguration) => AsyncResult<ISurfsideClientApi>;
21
+ export declare const LoadSurfAdsClientSimple: (accountId: string, channelId: string, siteId: string, locationId: string, userId?: string, logger?: ILogger, overrides?: {
22
+ services?: Partial<ISurfAdsClientConfigurationOverrides>;
23
+ dependencies?: Partial<ISurfAdsClientDependencies>;
24
+ }) => AsyncResult<ISurfsideClientApi>;
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "name": "@surfside/ads-core-client",
3
- "module": "./lib/esm/index.js",
4
- "main": "./lib/cjs/index.js",
5
- "types": "./lib/types/index.d.ts",
6
- "exports": {
7
- ".": {
8
- "import": "./lib/esm/index.js",
9
- "require": "./lib/cjs/index.js",
10
- "types": "./lib/types/index.d.ts"
11
- }
12
- },
13
- "version": "0.1.21",
14
- "license": "UNLICENSED",
15
- "files": [
16
- "lib/",
17
- "README.md"
18
- ],
19
- "type": "module",
20
- "scripts": {
21
- "clean": "rm -rf ./lib",
22
- "prebuild": "echo \"export const SurfsideAdsCoreClientVersionInfo = { buildBranch: '$(git rev-parse --abbrev-ref HEAD)', buildHash: '$(git rev-parse --short HEAD)', buildVer: '$(bun -e 'console.log(require(\"./package.json\").version)')'};\" > src/BuildInfo.ts",
23
- "build": "bunx npm-run-all --parallel \"types\" \"esm\" \"cjs\"",
24
- "types": "tsc -p ./tsconfig.types.json",
25
- "esm": "tsc -p ./tsconfig.esm.json",
26
- "cjs": "tsc -p tsconfig.cjs.json",
27
- "lint": "npx eslint"
28
- },
29
- "dependencies": {
30
- "@surfside/ads-core": "^2.0.21"
31
- },
32
- "devDependencies": {
33
- "@types/bun": "latest"
34
- },
35
- "peerDependencies": {
36
- "typescript": "^5"
37
- }
38
- }
1
+ {
2
+ "name": "@surfside/ads-core-client",
3
+ "module": "./lib/esm/index.js",
4
+ "main": "./lib/cjs/index.js",
5
+ "types": "./lib/types/index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./lib/esm/index.js",
9
+ "require": "./lib/cjs/index.js",
10
+ "types": "./lib/types/index.d.ts"
11
+ }
12
+ },
13
+ "version": "0.1.23",
14
+ "license": "UNLICENSED",
15
+ "files": [
16
+ "lib/",
17
+ "README.md"
18
+ ],
19
+ "type": "module",
20
+ "scripts": {
21
+ "clean": "rm -rf ./lib",
22
+ "prebuild": "echo \"export const SurfsideAdsCoreClientVersionInfo = { buildBranch: '$(git rev-parse --abbrev-ref HEAD)', buildHash: '$(git rev-parse --short HEAD)', buildVer: '$(bun -e 'console.log(require(\"./package.json\").version)')'};\" > src/BuildInfo.ts",
23
+ "build": "bun x npm-run-all --parallel \"types\" \"esm\" \"cjs\"",
24
+ "types": "tsc -p ./tsconfig.types.json",
25
+ "esm": "tsc -p ./tsconfig.esm.json",
26
+ "cjs": "tsc -p tsconfig.cjs.json",
27
+ "lint": "npx eslint"
28
+ },
29
+ "dependencies": {
30
+ "@surfside/ads-core": "2.0.23"
31
+ },
32
+ "devDependencies": {
33
+ "@types/bun": "latest"
34
+ },
35
+ "peerDependencies": {
36
+ "typescript": "^5"
37
+ }
38
+ }