New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aims-api/aims-node

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aims-api/aims-node - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

6

CHANGELOG.md
# @aims-api/aims-node
## 0.0.10
### Patch Changes
- f9cef2a: create playlist response schema
## 0.0.9

@@ -4,0 +10,0 @@

53

dist/endpoints/collections/playlist/create.d.ts
import { AxiosInstance } from 'axios';
import { Response } from '../../../helpers/apiResponse';
import z from 'zod';
declare const responseSchema: z.ZodObject<{
collection: z.ZodObject<{
id: z.ZodString;
key: z.ZodString;
processed_at: z.ZodString;
updated_at: z.ZodString;
title: z.ZodString;
description: z.ZodNullable<z.ZodString>;
auto_tagging_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
}, "strip", z.ZodTypeAny, {
id: string;
processed_at: string;
key: string;
title: string;
updated_at: string;
description: string | null;
auto_tagging_output?: Record<string, any> | null | undefined;
}, {
id: string;
processed_at: string;
key: string;
title: string;
updated_at: string;
description: string | null;
auto_tagging_output?: Record<string, any> | null | undefined;
}>;
}, "strip", z.ZodTypeAny, {
collection: {
id: string;
processed_at: string;
key: string;
title: string;
updated_at: string;
description: string | null;
auto_tagging_output?: Record<string, any> | null | undefined;
};
}, {
collection: {
id: string;
processed_at: string;
key: string;
title: string;
updated_at: string;
description: string | null;
auto_tagging_output?: Record<string, any> | null | undefined;
};
}>;
export type CreatePlaylistResponse = z.infer<typeof responseSchema>;
import { CollectionResponse } from '../../../helpers/types/collection';
export type CreatePlaylistRequest = {

@@ -60,3 +12,2 @@ user_id: string;

};
export declare const createPlaylistFromProject: (client: () => AxiosInstance, by: 'by-key' | 'by-id') => (request: CreatePlaylistRequest) => Promise<Response<CreatePlaylistResponse>>;
export {};
export declare const createPlaylistFromProject: (client: () => AxiosInstance, by: 'by-key' | 'by-id') => (request: CreatePlaylistRequest) => Promise<Response<CollectionResponse>>;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -9,14 +6,3 @@ exports.createPlaylistFromProject = void 0;

const apiResponse_1 = require("../../../helpers/apiResponse");
const zod_1 = __importDefault(require("zod"));
const responseSchema = zod_1.default.object({
collection: zod_1.default.object({
id: zod_1.default.string(),
key: zod_1.default.string(),
processed_at: zod_1.default.string(),
updated_at: zod_1.default.string(),
title: zod_1.default.string(),
description: zod_1.default.string().nullable(),
auto_tagging_output: zod_1.default.record(zod_1.default.any()).nullable().optional(),
}),
});
const collection_1 = require("../../../helpers/types/collection");
const createPlaylistFromProject = (client, by) => async (request) => {

@@ -28,8 +14,6 @@ try {

});
console.log(response.data);
const parserResponse = responseSchema.parse(response.data);
const parserResponse = collection_1.collectionResponseSchema.parse(response.data);
return (0, apiResponse_1.successResponse)(parserResponse);
}
catch (error) {
console.log(error);
return (0, apiResponse_1.parseError)(error);

@@ -36,0 +20,0 @@ }

{
"name": "@aims-api/aims-node",
"version": "0.0.9",
"version": "0.0.10",
"license": "UNLICENSED",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/aims-api/aims-node",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc